4 ms·
I use them both. They are very different beasts. I wouldn't say one is better than the other. They have different trade offs. In Clojure I miss the preemptive
by retrogradeorbit 10y ago
I use them both. They are very different beasts. I wouldn't say one is better than the other. They have different trade offs.
In Clojure I miss the preemptive VM support for the Erlang "processes", the pattern matching and the elegance of the pid mailboxes.
In Erlang I miss the fantastic built in data structures, the platform reach (targeting the browser for example), the syntax (refactoring clojure is a dream), macros, the REPL, the tooling, the time constructs (refs, agents, atoms) and a bunch off more esoteric stuff. (I don't miss core.async cause Erlangs processes are much better).
I tend to use Clojure by default and Erlang when the problem particularly suits it.
- joncampbelldev 10y agoAs an aside, you can get pattern matching in clojure as a library[0], though I'm not familiar with erlang so I can't say if clojure's implementation is a complete match in terms of functionality. [0] https://github.com/clojure/core.match https://github.com/clojure/core.match
- elcritch 10y agoElixir has brought some interesting dynamics into the mix. Although the ErlangVM's time handling is a bit rudimentary to me. What are these refs/agents/atoms you mention?