New: JSBI, a pure-JavaScript BigInt implementation
JSBI makes it possible to use spec-compliant BigInt functionality *today*, in all browsers, without sacrificing compatibility.
https://github.com/GoogleChromeLabs/jsbi …
We’d have to convert them to the BigInt representation whenever crossing the safe integer range, which would add complexity and performance overhead.
-
-
Gotcha so it's perf trade-off vs. syntactic ease of use. Makes sense.
-
I thought you were talking about the polyfill implementation (i.e. “why not store the values as just numbers as long as that’s possible?”) earlier, but you’re really asking about native BigInt, right? There’s syntax that makes it easier: 1n + 2n // 3n https://developers.google.com/web/updates/2018/05/bigint …
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.