News for hackers. Stuff that matters.
Re:Why can't we remember our lives as babies or toddlers? by MikeTheGreat on Monday February 17, 2025 @07:53PM (#43084856)
This being HN it was only a matter of time before someone found a way to shift the conversation to Rust.

Well played, sir, well played! :)

Re:Why can't we remember our lives as babies or toddlers? by akagusu on Monday February 17, 2025 @08:00PM (#43084906)
I think it's time to rewrite the brain in Rust, making use of its memory safety features to prevent memory leaks
Re:Why can't we remember our lives as babies or toddlers? by steveklabnik on Monday February 17, 2025 @09:04PM (#43085325)
Rust does not prevent memory leaks.
Re:Why can't we remember our lives as babies or toddlers? by akagusu on Tuesday February 18, 2025 @10:37AM (#43090737)
No? Really? So what is the point? Why are people so crazy about Rust?
Re:Why can't we remember our lives as babies or toddlers? by steveklabnik on Tuesday February 18, 2025 @02:48PM (#43094152)
Yes.

> So what is the point?

What Rust helps with is memory safety, which is stuff like dangling pointers and use-after-free. Memory leaks are not a safety issue, they're an efficiency issue.

> Why are people so crazy about Rust?

The whole memory safety thing isn't actually the reason so many people love Rust. In the Rust 2024 community survey, 82% of users agreed that "Rust allows us to build relatively correct and bug free software." Memory safety is part of that, but there's a lot more to it.

So, for example, while Rust does not guarantee the lack of memory leaks, it does make them relatively hard to produce by accident in the first place. This is due to the intersection of a few different parts of Rust's overall design.

Re:Why can't we remember our lives as babies or toddlers? by didgetmaster on Tuesday February 18, 2025 @12:56AM (#43086492)
I have heard that rust can cause tetanus, which is not good for the brain.
Re:Why can't we remember our lives as babies or toddlers? by taejo on Tuesday February 18, 2025 @04:04AM (#43087574)
Rust itself cannot cause tetanus but it can include unsafe blocks which can activate tetanus spores by FFI.