-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Introduce Math.sumPrecise
usage in the code-base
#19710
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
/botio test |
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/8d7586d70b89c2f/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/a19eea9c31b9dae/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/a19eea9c31b9dae/output.txt Total script time: 30.27 mins
|
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/8d7586d70b89c2f/output.txt Total script time: 60.02 mins |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me, with two questions. Thanks!
aabaed0
to
04192ef
Compare
This is a new JavaScript feature that makes it easy to compute the sum of list of values; see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sumPrecise This allows us to remove most cases of `Array.prototype.reduce`, which helps improve readability since that (in my opinion) often isn't the most intuitive code.
04192ef
to
e73224d
Compare
From: Bot.io (Linux m4)ReceivedCommand cmd_preview from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/edf9d36a1987158/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/edf9d36a1987158/output.txt Total script time: 0.86 mins Published |
This is a new JavaScript feature that makes it easy to compute the sum of list of values; see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sumPrecise
This allows us to remove most cases of
Array.prototype.reduce
, which helps improve readability since that (in my opinion) often isn't the most intuitive code.