News for hackers. Stuff that matters.
Re:Thoughts on replacement languages by zzzcpan on Saturday January 10, 2015 @07:37PM (#8868555)
It's not why C is faster, it's more about being able to use hand crafted SSE2 instructions and existing libraries with such optimizations. Nothing competes with C when performance really matters.
Re:Thoughts on replacement languages by pcwalton on Saturday January 10, 2015 @08:27PM (#8868676)
You can use "hand-crafted" SSE2 instructions and libraries with the same in Rust. Servo heavily relies on Skia, for example…
Re:Thoughts on replacement languages by bjz_ on Saturday January 10, 2015 @09:44PM (#8868824)
There is also a case for making highly optimized C performance easier to attain, without needing to resort to unsafe code. You can do this by providing more invariants to the compiler via a better type system, which gives it more room to optimize. It may never get to the performance of hand-optimized stuff, but for that there is unsafe code blocks.
Re:Thoughts on replacement languages by hetman on Saturday January 10, 2015 @08:40PM (#8868701)
Technically Fortran does compete. For computational applications it is faster than C and hence why it's so popular in supercomputing.
Re:Thoughts on replacement languages by krenoten on Saturday January 10, 2015 @07:49PM (#8868586)
Feel free to use the asm! macro in rust when you need to. FFI support is also quite good.