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

Issue 10389150: - Add a math library. Currently it mostly matches the Math class in dart:core. (Closed)

Created:
8 years, 7 months ago by Ivan Posva
Modified:
7 years, 7 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

- Add a math library. Currently it mostly matches the Math class in dart:core. - Add a useable Random number generator. Committed: https://code.google.com/p/dart/source/detail?r=7860

Patch Set 1 #

Total comments: 17

Patch Set 2 : #

Total comments: 19

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+384 lines, -4 lines) Patch
A lib/math/base.dart View 1 chunk +97 lines, -0 lines 0 comments Download
A lib/math/math.dart View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
A lib/math/math_sources.gypi View 1 chunk +10 lines, -0 lines 0 comments Download
A lib/math/random.dart View 1 2 1 chunk +109 lines, -0 lines 0 comments Download
M runtime/vm/bootstrap.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M runtime/vm/bootstrap.cc View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M runtime/vm/bootstrap_nocorelib.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M runtime/vm/object.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 chunks +25 lines, -2 lines 0 comments Download
M runtime/vm/object_store.h View 1 2 3 2 chunks +8 lines, -1 line 0 comments Download
M runtime/vm/object_store.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/vm.gypi View 1 2 3 4 chunks +41 lines, -0 lines 0 comments Download
M runtime/vm/vm_sources.gypi View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M tests/lib/lib.status View 1 2 3 1 chunk +3 lines, -0 lines 2 comments Download
A tests/lib/math/low_test.dart View 1 1 chunk +31 lines, -0 lines 0 comments Download
A tests/lib/math/pi_test.dart View 1 chunk +30 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Ivan Posva
Some of this is purely mechanical (adding the dart:math library), other parts are replicating the ...
8 years, 7 months ago (2012-05-15 17:46:27 UTC) #1
jjb
Hi Ivane, I have a bunch of comments for you. Josh https://chromiumcodereview.appspot.com/10389150/diff/1/lib/math/random.dart File lib/math/random.dart (right): ...
8 years, 7 months ago (2012-05-15 20:19:17 UTC) #2
Ivan Posva
https://chromiumcodereview.appspot.com/10389150/diff/1/lib/math/random.dart File lib/math/random.dart (right): https://chromiumcodereview.appspot.com/10389150/diff/1/lib/math/random.dart#newcode12 lib/math/random.dart:12: * semi-open range [0, max). On 2012/05/15 20:19:17, jjb ...
8 years, 7 months ago (2012-05-16 00:13:19 UTC) #3
floitsch
DBC. (I'm pretty sure you would have found that one alone though...) https://chromiumcodereview.appspot.com/10389150/diff/8001/lib/math/random.dart File lib/math/random.dart ...
8 years, 7 months ago (2012-05-16 20:40:22 UTC) #4
jjb
https://chromiumcodereview.appspot.com/10389150/diff/8001/lib/math/random.dart File lib/math/random.dart (right): https://chromiumcodereview.appspot.com/10389150/diff/8001/lib/math/random.dart#newcode21 lib/math/random.dart:21: // TODO(iposva): Do we really need this? No; when ...
8 years, 7 months ago (2012-05-16 21:50:10 UTC) #5
Ivan Posva
https://chromiumcodereview.appspot.com/10389150/diff/8001/lib/math/random.dart File lib/math/random.dart (right): https://chromiumcodereview.appspot.com/10389150/diff/8001/lib/math/random.dart#newcode21 lib/math/random.dart:21: // TODO(iposva): Do we really need this? On 2012/05/16 ...
8 years, 7 months ago (2012-05-16 22:54:33 UTC) #6
jjb
lgtm
8 years, 7 months ago (2012-05-17 00:59:10 UTC) #7
Ben Laurie (Google)
Is there a reason not to make the PRNG cryptographically strong?
8 years, 7 months ago (2012-05-21 10:48:09 UTC) #8
Ivan Posva
On 2012/05/21 10:48:09, Ben Laurie (Google) wrote: > Is there a reason not to make ...
8 years, 7 months ago (2012-05-21 15:12:17 UTC) #9
kasperl
Sorry for being so slow, but this LGTM with a few trivial comments: https://chromiumcodereview.appspot.com/10389150/diff/8001/lib/math/math.dart File ...
8 years, 7 months ago (2012-05-23 12:40:46 UTC) #10
ahe
https://chromiumcodereview.appspot.com/10389150/diff/17001/tests/lib/lib.status File tests/lib/lib.status (right): https://chromiumcodereview.appspot.com/10389150/diff/17001/tests/lib/lib.status#newcode9 tests/lib/lib.status:9: math/*: Skip Should these tests run in dart2js now?
7 years, 8 months ago (2013-04-18 10:12:43 UTC) #11
floitsch
7 years, 7 months ago (2013-05-04 22:54:04 UTC) #12
Message was sent while issue was closed.
Found this in my inbox...
A little bit late, but this still applies.

https://chromiumcodereview.appspot.com/10389150/diff/17001/tests/lib/lib.status
File tests/lib/lib.status (right):

https://chromiumcodereview.appspot.com/10389150/diff/17001/tests/lib/lib.stat...
tests/lib/lib.status:9: math/*: Skip
On 2013/04/18 10:12:43, ahe wrote:
> Should these tests run in dart2js now?
Hmm. probably they should.
Currently 5 of the 8 tests pass.

Powered by Google App Engine
This is Rietveld 408576698