General

Profile

Eregon (Benoit Daloze)

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

Issues

open closed Total
Assigned issues 2 66 68
Reported issues 31 198 229

Projects

Project Roles Registered on
Ruby Committer 08/02/2012

Activity

04/29/2026

08:43 PM Ruby Feature #21998: Add {Method,UnboundMethod,Proc}#source_range
For
```ruby
l = -> x, y {
x + y
}
l.call(1)
```
ErrorHighlight shows:
```
test.rb:1:in 'block in <main>': wrong number of arguments (given 1, expected 2) (ArgumentError)
caller: test.rb:5
| l.call(1)
^^^^...
Eregon (Benoit Daloze)
08:35 PM Ruby Feature #21998: Add {Method,UnboundMethod,Proc}#source_range
I was curious what's the reported location for `ArgumentError`s caused by lambda parameters and how ErrorHighlight highlights them.
For
```ruby
l = lambda { |x, y|
x + y
}
l.call(1)
```
With `parse.y`, the node (`RubyVM::...
Eregon (Benoit Daloze)
08:02 AM Ruby Revision d3ef85a1 (git): [ruby/prism] Fix array-bounds error with GCC 9
* In file included from /usr/include/string.h:535,
from include/prism/internal/arena.h:12,
from src/prism.c:6:
In function 'memset',
inlined from 'lex_mode_push_regexp' at src/prism.c:290:5:
.../...
Eregon (Benoit Daloze)

04/27/2026

10:54 PM Ruby Feature #21795: Methods for retrieving ASTs
kddnewton (Kevin Newton) wrote in #note-21:
> If, regardless, you would like to keep pursuing it, you need to produce working code for those two examples.
Done:
https://github.com/eregon/error_highlight/pull/1
https://github.com/er...
Eregon (Benoit Daloze)
07:05 PM Ruby Feature #21795: Methods for retrieving ASTs
kddnewton (Kevin Newton) wrote in #note-23:
> Unless you're once again suggesting we only rely on line/column, which as already mentioned multiple times and rejected multiple times, won't work.
Do you have a concrete example why it w...
Eregon (Benoit Daloze)
09:50 PM Ruby Feature #21953: Allow accessing unshareable objects within a Ractor-local Ruby Box
tikkss (Tsutomu Katsube) wrote in #note-1:
> You might argue, "Why not run it in a multi-process?" However,
> ...
Did you measure the difference in memory usage?
I'd expect it to be small because each Ruby::Box has pretty much a cop...
Eregon (Benoit Daloze)
06:47 PM Ruby Feature #21998: Add {Method,UnboundMethod,Proc}#source_range
headius (Charles Nutter) wrote in #note-12:
> The target of the break is a semantic detail, not a syntactic one, and it is not determined at parse time.
It does, it is determined at parse time. Break is a syntactic construct.
> .....
Eregon (Benoit Daloze)

04/26/2026

09:03 PM Ruby Feature #21795: Methods for retrieving ASTs
kddnewton (Kevin Newton) wrote in #note-21:
> Further evidence that the ABI version is good: since the beginning of 2024, we would only have had to bump the ABI version twice.
How did you determine this? As shown in #note-13, `node...
Eregon (Benoit Daloze)
08:39 PM Ruby Misc #22001: Adding TruffleRuby in the CI of all default & bundled gems
hsbt (Hiroshi SHIBATA) wrote in #note-3:
> We already have a precedent where TruffleRuby CI for a library stayed broken for over a month with no one fixing it.
> ...
For the record, I did work hard on fixing that and the initial fix t...
Eregon (Benoit Daloze)

04/21/2026

02:01 PM Ruby Feature #21998: Add {Method,UnboundMethod,Proc}#source_range
I discussed this in detail with @mame and @matz.
@mame (to reply here too) what I meant is using Prism with the `Method|UnboundMethod|Proc` and the `source_range` to find the Prism node, and then compute the max end offset by walking th...
Eregon (Benoit Daloze)

Also available in: Atom