Skip to content

Kompact 0.8.0

Compare
Choose a tag to compare
@Bathtor Bathtor released this 16 Oct 09:16
· 370 commits to master since this release

Breaking Changes

  • Local actor communication (i.e., via ActorRef) is now statically typed.
  • Local actor communication does not include implicit sender references anymore.

Other Changes

  • A new macro match_deser! that makes handling network messages more convenient.
  • Support for eager (on the sending actor) message serialisation via the tell_ser method on ActorPath.
  • Component macros now generate implementations for ProvideRef and RequireRef traits, which allow easier component connection, for example via biconnect_components or via connect_to_provided/connect_to_required.
  • Support for a narrower version of ActorRef called a Recipient, which auto-boxes messages into the type expected by the receiving actor.
  • A wait_expect method on Future to avoid the wait_timeout -> expect -> expect sequence during actor registration.
  • Support for running components on dedicated threads, instead of the shared threadpool. Dedicated component can optionally be pinned to CPU cores with the thread_pinning feature.
  • A new trait NetworkActor that can be used to conveniently implement actors that handle the same set of messages from remote and local source (i.e., via ActorRef or ActorPath).
  • ComponentContext now has a method suicide(), allowing it to shut itself down.