General

Profile

kou (Kouhei Sutou)

  • Login: kou
  • Email: kou@cozmixng.org
  • Registered on: 06/03/2008
  • Last sign in: 02/22/2024

Issues

open closed Total
Assigned issues 0 95 95
Reported issues 1 12 13

Projects

Project Roles Registered on
Ruby Committer 07/04/2008

Activity

06/10/2026

05:33 AM Ruby Feature #19315: Lazy substrings in CRuby
Dan0042 (Daniel DeLorme) wrote in #note-37:
> > I think that we don't need to introduce `RSTRING_RAW_END()` or something. We can just recommend `RSTRING_RAW_PTR() + RSTRING_LEN()` instead of `RSTRING_END()`.
> ...
I'm not sure the orig...
kou (Kouhei Sutou)
12:11 AM Ruby Feature #19315: Lazy substrings in CRuby
rhenium (Kazuki Yamaguchi) wrote in #note-35:
> If we go down the route of having `RSTRING_PTR()` lazily allocate a NUL-terminated buffer in it, that is a breaking change on its own because it introduces the possibility of GC and long...
kou (Kouhei Sutou)

06/08/2026

02:53 AM Ruby Feature #19315: Lazy substrings in CRuby
Eregon (Benoit Daloze) wrote in #note-30:
> 1. Deprecate `RSTRING_PTR()` with a message saying to use either `StringValueCStr()` (if want to use it as a NUL-terminated C string) or `RSTRING_START()` (for efficiency & fixing the warnin...
kou (Kouhei Sutou)
02:40 AM Ruby Feature #19315: Lazy substrings in CRuby
Dan0042 (Daniel DeLorme) wrote in #note-29:
> > `RSTRING_CSTR()` doesn't check whether `\0` is included in the target content or not.
> ...
I think that we don't need a new macro for the `CStr` behavior. We can just use existing `Strin...
kou (Kouhei Sutou)

06/04/2026

01:32 AM Ruby Feature #19315: Lazy substrings in CRuby
Dan0042 (Daniel DeLorme) wrote in #note-26:
> I agree that completely deprecating RSTRING_PTR might not be strictly necessary, but for the sake of a smooth migration, I highly recommend introducing RSTRING_CSTR as an alias for the new, ...
kou (Kouhei Sutou)
01:21 AM 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`.
> ...
How about ...
kou (Kouhei Sutou)

06/01/2026

09:00 AM Ruby Feature #22082: Introduce Bit Operations into String
hasumikin (hitoshi hasumi) wrote in #note-2:
> (Perhaps I shouldn't have written it as if it had any special meaning because `lsb_first:` is a concept that spans this entire group of methods)
+1 Could you update the description?
kou (Kouhei Sutou)
06:30 AM Ruby Feature #22082: Introduce Bit Operations into String
I want this feature for Apache Arrow. Apache Arrow uses bitmap https://arrow.apache.org/docs/format/Columnar.html#validity-bitmaps for null. I'm maintaining the official pure Ruby Apache Arrow library ( https://github.com/apache/arrow/tr... kou (Kouhei Sutou)

05/09/2026

11:19 PM Ruby Feature #19315: Lazy substrings in CRuby
I think that we should not deprecate `RSTRING_PTR()` for backward compatibility.
How about adding a new API such as `RSTRING_RAW_PTR()` for `char *` that may not be `\0`-terminated instead?
`RSTRING_RAW_PTR()` works like the curren...
kou (Kouhei Sutou)
11:09 PM Ruby Feature #22056: Add zero-copy String constructor backed by an arbitrary Ruby object
Eregon (Benoit Daloze) wrote in #note-12:
> > The returned String holds a direct GC reference to the source String, so it remains valid even after the buffer is freed.
> ...
Good point. We should add "the buffer owned by another object m...
kou (Kouhei Sutou)

Also available in: Atom