2 ms·
I agree to have big integers in JavaScript. I have read about this before (after asking about 64-bit integers in JavaScript on IRC, actually), and this is very
by zzo38computer 8y ago
I agree to have big integers in JavaScript. I have read about this before (after asking about 64-bit integers in JavaScript on IRC, actually), and this is very good. That was one of the remaining problems in JavaScript, and now it is fixed.
The N-API routines for dealing with bigint are still marked as experimental, but then I can make a proper JavaScript API for SQLite; each SQL type can be represented as a different JavaScript type.
My "reload-form" package (which is pure JavaScript and does not use N-API) can also be corrected to tell the difference between integer nodes and floating nodes.
And it can also be used with other stuff that uses unlimited big integers such as implementing some esolangs (such as Fractran).
Just one thing I do not agree is the requirement that both operands of a bit shift operator need to be the same type; I think it should not be required and the type of the left operand should be used as the type of the result. (Although it isn't too serious if this isn't fixed.)