Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What really bothers me about HN and the startup echo chamber at large is the idea that newness makes something inherently better.

It's like an endemic of "not invented here" fever.

A language is not inherently better simply because it is newer. Sometimes the old ways are best. Rust will not magically solve problems like this. Only more disciplined coding and auditing practices can.



You are greatly misrepresenting the comment you're replying to. It is not suggesting that Rust is better because it's newer. It's suggesting that Rust would avoid this vulnerability because Rust is designed to avoid this vulnerability. It is absolutely possible to "magically solve problems like this" at a language level. Buffer overruns are possible because of specific decisions in the design of C. They simply do not exist in, for example, Java programs. There will still be errors that can occur, but this particular bug is 100% an artifact of C.


I too, hate the 'new is better' angle. But...

> Rust will not magically solve problems like this.

I agree that it won't magically solve problems like this, but it _will_ solve problems like this. Rust guarantees protection from data races, buffer overflow, stack overflow or access to uninitialized or deallocated memory. At compile time.


"problems like this" == "ordinary buffer overflow attack"

pretty sure Rust does magically solve those, as do most non-C(++)? languages


C++ has things that are meant to prevent this, but in the real world C++ programs tend to be vulnerable to the same sorts of attacks.


That's because C++ is an approximate superset of C, an so it inherits all of that baggage as well. This is why we need new systems programming languages like Rust, designed for the 21st century with the benefit of hindsight.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: