General

Profile

labocho (Keisuke NISHI)

  • Login: labocho
  • Registered on: 03/01/2016
  • Last sign in: 09/24/2019

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 2 2

Activity

12/08/2016

02:22 AM Ruby Feature #12871: Using the algorithm like math.fsum of Python for Array#sum
Thank you.
Julia's algorithm looks good. But in some case, Python's algorithm is still better than that.
~~~
# julia 0.5.0
sum_kbn([1.0e100, 1.0, 1.0e-100, -1.0, -1.0e100]) # => 0.0
~~~
~~~ python
# python 3.5.2
from math i...
labocho (Keisuke NISHI)

10/27/2016

04:46 AM Ruby Feature #12871 (Closed): Using the algorithm like math.fsum of Python for Array#sum
Array#sum uses the Kahan's algorithm for Float values now. But it returns inaccurate value in some case like below.
~~~ ruby
# ruby 2.4.0-preview2
[10000000000.0, 0.0000000001, -10000000000.0].sum #=> 0.0 (expected 0.0000000001)
~~...
labocho (Keisuke NISHI)

03/01/2016

06:45 AM Ruby Bug #12130 (Closed): WEBrick::HTTPProxy closes connection when the socket is not writable temporally
`WEBrick::HTTPProxy#do_CONNECT` closes connection when `Errno::EAGAIN` or `Errno::WOULDBLOCK` occurred.
These exceptions will raise when the socket is not writable temporally.
I expect that the proxy will wait until the socket will be ...
labocho (Keisuke NISHI)

Also available in: Atom