Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I 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.



For the sake of reproducibility, transparency and all that, here's the C++ version: http://pastebin.com/5pMka6ZJ




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: