General

Profile

shugo (Shugo Maeda)

  • Login: shugo
  • Registered on: 05/08/2008
  • Last sign in: 06/09/2026

Issues

open closed Total
Assigned issues 2 156 158
Reported issues 5 83 88

Projects

Project Roles Registered on
Ruby Committer, Infrastructure team 05/28/2008

Activity

Today

11:44 AM Ruby Feature #22097: Add Proc#with_refinements
Now `Proc#with_refinements` can be called in non-main Ractors:
https://github.com/ruby/ruby/pull/17248/changes/2cddb3fd99a7c68b4ab478f497f2610206edf335
Memo access is synchronized with `RB_VM_LOCKING()`.
In single-Ractor mode it tak...
shugo (Shugo Maeda)

06/12/2026

07:02 PM Ruby Revision 1940cd56 (git): compile.c: fix dupstring-of-Regexp from folded /o regexp
The peephole optimizer folds "dupstring str; toregexp" (and the
dupchilledstring / putobject-string variants) into a single
literal-push by compiling the Regexp at compile time and replacing the
operand with it. It replaced the operand ...
shugo (Shugo Maeda)
08:15 AM Ruby Bug #22103 (Closed): Constant-folded /o regexp crashes with dupstring of a Regexp
Applied in changeset commit:git|0f211465887a601a9a1eb1b8d4f5174c852b4939.
----------
compile.c: fix dupstring-of-Regexp from folded /o regexp
The peephole optimizer folds "dupstring str; toregexp" (and the
dupchilledstring / putobject-...
shugo (Shugo Maeda)
08:15 AM Ruby Revision 0f211465 (git): compile.c: fix dupstring-of-Regexp from folded /o regexp
The peephole optimizer folds "dupstring str; toregexp" (and the
dupchilledstring / putobject-string variants) into a single
literal-push by compiling the Regexp at compile time and replacing the
operand with it. It replaced the operand ...
shugo (Shugo Maeda)
07:31 AM Ruby Misc #22107: DevMeeting-2026-07-09
* [Feature #22097] Add Proc#with_refinements
* For maintainability, I've replaced the hand-written iseq deep-copy with an in-memory IBF dump+load round-trip
* Should it warn or raise when called with different modules for the same ...
shugo (Shugo Maeda)
05:44 AM Ruby Feature #22097: Add Proc#with_refinements
Thank you for the feedback!
Eregon (Benoit Daloze) wrote in #note-8:
> Since the performance relies on having `with_refinements` called always with the same Refinement module for a given block, how about raising an exception if it do...
shugo (Shugo Maeda)

06/11/2026

09:56 AM Ruby Feature #22097: Add Proc#with_refinements
For maintainability, I've replaced the hand-written iseq deep-copy with an in-memory IBF dump+load round-trip in: https://github.com/ruby/ruby/pull/17248/changes/f27cf1d98c18f4137ace0243ca696ba3e17834af
shugo (Shugo Maeda)
08:37 AM Ruby Bug #22103: Constant-folded /o regexp crashes with dupstring of a Regexp
I've opened a pull request at: https://github.com/ruby/ruby/pull/17274 shugo (Shugo Maeda)
08:29 AM Ruby Bug #22103 (Closed): Constant-folded /o regexp crashes with dupstring of a Regexp
A `/o` (once) regexp whose interpolation folds to a constant crashes at runtime:
```ruby
def m; /#{"a"}/o; end
m #=> [BUG] heap_idx_for_size: allocation size too large
```
A plain `/#{"a"}/` (no `/o`) is fine.
shugo (Shugo Maeda)

06/10/2026

02:10 AM Ruby Feature #22097: Add Proc#with_refinements
headius (Charles Nutter) wrote in #note-2:
> Thank you for considering JRuby! I will review your PR and also start a ruby-4.1 branch you can target.
Thank you!
I've opened a new pull request at: https://github.com/jruby/jruby/pull/9486
shugo (Shugo Maeda)

Also available in: Atom