Skip to content

Conversation

@shayne-fletcher
Copy link
Contributor

Summary: renames the old RemoteableActor docs to RemoteSpawn, fixes the Referable path, and introduces a stub page for the remote actor registry. this updates the actors index to point at the new filenames and adds a one-line description for the registry. mo content changes yet, just aligning the book structure with the current trait names and module layout.

Differential Revision: D88071812

mariusae and others added 2 commits December 1, 2025 05:37
Summary:
We shouldn't mandate how an actor is actually instantiated. Rather, 'spawn' should just take over ownership of an `Actor` object directly, and run its loop from there. This helps to separate concerns and simplify the implementation. In this change:

1) We remote `new` from `Actor`, and only require it in `RemoteSpawn` (renamed from `RemotableActor`), in order to enable remote spawning
2) Change the spawn APIs to take ownership over an actor object
3) Remote the `derive(Actor)` macro, this can now be implemented with a simple `impl Actor for Foo{}` marker trait when no additonal behavior needs to be customized.
4) Simplify a bunch of actor construction, esp. in tests, where we like to just use simple objects.

Using this, in the next change, we will make `spawn` fully synchronous.

This leaves the #[export] attribute macro somewhat schizophrenic: `spawn = true` now only registers the actor in the remote registry. We should think about how to simplify this, too.

Differential Revision: D87575629
Summary: renames the old `RemoteableActor` docs to `RemoteSpawn`, fixes the `Referable` path, and introduces a stub page for the remote actor registry. this updates the actors index to point at the new filenames and adds a one-line description for the registry. mo content changes yet, just aligning the book structure with the current trait names and module layout.

Differential Revision: D88071812
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Dec 1, 2025
@meta-codesync
Copy link

meta-codesync bot commented Dec 1, 2025

@shayne-fletcher has exported this pull request. If you are a Meta employee, you can view the originating Diff in D88071812.

@meta-codesync
Copy link

meta-codesync bot commented Dec 3, 2025

This pull request has been merged in 52b0f4b.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. fb-exported Merged meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants