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 32 198 230

Projects

Project Roles Registered on
Ruby Committer 08/02/2012

Activity

05/03/2026

08:08 PM Ruby Bug #22020 (Open): Inner call node without all arguments returned by RubyVM::AbstractSyntaxTree.of for call with a block
```ruby
begin
foo(1, 2, kw: :arg) { 42 }
rescue => e
pp RubyVM::AbstractSyntaxTree.of e.backtrace_locations[0]
end
```
```
$ ruby --parser=parse.y rubyvm_ast_node_id_loc.rb
(FCALL@2:2-2:21 :foo
(LIST@2:6-2:20 (INTEGER@...
Eregon (Benoit Daloze)
11:40 AM Ruby Feature #21953: Allow accessing unshareable objects within a Ractor-local Ruby Box
@tikkss I think there is an issue with your accounting of memory because it doesn't match the RSS of the worker process.
This is running your example as-is.
```
$ ruby -v
ruby 4.0.2 (2026-03-17 revision d3da9fec82) +PRISM [x86_64-linux]...
Eregon (Benoit Daloze)

05/02/2026

02:05 PM Ruby Feature #21998: Add {Method,UnboundMethod,Proc}#source_range
Yes Eregon (Benoit Daloze)
11:19 AM Ruby Feature #21998: Add {Method,UnboundMethod,Proc}#source_range
Eregon (Benoit Daloze) wrote in #note-10:
> I'm not sure if [@matz (Yukihiro Matsumoto)](/users/13) made his mind on: Start position: from the `p` of `proc`? Or from the `{`?
I confirmed with both @mame and @matz, and matz said it sh...
Eregon (Benoit Daloze)

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)

Also available in: Atom