Impl: (WIP) This ticket completes the region arguments of #22279 for `bit_get`. #22279 added the `(offset, length)` and `range` forms to `bit_set`, `bit_clear`, `bit_flip` and `bit_count`, and the commit message of #22118 announced th...hasumikin (hitoshi hasumi)
Impl: (WIP) This is a reply to the comment of Matz in #22399#note-3. It replaces the seven methods of #22399 and #22405 with one search method. The deferred methods can be written on top of it in Ruby, and the last section gives the m...hasumikin (hitoshi hasumi)
The constant pool starts at source size / 120 entries, 4 at the least, and doubles at a load of 3/4; each outgrown pair of arrays stays in the metadata arena. An embedder that interns a fixed set of names into the pool at every parse (mr...hasumikin (hitoshi hasumi)
61ebe5123 made defines.h include <sys/types.h> ahead of <inttypes.h>: with an arm-none-eabi toolchain whose <stdint.h> is GCC's own, newlib's <inttypes.h> never sees the marker it tests before defining the 64-bit PRI macros, and PRIu64 g...hasumikin (hitoshi hasumi)
The arena's first block is 8 KB, sized for a host. An embedder on a small heap parses short programs (a REPL line uses about 6 KB in two arenas) and pays two 8 KB blocks for each; with the constant under #ifndef it can build with -DPM_AR...hasumikin (hitoshi hasumi)
## Description A method that read a class variable once reads it again after `remove_class_variable`. The second read does not raise NameError. It returns a broken value, and a use of that value causes a segmentation fault. ## Step...hasumikin (hitoshi hasumi)
PR: (WIP) ### What this adds This ticket adds the run-length methods of the String bit operation API. A run is a maximal sequence of consecutive bits with the same value. The methods build on the region arguments of #22279 and on t...hasumikin (hitoshi hasumi)
* [Feature #22399] Iterator Methods for String Bit Operations (hasumikin) * Proposed new methods `each_bit`, `bits`, `each_bit_offset` and `bit_offsets` for String * They are the iterator forms of the single-bit read methods merged i...hasumikin (hitoshi hasumi)
PR URL: https://github.com/ruby/ruby/pull/19161 ### What this adds The original proposal (#22082) listed this iterator group. Matz asked for a minimal subset in #22082#note-13, and the proposal deferred the group in #22082#note-14....hasumikin (hitoshi hasumi)
Applied in changeset commit:git|03a426ec8d30929558bf1244b4ad95eb7e1f54d2. ---------- [Feature #22279] Add region arguments to String bit operations (#18562) This patch extends the following String methods: * String#bit_set(offset, len...hasumikin (hitoshi hasumi)