|
|
|
|
|
by jitl
3102 days ago
|
|
Pony has an Actor as a language-level concept, which significantly reduces the amount of “thinking about mechanism” that a programmer needs to do to build safe, highly-concurrent programs. Quick read: https://tutorial.ponylang.org/types/actors.html I think one could implement a similar system in Nim using the primitives that you posted, plus some kind of channel, but: 1. Such a system is not included in the standard library (?) 2. Even if a package containing such a system outside the stdlib were available, it would not receive the same application and usage by the Nim community, as Pony actors will in the Pony community 3. So, Pony is better suited to foster a community for highly concurrent programming |
|
I guess the trade off is that if it's a part of the language, you get it standard and built in as a language construct. But if it's in an external library, you can use different actor systems and benchmark them accordingly.