[#59462] [ruby-trunk - Bug #9342][Open] [PATCH] SizedQueue#clear does not notify waiting threads in Ruby 1.9.3 — "jsc (Justin Collins)" <redmine@...>

9 messages 2014/01/02

[#59466] [ruby-trunk - Bug #9343][Open] [PATCH] SizedQueue#max= wakes up waiters properly — "normalperson (Eric Wong)" <normalperson@...>

11 messages 2014/01/02

[#59498] [ruby-trunk - Bug #9352][Open] [BUG] rb_sys_fail_str(connect(2) for [fe80::1%lo0]:3000) - errno == 0 — "kain (Claudio Poli)" <claudio@...>

10 messages 2014/01/03

[#59516] [ruby-trunk - Bug #9356][Open] TCPSocket.new does not seem to handle INTR — "charliesome (Charlie Somerville)" <charliesome@...>

48 messages 2014/01/03

[#59538] [ruby-trunk - Feature #9362][Assigned] Minimize cache misshit to gain optimal speed — "shyouhei (Shyouhei Urabe)" <shyouhei@...>

33 messages 2014/01/03
[#59541] Re: [ruby-trunk - Feature #9362][Assigned] Minimize cache misshit to gain optimal speed — Eric Wong <normalperson@...> 2014/01/04

Hi, I noticed a trivial typo in array.c, and it fails building struct.c

[#59582] Re: [ruby-trunk - Feature #9362][Assigned] Minimize cache misshit to gain optimal speed — SASADA Koichi <ko1@...> 2014/01/06

Intersting challenge.

[#59583] [ruby-trunk - Bug #9367][Open] REXML::XmlDecl doesn't use user specified quotes — "bearmini (Takashi Oguma)" <bear.mini@...>

12 messages 2014/01/06

[#59642] [ruby-trunk - Bug #9384][Open] Segfault in ruby 2.1.0p0 — "cbliard (Christophe Bliard)" <christophe.bliard@...>

11 messages 2014/01/08

[#59791] About unmarshallable DRb objects life-time — Rodrigo Rosenfeld Rosas <rr.rosas@...>

A while ago I created a proof-of-concept that I intended to use in my

16 messages 2014/01/15
[#59794] Re: About unmarshallable DRb objects life-time — Eric Hodel <drbrain@...7.net> 2014/01/15

On 15 Jan 2014, at 11:58, Rodrigo Rosenfeld Rosas <rr.rosas@gmail.com> =

[#59808] Re: About unmarshallable DRb objects life-time — Rodrigo Rosenfeld Rosas <rr.rosas@...> 2014/01/16

Em 15-01-2014 19:42, Eric Hodel escreveu:

[#59810] Re: About unmarshallable DRb objects life-time — Eric Hodel <drbrain@...7.net> 2014/01/16

On 16 Jan 2014, at 02:15, Rodrigo Rosenfeld Rosas <rr.rosas@gmail.com> =

[#59826] Re: About unmarshallable DRb objects life-time — Rodrigo Rosenfeld Rosas <rr.rosas@...> 2014/01/17

Em 16-01-2014 19:43, Eric Hodel escreveu:

[ruby-core:59673] Re: [ruby-trunk - Bug #9170] Math.sqrt returns different types when mathn is included; breaks various gems - this bug can be reproduced in Ruby 1.8 as well

From: Zachary Scott <e@...>
Date: 2014-01-09 22:32:52 UTC
List: ruby-core #59673
I will check the docs and see if I can fix it.

> On Jan 6, 2014, at 12:44 AM, "kranzky (Jason Hutchens)" <JasonHutchens@gma=
il.com> wrote:
>=20
>=20
> Issue #9170 has been updated by kranzky (Jason Hutchens).
>=20
>=20
> mrkn (Kenta Murata) wrote:
>> It's not a bug.
>=20
> I'm a middle-man here, but I have gem maintainers claiming that it is a bu=
g, because the documentation for Math.sqrt() indicates that it returns a Flo=
at, and that it's therefore OK to assume that it can be treated as a Float b=
y the caller. Ref: http://ruby-doc.org/core-2.1.0/Math.html#method-c-sqrt
> ----------------------------------------
> Bug #9170: Math.sqrt returns different types when mathn is included; break=
s various gems - this bug can be reproduced in Ruby 1.8 as well
> https://bugs.ruby-lang.org/issues/9170#change-44105
>=20
> Author: kranzky (Jason Hutchens)
> Status: Feedback
> Priority: Normal
> Assignee:=20
> Category: core
> Target version: next minor
> ruby -v: ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.2.1]
> Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN
>=20
>=20
> Math.sqrt() usually returns a Float or throws an exception. Some gems rely=
 on this behaviour (e.g. by calling nan? on the results of a calculation tha=
t includes a sqrt).
>=20
> After requiring mathn, Math.sqrt() returns an Integer in some cases (when t=
he results of the sqrt would be a whole number).
>=20
> Here is a transcript that demonstrates the problem:
>=20
> $ rvm use ree
> Using /Users/jason/.rvm/gems/ree-1.8.7-2012.02
> $ ruby -v
> ruby 1.8.7 (2012-02-08 MBARI 8/0x6770 on patchlevel 358) [i686-darwin12.1.=
0], MBARI 0x6770, Ruby Enterprise Edition 2012.02
> $ ruby -e "puts Math.sqrt(4).nan?"
> false
> $ ruby -e "require 'mathn'; puts Math.sqrt(4).nan?"
> -e:1: undefined method `nan?' for 2:Fixnum (NoMethodError)
> $ rvm use 1.9.3
> Using /Users/jason/.rvm/gems/ruby-1.9.3-p448
> $ ruby -v
> ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-darwin12.2.0]
> $ ruby -e "puts Math.sqrt(4).nan?"
> false
> $ ruby -e "require 'mathn'; puts Math.sqrt(4).nan?"
> -e:1:in `<main>': undefined method `nan?' for 2:Fixnum (NoMethodError)
> $ rvm use 2.0
> Using /Users/jason/.rvm/gems/ruby-2.0.0-p247
> $ ruby -v
> ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.2.1]
> $ ruby -e "puts Math.sqrt(4).nan?"
> false
> $ ruby -e "require 'mathn'; puts Math.sqrt(4).nan?"
> -e:1:in `<main>': undefined method `nan?' for 2:Fixnum (NoMethodError)
> $ rvm use jruby
> Using /Users/jason/.rvm/gems/jruby-1.7.4
> $ ruby -v
> jruby 1.7.4 (1.9.3p392) 2013-05-16 2390d3b on Java HotSpot(TM) 64-Bit Serv=
er VM 1.6.0_51-b11-457-11M4509 [darwin-x86_64]
> $ ruby -e "puts Math.sqrt(4).nan?"
> false
> $ ruby -e "require 'mathn'; puts Math.sqrt(4).nan?"
> NoMethodError: undefined method `nan?' for 2:Fixnum
>  (root) at -e:1
>=20
> Here is a discussion of how the bug manifests itself: https://github.com/o=
lbrich/ruby-units/pull/48
>=20
> Inclusion of mathn causes issues in RGeo, Alchemist, ActiveShipping and pr=
y-rails
>=20
>=20
> --=20
> http://bugs.ruby-lang.org/

In This Thread