General

Profile

Eregon (Benoit Daloze)

  • Login: Eregon
  • Registered on: 07/30/2009
  • Last sign in: 12/02/2025

Issues

open closed Total
Assigned issues 2 61 63
Reported issues 24 192 216

Projects

Project Roles Registered on
Ruby Committer 08/02/2012

Activity

Today

12:58 AM Ruby Revision d9b03c93 (git): [ruby/prism] Fix assertions in location_test.rb
* assert_raise's 2nd argument is the failure message,
shown when the expected exception is not raised.
It's not the expected message.
See https://github.com/test-unit/test-unit/issues/347
https://github.com/ruby/prism/commit/e3df9...
Eregon (Benoit Daloze)

12/18/2025

09:48 AM Ruby Bug #21324: Namespace loads RubyGems in root Namespace but it should not
I have tried for curiosity with `ruby 4.0.0preview3` and it is still unfixed:
```
$ RUBY_BOX=1 ruby -ve 'ns = Ruby::Box.new; p ns::Gem.equal?(Gem)'
ruby 4.0.0preview3 (2025-12-18 master cfa3e7cf75) +PRISM [x86_64-linux]
ruby: warning...
Eregon (Benoit Daloze)

12/17/2025

01:43 PM Ruby Feature #21788: Promote Thread::Monitor to a core class
+1
I think `MonitorMixin` and `MonitorMixin::ConditionVariable` are small enough that it would be good to have them in core too.
BTW `wait_while`/`wait_until` are good patterns and maybe something `Thread::ConditionVariable` should have...
Eregon (Benoit Daloze)
01:24 PM Ruby Bug #21783: {Method,UnboundMethod,Proc}#source_location returns columns in bytes and not in characters
mame (Yusuke Endoh) wrote in #note-22:
> `source_location` does not uniquely identify a node.
> ...
True but that's not a problem for `Prism.node_for(Method | UnboundMethod | Proc)` because it returns `DefNode | LambdaNode | CallNode |...
Eregon (Benoit Daloze)
12:39 PM Ruby Bug #21702: `UNIXSocket` on Windows: suprising results in `#recvfrom` and `#remote_address`
@nobu The `char place_holder[2048]` is something in Ruby not Windows though.
Why does CRuby not stop at the first `\0`? This is path, so it's defined as `\0`-terminated, no?
Eregon (Benoit Daloze)

12/16/2025

11:35 PM Ruby Bug #21780: Change the default size of Enumerator.produce back to infinity
knu (Akinori MUSHA) wrote in #note-14:
> I'm leaning toward doing these:
> ...
+1 I think this is clearly better.
> - Reverting the default size of Enumerator.produce from nil to infinity
I think that change on its own is not wor...
Eregon (Benoit Daloze)
11:16 PM Ruby Bug #21783: {Method,UnboundMethod,Proc}#source_location returns columns in bytes and not in characters
Indeed, `power_assert` is broken with 2 blocks on the same line:
```ruby
require 'test/unit'
class FooTest < Test::Unit::TestCase
def test_foo
assert { 3.times.to_a.include?(2) }; assert { 3.times.to_a.include?(3) }
end
end
```
...
Eregon (Benoit Daloze)
11:05 PM Ruby Bug #21783: {Method,UnboundMethod,Proc}#source_location returns columns in bytes and not in characters
mame (Yusuke Endoh) wrote in #note-17:
> Huh? `Proc` already has its `node_id` (via its ISeq), so `Prism.node_for` is implementable without `source_location`.
> ...
No, `node_id` is CRuby-specific and this code to extract it is a hack.
`...
Eregon (Benoit Daloze)
08:00 PM Ruby Revision cc048f75 (git): Revert "ZJIT: Do not call rb_gc_writebarrier() with an immediate value in gen_write_barrier()"
* This reverts commit 623559faa3dd0927b4034a752226a30ae8821604.
* There is an issue with the jump in LIR, see https://github.com/ruby/ruby/pull/15542.
Eregon (Benoit Daloze)
08:00 PM Ruby Revision 5e27581c (git): ZJIT: Use rb_zjit_writebarrier_check_immediate() instead of rb_gc_writebarrier() in gen_write_barrier()
* To avoid calling rb_gc_writebarrier() with an immediate value in gen_write_barrier(),
and avoid the LIR jump issue.
Eregon (Benoit Daloze)

Also available in: Atom