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

The Rust people did, it then became a discussion about sufficiently smart compilers.

I'd imagine from a compiler engineering standpoint, it't pretty hard to make this performance neutral. It makes all the artichmetic loops into non-leaf nodes in the call graph and so has second order effects in optimization passes.



If your parameters have known ranges you could elide a lot of checks.

You're not going to overflow multiplying an 8 bit number times a 16 bit number, for instance.




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

Search: