The Gleam Programming Language
gleam.run
The Gleam Programming Language
1–10 of 189 posts
Re: The Gleam Programming Language
#2Re: The Gleam Programming Language
#3Re: The Gleam Programming Language
#4I really like the idea of gleam but I don't want to hand implement serialization for every type (even with an LSP action) in 2026.
Re: The Gleam Programming Language
#5I really like the idea of gleam but I don't want to hand implement serialization for every type (even with an LSP action) in 2026.
Re: The Gleam Programming Language
#6I really like the idea of gleam but I don't want to hand implement serialization for every type (even with an LSP action) in 2026.
Re: The Gleam Programming Language
#7Re: The Gleam Programming Language
#8Honestly, and I realize that this might get me a bit of flack here and that’s obviously fine, but I find type systems start losing utility with distributed applications. Ultimately everything being sent over the wire is just bits. The wire doesn’t care about monads or integers or characters or strings or functors, just 1’s and 0’s, and ultimately I feel like imposing a type system can often get in the way more than it helps. There’s so much weirdness and uncertainty associated with stuff going over the wire, and pretty types often don’t really capture that.
I haven’t tried Gleam yet, and I will give it a go, and it’s entirely possible it will change my opinion on this, so I am willing to have my mind changed.
Re: The Gleam Programming Language
#9I remember playing with Alpaca a few years ago, and it was fun though I didn’t find the resulting code to significantly less error-prone than when I wrote regular Erlang. It’s inelegant, but I find that Erlang’s quasi-runtime-typing with pattern matching gets you pretty far and it falls into Erlang’s “let it crash” philosophy nicely. Honestly, and I realize that this might get me a bit of flack here and that’s obviou…
So it’s hard to see how types get in the way instead of being the ultimate toolset for shaping distributed communication protocols.
Re: The Gleam Programming Language
#10I remember playing with Alpaca a few years ago, and it was fun though I didn’t find the resulting code to significantly less error-prone than when I wrote regular Erlang. It’s inelegant, but I find that Erlang’s quasi-runtime-typing with pattern matching gets you pretty far and it falls into Erlang’s “let it crash” philosophy nicely. Honestly, and I realize that this might get me a bit of flack here and that’s obviou…
IMO the right approach is just to parse everything into a known type at the point of ingress, and from there you can just deal with your language's native data structures.