alongubkin / alongubkin/spider

proper BigNum support

Offen
#96 7 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
proposal
Vorherrschende Sprache
JavaScript
Sterne
1.3k
Forks
46
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

one thing I always hate about doing project euler type projects in js is its terrible support for big integers and big decimals. There are libraries like

https://github.com/justmoon/node-bignum
https://github.com/substack/node-bigint
https://github.com/MikeMcl/big.js/

but obviously not having native support makes them look and feel terrible. I fully understand if you feel this is an issue for a different day and close this, no hard feelings, but if we're thinking about fixing javascript's warts, its behaviour for big integers/decimals is definitely a terrible painpoint no compile-to-js language (I know of) has looked at fixing.

This doesn't mean altering the semantics of basic arithmetic, but perhaps a set of "big" operators could sort this out?

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.