4 ms·
So, after reading this thread I still didn't really get if that's something that most likely will be fixed over time, or Rust is fundamentally inferior to C++ i
by krick 12y ago
So, after reading this thread I still didn't really get if that's something that most likely will be fixed over time, or Rust is fundamentally inferior to C++ in that sense?
- pcwalton 12y agoI think we can fix it by adding a zip method on slices to avoid the null checks (as we just investigated). But note that the C++ version has no bounds checks, so it's unsafe. You could always write C in Rust in the unsafe sublanguage, so saying it's "fundamentally inferior" is not true in any case.
- pbsd 12y agoFor the sake of reproducibility, transparency and all that, here's the C++ version: http://pastebin.com/5pMka6ZJ http://pastebin.com/5pMka6ZJ