4 ms·
Rewriting a Ruby C Extension in Rust: How a Naive One-Liner Beats C
- brobinson 11y agoFor those not interested in watching a long video: The C code: https://github.com/SamSaffron/fast_blank/blob/master/ext/fast_blank/fast_blank.c https://github.com/SamSaffron/fast_blank/blob/master/ext/fas... The Rust code which is slightly faster: https://gist.github.com/robinsonstrategy/794164e992bec9ca9b86 https://gist.github.com/robinsonstrategy/794164e992bec9ca9b8...
- Zarathustra30 11y agoI am just learning to program, and I chose Rust as my first language. I now realize how spoiled I am.