5 ms·
The site does a great job explaining what Clojure features exist in this port ... but what about Erlang features? There doesn't appear to be a first-class adopt
by whalesalad 7y ago
The site does a great job explaining what Clojure features exist in this port ... but what about Erlang features? There doesn't appear to be a first-class adoption of things like supervisors and actors like you see in Elixir, for example. Or at least the docs don't do a great job explaining it?
- verttii 7y agoThat was also the first thing I was looking for in the docs. I mean how it ties to the Erlang OTP. It's the reason why anyone would use Erlang's platform after all.
- lsh 7y agoI found the project via this article: https://medium.com/clojure-on-the-beam/agents-9de923017adf https://medium.com/clojure-on-the-beam/agents-9de923017adf that discusses why Clojure 'agents' haven't been implemented in BEAM yet. I think (and I'm not familiar with Erlang) that Clojure agents are very similar to Erlang actors.
- weego 7y agoThis is my understanding of agents vs actors, I may be naive or wrong: Actors are an instance of an object that has inherent logic and maintains mutable state within itself Agents are state with logic attached to them that are immutable and return a new instance of the state (along with attached logic)