Hacker News new | past | comments | ask | show | jobs | submit login

It isn't correct in JS. Arrays aren't aren't guaranteed to be dense, and even if they are, the nature of JS means that they're usually holding references. (Compared to say, a contiguous block of some multiple of sizeof(<some struct>) bytes.)



Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: