News for hackers. Stuff that matters.
Re:Supercharged Labels – Gleam v1.4.0 by Alupis on Friday August 02, 2024 @02:17PM (#41141196)
What kind of projects are people using Gleam for?
Re:Supercharged Labels – Gleam v1.4.0 by hayleighdotdev on Friday August 02, 2024 @02:19PM (#41141212)
Most folks are using Gleam to do full stack Web stuff. Because Gleam compiles to both Erlang and JavaScript it ends up being a pretty nice experience.
Re:Supercharged Labels – Gleam v1.4.0 by Alupis on Friday August 02, 2024 @02:22PM (#41141242)
The BEAM ecosystem seems very impressive for backend style work, but both Erlang and Elixir's syntax are kind of a put off. Gleam I've found to be quite readable and very pleasant to look at - plus it gets all the OTP/BEAM benefits for super scaling.
Re:Supercharged Labels – Gleam v1.4.0 by giraffe_lady on Friday August 02, 2024 @03:18PM (#41141742)
I wrote a small telnet parser with it to run in the browser. This type system and its pattern match is very well suited for that sort of thing.

I only needed only a subset of the spec, but with a negotiated subprotocol. I couldn't find a client library that worked for this in the browser, they all depended on node.

Normally I would write this in rescript, which has the same type system and ML heritage, and which I still love. But my sense is that rescript is floundering and gleam is growing in popularity & capability, so I'm eyeing gleam for an eventual replacement.