4 ms·
Funny enough JavaScript now has BigInt, which is purely integer: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt#browse
by xscott 5y ago
Funny enough JavaScript now has BigInt, which is purely integer:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt#browser_compatibility https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
- Someone 5y agoIt also has typed arrays (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays https://developer.mozilla.org/en-US/docs/Web/JavaScript/Type...), but you can’t calculate with those values (you write floats into them that get rounded to integers, and values conceptually become floats when you read them) WebAssembly has i32 and i64.