News for hackers. Stuff that matters.
Re:Migrating from Go to Rust by bottlepalm on Monday May 25, 2026 @03:40AM (#48264405)
Safe? No compiler is going to catch badly designed code, or intentionally backdoored code. Memory leaks as well. Compilers are the ground floor of validation and the least of your problems with AI generated code.
Re:Migrating from Go to Rust by robocat on Monday May 25, 2026 @04:21AM (#48264621)
A mythical compiler might catch unsafe code
Re:Migrating from Go to Rust by Certhas on Monday May 25, 2026 @09:21AM (#48266527)
Yes? Does that contradict anything I said?
Re:Migrating from Go to Rust by antonvs on Wednesday May 27, 2026 @01:16AM (#48289966)
If the program design follows the principle of making illegal states unrepresentable (credit to Yaron Minsky), the compiler can catch much, much more than most people realize.

The process of designing a program like that itself catches a lot of "badly designed code". And such a design also naturally exposes many kinds of intentional backdoors, because security properties can quite easily be statically checked. For example, IDORs can be made literally impossible in such a design.

In discussions like this, I'm reminded of the William Gibson quote, "the future is already here, it's just unevenly distributed."