Closed Bug 757256 Opened 13 years ago Closed 7 years ago

Provide Big Integer math support for JS

Categories

(Core :: JavaScript Engine, enhancement)

x86
Windows 7
enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1366287

People

(Reporter: jrconlin, Unassigned)

References

()

Details

(Whiteboard: [js:t])

It would be swell to provide Big Integer support in javascript. I'm doing some native client crypto work, but I can see where very large integer support would be awfully useful for things like graphic work, or scientific modelling. If nothing else, having local support for large integers would make Firefox a rather compelling choice. (There. Filed. Itch scratched. Feel free to "WONTFIX" this once you're finished laughing or cringing.)
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Not a dup -- bignum != int64. /be
Status: RESOLVED → REOPENED
Depends on: 749786
Resolution: DUPLICATE → ---
Ah, sorry, I had assumed that you were doing the full object value strawman in that bug.
The strawman is expansive (or perhaps just vague :-P): "We add new types such as uint64, int64, and bignum (and probably smaller int types as well)." But bug 749786 is specific: "prototype int64/uint64 value objects, with operators and literal syntax". /be
Status: REOPENED → NEW
Whiteboard: [js:t]
Show me BigInteger and a way to implement value objects in JavaScript, and I'll show you BigDecimal implemented as a .js file. :)
I'll even throw in "digits on demand" for non-terminating decimals using yield.
There is a BigInteger type in WebCrypto (http://www.w3.org/TR/WebCryptoAPI/#big-integer) though I suppose a "proper" BigInteger implementation should go into / is in ES7. See Bug 865789 for the WebCrypto implementation.
Assignee: general → nobody
Status: NEW → RESOLVED
Closed: 13 years ago7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.