by sai_c · 5y ago · 0 comments
I'm still not convinced the new languages (Rust & Zig) will change the overall situation.
Why? Simple example in Rust:
"LOL! I need to get stuff done."
unsafe {
Really nasty hacks here to circumvent any obstacles.
}
Example in Zig: "LOL! I need to get stuff done. Tests? What tests???"
zig build-exe example.zig -O ReleaseFast
Trying to solve those security bugs with the help of the language is of course the low hanging fruit. But systems languages will always need an escape hatch for certain problems to be solved.
And those mechanisms WILL be abused in the name of "get it done already".So we really need other means to erase those bug classes. Which ones I don't know.
I'm not sure I follow, it seems to me like it's actually a freaking high-hanging fruit. The amount of engineering and design that goes into creating a safe, fast, low-level programming language (i.e. Rust in this case) is enormous and it requires huge amounts of upfront investment.
The only reason the industry has largely resorted to unsafe languages is because there's many other lower-hanging fruits, e.g. fuzzing, rigorous unit testing, static analysis tools. These help immensely but at the end of the day only take you so far.
Will they do things in that way? Heck, let’s just ask: are they doing things in those ways?
crickets
Just meaningless rhetoric (“being done fast and/or cheaply”) and unfounded hypotheticals.