[#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:27267] Re: [Bug #2422] splat operator fails on array of 1 element
2009/12/21 katz bo <redmine@ruby-lang.org>
> Issue #2422 has been updated by katz bo.
>
>
> Dave B wrote:
> >Producing an empty array from a splatted empty array seems unproductive.
> Agreed.
>
> Tanaka Akira wrote:
> > 2009/12/21 katz bo <redmine@ruby-lang.org>:
> >> I personally think *[1, 2, 3] should be always unpacked first.
> >
> > Your way cannot interpret a = *[].
> >
> > a = *[]
> > a =
> >
> > It is not a valid Ruby statement.
>
> Why not think of this as a special case?
> There's always something special about zeros and nils in my shallow
> opinion. :P
>
> In fact, a = *[] should _exactly_ be a = IMHO. And strictly speaking, a =
> *[] should not be a valid syntax at all.
> But, this is Ruby!
>
> What does Ruby do with a = *[] ? Let me illustrate an IMO proper way:
> Ruby looks at *[] and goes, "Fine, let me unpack it."
> Ruby unpacks *[].
> Then Ruby goes, "Nothing? But I can't _carry_ <nothing>! No.. not in an
> assignment! Wait.. Let's do it!"
> Ruby marks it as nil.
>
> One of the reasons why I think this special case should be handled this
> way, is the way Ruby handles parallel assignments:
> a, b = [1] # => [1]
> p a # => 1
> p b # => nil
> This is not the case, for example, in python. (It spits "ValueError: need
> more than 1 value to unpack" when you do a, b = [1]).
> Since Ruby auto-pads the out-of-range elements as nil, we have a good
> reason to make Ruby automatically handle a = *[] in this way.
>
> I also have a vague observation that the splatted array is actually dealt
> differently by the internal Ruby in some cases. Assignment is such a case.
>
> # COMMAND # OUTPUT # RETURN # NOTES
> p # # => nil
> p *[] # # => nil # Fits very well in my "unpack first" theory
> p nil # nil # => nil
> a = *[]; p a # [] # => [] # ruby 1.9; should both be nil IMO
> a =* []; p a # [] # => [] # ruby 1.9; should both be nil IMO; the
> space between * and [ is allowed!
>
> Additionally, I find `return' fails my expectations in a similar way
> assignment does:
>
> def foo; return *[]; end; foo # => [] # ruby 1.9; I have doubt: nil
> or []?
> def bar; return *[1]; end; bar # => [1] # ruby 1.9; I was expecting 1
> def baz; return *[],*[1]; end; baz # => [1]
> def ban; return *[1],*[2]; end; ban # => [1, 2]
> def boo; return *[1,2]; end; boo # => [1, 2]
>
> We know that return packs multiple parameters into an array. This, combined
> with my "unpack first" theory, makes me think the first two results are not
> correct. But I don't know. Can't test it with ruby 1.8 since I don't have it
> installed.
>
> Can somebody post the result to the code above for ruby 1.8?
>
>
Here it is:
COMMAND # 1.9 vs 1.8
p # => nil
p *[] # => nil
p nil # => nil
a = *[]; p a # => [] vs nil
a =* []; p a # => [] vs nil
These 2 last look very weird.
---------
def foo; return *[]; end; foo # => [] vs nil
def bar; return *[1]; end; bar # => [1] vs 1
def baz; return *[],*[1]; end; baz # => [1] vs SyntaxError: compile error
(
(irb):4: syntax error, unexpected tSTAR, expecting tAMPER
def baz; return *[],*[1]; end; baz
^
(irb):4: syntax error, unexpected ';', expecting tCOLON2 or '[' or '.'
def baz; return *[],*[1]; end; baz
^
)
def ban; return *[1],*[2]; end; ban # => [1, 2] vs SyntaxError: compile
error
(
(irb):4: syntax error, unexpected tSTAR, expecting tAMPER
def ban; return *[1],*[2]; end; ban # => [1, 2]
^
(irb):4: syntax error, unexpected ';', expecting tCOLON2 or '[' or '.'
def ban; return *[1],*[2]; end; ban # => [1, 2]
^
)
def boo; return *[1,2]; end; boo # => [1, 2] vs [1, 2]
So here we clearly see how 1.9 is more 'safe' ...