General

Profile

bahuvrihi (Simon Chiang)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 2 2

Activity

03/20/2010

01:40 PM Ruby Feature #2065: An ancestors iterator
=begin
Well, what can I say? When you put it that way I'm sure this can all seem quite trivial in the grand scheme. Truth is most bottlenecks, including this one, are not so bad... just wait a second. Ruby will be fine with or withou...
bahuvrihi (Simon Chiang)
12:17 AM Ruby Feature #2065: An ancestors iterator
=begin
So to clarify... How much any piece of code of a bottleneck depends on how frequently the code gets run, and that is application-specific. In my own application, it IS enough of a bottleneck for me to make this request because ...
bahuvrihi (Simon Chiang)

03/19/2010

05:37 AM Ruby Feature #2065: An ancestors iterator
=begin
Ok, I attached a benchmark that is designed to measure the time required for generating the ancestors array. It does so by comparing 'klass.ancestors.each' vs caching 'klass.ancestor' and iterating 'cache.each' (ie in the second ...
bahuvrihi (Simon Chiang)

10/22/2009

09:31 AM Ruby Feature #2065: An ancestors iterator
=begin
Actually I think that gets to the heart of the matter. It's not sufficient to cache the ancestors because I want to iterate the most current class hierarchy. Doing so allows added features to really be method-like in their inhe...
bahuvrihi (Simon Chiang)

09/09/2009

12:38 AM Ruby Feature #2065 (Rejected): An ancestors iterator
=begin
I have implemented DSLs that add features to a class/module that should be inherited like methods. In those cases I end up iterating ancestors to find the first time a feature has been added (the same way I imagine methods are ...
bahuvrihi (Simon Chiang)

04/01/2009

03:12 PM Ruby Feature #1193: Justified Error Messages
=begin
Sorry for a long delay in response. Ryan gave me no reason and directed me at his unit_diff utility from ZenTest. The original ticket is here:

http://rubyforge.org/tracker/?func=detail&atid=4097&aid=23842&group_id=1040

...
bahuvrihi (Simon Chiang)

02/23/2009

01:45 AM Ruby Feature #1193 (Closed): Justified Error Messages
=begin
One nice thing about Test::Unit output is that failures are justified making string comparisons easier.

In Test::Unit

<"minitest/unit is a small and fast replacement for ruby's huge and slow test/unit."> expected but w...
bahuvrihi (Simon Chiang)

Also available in: Atom