General

Profile

dunric (David Unric)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 8 8

Activity

07/28/2015

03:13 PM Ruby Bug #11396: Bad performance in ruby >= 2.2 for Hash with many symbol keys
I can report patch is functional and seems to be working also on current ruby_2_2 branch [ruby 2.2.3p147 (2015-07-04 revision 51143)] .
What about pushing commit also to this branch ? More testing needed ?
The speed-up is drastic, te...
dunric (David Unric)

01/09/2015

12:57 AM Ruby Bug #10708: In a function call, double splat of an empty hash still calls the function with an argument
If I am not mistaken, even latest Ruby 2.2 selects keyword arguments as the last method's argument and of Hash type.
Let's imagine an example where both simple and keyword optional arguments are used:
~~~ruby
def call_multiargs(me...
dunric (David Unric)

01/08/2015

08:21 PM Ruby Bug #10708: In a function call, double splat of an empty hash still calls the function with an argument
By my subjective opinion I don't find this a bug but a feature.
> Consider this:
> ...
Here you define a method without a (keyword) argument placeholder so it does not expect a Hash argument, which is effectively used to pass keyword...
dunric (David Unric)

06/12/2014

07:33 PM Ruby Bug #9938: ObjectSpace::allocation_class_path does not object's class
Wow, that was fast !
I've been stuck at `rb_class_path_cached` from `variable.c line #281` failing to look up a class_path. Glad it would be fixed in 2.2 .
Good job.
Take care.
dunric (David Unric)
05:08 PM Ruby Bug #9938: ObjectSpace::allocation_class_path does not object's class
I'm sorry about code formatting. Bellow is a fixed version:
~~~ruby
require 'objspace'
class A
def foo
ObjectSpace::trace_object_allocations do
obj = Object.new
p ObjectSpace::allocation_class_path(obj) # "A"...
dunric (David Unric)
05:05 PM Ruby Bug #9938 (Rejected): ObjectSpace::allocation_class_path does not object's class
Possible bug in `ObjectSpace::allocation_class_path` returning `nil` instead of expected class name:
~~~ruby
require 'objspace'
class A
def foo
ObjectSpace::trace_object_allocations do
obj = Object.new
p Obje...
dunric (David Unric)

08/25/2013

08:29 AM Ruby Bug #8818 (Closed): BigDecimal#power
=begin
Optional argument `prec' to BigDecimal#power does not alter result precision:
b=BigDecimal.new("1.034482758620689655172413793103448275862068965517241379310344827586206896551724"
=> #<BigDecimal:807a50,'0.1034482758 62068965...
dunric (David Unric)

05/15/2013

12:27 AM Ruby Bug #8405 (Closed): CSV module - improper regexp for escaping special characters
=begin
There seems to be bug in csv.rb module. If you would like to use some special characters like (({|})) as a quote_char (passed as a parameter to CSV methods like read), program terminates with (({CSV::MalformedCSVError: Missing or...
dunric (David Unric)

04/19/2013

09:12 PM Ruby Bug #8297: extend & inherited class variable issue
=begin
By the current documentation, Object#extend method has to (only) add instance methods of a module given as a parameter.
In the following example, the class ((*C*)) is extended with module ((*M*)).
By ((*class_variables*)) metho...
dunric (David Unric)
09:02 PM Ruby Bug #8297 (Closed): extend & inherited class variable issue
=begin
By the current documentation, (({Object#extend})) method has to (only) add instance methods of a module given as a parameter.
In the following example, the class ((|C|)) is extended with module ((|M|)).
By (({class_variables}))...
dunric (David Unric)

Also available in: Atom