General

Profile

himura467 (Akito Shitara)

  • Login: himura467
  • Registered on: 05/05/2026
  • Last sign in: 06/13/2026

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 0 1

Activity

06/13/2026

01:40 PM Ruby Feature #19315: Lazy substrings in CRuby
byroot (Jean Boussier) wrote in #note-48:
> as it's a new contention point for Ractors, and if the main thread fork while a background ractor is holding this lock, the child will likely end up deadlocking at some point.
That's a valid c...
himura467 (Akito Shitara)
09:22 AM Ruby Feature #19315: Lazy substrings in CRuby
byroot (Jean Boussier) wrote in #note-46:
> If `RSTRING_PTR` never allocates, it means it doesn't provide NUL termination anymore, right?
Regardless of whether it's the optimal approach, I think an implementation like https://github....
himura467 (Akito Shitara)
07:37 AM Ruby Feature #19315: Lazy substrings in CRuby
mame (Yusuke Endoh) wrote in #note-43:
> Please provide a quantitative evaluation of performance and compatibility at the application level. Does this change bring an observable performance improvement? Does memory usage increase or dec...
himura467 (Akito Shitara)

06/09/2026

08:15 AM Ruby Feature #19315: Lazy substrings in CRuby
IMO, backward compatibility of `RSTRING_PTR` should be preserved within the scope of this feature.
Eregon (Benoit Daloze) wrote in #note-30:
> I' believe migrating usages of `RSTRING_PTR()` which want `\0`-terminated to `StringValueC...
himura467 (Akito Shitara)

06/03/2026

02:07 PM Ruby Feature #19315: Lazy substrings in CRuby
rhenium (Kazuki Yamaguchi) wrote in #note-23:
> I wonder if `RSTRING_PTR()` could instead allocate a read-only copy dedicated for `RSTRING_PTR()`, rather than permanently converting the String away from `STR_SHARED`.
Interesting. The...
himura467 (Akito Shitara)
06:39 AM Ruby Feature #19315: Lazy substrings in CRuby
Eregon (Benoit Daloze) wrote in #note-22:
> What's the problem?
If `RSTRING_END()` remains unchanged, it can cause inconsistency due to the undefined evaluation order of C.
This happens if `RSTRING_END()` is evaluated before `RSTRIN...
himura467 (Akito Shitara)

06/02/2026

01:06 PM Ruby Misc #22088: DevMeeting-2026-06-11
* [Feature #19315] Lazy substrings in CRuby
* I created a prototype implementation: https://github.com/ruby/ruby/pull/17045
* This is also a prerequisite for [Feature #22056].
* Proposed approach:
* Keep `RSTRING_PTR()` behavio...
himura467 (Akito Shitara)
12:57 PM Ruby Feature #19315: Lazy substrings in CRuby
byroot (Jean Boussier) wrote in #note-19:
> > However, it is unclear if RSTRING_PTR() is ever called without the GVL in practice. I would appreciate feedback on whether this edge-case handling is actually necessary or redundant.
> ...
...
himura467 (Akito Shitara)
12:31 PM Ruby Feature #19315: Lazy substrings in CRuby
Following the direction suggested by @Eregon in #note-17, I created a prototype implementation for this issue: https://github.com/ruby/ruby/pull/17045
While maintaining backward compatibility with `RSTRING_PTR()` and `RSTRING_END()`, th...
himura467 (Akito Shitara)

05/19/2026

09:57 PM Ruby Revision 3373fcc2 (git): Fix UAF in IO::Buffer#~ when self is an invalidated slice
`io_buffer_not` accessed `buffer->base` directly without validating that the buffer was still live. A slice whose parent had been freed retained its stale base pointer, so calling `~` on it caused a UAF.
Use `io_buffer_get_bytes_for_rea...
himura467 (Akito Shitara)

Also available in: Atom