This is also what really annoyed me when I tried out Gleam.
I'm waiting for something similar to serde in Rust, where you simply tag your type and it'll generate type-safe serialization and deserialization for you.
Gleam has some feature to generate the code for you via the LSP, but it's just not good enough IMHO.
Rust has macros that make serde very convenient, which Gleam doesn't have.
Could you point to a solution that provides serde level of convenience?
Edit: The difference with generating code (like with Gleam) and having macros generate the code from a few tags is quite big. Small tweaks are immediately obvious in serde in Rust, but they drown in the noise in the complete serialization code like with the Gleam tools.
> Rust has macros that make serde very convenient, which Gleam doesn't have.
To be fair, Rust's proc macros are only locally optimal:
While they're great to use, they're only okay to program.
Your proc-macro needs to live in another crate, and writing proc macros is difficult.
Compare this to dependently typed languages og Zig's comptime: It should be easier to make derive(Serialize, Deserialize) as compile-time features inside the host language.
When Gleam doesn't have Rust's derivation, it leaves for a future where this is solved even better.
Gas-fired power plants are planned for load balancing, and these are already being built in such a way that they can be converted to hydrogen operation at a later date.
Comparison I made before raises a good question. Should we deliberately force ourselves to move faster towards the future? Or let things unfold at their own pace like Europeans do i.e. leisurely?
At the very least , it takes generations to build up shared traditions and values across a society. If you want an atheistic version of that, you would need to start now and it’s going to take a long time to build.
> If you want an atheistic version of that, you would need to start now and it’s going to take a long time to build.
Why do you think we would have to start from zero? Even in highly religious countries not all traditions and values are tied to religion, and even those that are can be disconnected from their religious roots.
I would just say the success rate hasn't been very high so far.
The current evidence suggests that as people have become less religious, society has become more fragmented and individualistic, with less shared values and less sense of community or family.
Shared religious community has been replaced by quality time with screens, not meeting in person in some alternative atheistic community.
> You have reached this page because you are not authorized to visit GenAI.mil from outside of DoW networks. If you believe this is an error, please contact your command's IT service desk.
> who advocate for, aid, or support designated foreign terrorists and other threats to national security; or who perpetrate unlawful anti-Semitic harassment or violence
The regime will simple classify pro-LBQT, anti-MAGA, and anti-Trump comments as "threats to national security" or as supporting terrorism.
Also funny how anti-Semitic harassment is emphasized, while other forms such as anti-black or anti-Latino harassment is not.
> Also funny how anti-Semitic harassment is emphasized, while other forms such as anti-black or anti-Latino harassment is not.
That's because they're using "perpetuating antisemitism" as code for "being mean to Israel". It's not really about fighting discrimination, that's just a cover framing which sells better than mandatory allegence to a foreign state.
The free market is the one with the winners they've chosen. And the winner is Israel and the losers are all the other minorities.
I'm not antisemitic, I'm anti-killing-in-general; I'm anti-collateral-damage; I'm anti-kidnapping-of-anyone-especially-children. I could go on.
There's a lot of bad on both sides. Only acknowledging the bad on one side is a denial of reality, and denying reality is never a sustainable position.
> The regime will simple classify pro-LBQT, anti-MAGA, and anti-Trump comments as "threats to national security" or as supporting terrorism.
Did they not already?
Antifa, which doesn't exist as a formal organization, literally means "anti-fascism" and is now a terrorist organization. Of course these are the same people who want to arrest people for treason when they said "You do not have to follow illegal orders"
It's just mental gymnastics of Olympic-level proportions.
I'm waiting for something similar to serde in Rust, where you simply tag your type and it'll generate type-safe serialization and deserialization for you.
Gleam has some feature to generate the code for you via the LSP, but it's just not good enough IMHO.
reply