General

Profile

wycats (Yehuda Katz)

  • Login: wycats
  • Email: [email protected]
  • Registered on: 07/18/2009
  • Last sign in: 08/20/2023

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 12 12

Activity

10/26/2015

12:25 PM Ruby Feature #11537: Introduce "Safe navigation operator"
Yukihiro Matsumoto wrote:
> I like the idea. My remaining concern is ".?" is too similar to "?." which is chosen by other languages.
> ...
I agree with this concern. I also agree with the idea of trying to make it more like a tradition...
wycats (Yehuda Katz)

08/21/2015

03:28 PM Ruby Feature #11473: Immutable String literal in Ruby 3
I would like to suggest a phased transition across several releases in Ruby 2.x (the specific version numbers and flag names are just examples):
1. In Ruby 2.3, it is possible to turn on warnings when mutating a String literal (--warn...
wycats (Yehuda Katz)

11/24/2014

08:11 PM Ruby Bug #10540 (Closed): Yielded fibers do not execute ensure blocks
When a thread has paused fibers, if an exception occurs anywhere in the thread, `ensure` blocks in the paused fibers do not execute.
The effect of this is that block-scoped resources (like File.open, Mutex#synchronize, ActiveRecord tr...
wycats (Yehuda Katz)

11/05/2013

07:51 AM Ruby Bug #9080 (Closed): ENV[key] produces three objects
This code:
ENV["HOME"]
allocates three T_STRING according to ObjectSpace.count_objects. Unless I'm missing something, it should only need to allocate one string.
wycats (Yehuda Katz)
07:49 AM Ruby Bug #9079 (Closed): Interpolated Symbol creates unnecessary intermediate String on the heap
This case:
x = "world"
y = :"hello#{world}!"
allocates one T_STRING according to ObjectSpace.count_objects. Since all of the concatenation happens as part of the symbol generation, it shouldn't be necessary to create a Ruby st...
wycats (Yehuda Katz)

01/07/2013

07:29 AM Ruby Bug #7664 (Rejected): Keyword arguments with `**` make code targeting 1.9 / 2.0 difficult
You could imagine writing code that calls into a user-supplied hook:
log("App booted", level: :info)
It is possible for both Ruby 1.9 and Ruby 2.0 users to write such a hook:
# Ruby 1.9
def log(string, options={})
le...
wycats (Yehuda Katz)
07:11 AM Ruby Bug #7663 (Rejected): Unable to invoke a method with `**kwargs` if the receiver doesn't define keyword arguments
This works:
def hello
puts "hello"
end
hello(*[])
This does not:
def hello
puts "hello"
end
hello(**{})
I may be misunderstanding the idea behind the keyword arguments, but I would expect them to...
wycats (Yehuda Katz)
07:06 AM Ruby Bug #7662 (Closed): Unable to define a method with bare `**`
This works:
def foo(*)
end
This does not:
def foo(**)
end
This does not:
def foo(*, **)
end
I use bare `*` often in combination with bare `super` to extend a superclass without being brittle to its exact ...
wycats (Yehuda Katz)

10/16/2012

10:29 PM Ruby Bug #7158: require is slow in its bookkeeping; can make Rails startup 2.2x faster
Yehuda Katz
(ph) 718.877.1325


On Tue, Oct 16, 2012 at 12:21 AM, gregprice (Greg Price) <[email protected]>wrote:

>
> Issue #7158 has been updated by gregprice (Greg Price).
>
>
> trans (Thomas Sawyer) wrote:
> > I b...
wycats (Yehuda Katz)
10:29 PM Ruby Bug #7172: [[Ruby 1.9:]] fix rbconfig for --enable-load-relative (v2)
Thanks mpapis for moving the ball forward on this. I rely on
--enable-load-relative for Tokaido, and getting/keeping it working reliably
will make me very happy.

Yehuda Katz
(ph) 718.877.1325


On Tue, Oct 16, 2012 at 9...
wycats (Yehuda Katz)

Also available in: Atom