Damus
mleku profile picture
mleku
@mleku


A nice explainer of what Actor model is. It's pretty much what CSP (Communicating Sequential Processes) is all about. No shared memory, everything is isolated. #moxie language uses this as a core architectural principle right down to the ground. it uses Thread Local Storage (the other TLS) so each single thread of processing has its own memory, and communicates with pairs of ring buffers with other threads, which spawn as a tree using the "spawn" builtin operator, which creates handling so that when you send or receive on channels passed to it, they are intercepted and forwarded over the buffers to the other thread. the exact same design principle can also be used to create distributed applications with heteregenous (not peer) distributed systems (some overlap with "microservices").

https://docs.ergo.services/basics/actor-model
31โค๏ธ1๐Ÿงก1
mleku · 3w
btw, this is a stupid framework. the actor library i made lets you do everything this thing does trivially. you can make network-distributed and heteregenous multi-binary architectures that use sockets or pipes by creating actors that own the socket or pipe.
Tekkadan ๐Ÿ“ฒ๐Ÿ„๐ŸŒ · 3w
Mycelium also uses Actor models ๐Ÿ„ cool to see this