Picea.Rubens 0.1.9-ga323611391

This is a prerelease version of Picea.Rubens.
dotnet add package Picea.Rubens --version 0.1.9-ga323611391
                    
NuGet\Install-Package Picea.Rubens -Version 0.1.9-ga323611391
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Picea.Rubens" Version="0.1.9-ga323611391" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Picea.Rubens" Version="0.1.9-ga323611391" />
                    
Directory.Packages.props
<PackageReference Include="Picea.Rubens" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Picea.Rubens --version 0.1.9-ga323611391
                    
#r "nuget: Picea.Rubens, 0.1.9-ga323611391"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Picea.Rubens@0.1.9-ga323611391
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Picea.Rubens&version=0.1.9-ga323611391&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Picea.Rubens&version=0.1.9-ga323611391&prerelease
                    
Install as a Cake Tool

Picea.Rubens

Actor model (Hewitt 1973) built on the Picea kernel.

What is Rubens?

Rubens implements Hewitt's three axioms of the Actor Model on top of the Picea automaton kernel:

  1. Send messagesAddress<TCommand>.Tell() (fire-and-forget, asynchronous)
  2. Create actorsActor.Spawn() returns an unforgeable Address<TCommand>
  3. Designate behaviorDecider.Decide + Automaton.Transition (the new state IS the new behavior)

All actors are Deciders: they validate commands against state, produce events, and evolve via transitions. This is a domain design choice — actors model business logic, not raw message pipes.

Key Types

Type Description
Actor Factory for spawning actors (Hewitt's axiom #2)
Address<TCommand> Unforgeable capability to send commands (axiom #1)
Envelope<TCommand, TReply> Command + reply address (Hewitt's request-reply)
ReplyActor<T> One-shot Decider for request-reply (axiom #3)
ReplyChannel Convenience factory to spawn reply actors

Installation

dotnet add package Picea.Rubens

Quick Start

using Picea;
using Picea.Rubens;

// Spawn an actor — returns an unforgeable address
var address = await Actor.Spawn<MyDecider, MyState, MyCommand,
    MyEvent, MyEffect, MyError, Unit>(
    default, observer, interpreter, cancellationToken: ct);

// Send a command (fire-and-forget)
await address.Tell(new MyCommand.DoSomething());

// Request-reply via envelope pattern
var replyAddress = await Actor.SpawnWithReply<MyDecider, MyState, MyCommand,
    MyEvent, MyEffect, MyError, Unit>(
    default, observer, interpreter, cancellationToken: ct);

var (reply, task) = await ReplyChannel.Open<Result<MyState, MyError>>(ct);
await replyAddress.Tell(new Envelope<MyCommand, Result<MyState, MyError>>(
    new MyCommand.DoSomething(), reply));
var result = await task;

Design

The key insight is that Hewitt's "designate behavior for next message" is exactly what a Mealy machine does: Transition(state, event) → (state', effect). The new state IS the new behavior. This is why Hewitt's actors and finite-state machines are the same mathematical object — both are coalgebras over the functor F(X) = (Output × X)^Input.

References

  • Hewitt, Bishop, Steiger (1973). "A Universal Modular Actor Formalism for Artificial Intelligence." IJCAI'73.
  • Hewitt (2010). "Actor Model of Computation: Scalable Robust Information Systems." arXiv:1008.1459.
  • Chassaing, Jérémie (2021). "The Decider Pattern."

License

Apache-2.0

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • Picea (>= 1.0.22-rc-0001)

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.9-ga323611391 48 3/12/2026