Hacker Newsnew | past | comments | ask | show | jobs | submit | lawn's commentslogin

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.


Multiple of such tools exist and have done for years. Serde isn’t a Rust-core project, and similarly the Gleam alternatives are not Gleam-core.

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.


In Gleam code generators are most commonly used, similar to in C#, Go, or Elm.

Yes, my point is that it's not a good experience.

You still need electricity when the sun isn't shining and the wind isn't blowing you know?

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.

Gas... How "great" for the environment.

Perfect is the enemy of good enough. We still need to decarbonize construction, agriculture, aviation, maritime shipping etc.

Let’s not stare us blind at perfect in one sector wasting money and opportunity cost which needs to be spent on harder to abate industries.


Seems weird to say that while arguing against nuclear.

On one hand we have this amazing personal achievement.

On the other hand we have sycophants like yourself, spending your time to brown nose the richest man in the world.


What did you get done last week?

Not 5 but 7 I repeat 7 tickets moved to Done.

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?

I wrote 100,000 LOC using Grok, where's my christmas bonus?

I think you might be into something. I'm getting serious "lol" vibes from your comment.

That AI have the potential to be extremely disruptive does not prevent the current speculative boom to be a bubble.

People seem to have forgotten about the dotcom bubble.


The new world order that Trump wants to see:

It is the right of the strong to take from the weak.

Trump sees oil. Trump takes oil.

Simple really.


Not at all.

You can have morality without religion. Religion arguably makes it worse too.


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.


I'd say you're mistaking correlation with causation.

> 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.


It's the same as when they say "the free market".

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.


> while other forms such as anti-black or anti-Latino harassment is not

probably because they don't have their own AIPAC.


> 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.


People didn't use seatbelts before seatbelts were invented.

And when they were mandated, it made a lot of people very angry!

https://www.cbc.ca/player/play/video/1.3649589


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: