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

What's amazing is that in some engines, if the JIT can determine that you are within the bounds of the array, it can disable those checks for the duration of the loop.

So something like for (x = 0; x < arr.length; x++) {...} can run at pretty much the same speed as C code.



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

Search: