Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(510)

Issue 2208473006: Introduce getter p on double in the VM to control fractional precision. (Closed)

Created:
4 years, 4 months ago by regis
Modified:
4 years, 3 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Introduce getter p on double in the VM to control fractional precision. Add test. R=asiva@google.com, fschneider@google.com Committed: https://github.com/dart-lang/sdk/commit/fbbedf4f184f3815afc057e41a3404858d005e10

Patch Set 1 #

Total comments: 6

Patch Set 2 : address comments #

Total comments: 2

Patch Set 3 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -0 lines) Patch
M runtime/lib/double.dart View 1 chunk +7 lines, -0 lines 0 comments Download
A tests/standalone/fixed_precision_double_test.dart View 1 2 1 chunk +71 lines, -0 lines 0 comments Download
M tests/standalone/standalone.status View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
regis
4 years, 4 months ago (2016-08-03 22:30:42 UTC) #2
Florian Schneider
Can you add a test case where e.g. a, b are at the precision limit, ...
4 years, 4 months ago (2016-08-03 23:35:58 UTC) #3
regis
Thanks! PTAL Since this feature will be used with near-integer values (e.g. pixels), I did ...
4 years, 4 months ago (2016-08-04 18:22:31 UTC) #4
siva
LGTM with one comment. https://codereview.chromium.org/2208473006/diff/20001/tests/standalone/fixed_precision_double_test.dart File tests/standalone/fixed_precision_double_test.dart (right): https://codereview.chromium.org/2208473006/diff/20001/tests/standalone/fixed_precision_double_test.dart#newcode37 tests/standalone/fixed_precision_double_test.dart:37: Expect.notEquals(1/3, (1/3).p); What is the ...
4 years, 4 months ago (2016-08-04 20:20:13 UTC) #5
Florian Schneider
Lgtm.
4 years, 4 months ago (2016-08-04 20:32:50 UTC) #6
regis
I have added tests showing the use of assert(d == d.p). Thank you both! https://codereview.chromium.org/2208473006/diff/20001/tests/standalone/fixed_precision_double_test.dart ...
4 years, 4 months ago (2016-08-04 22:16:12 UTC) #7
regis
Committed patchset #3 (id:40001) manually as fbbedf4f184f3815afc057e41a3404858d005e10 (presubmit successful).
4 years, 4 months ago (2016-08-04 22:18:07 UTC) #9
floitsch
When you change dart core libraries or the language please talk to our team first ...
4 years, 3 months ago (2016-08-25 12:57:39 UTC) #11
kevmoo
4 years, 3 months ago (2016-08-25 17:56:20 UTC) #12
Message was sent while issue was closed.
On 2016/08/25 12:57:39, floitsch wrote:
> When you change dart core libraries or the language please talk to our team
> first and CC us on all the changes.
> 
> When you introduce experiments to the language or libraries please guard them
> behind a flag.
> 
> What is the deprecation strategy for this feature?
> How do you intend to remove it again without affecting users that accidentally
> discovered the member?

What he said...

Powered by Google App Engine
This is Rietveld 408576698