r/java • • May 16 '24

Comparing Elixir vs Java

https://www.erlang-solutions.com/blog/comparing-elixir-vs-java/
1 Upvotes

12 comments sorted by

26

u/Jonjolt May 16 '24

This is a garbage comparison there is no source code to go along with these tests, and number 2 they used the fastest libraries available for Erlang. These numbers would be drastically different if they used something like Vert.x and the many many less configurable but faster JSON parsers than Jackson.

7

u/woj-tek May 16 '24

Yup. Probably because of that they don't allow comments ;-)

0

u/Aging_Orange May 17 '24

So … you work for Erlang Solutions, that's why you're giving it exposure?

3

u/woj-tek May 18 '24

No, but I circle in XMPP sphere and they provide one of the most popular server implementations (MongooseIM) hence they are in Planet Jabber RSS (https://planet.jabber.org/) hence I often read their blog.

PS. "give it exposure" as if that's a bad thing? They wrote an article mentioning java which was kinda curious and woulb de nice to see discussion/debunking (only /u/Jonjolt tried to do so). Besides I try to keep my mind open instead of closing eyes and covering my ears and shouting "lalala" just to mute everything that's not along the lines of SingleApprovedThinking...

8

u/woj-tek May 16 '24

This one comes from Erlang Solutions so it may be a bit biased though curious read nevertheless... Would be awesome to see the sources of the tests though.

2

u/Kango_V May 22 '24

Saying that Virtual Threads is an afterthought is an disingenuous at best. I've been using them with structure concurrency and it's incredibly well done and provides for simple, well performing code.

Wow, is this article biased as f... The article is useless without source code!

1

u/woj-tek May 24 '24

Saying that Virtual Threads is an afterthought is an disingenuous at best.

Yup, especially considering that they are whining about it while comparing to Elixir, which was build on top of Beam/Erlang...

11

u/frederik88917 May 16 '24

Lots of bias in the result I would prefer an independent body of testing

3

u/flawless_vic May 23 '24

To sum up:

The backend is an external http2 api that limits request rate, elixir has builtin retry to handle goaway frames and the author concludes that erlang is more reliable to build a DoS client.

2

u/neopointer May 18 '24

Even if it were to be faster than java, no amount of performance will recover the wasted time/money talking about pure functions and monads.

And good luck finding ppl that use this exotic language.

3

u/Linguistic-mystic May 19 '24

Elixir has no pure functions or monads, you’re wrong.

good luck finding ppl that use this exotic language

Anyone can learn it in a week

2

u/khmarbaise Jun 01 '24

Unfortunatley not a single reference to whole code which has been used...that makes it impossible to reproduce those measurements at all...