Rewriting a Ruby C Extension in Rust: How a Naive One-Liner Beats C (youtube.com) 5 points by brobinson 10y ago ↗ HN
[–] brobinson 10y ago ↗ For those not interested in watching a long video:The C code: https://github.com/SamSaffron/fast_blank/blob/master/ext/fas...The Rust code which is slightly faster: https://gist.github.com/robinsonstrategy/794164e992bec9ca9b8...
[–] Zarathustra30 10y ago ↗ I am just learning to program, and I chose Rust as my first language. I now realize how spoiled I am.
2 comments
[ 3.7 ms ] story [ 22.6 ms ] threadThe C code: https://github.com/SamSaffron/fast_blank/blob/master/ext/fas...
The Rust code which is slightly faster: https://gist.github.com/robinsonstrategy/794164e992bec9ca9b8...