this post was submitted on 11 Mar 2025
162 points (100.0% liked)

Linux

6659 readers
101 users here now

A community for everything relating to the GNU/Linux operating system

Also check out:

Original icon base courtesy of [email protected] and The GIMP

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 12 points 2 weeks ago (1 children)

[memory safety] is a more or less solved research problem

I don't know if I would go that far. There are some interesting alternative approaches to Rust's borrow checker that might turn out to be better. There's definitely more research that can be done.

But we do have at least one solution that works very well.

[–] [email protected] 3 points 2 weeks ago (1 children)

The nice thing is if a much better solution exists then a rust compiler that uses it can be implemented using it. Then you don't have to rewrite all the rust code.

[–] [email protected] 5 points 2 weeks ago (2 children)

No, the alternative solutions definitely wouldn't work with existing Rust code. You need a new language.

[–] [email protected] 5 points 2 weeks ago
[–] [email protected] 1 points 1 week ago (1 children)

If you don't code with undefined behavior compiler updates can apply to legacy code. I've been through enough compiler upgrades with microcontrollers that it's old hat.

[–] [email protected] 1 points 1 week ago

I'm talking about things like Perceus. It's not a compiler update.