3 ms·
Some examples from 1 minute with Algolia: https://news.ycombinator.com/item?id=37479651 https://news.ycombinator.com/item?id=37479651 “All decent C compilers
by nneonneo 2y ago
Some examples from 1 minute with Algolia:
https://news.ycombinator.com/item?id=37479651 https://news.ycombinator.com/item?id=37479651
“All decent C compilers have compilation options so that at run-time any undefined actions, including integer overflow and out-of-bounds accesses, will be trapped.”
“Despite the hype, by default Rust is not safer than C compiled with the right options, because the default for Rust releases is also to omit many run-time checks.”
https://news.ycombinator.com/item?id=25922430 https://news.ycombinator.com/item?id=25922430
Upthread someone asks for a “-safe” flag which makes C a safe language. The reply is “It's called AddressSanitizer. You enable it with the compiler flag -fsanitize=address.” Several replies ensue pointing out how wrong this is.