Message from JavaScript discussions

May 2017

— I'll go with 65535


"The Number type has exactly 18437736874454810627 (that is, 264−253+3) values, representing the doubleprecision 64-bit format IEEE 754 values as specified in the IEEE Standard for Binary Floating-Point Arithmetic"

— A Number is not an integer in JS but can be represented as one

— I know that, but the highest integer value of a character

— Ah

— JS uses UCS-2 or UTF-16 depending on engine

— 65,536 seems to be the UTF-16 limit

— So you're spot on

— Goddamnit, it became slower

— Around 650 ms for everything

— Weird

— I'm going to bed