Hacker News new | ask | show | jobs
by brandonpollack2 161 days ago
I 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.
4 comments

Biggest issue with this language. But... fairly trivial to implement codegen with gleam/glance[0]. No good libraries do this well right now (e.g. support for discriminated unions).

[0] https://hexdocs.pm/glance/glance.html

Indeed. Gleam is a sort-of mix between Elixir and Rust, yet you don't have to explicitly implement serialization for either of them.

It's definitely something they should figure out.

I rarely serialise every type in my gleam code, My quick back of the napkin math is less than 5%.
But 100 percent of projects writing the same stuff
I don't think anyone is serializing exactly the same stuff that i'm doing.
Dart has the same glaring issue (yes, yes, you can use a codegen library but it's not the same).