[#59445] [ruby-trunk - Bug #9335][Open] dynamic rescue regression in Ruby 2.1 — "fdr (Daniel Farina)" <daniel@...>
[#59462] [ruby-trunk - Bug #9342][Open] [PATCH] SizedQueue#clear does not notify waiting threads in Ruby 1.9.3 — "jsc (Justin Collins)" <redmine@...>
[#59466] [ruby-trunk - Bug #9343][Open] [PATCH] SizedQueue#max= wakes up waiters properly — "normalperson (Eric Wong)" <normalperson@...>
Issue #9343 has been updated by Eric Wong.
[#59498] [ruby-trunk - Bug #9352][Open] [BUG] rb_sys_fail_str(connect(2) for [fe80::1%lo0]:3000) - errno == 0 — "kain (Claudio Poli)" <claudio@...>
[#59516] [ruby-trunk - Bug #9356][Open] TCPSocket.new does not seem to handle INTR — "charliesome (Charlie Somerville)" <charliesome@...>
Issue #9356 has been updated by Shugo Maeda.
[#59517] [ruby-trunk - Bug #9357][Open] TracePoint's c_return traces return from call to 'trace' — "andhapp (Anuj Dutta)" <anuj@...>
[#59538] [ruby-trunk - Feature #9362][Assigned] Minimize cache misshit to gain optimal speed — "shyouhei (Shyouhei Urabe)" <shyouhei@...>
Intersting challenge.
On 01/06/2014 04:52 PM, SASADA Koichi wrote:
On 01/06/2014 06:11 PM, Urabe Shyouhei wrote:
(2014/01/06 23:10), Urabe Shyouhei wrote:
On 01/07/2014 07:36 AM, SASADA Koichi wrote:
Hi, I noticed a trivial typo in array.c, and it fails building struct.c
Eric Wong <normalperson@yhbt.net> wrote:
Btw, I just pushed a few trivial fixes up (a few more failures below):
OK, last update of the night :o I think everything is good on 32-bit...
Eric Wong <normalperson@yhbt.net> wrote:
Btw, I started working on cachelined-time branch on git://80x24.org/ruby
Eric Wong <normalperson@yhbt.net> wrote:
On 01/06/2014 12:02 PM, Eric Wong wrote:
Urabe Shyouhei <shyouhei@ruby-lang.org> wrote:
[#59564] [ruby-trunk - Bug #9365][Open] Sporadic TypeError (wrong argument type Thread (expected VM/thread)) from IO#close (via Net:HTTP) — "ggiesemann (Geoffrey Giesemann)" <geoffwa@...>
Issue #9365 has been updated by Geoffrey Giesemann.
[#59728] Ruby 2.1.0 in Production: known bugs and patches — Aman Gupta <ruby@...1.net>
Last week, we upgraded the github.com rails app to ruby 2.1.0 in production.
Hello Aman,
[#59770] bug report did not propagate to ruby-core — Mean Login <meanlogin@...>
https://bugs.ruby-lang.org/issues/9416
[#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
On 15 Jan 2014, at 11:58, Rodrigo Rosenfeld Rosas <rr.rosas@gmail.com> wrote:
Em 15-01-2014 19:42, Eric Hodel escreveu:
On 16 Jan 2014, at 02:15, Rodrigo Rosenfeld Rosas <rr.rosas@gmail.com> wrote:
Em 16-01-2014 19:43, Eric Hodel escreveu:
On 17 Jan 2014, at 04:22, Rodrigo Rosenfeld Rosas <rr.rosas@gmail.com> wrote:
Em 17-01-2014 19:53, Eric Hodel escreveu:
On 18 Jan 2014, at 15:12, Rodrigo Rosenfeld Rosas <rr.rosas@gmail.com> wrote:
Em 20-01-2014 21:51, Eric Hodel escreveu:
On 21 Jan 2014, at 02:01, Rodrigo Rosenfeld Rosas <rr.rosas@gmail.com> wrote:
Em 21-01-2014 19:36, Eric Hodel escreveu:
[#59807] [ruby-trunk - misc #9421] [Open] [PATCH] doc/contributing.rdoc: allow/encourage other git hosts — normalperson@...
Issue #9421 has been reported by Eric Wong.
[#59882] [ruby-trunk - Feature #9428] [Rejected] Inline argument expressions and re-assignment — matz@...
Issue #9428 has been updated by Yukihiro Matsumoto.
On 2014/01/20 11:32, matz@ruby-lang.org wrote:
[#59909] [ruby-trunk - Feature #9425] [PATCH] st: use power-of-two sizes to avoid slow modulo ops — shyouhei@...
Issue #9425 has been updated by Shyouhei Urabe.
shyouhei@ruby-lang.org wrote:
[#60229] [ruby-trunk - Feature #9427] [Feedback] [PATCH] io.c: remove socket check for sendfile — akr@...
Issue #9427 has been updated by Akira Tanaka.
[#60377] Re: [ruby-cvs:51920] nobu:r44775 (trunk): socket.c: suppress warnings — Eric Wong <normalperson@...>
nobu@ruby-lang.org wrote:
[ruby-core:59883] Re: [ruby-trunk - Feature #9428] Inline argument expressions and re-assignment
On 20 January 2014 10:41, <tom@tomwardrop.com> wrote:
> Issue #9428 has been updated by Tom Wardrop.
>
>
> 1. I know you said you're not a fan of allowing expression when assigning
> default values to optional parameters, but the point about aesthetics
> applies equally to them also.
>
That's partly why I'm not a fan. If I could think of a valid, useful
alternative I would strongly suggest it. I know it wouldn't be adopted
(backwards compatibility, if nothing else) but I'd propose it anyway. The
best I can come up with is another special method, along the lines of
method_given?, perhaps:
def foo bar, baz=? # no idea what syntax to propose here
baz = 42 unless argument_given? :baz
end
It's not great, obviously, but it removes arbitrary code from the 'def'
line.
> 1. The rule is relatively simple. The first identifier (lvar/method)
> encountered is automatically assigned the value of the argument passed to
> the method or proc. That's the rule, the first identifier (valid variable
> name) is assigned the argument value. If you want to refer to `self.id`,
> you must use `self.id` to disambiguate as you would have to in many other
> scenario's in Ruby. In the example you highlighted `def foo( arg.to_i )`,
> the identifier `arg` is encountered and automatically assigned the argument
> value before the expression continues execution.
>
"First encountered" in regular left-to-right parsing order?
def foo( a[b] )
#=>
def foo a
a = a[b]
end
?
> 1. The same problem exists for expressions used as default values for
> optional arguments. Debugging is the same for each. If it's not clear
> where the error occurred, one could always temporarily break the argument
> definitions over multiple lines while debugging. I don't think debugging
> would be any worse than debugging a long method chain like `Hash[var.select
> { |v| #bleh }.map { |v| # blah }]`. I therefore don't think debugability
> can be used against this proposal.
>
I agree that existing long/complex lines are hard to debug. But why add
the opportunity for more such lines? Especially in a place that is
traditionally free from such concerns? With my background as a C
programmer I instinctively see the 'def' line as free from execution; it's
a definition, something that informs the interpreter and the human reader
about the nature of the program/data/etc. I would be surprised if I
started seeing runtime exceptions raised from these traditionally
compile-time-only lines.
Again, I know it's already possible to achieve these errors using optional
args, but I concede that as a necessary evil in the absence of an
alternative. And, since we're stuck with them, I prefer a culture of
promoting the least amount of executable code possible in that line; thus
some of my opposition to this proposal.
> 1. Technically, for optional arguments, you can have an expression for
> when an argument is given, and an expression for when an argument is
> optional. It remains consistent in this respect.
>
> `def foo(id.to_i = config[:default_id])`
This introduces some amount of confusion. Which of the following is
equivalent?
id = id.to_i // id = config[:default_id]
or:
id = id.to_i // id = config[:default_id].to_i
Either way, this is very confusing when, anywhere else in a Ruby script, it
would mean:
id.to_i=( config[:default_id] )
--
Matthew Kerwin
http://matthew.kerwin.net.au/