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

07/02/2026

07:43 AM Ruby Feature #22118: Introduce Basic Bit Operations into String
It's just an idea...
How about removing `lsb_first:` and always processing `offset` as LSB first offset? But we'll also provide `Integer#to_msb_offset`.
```ruby
data = "\x01"
p data.bit_at(0.to_msb_offset) # => 1 # (0.to_msb_offs...
kou (Kouhei Sutou)

06/23/2026

08:17 PM Ruby Bug #22125: IO::Buffer triggers use-after-free when it's freed/resized during enumeration
We're already discussing how to fix this case in https://github.com/ruby/ruby/pull/17398 . kou (Kouhei Sutou)

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)

Also available in: Atom