[#88925] [Ruby trunk Feature#15095] [PATCH] share VM stack between threads and fibers if identical — ko1@...
Issue #15095 has been updated by ko1 (Koichi Sasada).
4 messages
2018/09/09
[#88927] Re: [Ruby trunk Feature#15095] [PATCH] share VM stack between threads and fibers if identical
— Eric Wong <normalperson@...>
2018/09/09
ko1@atdot.net wrote:
[#88926] [Ruby trunk Feature#15095] [PATCH] share VM stack between threads and fibers if identical — ko1@...
Issue #15095 has been updated by ko1 (Koichi Sasada).
3 messages
2018/09/09
[#89218] [Ruby trunk Bug#15130] open-uri hangs on cygwin — duerst@...
Issue #15130 has been updated by duerst (Martin D端rst).
5 messages
2018/09/30
[ruby-core:88795] [Ruby trunk Bug#14926] Different results between Enumerable#sum and #reduce when Float::INFINITY present
From:
nagachika00@...
Date:
2018-09-01 02:31:35 UTC
List:
ruby-core #88795
Issue #14926 has been updated by nagachika (Tomoyuki Chikanaga). Backport changed from 2.3: DONTNEED, 2.4: DONE, 2.5: REQUIRED to 2.3: DONTNEED, 2.4: DONE, 2.5: DONE ruby_2_5 r64603 merged revision(s) 64014. ---------------------------------------- Bug #14926: Different results between Enumerable#sum and #reduce when Float::INFINITY present https://bugs.ruby-lang.org/issues/14926#change-73837 * Author: swistak35 (Rafał Łasocha) * Status: Closed * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux] * Backport: 2.3: DONTNEED, 2.4: DONE, 2.5: DONE ---------------------------------------- When `Float::INFINITY` is present in array, `Enumerable#sum` and `Enumerable#reduce(0, &:+)` are giving different results. ``` puts [Float::INFINITY].sum puts [Float::INFINITY].reduce(0, &:+) ``` results in ``` NaN Infinity ``` And I would expect both of them to be `Infinity` (meaning: `#sum` is working incorrectly). Checked on `ruby 2.5.1p57` and `ruby 2.4.3p205`, both have the same bug. -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>