[#4654] signleton_methods / methods / public_methods - weirdness? — Johan Holmberg <holmberg@...>
[#4666] Getting a hex representation for a Numeric — "Zev Blut" <rubyzbibd@...>
Hello,
[#4670] ruby 1.8.3 preview1 plan — Yukihiro Matsumoto <matz@...>
Hi,
[#4690] test failures for stable-snapshot 09/04/2005 — noreply@...
Bugs item #1762, was opened at 10-04-2005 20:46
Hello.
[#4709] BNF-like grammar specified DIRECTLY in Ruby — Eric Mahurin <eric_mahurin@...>
Hello everybody,
[#4712] Segfault in zlib? — Nathaniel Talbott <ntalbott@...>
I'm using rubyzip (latest gem version) and zlib (1.2.2) to do a bunch
[#4736] Trivial speedup in Array#zip — Mauricio Fern疣dez <batsman.geo@...>
[#4745] Win32: Ruby & APR; build problems for Ruby Subversion SWIG bindings — Erik Huelsmann <ehuels@...>
Having taken upon me the task to provide a Windows build for
On 4/20/05, Erik Huelsmann <ehuels@gmail.com> wrote:
Hi Austin,
Hi,
On 4/24/05, nobu.nokada@softhome.net <nobu.nokada@softhome.net> wrote:
Hi,
> > > Ruby is just using AC_TYPE_UID_T. So, using typedef for them,
Hi,
On 4/26/05, nobu.nokada@softhome.net <nobu.nokada@softhome.net> wrote:
As promised, I attached a patch to eliminate the compile problems
Hi,
Thanks for the quick response!
Hi,
On 5/14/05, nobu.nokada@softhome.net <nobu.nokada@softhome.net> wrote:
[#4751] Illegal regexp causes segfault — Andrew Walrond <andrew@...>
irb(main):058:0> a = /\[([^]]*)\]/
Andrew Walrond, April 22:
In article <200504221210.38231.andrew@walrond.org>,
>>>>> "T" == Tanaka Akira <akr@m17n.org> writes:
[#4774] enhanced $0 modification — Evan Webb <evanwebb@...>
The attached patch allows for ruby to use more of the available stack
Hi,
[#4775] profiler.rb Schroedinbug — C Erler <erlercw@...>
A ruby program with the single instruction "require 'profile'"
>A ruby program with the single instruction "require 'profile'"
[#4807] Re: -Wall — Vincent Isambart <vincent.isambart@...>
> Why does ruby build without -Wall in CFLAGS by default? -Wall can help to
[#4815] Re: -Wall — nobu.nokada@...
Hi,
Re: ruby 1.8.3 preview1 plan
Did you look at the GC problem I wrote about some time ago?
In case the message is gone here it i again:
I tried the following script:
#====================
class Example
end
a=Example.new
ObjectSpace.each_object(Example) { |e| print e,"\n" }
a=nil
GC.enable
GC.start
ObjectSpace.each_object(Example) { |e| print e,"\n" }
#====================
Output:
#<Example:0x2a66e68>
#<Example:0x2a66e68>
The Example object is still active after the GC.start, I expected it to be
gone. :-(
So I tried the WeakRef, and this also did something strange.
I wrote the 'Programming Ruby' book example:
#====================
require "weakref"
ref = "fol de rol"
puts "Initial object is #{ref}"
ref = WeakRef.new(ref)
puts "Weak reference is #{ref}"
ObjectSpace.garbage_collect
begin
puts "But then it is #{ref}"
rescue Exception=>e
puts e
end
#====================
Output:
Initial object is fol de rol
Weak reference is fol de rol
Illegal Reference - probably recycled
And this worked ok.
I then copied the whole and just defined a class in between:
#====================
require "weakref"
ref = "fol de rol"
puts "Initial object is #{ref}"
ref = WeakRef.new(ref)
puts "Weak reference is #{ref}"
ObjectSpace.garbage_collect
begin
puts "But then it is #{ref}"
rescue Exception=>e
puts e
end
#
# doing it for the second time, and created a class definition
# and now it doesn't work
#
class Example
end
#
ref = "fol de rol"
puts "Initial object is #{ref}"
ref = WeakRef.new(ref)
puts "Weak reference is #{ref}"
ObjectSpace.garbage_collect
begin
puts "But then it is #{ref}"
rescue Exception=>e
puts e
end
#====================
Output:
Initial object is fol de rol
Weak reference is fol de rol
Illegal Reference - probably recycled
Initial object is fol de rol
Weak reference is fol de rol
But then it is fol de rol
And this is strange the second 'ref' is not collected. If the class
definition is removed all works well.
I tested this in the mswin32 version. 1.8.2 and in the older version 1.6.8
both with the same results.
The cygwin version 1.8.2 had the same results also.
To be sure I the downloaded 1.9.0 and this also went wrong.
It looks like the Garbage Collector is not working properly. Can anybody
help.
Thanks.
Wim...
Yukihiro Matsumoto <matz@ruby-lang.org>
07-04-2005 07:03
Please respond to
ruby-core@ruby-lang.org
To
ruby-core@ruby-lang.org
cc
Subject
ruby 1.8.3 preview1 plan
Hi,
I am going to release 1.8.3 preview1 on April 12, unless something
would stop me. Core contributors who want to update their libraries
for 1.8.3, please consider updating your code before preview1.
And someone who found bugs for 1.8 CVS, please report here.
matz.