Re:BigInt is finally here in ES2020
by Caligatio on Monday March 01, 2021 @11:58AM
(#26304877)
I maintain a JavaScript hashing library and the language's handling of large integers is terrible. SHA-256/SHA-384/SHA-512 as well as SHA-3 all use 64-bit primitives so I need to do some hacks to emulate a 64-bit integer. Bit shifting large numbers gets even more nebulous...
[ Parent
| on HN ]
Re:BigInt is finally here in ES2020
by MaxBarraclough on Monday March 01, 2021 @12:16PM
(#26305164)
Do you know if moving to BigInt would cause performance issues?