Hacker News new | ask | show | jobs
by esprehn 1041 days ago
Not all engines use NaN boxing, for example v8 uses pointer tagging:

https://stackoverflow.com/questions/63550957/why-does-v8-use...

https://news.ycombinator.com/item?id=16985390

1 comments

This describes 32 bit CPU. As opposite to V8, SpiderMonkey, Mozilla’s JS engine, uses 64 bit words and NaN boxing, even on a 32 bit CPU, to represent a generic JS thing.
I'm pretty sure even on 64bit v8 doesn't use NaN boxing. Do you have docs or code that show it does?

Yes other engines use NaN boxing, but not all engines do.