General

Profile

Eregon (Benoit Daloze)

  • Login: Eregon
  • Registered on: 07/30/2009
  • Last sign in: 07/10/2026

Issues

open closed Total
Assigned issues 2 67 69
Reported issues 33 200 233

Projects

Project Roles Registered on
Ruby Committer 08/02/2012

Activity

Today

12:14 AM Ruby Feature #21795: Methods for retrieving ASTs
I asked Codex to analyze how stable are `node_id` across Prism versions and the answer is it's not stable:
https://gist.github.com/eregon/469e40f447f6edac813a389e7f3f4832
One interesting fact is that `node_id` tracks the internal nod...
Eregon (Benoit Daloze)

07/24/2026

11:35 PM Ruby Feature #21795: Methods for retrieving ASTs
From our discussion with @mame and @matz at RubyKaigi in Hakodate, I recall Matz said if we add `#ast`/`#syntax_tree` and that returns a `Prism::Node`, then `prism` should define that method.
And given we already have `Prism.find`, that...
Eregon (Benoit Daloze)
10:19 PM Ruby Feature #22212 (Open): Add Thread::Backtrace::Location#source_range
## Motivation
The main motivation is to be able to implement `Prism.find(Thread::Backtrace::Location)` precisely and cleanly on any Ruby implementation,
in a way which does not depend on implementation details like `node_id`.
For th...
Eregon (Benoit Daloze)
01:25 PM Ruby Bug #22197: Backtraces show methods which do not exist
PR is ready: https://github.com/ruby/ruby/pull/17963
Would appreciate some reviews :)
---
sophiathedev (Nguyen Thang) wrote in #note-2:
> This is my first time contributing to Ruby core. I've submitted a PR to fix this issue here...
Eregon (Benoit Daloze)

07/23/2026

09:11 PM Ruby Feature #21826: Deprecating RubyVM::AbstractSyntaxTree
Documentation-only PR for this: https://github.com/ruby/ruby/pull/18042 Eregon (Benoit Daloze)
08:58 PM Ruby Feature #21795: Methods for retrieving ASTs
mame (Yusuke Endoh) wrote in #note-27:
> That said, it is also an unshakable fact that perfect behavior is hard to guarantee with a different version of prism.
Yes, as I have shown above it is incorrect in some cases and as more time...
Eregon (Benoit Daloze)

07/18/2026

09:26 PM Ruby Bug #22200: ObjectSpace._id2ref can return a different object than the id's owner on Ruby 4.0 (stale id2ref_tbl entry for objects with generic fields)
nobu (Nobuyoshi Nakada) wrote in #note-1:
> `ObjectSpace._id2ref` does not guarantee the reference to the object, so it can happen of course.
There is clear regression here in Ruby 4.0, before `ObjectSpace._id2ref` was safe and would...
Eregon (Benoit Daloze)

07/16/2026

12:31 PM Ruby Feature #15408: Deprecate ObjectSpace._id2ref
Update: `ObjectSpace._id2ref` has been removed on master / for Ruby 4.1! Eregon (Benoit Daloze)

07/15/2026

04:02 PM Ruby Bug #22197: Backtraces show methods which do not exist
In CRuby implementation terms we'd get the original method module with something like:
```c
const rb_callable_method_entry_t *me = cme;
// (1) unwrap an explicit alias entry, if present
while (me->def->type == VM_METHOD_TYPE_ALIAS) {
m...
Eregon (Benoit Daloze)
03:58 PM Ruby Bug #22197 (Open): Backtraces show methods which do not exist
```ruby
class Parent
def original
puts caller_locations(0), nil
end
end
class Child < Parent
alias_method :alias, :original
end
Child.new.alias
module Original
def original
puts caller_locations(0)
en...
Eregon (Benoit Daloze)

Also available in: Atom