by klabb3 · 2y ago · 0 comments
That said, I really, really appreciate when I can see a tangible piece of code that solves a real problem. In the case of concurrency, perhaps a hello world from an actor, ping pong, a chat room, cancellation, timeout or similar. Show something that's easy to do in this model, which is tedious to do in different models. (This shouldn't be hard to find, since concurrency is ridiculously easy to get wrong in most languages).
If a partial goal is to engage practicians, then code samples is very effective. I usually don't need the full theory to grok code even in a foreign paradigm. If I can get an initial sense and I like it, then I am infinitely more willing to read up on the theory. Now, unfortunately, you're missing out on one very curious, albeit lazy, reader.
For the record, the closest I could find was some pseudo-code[1]. If there's more please share!
[1]: https://synit.org/book/syndicated-actor-model.html
EDIT: I'm stupid, there are a couple of examples on the linked page if you scroll down. I wish there were more!
Tell me about it. I also lack formal education, and a lot of advanced research into distributed communication models is basically expressed in alien languages to me, i.e. pi-calculus, rho-calculus, even Hewitt's research. It is both fun and a bit frustrating trying to figure out how they would work in practice from formal academic papers.
This one has a lot of actual Racket code though, you might want to read the history section for some practical examples.
You might find the ~blog/journal part of the site interesting, wrt examples: https://syndicate-lang.org/journal/ -- still not exactly an embarrassment of riches, but it's something.