Re:“We have decided not to integrate the Dart VM into Chrome”
by bhouston on Thursday March 26, 2015 @06:29AM
(#9268689)
Very useful for spreadsheets and other financial calculations as well I believe, as well as some forms of custom Crypto.
[ Parent
| on HN ]
Re:“We have decided not to integrate the Dart VM into Chrome”
by BrendanEich on Thursday March 26, 2015 @08:03AM
(#9268934)
Definitely (and I'm happy to write a friendlier comment reply, believe me!).
Bignums are good, in Dart as in other languages. On the agenda for "Harmony-era" ECMAScript, going back to 2009:
http://wiki.ecmascript.org/doku.php?id=strawman:bignums
More recent work generalizes value types into an extension mechanism for JS, so you can have built-in and user-defined numeric types with operators and literals.
Re:“We have decided not to integrate the Dart VM into Chrome”
by coldtea on Friday March 27, 2015 @12:33AM
(#9274776)
Aren't decimals better suited for financial applications? That's what I've used in the past in Java land (BigDecimal).
Or are bignums and decimals the same thing? (not sure).
Re:“We have decided not to integrate the Dart VM into Chrome”
by dragonwriter on Friday March 27, 2015 @12:40AM
(#9274791)
Bignums are closely related to arbitrary precision decimals (aka BigDecimals; "decimal" without more is somewhat ambiguous since sometimes those are fixed size or decimal floating point.)
Most financial applications deal with currencies each of which had a smallest indivisible unit in the application, which makes bignums most appropriate. But bigdecimals (or even arbitrary precision rationals) may be preferred in certain financial applications.