dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.26k stars 1.58k forks source link

Figure out what to do about operations on int values outside the comfortable JS range #638

Closed rakudrama closed 9 years ago

rakudrama commented 12 years ago

Issue #636 was that parsing hex literals resulted in incorrect values. However, the numbers are still represented by JavaScript doubles, leading to various incorrect values. Arithmetic operations are mostly correct up until rounding at 53 bits. Bitwise operations are truncated to 32 bits.

jmesserly commented 12 years ago

Here's a strawman:

* Make ints 32 bits in Frog.

Provide a "long" type implemented in Dart that works for arbitrary length arithmetic.


Removed Type-Defect label. Added Type-Enhancement label.

dgrove commented 12 years ago

Issue #1534 has been merged into this issue.

anders-sandholm commented 12 years ago

Removed Area-Frog label. Added Area-Dart2JS, FromAreaFrog labels.

kasperl commented 12 years ago

Removed FromAreaFrog label. Changed the title to: "Figure out what to do about operations on int values outside the comfortable JS range".

kasperl commented 12 years ago

Added this to the Later milestone.

kasperl commented 12 years ago

Removed this from the Later milestone.

kasperl commented 12 years ago

Added this to the Later milestone.

kasperl commented 12 years ago

Removed Type-Enhancement label. Added Type-Defect label.

kasperl commented 11 years ago

Added TriageForM5 label.

kasperl commented 11 years ago

Removed TriageForM5 label.

DartBot commented 11 years ago

This comment was originally written by ngeoffray@google.com


Added Duplicate label. Marked as being merged into #1533.