[#26972] How to — HackerGene <hackergene@...>
Hi , I'm new to ruby programming language located in China.
[#26981] [Bug #2418] method_missing (assignment) returns args instead of return value — Dave B <redmine@...>
Bug #2418: method_missing (assignment) returns args instead of return value
[#27003] [Bug #2422] splat operator fails on array of 1 element — Raul Parolari <redmine@...>
Bug #2422: splat operator fails on array of 1 element
[#27014] possible bug in Method#source_location — Roger Pack <rogerdpack@...>
It appears that Method#source_location returns different values for
[#27025] [Backport #2431] StringIO#{gets,readlines} with "" (paragraph mode) trims last "\n" — Hiroshi NAKAMURA <redmine@...>
Backport #2431: StringIO#{gets,readlines} with "" (paragraph mode) trims last "\n"
Issue #2431 has been updated by Vladimir Sizikov.
2009/12/7 Vladimir Sizikov <redmine@ruby-lang.org>:
Hi,
Hi Vladimir,
[#27031] [Bug #2433] Ruby gem update --system /gem install [any_gem_name] ERROR — Sergueï Cambour <redmine@...>
Bug #2433: Ruby gem update --system /gem install [any_gem_name] ERROR
[#27036] Ruby causes nearly as much cpu wakeups as firefox — Christoph Kappel <unexist@...>
> =A020.5% (133.5) =A0 =A0 =A0 =A0 =A0 firefox : hrtimer_start_range_ns (hr=
>> =A020.5% (133.5) =A0 =A0 =A0 =A0 =A0 firefox : hrtimer_start_range_ns (h=
Hi,
[#27060] [Bug #2443] {Object,BasicObject}.clone — Shugo Maeda <redmine@...>
Bug #2443: {Object,BasicObject}.clone
[#27074] [Bug #2449] StringIO#ungetc behavior is contrary to its spec — Vladimir Sizikov <redmine@...>
Bug #2449: StringIO#ungetc behavior is contrary to its spec
Issue #2449 has been updated by Yusuke Endoh.
Hi,
[#27086] [Feature #2454] OpenSSL has no maintainer — Yui NARUSE <redmine@...>
Feature #2454: OpenSSL has no maintainer
Issue #2454 has been updated by Yui NARUSE.
[#27103] [Bug #2464] cross-compile Ruby patchlevel 376 fails — Luis Lavena <redmine@...>
Bug #2464: cross-compile Ruby patchlevel 376 fails
[#27120] #to_enum ignores block? — Roger Pack <rogerdpack@...>
Is #to_enum ignoring its block expected?
On Thu, Dec 10, 2009 at 7:55 AM, Roger Pack <rogerdpack@gmail.com> wrote:
> The whole purpose of to_enum is to return an Enumerator instance.
On Thu, Dec 10, 2009 at 9:58 AM, Roger Pack <rogerdpack@gmail.com> wrote:
[#27135] better GC? — Roger Pack <rogerdpack@...>
Could I put in a small plea for a better GC?
Hi,
On Fri, Dec 11, 2009 at 09:07:16AM +0900, Yukihiro Matsumoto wrote:
Excerpts from Paul Brannan's message of Thu Jan 07 21:53:34 +0200 2010:
Eero Saynatkari wrote:
> Rubinius is also compatible with existing extensions*
Excerpts from rogerdpack2's message of Fri Jan 08 18:41:18 +0200 2010:
>> I wonder if its GC could be merged into MRI :)
On Tue, Jan 12, 2010 at 12:45 PM, Evan Phoenix <evan@fallingsnow.net> wrote=
Paul Brannan wrote:
On Fri, Jan 08, 2010 at 07:37:40AM +0900, Kurt Stephens wrote:
On Tue, Jan 12, 2010 at 3:23 AM, Brent Roman <brent@mbari.org> wrote:
> Toshio Endo and Kenjiro Taura adapted the Boehm conservative GC
On Thu, Jan 14, 2010 at 15:06, Roger Pack <rogerdpack2@gmail.com> wrote:
[#27142] Ruby's GC — Gon軋lo Silva <goncalossilva@...>
Hi there,
Hi,
On Fri, Dec 11, 2009 at 9:40 AM, Yukihiro Matsumoto <matz@ruby-lang.org> wr=
[#27151] [Bug #2475] InstructionSequence#to_a fails for duparray — Paul Brannan <redmine@...>
Bug #2475: InstructionSequence#to_a fails for duparray
[#27169] [Feature #2480] request to add GC::Profiler.time method — Roger Pack <redmine@...>
Feature #2480: request to add GC::Profiler.time method
[#27189] [ANN] openssl-nonblock 0.2.1: moving towards compatibility with Ruby 1.9.2 — Tony Arcieri <tony@...>
openssl-nonblock is a gem which enables non-blocking support in Ruby's
[#27198] [PATCH] fix CGI::escape to work with blocks, avoid dollar variables — Gaston Ramos <ramos.gaston@...>
Hi Ruby-Core, I attach a path that solve this problem:
On Thu, Dec 17, 2009 at 12:28 AM, Gaston Ramos <ramos.gaston@gmail.com>wrote:
El Thu, 17 de Dec de 2009, a las 11:20:32AM +0900, NARUSE, Yui dijo:
(2009/12/17 21:16), Gaston Ramos wrote:
[#27199] [Backport #2488] thread usage can result in bad HANDLE — Roger Pack <redmine@...>
Backport #2488: thread usage can result in bad HANDLE
Issue #2488 has been updated by _ wanabe.
[#27205] unable to send signal "EXIT" — Roger Pack <rogerdpack@...>
Is this expected? (all versions of ruby...)
Hello,
[#27223] [Bug #2495] Matrix: Vector#each2 should check its argument — Marc-Andre Lafortune <redmine@...>
Bug #2495: Matrix: Vector#each2 should check its argument
[#27224] [Bug #2496] Delegate: #methods and #public_methods should return delegated methods too — Marc-Andre Lafortune <redmine@...>
Bug #2496: Delegate: #methods and #public_methods should return delegated methods too
Issue #2496 has been updated by Yusuke Endoh.
[#27230] [Bug #2502] strange behavior of anonymous class inside a proc — caleb clausen <redmine@...>
Bug #2502: strange behavior of anonymous class inside a proc
[#27238] Why doesn't Array include Comparable? — Martin DeMello <martindemello@...>
Array already defines <=>, why not include Comparable as well?
On Sat, Dec 19, 2009 at 4:54 PM, Martin DeMello <martindemello@gmail.com>wrote:
[#27242] select! — Roger Pack <rogerdpack@...>
Forwarded from ruby-talk:
Hi,
[#27244] [Bug #2505] Threads behave inconsistently across platforms. — Christian Höltje <redmine@...>
Bug #2505: Threads behave inconsistently across platforms.
[#27256] [Feature #2509] Recursive freezing? — Marc-Andre Lafortune <redmine@...>
Feature #2509: Recursive freezing?
[#27270] rb_eql, rb_equal — Roger Pack <rogerdpack@...>
would it be more efficient to add an extra == in there for these
[#27275] [Bug #2511] irb exits unexpectedly windows — Vlad Why <redmine@...>
Bug #2511: irb exits unexpectedly windows
[#27286] [Bug #2515] Array#select! — Roger Pack <redmine@...>
Bug #2515: Array#select!
Issue #2515 has been updated by Marc-Andre Lafortune.
[#27304] Ruby 1.8: Improved Rational performance by 10% — Kurt Stephens <ks@...>
http://kurtstephens.com/node/105
On Thu, Dec 24, 2009 at 1:56 PM, Kurt Stephens <ks@kurtstephens.com> wrote:
[#27324] [Bug #2530] Future timestamps in 1.8.7-p248 generate recursive compilation process — Luis Lavena <redmine@...>
Bug #2530: Future timestamps in 1.8.7-p248 generate recursive compilation process
[#27360] [Feature #2542] URI lib should be updated to RFC 39886 — Marc-Andre Lafortune <redmine@...>
Feature #2542: URI lib should be updated to RFC 39886
Issue #2542 has been updated by Yui NARUSE.
[ruby-core:27149] Re: Ruby's GC
On Fri, Dec 11, 2009 at 12:26 PM, Evan Phoenix <evan@fallingsnow.net> wrote= : > > On Dec 11, 2009, at 7:08 AM, Yukihiro Matsumoto wrote: > >> Hi, >> >> In message "Re: [ruby-core:27144] Re: Ruby's GC" >> =A0 =A0on Fri, 11 Dec 2009 23:57:24 +0900, Rick DeNatale <rick.denatale@= gmail.com> writes: >> >> |I suspect that the write barrier can be implemented rather efficiently >> |depending on how memory layout is done. You need to be able to >> |efficiently distinguish between mutations to references in old objects >> |(which need to be remembered) and mutations in new objects, which >> |don't. >> | >> |One interesting problem, is what effect a copying GC would have on the >> |API to C extensions, since object addresses would no longer be stable >> |over time. >> >> Non conservative GC would damage almost all C extensions for Ruby. >> I don't think it's acceptable for CRuby. > > A copy collector would also break almost all C extensions, because it's c= ommon for people to store a reference to an object somewhere "secret", and = then store in somewhere normal to keep it alive. Because the current GC doe= sn't move objects, the "secret" reference stays valid as long as the object= lives. > > With a copy collector, all references need to be fixed up, so the "secret= " references would be invalidated. > > For Rubinius, we implemented an indirection layer between the C extension= s and the GC that uses handles. These handles don't move, so C extensions c= an store "secret" references to them and GC can still move things behind th= e scene, so long as the handle is internally updated. Right, and that's what I was hinting at. I don't think that it's an issue of conservative vs. precise GC, the trick of storing a reference to an object with a 'secret' pointer someplace normal deals with objects being freed behind one's back. But there have been implementations for languages like Smalltalk with both a copying GC, and an api for writing extensions in C or C equivalents which provides for the extensions working despite moving objects. Also there's a difference between extensions which are merely wrappers on external function libraries, and those which are new VM primitives. The latter know that they are dealing with objects in the host language, while the former do not, any objects need to be converted to datatypes understood by the code being called so no object pointers cross the API. And when extensions which know about objects deal with them they need to deal with them through macros and functions provided by the implementation. Even with MRI, C code can't simply treat an object reference as a pointer, it needs to use the macros and rb_functions to convert the VALUE type to something which the extension code can deal with. So I suspect that it might be possible to maintain the existing MRI extension interface at the source level in the face of a copying collector, but the extensions would need to be recompiled and would not be binary compatible. But we have that level of incompatibility at least between Ruby 1.8.x and Ruby 1.9.x extensions. So I don't think it should be an impediment to having a copying GC, with it's benefits, in a future Ruby implementation. Even better if the api for primitives could be made (more) implementation independent sort of like an FFI for primitives rather than library wrappers. --=20 Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale