Love this thread, I’ve been thinking about this a lot over the years, and much of Gleam’s design was made with this in mind.
Gleam’s standard library is on Hex, largely so Hex can be used to manage all deps rather than needing the OS package manager for that.
I’ve not yet done the plumbing for this yet but soon published Gleam Hex packages will include the precompiled Erlang output and typespecs, so if you’re an Erlang or Elixir user you won’t need to install the Gleam compiler to make use of libraries written in Gleam. You might not even know you’re using Gleam if all goes to plan.
The compiler will only be required if you’re writing your own Gleam and thus need to type check your code against your Gleam dependencies.