Exploring the Gleam FFI
jonashietala.se
jonashietala.se
FYI the next big elixir launch is a gradual type system.
So idk, I'll probably still keep an eye on gleam even once elixir has types. In a sense I think my ideal language would be like "rescript but for erlang instead of js" and typed elixir definitely isn't that. Gleam isn't quite that either but it's from the same neighborhood.
But, and I'm certainly not a type systems expert, I think something like ocaml 5's algebraic effects can model anything in beam? I'm not a beam expert either though so maybe I'm wrong. It might be unusably hairy though.
Anyway though again I have high confidence that elixir will come up with an excellent type system for elixir. But a project starting from a well-understood type system and building towards beam will get a different result and I think that's likely also valuable.