Y
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
ocean_moist
161 days ago
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
link
lawn
160 days ago
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.
link
worthless-trash
161 days ago
I rarely serialise every type in my gleam code, My quick back of the napkin math is less than 5%.
link
brandonpollack2
161 days ago
But 100 percent of projects writing the same stuff
link
worthless-trash
160 days ago
I don't think anyone is serializing exactly the same stuff that i'm doing.
link
virtualwhys
161 days ago
Dart has the same glaring issue (yes, yes, you can use a codegen library but it's not the same).
link
[0] https://hexdocs.pm/glance/glance.html