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

Today

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)

03/13/2026

03:13 PM Ruby Revision 17747554 (git): [ruby/prism] Make it possible to lazily deserialize DefNode in Loader.java
* TRUFFLERUBY_METRICS_REPS=5 jt metrics time --experimental-options -e0
For parsing-core:
before: 0.097 0.099 0.092 0.096
after: 0.061 0.063 0.066 0.059
* Remove extra trailing spaces by using `<%-#`.
https://github.com/ruby/pris...
Eregon (Benoit Daloze)

03/12/2026

10:15 AM Ruby Feature #21950: Add a built-in CPU-time profiler
byroot (Jean Boussier) wrote in #note-11:
> But I suspect supporting both isn't that much extra work?
I think it'd be good for this API to be able to say which one it wants (like `StackProf`'s `mode:` kwarg).
Eregon (Benoit Daloze)
10:12 AM Ruby Feature #21950: Add a built-in CPU-time profiler
osyoyu (Daisuke Aritomo) wrote in #note-8:
> I don't want the API/output format to restrict what a profiler could emit. I wouldn't say such design is not doable, but careful consideration would be needed.
Careful consideration is exa...
Eregon (Benoit Daloze)

03/11/2026

01:40 PM Ruby Feature #21950: Add a built-in CPU-time profiler
osyoyu (Daisuke Aritomo) wrote in #note-5:
> I am rather doubtful that CRuby/JRuby/TruffleRuby can share any profiler implementation at all.
They can't share the implementation of gathering backtraces (that's implementation-specific)...
Eregon (Benoit Daloze)
01:37 PM Ruby Feature #21950: Add a built-in CPU-time profiler
osyoyu (Daisuke Aritomo) wrote in #note-5:
> I am rather doubtful that CRuby/JRuby/TruffleRuby can share any profiler implementation at all.
I think the opposite, I think it's actually easy to implement such an API on TruffleRuby and...
Eregon (Benoit Daloze)

Also available in: Atom