General

Profile

Eregon (Benoit Daloze)

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

Issues

open closed Total
Assigned issues 3 65 68
Reported issues 28 195 223

Projects

Project Roles Registered on
Ruby Committer 08/02/2012

Activity

03/17/2026

03:17 PM Ruby Feature #19315: Lazy substrings in CRuby
FWIW, `StringValueCStr()` already exists and checks for no `\0` bytes and implies a terminating `\0`.
It still seems too risky to change `RSTRING_PTR()` to not terminate though.
FWIW, TruffleRuby already has lazy substrings and alway...
Eregon (Benoit Daloze)
09:46 AM Ruby Feature #21795: Methods for retrieving ASTs
mame (Yusuke Endoh) wrote in #note-9:
> When new syntax is introduced to the Ruby master branch, the built-in `prism.c` is updated immediately. In this scenario, if we attempt to retrieve `#ast` using the node definitions from a release...
Eregon (Benoit Daloze)
08:33 AM Ruby Feature #6012: Proc#source_location also return the column
Right, I will make a proposal for `Ruby::SourceLocation`/`Ruby::CodeLocation` or so.
I hope it can be approved quickly without taking more time.
Eregon (Benoit Daloze)
08:30 AM Ruby Feature #21875 (Closed): Handling of trailing commas in lambda parameters
Eregon (Benoit Daloze)

03/16/2026

09:14 AM Ruby Bug #21828: An incorrect warning message related to `benchmark` is shown when using `benchmark-ips`
I think the latest fix should be backported too, so annotating it as such. Eregon (Benoit Daloze)

03/15/2026

05:06 PM Ruby Feature #21853: Make Embedded TypedData a public API
Eregon (Benoit Daloze) wrote in #note-5:
> also considering there is no safeguard to avoid writing to `DATA_PTR`
One idea to address this (but not the other 2 concerns) would be to raise on `DATA_PTR()` for `RUBY_TYPED_EMBEDDABLE`, a...
Eregon (Benoit Daloze)
02:33 PM Ruby Feature #21853: Make Embedded TypedData a public API
One tricky aspect about `RUBY_TYPED_EMBEDDABLE` is if in the `struct` there is a pointer to inside that `struct` then those pointers will become invalid when the object is moved.
Is there a way to handle that correctly to update such poi...
Eregon (Benoit Daloze)
02:21 PM Ruby Feature #21852: New improved allocator function interface
I'm aware what I propose doesn't solve `Can't support objects of variable width`, i.e. the case for `Thread::Backtrace`.
But AFAIK variable width is only available for core classes (not as public API), and `Thread::Backtrace` is core too...
Eregon (Benoit Daloze)
02:06 PM Ruby Feature #21852: New improved allocator function interface
Going further, `Class#safe_initialization` instead of redefining these 3 methods could just set a new `internal_alloc_func` field in RClass (only used by new/dup/clone and can never be read by anything else) + rb_undef_alloc_func().
And...
Eregon (Benoit Daloze)
01:55 PM Ruby Feature #21852: New improved allocator function interface
Thinking more about this I think there should be a protocol or an easy way to avoid the allocated-but-uninitialized state completely, which is problematic for classes defined in C but also in Ruby (though Ruby-defined classes will typica... Eregon (Benoit Daloze)

Also available in: Atom