Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ruby-dev summary 26662-26760

0 views
Skip to first unread message

Minero Aoki

unread,
Aug 15, 2005, 2:37:28 AM8/15/05
to
Hi all,

This is a summary of ruby-dev ML in these days.

[ruby-dev:26628] show information of --enable-pthreads

Hidetoshi NAGAI proposed a patch which reports that the working ruby
was compiled with --enable-pthreads option or not. Matz suggested
adding a new option, which prints all configure options.

[ruby-dev:26711] --with-static-linked-ext and require

IWATSUKI Hiroyuki reported a static linking related problem. With
--with-static-linked-ext, ruby cannot load xxx.rb when xxx.so is
static-linked:

$ ruby-1.9.0 -e '
p $".include?("openssl.so")
p require("openssl") # should require openssl.rb...
'
true
false # but not loaded.

This bug is fixed by Nobuyoshi NAKADA.

[ruby-dev:26723] reducing #coerce calls

Tadashi Saito posted a patch which reduces Fixnum#coerce calls in
numerical calculation. This patch doubles calculation speed on
average. Matz accepted this patch.

[ruby-dev:26743] zsuper with optional arguments

Hiroshi NAKAMURA reported a difference of "super" between Ruby 1.8
and 1.9:

~ % cat t
class Base
def initialize(a = 'base')
p a
end
end

class Derived < Base
def initialize(a = 'derived')
super
end
end

Derived.new(0)

~ % ruby-1.8.2 t
"derived"
~ % ruby-1.9.0 t
"base"

Matz selected 1.8 behavior.

Note that this is known issue; refer ruby-dev summary 23971-24053
([ruby-talk:108967]).


-- Minero Aoki
ruby-dev summary index: http://i.loveruby.net/en/ruby-dev-summary.html


Berger, Daniel

unread,
Aug 15, 2005, 9:02:54 AM8/15/05
to
> -----Original Message-----
> From: Minero Aoki [mailto:aam...@loveruby.net]
> Sent: Monday, August 15, 2005 12:37 AM
> To: ruby-talk ML
> Subject: ruby-dev summary 26662-26760
>
>
> Hi all,
>
> This is a summary of ruby-dev ML in these days.
>
> [ruby-dev:26628] show information of --enable-pthreads
>
> Hidetoshi NAGAI proposed a patch which reports that the working ruby
> was compiled with --enable-pthreads option or not. Matz suggested
> adding a new option, which prints all configure options.

Will this be part of the Config hash in rbconfig? If not, why not?

Dan


Ben Giddings

unread,
Aug 15, 2005, 1:49:23 PM8/15/05
to
On Monday 15 August 2005 02:37, Minero Aoki wrote:
> [ruby-dev:26723] reducing #coerce calls
>
> Tadashi Saito posted a patch which reduces Fixnum#coerce calls in
> numerical calculation. This patch doubles calculation speed on
> average. Matz accepted this patch.

Nice! It sounds like this is the best kind of performance optimization you
can get: rethinking a problem and reducing unnecessary overhead. I wonder
if this will eventually reduce the complaints from people who benchmark
Ruby against Foo and determine Foo is better because it's slightly faster.

Congratulations to Saito-san.

Ben


Hidetoshi NAGAI

unread,
Aug 20, 2005, 8:19:40 PM8/20/05
to
From: "Berger, Daniel" <Daniel...@qwest.com>
Subject: Re: ruby-dev summary 26662-26760
Date: Mon, 15 Aug 2005 22:02:54 +0900
Message-ID: <39AA6550E5AA554AB14...@QTOMAE2K3M01.AD.QINTRA.COM>

> Will this be part of the Config hash in rbconfig? If not, why not?

The problem is that we cannot check consistency between the running
binary and the required rbconfig.rb.
--
Hidetoshi NAGAI (na...@ai.kyutech.ac.jp)


0 new messages