r/Clojure • u/hiero_protagonist • Aug 10 '17
Clojerl - Clojure for the Erlang VM
https://github.com/jfacorro/clojerl3
u/chepprey Aug 11 '17
I'm curious to see a detailed list of language constructs and features that are and aren't supported.
1
u/jfacorro Aug 17 '17
There is an attempt at something of the sort in the Differences from Clojure, but I agree a list of currently available and missing features is missing, I will create a ticket for that. Something that is not mentioned in that document for example is the possibility of using Erlang pattern matching (including guards) in some of the language constructs (let*, receive*, fn*, case*).
2
1
u/sbensu Aug 11 '17
I tried it and it is much more advanced that one would expect. Try it, you'll be pleasantly surprised!
1
1
1
u/doctork91 Aug 11 '17
I don't know Erlang so I can't comment on anything meaningful, but the name seems ambiguous. My first thought was that it was some kind of clojure-perl hybrid. Erljure seems like a less ambiguous, if uglier name.
1
u/sbensu Aug 12 '17
Another, easier to pronounce, option is ClojureBeam but not many people know that the Erlang VM is called the BEAM.
1
u/doubleagent03 Aug 15 '17
So...no concurrency primitives like atoms, agents, and refs?
1
u/zcam Aug 17 '17
In theory it s feasible to build something that would feel like it on beam (on ETS for instance), but it doesn't fit with the platform capabilities really. An elixir like lisp with nice flow/composition utils and protocols, macros etc is already quite nice. I think not aiming for feature parity is a necessity here. On the other hand you get access to all the otp features "for free".
1
1
u/jfacorro Aug 17 '17
There are some thoughts about that here along with some others points that may be interesting as well.
7
u/dustingetz Aug 10 '17
Related to this, Paul Snyder gave a talk in Philly last night about a clojure library Pulsar https://github.com/puniverse/pulsar which brings Erlang-like actor primitives to clojure, it works by scanning your jar file and rewriting jvm bytecode http://blog.paralleluniverse.co/2013/05/02/quasar-pulsar/