Top
Best
New

Posted by bbg2401 12 hours ago

Elixir-lang.org has a new design(elixir-lang.org)
149 points | 95 commentspage 2
allanmacgregor 11 hours ago|
Looks pretty good, I like that they are highlighting the potential uses for elixir.
tosti 8 hours ago||
I followed the links to docs and getting started, but it says page not found.

The URL: https://elixir.hexdocs.pm/getting-started.html

josevalim 8 hours ago|
It should be fixed soon (deploying now). Thank you!!!
losvedir 11 hours ago||
To me, it seems one of the killer use cases for Elixir (/Erlang) is its distributed cluster capability. Does anyone have experience with that or case reports to share? I've used Elixir quite a bit professionally, but mostly as just a "nicer Rails" with horizontally scalable but otherwise independent Phoenix apps in your traditional Kubernetes setup, which seems to me to kind of missing out on its main purpose.
toast0 9 hours ago||
It's been a while, but I used to work at WhatsApp and we used Erlang distribution heavily. I understand the clusters have gotten really huge since I left.

It's super handy. There's no security barrier between nodes. It's a headache if your network is unreliable.

For a chat app, messaging someone becomes a series of steps:

a) look up if they're online (send a message to the presence database service)

b) if you got a process id back, that's the process connected to the user, so send it the message. The process could be on the same machine or not, but the sending api is the same. This is the special part: few other environments make arbitrary messaging between processes/threads/tasks/whathaveyou so pervasive.

c) if you don't get a process id back, the user is offline; send the message to the offline database.

jomcgi 10 hours ago|||
Also interested in hearing about this! I built an elixir k8s control plane recently and kept expecting to reach for it but it never really made sense when it was controlling golang daemonsets.

My usecase is less independent though, that control plane is orchestrating like Lambda/fly.io style workloads on top of firecracker: https://jomcgi.dev/ember

org3 10 hours ago|||
I've worked a little bit with distributed Elixir using `Horde.DynamicSupervisor` on Kubernetes. Apparently there's other options like 'swarm' and DynamicSupervisor [1]. It'd be great for clear analysis of the benefits these kinds of abstractions bring vs non-BEAM approaches.

[1] https://www.youtube.com/watch?v=nZmDEUeHeVI

davidw 10 hours ago||
Elixir/Erlang works very well in a semi-embedded environment where you need a higher level command and control component that behaves in a deterministic way and is pretty robust.

I was involved, years ago, in using Erlang on these devices: https://www.icare-world.com/us/product/icare-eidon/

It was a lot of fun and there were some very interesting challenges for everyone involved.

aejm 8 hours ago||
I think this version is an improvement over the old one! In particular how it highlights the packages in the ecosystem better.
jeanlucas 11 hours ago||
Nice! The showcase of companies is really nice
swingboy 9 hours ago||
On the first syntax example: there’s something funny to me about using three pipe operator and four different functions to turn “hello world” into “Hello World”.
josevalim 9 hours ago|
That's a good point. It is meant to be an introductory example but I will see if I can come up with something else! Thanks!

EDIT: shipped!

asa400 10 hours ago||
Looks great! There are some style quirks with cutoff elements in Firefox 152.0.6: https://imgur.com/a/OtnESi7
binaryturtle 10 hours ago||
Site doesn't work for me (older Firefox). Looks like there's no CSS and some Javascript error (probably makes it bail out loading the CSS?)
pwg 9 hours ago|
It also does not load if Javascript is blocked.
bbg2401 12 hours ago||
Also observed here: https://elixirforum.com/t/elixir-lang-org-redesign/76041
Starlevel004 10 hours ago|
Why does it have like 0.1s animations?
josevalim 10 hours ago|
Can you clarify which ones? We will be glad to improve them (or feel free to send a PR).
More comments...