It seems like the “damp cloth of Java” that has been plastered all over the programming landscape the last 20 years is finally being lifted. I admit, I do dislike Java …immensely. And not only on technical grounds, but even more based on what I perceive as it’s community worshipping complexity for it’s own sake. Of course IMHO.
And Smalltalk is still my “super productive dynamically typed” language of choice, but I just learned about a language that I really think is going places…
Erlang has always been on my todo list, and I did try once or twice but frankly, the language seemed a bit primitive. But anyone with any clue about Erlang also knows it is extremely strong in the area of robust, forever running and very scalable distributed systems.
Erlang got a revival with the new focus on highly distributed systems, especially the emerging NoSQL database systems - it fit like a glove. Riak from Basho is perhaps the most obvious example of these systems. And WhatsApp is the latest $19 billion poster child for the Erlang story.
But now things are heating up significantly. In 2012 José Valim created Elixir, a new language targeting the Erlang VM. Elixir manages to be true to the core Erlang ideas and is very compatible with the Erlang eco system - but at the same time it brings a whole lot more to the party. And it is making a buzz for sure, even Joe Armstrong likes it (one of the core Erlang creators).
And that inevitably brings us to the primary web framework of Elixir called Phoenix mainly developed by Chris McCord and reaching 1.0 just two months ago. Phoenix is picking up the challenge to create a “Rails killer” in Elixir and this presentation is one of the most informative on it.
But not only is Elixir and Phoenix attracting the interest of web developers that want a fresh air of truly stellar performance (especially compared to RoR) - it is also making a dent in the embedded world due to its extreme robustness and ability to do hot code deployment, see this presentation.
The more I read and browse the more I find. Real world success stories, books, blog articles - truly impressive given it’s only been approximately a year since the language hit 1.0! The IRC channel has more than 450 people, almost twice as much as Rust has, still half of Python or Go but let’s check again in a few months. ;)
Several Erlang people tend to describe Elixir as a logical next step for Erlang, which means it is blending in with the already well established Erlang community. This is a big plus. As an example Elixir’s package manager is Hex but it can also do Erlang packages and may very well turn into the main package manager for the whole Erlang eco system.
Given how it looks I think Elixir is about to go big. It is a stellar language for scalable systems and Phoenix brings it to the web arena leaving RoR completely in the dust performance wise. Elixir also utilizes all your cores (well, it’s what Elixir gets for free from running on BEAM), without the significant burden of the asynchronous “code mess” that NodeJS and similar asynchronous solutions has forced us to endure. And that pain didn’t give us multicore anyway!
Phoenix is also perfect for the new style of connected HTML5 apps - the modern web. Yeah, it’s funny, we are back to the client server architecture for sure. So does that scale? It sure as hell seems to. See Chris talking about what comes next in Phoenix.
Elixir has a lot of checkboxes checked:
- Very strong and vocal lead developers (José Valim, Chris McCord and more)
- Good tooling
- Growing list of packages
- Several evangelists
- It’s own conference
- It’s own web framework
- Several books published
- Natural path to both Rails and Erlang people
I am going to see if I can get my Raspberry Pi (that I got from my brother as a christmas gift) to run some Phoenix…