top | item 45232131

(no title)

asib | 5 months ago

> [...] It’s an Elixir-like language that supports static typing.

Maybe just me, but when I tried Gleam it really came off much more like Rust. In fact, other than running on the BEAM (and having some OTP libs in the works), it doesn't really _feel_ like Elixir at all to me, but that is definitely an opinion.

discuss

order

sodapopcan|5 months ago

They probably just mean "BEAM language that isn't Erlang."

All BEAM languages always bring something new to the table aside from just syntax (for Gleam it's static type, for Elixir it's macros and, well, mix!) but none of them try and abstract away the core tenants of the BEAM being functional working with modules and processes. So ya, in that sense you could say it's like Elixir.

sbrother|5 months ago

How good is the interop story with Elixir/Erlang currently? Can I include a few gleam modules in my Elixir application and let mix take care of compiling and linking everything properly?

sethhochberg|5 months ago

I'm currently working on a prototype that does exactly this (in our case, the Gleam is essentially a typed calculation module wrapped in Elixir's great libraries for network and database interactions but its all net-new application instead of an existing Elixir codebase). Its not yet perfect, but I've been eagerly following along with this PR: https://github.com/elixir-lang/elixir/pull/14262#issuecommen...

Seems like (one of) the next Elixir releases will include the support you're looking for in mix.

tengbretson|5 months ago

I've kind of gotten a

Scala : Gleam :: JavaScript : Lua

vibe from it.

jszymborski|5 months ago

It also most reminded me of Scala.