by MrJohz · 1y ago · 0 comments
Some of this is obviously going to be the newness of Gleam, but I remember when Elixir was still brand new, and the OTP integration was one of the biggest selling points there, and a big part of their documentation and the ecosystem in general. Whereas with gleam, it almost seems like they're embarrassed of the runtime's distributed heritage? Whereas to me it seems like the OTP and the actors model in general would be the biggest selling point for a language like this.
Does anyone have any insight into why this is, or what concurrency practically feels like in gleam?
I think Louis and the Gleam community are very serious about supporting OTP, but there are still open research questions around typing parts of OTP.
The parts of OTP that Gleam supports are still very useful, compatible with Erlang/Elixir, and very much used. And they have the benefit of being statically typed [1].
There's no embarrasement about Gleam's primary runtime being the BEAM, it's right there on the front page, above the fold! [2]
[1] https://github.com/bcpeinhardt/learn_otp_with_gleam [2] https://gleam.run/
@external decorator: This escape hatch allows Gleam code to call functions defined in Erlang or Elixir modules. While it bypasses Gleam's type checks for the function call, it provides a powerful way to leverage the full capabilities of the existing OTP ecosystem.
I believe the biggest reason it's hard to replicate OTP fully and quickly is Gleam's type system (but I could be wrong).