Would you use Erlang now when there is Elixir?

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:

3 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:

3 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.

3 Likes

I loved these slides. Thanks for sharing!

2 Likes

You’re welcome. Thanks!

3 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:

2 Likes

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.

4 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:

4 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.

4 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…

2 Likes

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

2 Likes

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

2 Likes

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:

1 Like

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

3 Likes

Primarily its macro system, erlang’s macro’s are significantly more difficult to both create and use.

5 Likes

Is this something they are trying to ‘fix’?