Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Rust is now faster than C

Name: Anonymous 2017-02-21 18:14

http://benchmarksgame.alioth.debian.org/u64q/performance.php?test=knucleotide

How can this be? Since C is as fast as assembly, does this mean Rust does some microcode optimilzation under the hood?

Name: Anonymous 2017-02-22 3:20

>>11
That a pointer dereference preceding a NULL check made it into kernel code indicates a flaw in coding practices, not a flaw in the compiler.

Who said the compiler was faulty? The real problem here is with the kernel coding practices (programmers writing security-critical code obviously aren't using static analyses to detect potential errors); AND with the language itself (C makes undefined behavior trivial to invoke by accident).

Programmers deifying C are an embarrassment. It's a fine language for 1970s systems programming, but in the present day we have different concerns. If you must program in C, use protection.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List