Hacker News new | ask | show | jobs
by abritishguy 3741 days ago
So many memory corruption issues, I'd like to think in 5/10 years time this would be solved and everything written in a safe language but maybe I'm being optimistic.
2 comments

Thats the same thing people said 10 years ago.
The people saying that 10 years ago were quite obviously being unrealistic. Holding such an opinion back then was essentially predicting that C++ would be replaced by Java, Python, etc.

Now, we've got languages like Rust that offer improved safety mechanisms without really sacrificing expressiveness or runtime performance the way "managed" languages do, so there's a real alternative for software that needs the highest performance or best battery life.

If by safe you mean memory managed by default with opting out (unsafe keyword, or something similar), then I would bet so.

If you mean safe like there's no way a programer can screw this (100% memory managed like JavaScript, Python, Ruby) than I'd bet not.

The former, something like Rust.