General

Profile

hasumikin (hitoshi hasumi)

  • Login: hasumikin
  • Registered on: 06/20/2019
  • Last sign in: 08/06/2026

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 4 4

Activity

08/07/2026

12:05 AM Ruby Revision 33752cdb (git): [DOC] Add NEWS entry for String bit operations
Proposed in https://bugs.ruby-lang.org/issues/22118
Merged in #17353
hasumikin (hitoshi hasumi)

08/06/2026

12:41 PM Ruby Feature #22118 (Closed): Introduce Basic Bit Operations into String
Applied in changeset commit:git|2461caebba1d47ca79cfd4e0a825e6df40f375bd.
----------
[Feature #22118] Introduce Basic Bit Operations into String (#17353)
This patch adds the following methods to String class:
* String#bit_get(offset, ...
hasumikin (hitoshi hasumi)
12:40 PM Ruby Revision 2461caeb (git): [Feature #22118] Introduce Basic Bit Operations into String (#17353)
This patch adds the following methods to String class:
* String#bit_get(offset, lsb_first: true) -> 1 | 0 | nil
* String#bit_set?(offset, lsb_first: true) -> true | false | nil
* String#bit_set(offset, lsb_first: true) -> self
* String#...
hasumikin (hitoshi hasumi)

08/03/2026

06:12 AM Ruby Misc #22221: DevMeeting-2026-08-06
- [Feature #22118] Introduce Basic Bit Operations into String (hasumikin)
- https://bugs.ruby-lang.org/issues/22118#note-6
- Is it OK to have a *temporary* asymmetry where `String#bit_count` doesn't take a bit-order keyword?
...
hasumikin (hitoshi hasumi)

07/13/2026

05:58 AM Ruby Feature #22118: Introduce Basic Bit Operations into String
I turned the PR ready to review: https://github.com/ruby/ruby/pull/17353
If the requirement written in the current description (and the reconfirmation in #note-6) is just enough, I believe it can go forward
hasumikin (hitoshi hasumi)

07/12/2026

09:20 AM Ruby Feature #22118: Introduce Basic Bit Operations into String
#note-7
I do not oppose `bit_put` itself, but my future plan includes introducing a range parameter like:
```ruby
data.bit_set(3..19)
```
In the above, you can assume that the `data` is a header managing some resource or a serial ...
hasumikin (hitoshi hasumi)

07/11/2026

07:02 AM Ruby Feature #22118: Introduce Basic Bit Operations into String
Thank you, Matz. Based on your decisions in #note-5, I've updated the Description to serve as the finalized specification. Summary:
- Renamed `bit_at` to `bit_get`, returning `1 | 0 | nil`.
- Added the method `bit_set?`, returning `t...
hasumikin (hitoshi hasumi)

06/20/2026

01:37 AM Ruby Feature #22118: Introduce Basic Bit Operations into String
Memorandom.
I had a face-to-face conversation with Matz and Shugo yesterday.
> Matz: each_bit should yield `0/1`, not `false/true`
> ...
(Matz didn't reject it at least)
If it is realized, Pretty-Print could make something like t...
hasumikin (hitoshi hasumi)

06/16/2026

04:23 AM Ruby Misc #22107: DevMeeting-2026-07-09
* [Feature #22118] Introduce Basic Bit Operations into String (hasumikin)
* Are these methods suitable as the first subset?
* Is the `lsb_first:` keyword acceptable?
hasumikin (hitoshi hasumi)
02:26 AM Ruby Feature #22118 (Closed): Introduce Basic Bit Operations into String
This PR implements basic bit operations into String, incorporating revisions made following the discussion (esp. #note-5)
PR URL: https://github.com/ruby/ruby/pull/17353
## Single-bit read and mutation
* `String#bit_get(offset, ...
hasumikin (hitoshi hasumi)

Also available in: Atom