4 ms·
This has been circulated on the Rust-dev mailinglist: https://mail.mozilla.org/pipermail/rust-dev/2013-September/005735.html https://mail.mozilla.org/pipermail
by buster 13y ago
This has been circulated on the Rust-dev mailinglist:
https://mail.mozilla.org/pipermail/rust-dev/2013-September/005735.html https://mail.mozilla.org/pipermail/rust-dev/2013-September/0...
Rust did quite well (given that it's not even production ready i'd say it's impressive): https://mail.mozilla.org/pipermail/rust-dev/2013-September/005750.html https://mail.mozilla.org/pipermail/rust-dev/2013-September/0...
The only thing they noted was that the Go version "cheated" by precomptuing some values which someone removed to make the algorithms the same.. maybe kid0m4n can comment on this :)
- dbaupp 13y agoThe Rust code that ML thread is discussing: http://github.com/huonw/card-trace http://github.com/huonw/card-trace
- kid0m4n 13y agoHey, possible to optimize the code and send over a PR? I would love to rerun the benchmarks with a optimized Rust version and my rust is totally rusty (pun intended :P)
- kid0m4n 13y agoI was looking at the Rust-dev mailing list before going to sleep :) I would argue that it is not cheating "anymore" as both the Go and C++ version are now equal. In fact, I wanna compare how Rust performs in this exact same test with all optimizations applied. Studying those optimizations will be fun itself. I have also explained why optimizations are perfectly fine (IMHO) here: https://github.com/kid0m4n/rays#why-optimize-the-base-algorithm https://github.com/kid0m4n/rays#why-optimize-the-base-algori...
- buster 13y agoOk, but with different algorithms you are not testing the languages/compilers anymore but the algorithms ;) I understand that now when the C and Go version we can't compare with the rust version anymore uless someone applies the same changes.. anyway, t was a very interesting read on the rust ML and frankly i was surprised to see rust fare so well
- kid0m4n 13y agoTrue... But, I guess algorithmic advances will happen much less frequently compared to other micro optimizations. And it will keep things interesting across the board.
- devx 13y agoI wonder, do the Rust guys have any intention of supporting AMD's HSA or Mantle API in any way? I know Mozilla wants to make Rust take full advantage of multi-core systems, and AMD is doing that, too, so I wonder if there can be some synergy there, or if that's outside of their goals for Rust.