News for hackers. Stuff that matters.
Re:Gleam v1.9.0 Released by bmitc on Sunday March 09, 2025 @12:56PM (#43311006)
I find it unfortunate. The BEAM is so influential as a VM, that most languages on top of it will be very similar. I don't really like the situation where we have Erlang, Elixir, and Gleam all atop the same VM, and they're all basically the same language. It's a split that isn't needed.
Re:Gleam v1.9.0 Released by juped on Sunday March 09, 2025 @01:52PM (#43311734)
Gleam is nothing like Erlang or Elixir (its copying of Rust is so slavish it even has a toml file driven build system) and Erlang and Elixir are not split (the only place where they even sorta are is rebar vs. mix).

I don't particularly want to gatekeep "Rust fans who just want to write lots of Rust" off OTP. Let them have Gleam. Maybe they'll figure out how to lifetime-annotate binaries?

Re:Gleam v1.9.0 Released by tomtheelder on Sunday March 09, 2025 @03:00PM (#43312433)
Gleam and Rust are really not alike at all aside from the most superficial ways. A couple bits of syntax, and the use of toml are about all I can come up with.
Re:Gleam v1.9.0 Released by worthless-trash on Monday March 10, 2025 @12:26AM (#43317008)
> Maybe they'll figure out how to lifetime-annotate binaries?

What do you mean by this, I know how lifetimes work in rust, but how would you do it on the binary level ?

Re:Gleam v1.9.0 Released by juped on Monday March 10, 2025 @01:40AM (#43317312)
Binary is Erlangese for Vec<u8>, hope that helps
Re:Gleam v1.9.0 Released by worthless-trash on Monday March 10, 2025 @05:44AM (#43318576)
There are no lifetimes in gleam though right ? or did i miss the memo.
Re:Gleam v1.9.0 Released by hayleighdotdev on Monday March 10, 2025 @07:59AM (#43319595)
No lifetimes, absolutely no plans to add anything similar. We’re nothing like rust!
Re:Gleam v1.9.0 Released by juped on Monday March 10, 2025 @06:21AM (#43318834)
maybe they can add them to guard against copying large binaries too much
Re:Gleam v1.9.0 Released by lpil on Sunday March 09, 2025 @06:10PM (#43314425)
Hi, I'm the designer of Gleam!

Beyond being functional and sharing a runtime I don't think Elixir and Gleam have much in common at all. Our recent developer survey showed that the majority of Gleam programmers were not Elixir users and largely were not attracted to that language.

Re:Gleam v1.9.0 Released by bmitc on Tuesday March 11, 2025 @01:21PM (#43334838)
My question is: is how one approaches writing programs in Erlang, Elixir, and Gleam fundamentally different from one another? And is the difference enough for the split in the ecosystem?

> Our recent developer survey showed that the majority of Gleam programmers ... largely were not attracted to that language.

I must admit that I find that fairly bizarre. What do you imagine the source of that lack of desire is?

For context, my favorite language is F# and ML-dialects in general, but I also like what I call "principled" dynamically typed languages like Scheme, Racket, Erlang, and Elixir.

Re:Gleam v1.9.0 Released by lpil on Tuesday March 11, 2025 @01:25PM (#43334888)
Yes, they are very different. It's not splitting the ecosystem though as the vast majority of Gleam programmers are not former Elixir, Erlang, or LFE programmers, it's people coming from other ecosystems.

Gleam grows the BEAM ecosystem by bringing people in from elsewhere who were not interested in writing Elixir, Erlang, or LFE.

> I must admit that I find that fairly bizarre. What do you imagine the source of that lack of desire is?

They're just very different languages to work with. The programming experience is very different.

Re:Gleam v1.9.0 Released by tmountain on Sunday March 09, 2025 @06:39PM (#43314661)
There are TONS of JVM languages and nobody is complaining about that. BEAM is much smaller and a very nice target IMO. I learned Erlang but found it too weird for my tastes. Elixir lacked a type system when I evaluated it, and that steered me away from it. Gleam feels kind of like Elm felt. Small, simple, and safe. It feels very intentional and designed for a particular purpose and audience. I did their online tutorial and felt comfortable with the language in one sitting. Can’t say that for many other languages.
Re:Gleam v1.9.0 Released by bmitc on Sunday March 09, 2025 @08:28PM (#43315506)
Who is choosing anything but Kotlin for new projects on the JVM?

The point is that beyond some basic typing things, programs written in Erlang, Elixir, and Gleam will all have the same core structure. Immutable data plus pattern matching plus BEAM processes has a pretty strong affect on any BEAM language.

Re:Gleam v1.9.0 Released by tmountain on Monday March 10, 2025 @12:20PM (#43322162)
> Who is choosing anything but Kotlin for new projects on the JVM?

I dunno... Scala, Clojure, and Groovy users? Small user bases, but the languages are not dead.

Re:Gleam v1.9.0 Released by bmitc on Tuesday March 11, 2025 @01:24PM (#43334867)
That's kind of my point. Does the JVM really need four different general purpose languages with their own ecosystems to split the JVM ecosystem and userbase?
Re:Gleam v1.9.0 Released by Alupis on Tuesday March 11, 2025 @05:15PM (#43337075)
Why not? There's like 483 different application frameworks for the JVM too. The more choices the better - it lets ideas cross-pollinate, and the best ideas get borrowed/stolen. Some people like different syntax, bindings, etc.

I find the opposite more troubling, actually. Take the C# ecosystem and see how there's one de-facto application framework (.NET), one logging lib, one etc... It's usually Microsoft's way or the highway, and 3rd party libraries and frameworks struggle to get any adoption. Consequently, that ecosystem is much smaller, less diverse, and less innovative.