General

Profile

hasumikin (hitoshi hasumi)

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

Issues

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

Activity

06/12/2026

05:18 AM Ruby Feature #22082: Introduce Bit Operations into String
matz (Yukihiro Matsumoto) wrote in #note-13:
> Could you propose a minimal v1 subset along these lines? The keyword design (`lsb_first` vs `msb_first`, raised by byroot and Eregon) can be settled as part of that.
Thank you for the ac...
hasumikin (hitoshi hasumi)

06/09/2026

09:42 AM Ruby Feature #22082: Introduce Bit Operations into String
Eregon (Benoit Daloze) wrote in #note-8:
> This seems like a lot of methods to add to String, which I think already has (too) many methods.
> ...
Thank you for the feedback.
My starting point is that binary data in Ruby is already r...
hasumikin (hitoshi hasumi)

06/01/2026

09:24 AM Ruby Feature #22082: Introduce Bit Operations into String
kou (Kouhei Sutou) wrote in #note-3:
> +1 Could you update the description?
I updated it with `<del>...</del>`
----
byroot (Jean Boussier) wrote in #note-4:
> ...
Thank you. That'd be one of the next points if Matz approved th...
hasumikin (hitoshi hasumi)
08:37 AM Ruby Feature #22082: Introduce Bit Operations into String
> What does "logical bit" mean here?
The "logical bit" refers to the Bit Position Numbering determined by the `lsb_first:` keyword.
Please see this page:
https://github.com/hasumikin/string_bits/blob/0.2.0/docs/Discussion.md#bit-pos...
hasumikin (hitoshi hasumi)
08:39 AM Ruby Misc #22088: DevMeeting-2026-06-11
* [Feature #22082] Introduce Bit Operations into String (hasumikin)
* I'd like you to discuss whether it's appropriate to add such functionality to the String class
* I've proposed many methods in this ticket, but I don't think we ne...
hasumikin (hitoshi hasumi)

05/27/2026

09:49 AM Ruby Feature #22082 (Open): Introduce Bit Operations into String

## Relevant tickets
- Introduce #bit_count method on Integer --- #20163
## Abstract
Ruby's `String` is already a byte sequence, but it lacks high-level bit operations.
As a result, packed binary data must be handled with ma...
hasumikin (hitoshi hasumi)

02/13/2025

08:12 PM Ruby Revision 31162bf4 (git): [ruby/prism] Handle zero-sized allocation in pm_constant_id_list_init_capacity
According to the calloc(3) man page, when nmemb or size is 0, `calloc()` can either return NULL or a unique pointer that can be passed to `free()`.
While gcc and clang typically return a unique pointer, mruby's `mrb_calloc()` returns NUL...
hasumikin (hitoshi hasumi)

04/28/2024

03:08 AM Ruby Revision ddd8da4b (git): [Universal parser] Improve AST structure
This patch moves `ast->node_buffer->config` to `ast->config` aiming to improve readability and maintainability of the source.
## Background
We could not add the `config` field to the `rb_ast_t *` due to the five-word restriction of the...
hasumikin (hitoshi hasumi)

04/27/2024

08:56 AM Ruby Revision 9ea77cb3 (git): Remove unnecessary assignment to ast->body.line_count
This patch removes a code that assigns `-1` to `ast->body.line_count` because, at least as of now, it looks not necessary.
I made this commit atomically revertable if I was wrong.
## Relevant commits
- The preparation for this PR: http...
hasumikin (hitoshi hasumi)
03:08 AM Ruby Revision 55a402bb (git): Add line_count field to rb_ast_body_t
This patch adds `int line_count` field to `rb_ast_body_t` structure.
Instead, we no longer cast `script_lines` to Fixnum.
## Background
Ref https://github.com/ruby/ruby/pull/10618
In the PR above, we have decoupled IMEMO from `rb_ast_...
hasumikin (hitoshi hasumi)

Also available in: Atom