Extending the Actor Model with Synchronous Delivery: fast_send from CPU Threads to FPGA Pipelines
Classical actor semantics are based on asynchronous message passing. Practical actor and active-object systems also provide synchronous request/reply, whose interaction with actor isolation and with a finite set of execution resources requires a treatment of its own. We extend the model with a second, synchronous primitive, fast_send, drawn from the open-source actor framework kaspar-hft: the caller blocks while the receiver handles the message, and the receiver's reply is the return value of the call. We give fast_send a formal semantics by extending the active-object calculus of De Koster and De Meuter with explicit execution resources, and we prove three properties of the extended model. Isolation: actors share no state, and each actor processes at most one message at a time. Determinism relative to replies: given the actor's state, its message and the sequence of replies to its fast_send calls, a handler's result, updated state and outgoing requests are uniquely determined. Conditional liveness: under terminating handlers and fair scheduling, a handler blocks only on a cycle of fast_send calls, and a system without fast_send is deadlock-free, as in the original model. We further prove that fast_send is not expressible as a send followed by a blocking wait: when caller and callee share a thread, the latter deadlocks and fast_send does not. For debugging and deterministic replay, we show that executing all actors, in any language and on any substrate, from a single global queue is sound with respect to the concurrent semantics but not complete: provided that no remotely called actor shares its thread, the global queue produces only behaviours of the concurrent system, though not all of them. Finally, we map the extended model onto hardware. On an FPGA, send is a FIFO between hardware processes and fast_send is logic fused into a single process, realised as an inline call between the actors of one group; without fast_send, fused actors could not call one another, since a send followed by a wait between them deadlocks. We also give the mapping onto CPU threads and Rust, and propose one for GPUs.
Authors
- Vincent Maciejewski
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-27
- DOI
- https://doi.org/10.5281/zenodo.24572806
- Primary Topic
- Logic, programming, and type systems
- Type
- preprint