Would you use Erlang now when there is Elixir?

Although I have used PHP I wouldn’t say I chose it, because I didn’t really have a choice - it was the language that software I was using was built-in so had to use it.

I did choose Ruby and Elixir tho :smiley:

However, I think nowadays the liberty to choose is dwindling. Back then many of us were making web apps and you could use lots of different languages to get the job done. Ruby, Python, PHP, Java, etc it didn’t really matter for the most part.

Things are different now because even some of the more specialised areas are actually now quite mainstream - maybe even as much as building web apps was back then because the internet has continued to explode. If you want to realistically do ML, your options are limited. If you want to do mobile apps, your options are limited. If you want to create SPAs, your options are limited. If you want to build massively scalable fault tolerant systems, you options are even smaller still :wink: haha!

Using the right tool for the job, in the sense that your options are more limited, is more prevalent now in mainstream than it was 5 10 years ago. Hence I’ve resided to the fact that I need to stop being picky and in Robert’s words “RTFM and get over it” :rofl: (however I will say that the moment realistic choice becomes an option again, syntax will almost certainly play a role - we are just human after all, and we all have preferences on things like this).

3 Likes

Hah, I ran into the same issues with the syntax, which really sucks because that syntax used to work but was broken back in 1.4 or 1.5 or so, which was very bugging for one of my libraries… >.>


Overall though I still prefer erlang’s syntax to this day, I would just sorely miss its macro system. lfe should become more popular. ^.^

3 Likes

Our LFE portal is up now so maybe you or Robert could post some threads about it :nerd_face:

3 Likes

:cry:!
I’m revisiting Erlang and loving its syntax, and preparing contents for a course on Git, a tool which is widely used yet misunderstood, and meanwhile you people reminded me of LFE. Now a part of me wants to visit lfe.io and the sane part of my brain tries to stop it, sensing procrastination.

2 Likes

I’m not sure why but I always thought LFE was a hobby project for Robert (I mean he already created Erlang!) but after revisiting the site after its redesign it seems people are using it in production:

LFE boasts seamless interoperability with Erlang and the BEAM ecosystem of libraries. It not only has been used in stable production applications since 2015, it has also been employed by start-ups as their differentiating tech. LFE is flexible enough to be everything from your go-to scripting solution to your preferred syntax for massively scalable, soft-real time services.

I’d like to see more threads about LFE :smiley:

2 Likes

I think erlang2 was his hobby project, lol. LFE is fully fledged though. :slight_smile:
I think erlang2 was his, maybe one of the others, it had some aspects of elixir like multiple modules in a file and all, but was definitely a little hobby thing that wasn’t finished.

4 Likes

Reminds me of a presentation I did 10 (what, 10!!) years ago now. Erlang for Ruby developers.

Blog post:

Link directly to the presentation:

2 Likes

Nice one Karmen! I enjoyed going through that! And wow - TEN YEARS!!! Think I was only just getting into programming them :rofl:

What are the most used Erlang frameworks now btw? I need to add portals for them :nerd_face:

2 Likes

Thanks!

Other than the ones I mentioned: Chicago Boss and Nitrogen, I see there are others like Zotonic and Nova. I haven’t personally used them. YMMV.

2 Likes

I loved these slides. Thanks for sharing!

1 Like

You’re welcome. Thanks!

2 Likes

Definitely for libraries because that would be useful for a wider range of people.
I’ve also grown to adore Erlang’s syntax for its conciseness and consistency despite all its quirks.

Erlang is not the best choice for web given there’s Phoenix of course, however if Whatsapp delivers with static types I can definitely see myself writing core logic in Erlang and using Phoenix purely as a web interface.

Love both languages anyway. :slight_smile:

1 Like

You can’t get around the fact that lisp’s, and hence LFE’s, syntax is fantastic in its simplicity and consistency. It makes things so much easier, And its macros.

3 Likes

No, I was never really into erlang2, that was mainly Joe. There is another Erlang2 on its way but that is the Whatsapp group working on a newer statically typed erlang.

Still think lisp syntax is the best though. :wink:

3 Likes

I didn’t try to define a function in that way because I KNOW that you can’t do it like that. I was just trying to show that there is set of syntactic “weirdness” which make no sense if you don’t know why. Doing it like that also makes sense if/when you view do ... end as a block, which it is sort of, and you want to write the block start and end at the same indentation.

3 Likes

I am going to reserve judgement until I’ve finished reading Programming Erlang Robert :laughing:

I was under the impression it was going to be some sort of bolt-on, here’s Anton’s post from another thread:

November is here so hopefully won’t be too long before the WhatsApp team share details :nerd_face:

I wonder if it might be something like what TypeScript is to JS…

1 Like

I hope it’s not very differnt than the Erlang we know.

1 Like

Unfortunately sharing details is getting delayed. Please see my response in Elixir forum thread for more information: https://elixirforum.com/t/facebook-is-writing-a-new-statically-typed-language-to-run-on-the-beam/29829/34

1 Like

I think that’s perfectly reasonable Anton, it makes sense holding off until you’re happy with what you’ve come up with :smiley:

Please keep us updated on your progress if you can :blush:

Pls excuse my ignorance but what can elixir do or offer that erlang can’t and vice versa?

2 Likes