Erlang is leaner and more elegant than Elixir. If you don't need the bells and whistles of Phoenix and Ash and so on, and your team is senior enough to just go with the syntax, then Erlang is a good option. Especially if you're doing sophisticated network plumbing and distributed processing stuff but not much direct interfacing with non-technical users.
Gleam takes inspiration from Elm, so if that's your thing and something you'd consider using, probably go with that rather than Phoenix. Again, if your team can handle it.
Personally I build web interfaces and so on as well as plumbing stuff and I'm also very fond of the one language through the entire stack experience it allows, so I mostly stick to Elixir. Prototyping in REPL, moving to scripts, and then into proper modules in the more stable projects. It also has a very nice code generation 'story' that allows a lot of nice shortcuts and sophisticated tools.
Small nitpick - I'd say the main Gleam web framework, Lustre, takes inspiration from Elm. Gleam itself takes inspiration from a number of sources, Rust, Erlang, the ML family of languages. I think Gleam is a lovely little language (though I'm also a huge fan of Elixir).
Is never say erlang is more elegant than elixir, simply due to things like ending functions with commas vs periods (yes they have actual meaning, no it's not really something worth worrying about), lack of pipes, and lack of things like with
They both compile down to the same bytecode, and both have fairly optimum compilers
As for gleam, it's a fun ml dialect, worth using if that's your thing. Same goes with LFE, if you like lisp
> Gleam takes inspiration from Elm, so if that's your thing and something you'd consider using, probably go with that rather than Phoenix. Again, if your team can handle it.
I think you meant Elixir there, not Phoenix?
Elm targets web browser languages, so I considered Phoenix to be a better point of comparison than Elixir broadly.
I’m not sure I’m following. Gleam is inspired by Elm in a lot of ways, and the major draw over Elixir would be the Elm-inspired type system, but Gleam is still a language not a web framework (which Elm is not either, since it only targets clients afaik).