News for hackers. Stuff that matters.
Re:Syntax extensions and regular expressions for Rust by innguest on Sunday April 27, 2014 @11:50AM (#7655523)
> Why is C so much faster?

Because processors are made with C in mind, as it's the lingua franca, and so they end up being optimized for it.

Re:Syntax extensions and regular expressions for Rust by pcwalton on Sunday April 27, 2014 @01:37PM (#7655961)
> Because processors are made with C in mind, as it's the lingua franca, and so they end up being optimized for it.

No, Rust exposes the C memory model pretty directly, and it uses the backend of an industrial-strength C++ compiler (clang/LLVM). The difference here is algorithmic.

(Rust does have some codegen bugs that affect performance, however, though I suspect they won't affect this code.)

Re:Syntax extensions and regular expressions for Rust by Ygg2 on Sunday April 27, 2014 @12:00PM (#7655565)
Ok, but why is Python faster than Rust implementation? (And yes, I assume those are C libs behind python).

NOTE: Rust is supposed to have zero cost abstractions. I think this is more to lack of optimization on regexp part, than some fault of language.

Re:Syntax extensions and regular expressions for Rust by dbaupp on Monday April 28, 2014 @04:35AM (#7658849)
The Rust implementation hasn't been extensively microoptimised.