by aboodman · 13y ago · 0 comments
JavaScript is not some immutable thing. It needs enhancing, not replacing.
edit: Video link http://www.youtube.com/watch?v=IXIkTrq3Rgg
I looked at the spec briefly (http://wiki.ecmascript.org/doku.php?id=strawman:value_object...), but it doesn't talk about the how.
I understand nan-boxing and similar techniques, but they seem to imply at least some runtime overhead to test the type of the value in some cases. Also, AFAIK, 64 bit integers cannot be represented with nan-boxing, as there are only 51 bits available for the payload.