Live data from Hacker News

Elixir 1.12

elixir-lang.org

21–30 of 109 posts

Re: Elixir 1.12

#21

Looking into Elixir, but from what i've heard, Elixir isn't very memory efficient when it comes to web servers. Is that still the case? Also where does one host Elixir apps these days? Heroku, Vercel or Bare metal?

You could create a Phoenix project, launch it and use the erlang observer or the Phoenix LiveDashboard to monitor memory consumption and decide if that suits you.

Re: Elixir 1.12

#22

Looking into Elixir, but from what i've heard, Elixir isn't very memory efficient when it comes to web servers. Is that still the case? Also where does one host Elixir apps these days? Heroku, Vercel or Bare metal?

> Looking into Elixir, but from what i've heard, Elixir isn't very memory efficient when it comes to web servers.

It really depends on your reference point and what your web servers are doing. The Elixir website has a series of cases and perhaps you can find an example closer to what you are doing: https://elixir-lang.org/cases.html - there are also cases where companies reduced the number of nodes in production once they migrated to Elixir.

Regarding deployments, Heroku, Gigalixir, Fly.io, Droplets, K8s, etc are all viable options.

Re: Elixir 1.12

#23
post #8

Several versions ago Jose talked about how Elixir is basically "done", which is so refreshing these days! But since then, the developer experience has improved by leaps and bounds through all these improvements other than the core language. As a professional Elixir developer for the last 4 years, I'm loving it. A few improvements in the last few versions off the top of my head that have been really nice: * Robust, ti…

Hey, thanks for this super useful breakdown. I loved Elixir looking at it a few years ago but never got productive enough in it to do more than a few smaller toy projects. I'm going to dig into it again.

Re: Elixir 1.12

#24

Great news. I'll wait for the official docker image to be updated (I deploy on my own server with CapRover). Seems a bit weird though that they do not generate images for the same elixir version with different OTP versions. Currently the latest is elixir v1.12.0-rc.1 and erlang 23.

I highly recommend using the hexpm docker images, which you specify with elixir, erlang, and distro versions, e.g. hexpm/elixir1.12-erlang24.0-debian-buster.

Since the official Elixir versions aren't pinned to a version of Erlang, we had issues where either Erlang or the distro should change out from under us. But not with the hexpm ones.

Re: Elixir 1.12

#25
post #4

See also, https://news.ycombinator.com/item?id=27192873 (Ask HN: Are you satisfied with Elixir or do you regret choosing Elixir?) with great insights about the language. Another popular thread that comes to mind is the one about Discord scaling Elixir ( https://news.ycombinator.com/item?id=14748028 and https://news.ycombinator.com/item?id=19238221 )

Sadly that HN thread is biased toward the person/team that is "leaving" Elixir because it wasn't a good fit for them. For the people who understand Elixir/OTP's strengths it's excellent. We use Elixir for several apps and haven't had any issues recruiting/training people (remote). If we were to chose again we would 100% pick Elixir; nothing else comes close for our use-case.

> For the people who understand Elixir/OTP's strengths it's excellent.

Is there any place to read about this on a more or less basic level? I bet many people will just ask what benefits they may get from this instead of apps build using Go (for example) + rabbitmq

Re: Elixir 1.12

#26

Great news. I'll wait for the official docker image to be updated (I deploy on my own server with CapRover). Seems a bit weird though that they do not generate images for the same elixir version with different OTP versions. Currently the latest is elixir v1.12.0-rc.1 and erlang 23.

I highly recommend using the hexpm docker images, which you specify with elixir, erlang, and distro versions, e.g. hexpm/elixir1.12-erlang24.0-debian-buster. Since the official Elixir versions aren't pinned to a version of Erlang, we had issues where either Erlang or the distro should change out from under us. But not with the hexpm ones.

Thanks, I'll look into it.

edit: so far so good.

Re: Elixir 1.12

#27

Looking into Elixir, but from what i've heard, Elixir isn't very memory efficient when it comes to web servers. Is that still the case? Also where does one host Elixir apps these days? Heroku, Vercel or Bare metal?

I have https://elixirdaily.link (an elixir/beam news aggregator running) on the smallest, free Gigalixir VM just fine. Does a ton of memory intensive work and doesn't go OOM (had to be careful with # outbound http connections).

HN hug of death strikes again

Re: Elixir 1.12

#28
post #2

There are some nice bits in here. tap() and then() are fairly minor, but very nice quality-of-life additions. The work on numerical, livebook, Mix.install etc are healthy steps to take. Nice work.

I wish they'd instead fix the compiler to not require .then

But in absence of that this is a huge QoL improvement.

tap though... OMG yes!

Re: Elixir 1.12

#29
post #15

Looking into Elixir, but from what i've heard, Elixir isn't very memory efficient when it comes to web servers. Is that still the case? Also where does one host Elixir apps these days? Heroku, Vercel or Bare metal?

Huh? Elixir isn't memory effecient, compared to what exactly :)?

assembly probably /s
Post reply on HN