It's a stable production language which has just turned 17.3, has extensive resources, and runs on its own VM (kind of like how Java runs on the JVM). This gives you all of the amazing concurrent power which has helped the Heroku guys here.
Check it out!: http://erlang.org/
The reason I'm promoting elixir instead is because I feel that it's easier to pick up in terms of how different it is from imperative and OO languages.
While you are right in how Erlang has a much longer reputation, it's odd though how it hasn't gained much popularity like other languages that have been around for that long.
What makes Elixir easier to learn for OO programmers?
Spend 5 minutes developing an app in Elixir and you'll realize why it's not just "only syntactically different" from Erlang.
Which libraries and tools do you think set Elixir apart? Do you prefer it to erlang (I've seen you in #elixir-lang ;)?
http://devintorr.es/blog/2013/01/22/the-excitement-of-elixir...
NB: I don't use it at work or anything, just read up on it during free time.
I'd say: evaluate both and pick what suits you.
But all of Elixir's support and ecosystem are available to you from Erlang, only if you install elixir.
Yeah trying both is definitely the best way to go about it.
But the really are, in a fundamental way, the same "language".
Elixir is just a lot easier for newbies, and rubyists.
I think it's prettier and more fun, which is why I choose it, but I switch to erlang when needed, and regularly use erlang libraries in my elixir projects.
When two languages have different semantics, they are different languages.
And finally, when two languages have fundamentally different syntaxes, the idioms promoted by their creators differ, and thus problems are solved in different ways.
They are not fundamentally the same language, no.
Of course, it's not; any language that targets BEAM could pick up those advantages "for free", in the same way Clojure gets a bunch of Java libraries "for free." But people compare programming languages, not abstract machines or library ecosystems. If you treat Erlang and Elixir as black boxes, hiding BEAM and the OTP (the way someone who doesn't know either language would), then they seem to be much more similar to one-another than any other language is to either of them.
You're probably right, I don't want to argue about terminology.
What do you mean by "scare quotes"? Honest question: English is my second language and I'm not very good with it.
> You can.
You're wrong. Here, take a look:
iex(4)> f = fn() -> a = 0; (fn()->a=9 end).(); a end
#Function<20.80484245/0 in :erl_eval.expr/5>
iex(5)> f.()
0
f.() should evaluate to 9 if what you said was true. Either there's a special syntax for doing this in Elixir (like nonlocal in Python 3) or it's absent, and then the scoping rules are the same in Elixir and Erlang, with a bit of syntactic sugar for SSA transformation, which you need to do by hand in Erlang.Again, I'm not Elixir programmer, so this is a honest question: is there some special syntax which would make the example above produce 9? I doubt it very much because it wouldn't fit very well with BEAM, but everything is possible and I'd be glad to learn about another nice feature of Elixir.
The bits about SSA transformation needed to be done by hand in Erlang are a bit fun, because that's considered a feature in the Erlang realm.
The scoping rules aren't the same for the very reason you dismiss as an implementation detail.
Scare quotes: http://en.wikipedia.org/wiki/Scare_quotes
Ok, this means that I need to learn some more about how scoping rules are defined and described, because apparently my current understanding is incompatible with the common one. That happens all the time if you're self-taught like me, so I simply accept this.
Thanks for discussion and the "scare quotes" term :)
It's a new language which has just turned 1.0, has Ruby/Python like syntax and runs on the Erlang OTP VM (kind of like how clojure runs on the JVM). This gives you all of the amazing concurrent power which has helped the Heroku guys here.
Check it out!: http://elixir-lang.org/