Somehow referencing a variable that didn't exist caused a crash. Happened once, I haven't been able to replicate. ``` dberger:~/Programming/Ruby >irb irb(main):001:0> a = %w[one two three] => ["one", "two", "three"] irb(main):002:...djberg96 (Daniel Berger)
On my Mac (Big Sur 11.5.2) using Ruby 3.0.2, I can duplicate the segfault with just the first two lines: ``` ENV = {} spawn({}, "true") ``` However, this does NOT segfault: ``` ENV.replace({}) spawn({}, "true") ```djberg96 (Daniel Berger)
I ran some generic Array method benchmarks: https://github.com/djberg96/berger_spec/blob/ruby23/bench/core/bench_array.rb (comment out nitems first) https://github.com/djberg96/berger_spec/blob/ruby23/bench/core/Array/bench_insert....djberg96 (Daniel Berger)
Add some basic specs for the package attr_reader. https://github.com/rubygems/rubygems/commit/68af2a0ee3djberg96 (Daniel Berger)
For a while now, including Ruby 2.5, calling File.expand_path on an absolute UNC path seems to be strangely slow. I've put together some benchmarks here: ``` require 'benchmark' MAX = 200000 Benchmark.bm(30) do |x| x.report(...djberg96 (Daniel Berger)
This was brought up in the past a lot: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/96321 http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/186881 There's also this: http://stackoverflow.com/questions/31...djberg96 (Daniel Berger)
Wrapping regular expressions feels very clumsy to me. I still prefer the approach I put forward in https://bugs.ruby-lang.org/issues/11588djberg96 (Daniel Berger)