General

Profile

sampokuokkanen (Sampo Kuokkanen)

  • Login: sampokuokkanen
  • Registered on: 05/21/2026
  • Last sign in: 10/30/2026

Issues

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

Activity

11/04/2026

03:28 PM Ruby Revision 49ef2577 (git): [ruby/json] Java parser: don't let the caller mutate the bytes being parsed
ParserSession reads the source string's backing byte[] directly, but the
string itself was never marked as shared. A decimal_class callback that
calls source.tr! could then rewrite the bytes the parser is still reading.
The existing tes...
sampokuokkanen (Sampo Kuokkanen)
02:45 PM Ruby Revision 70c8791f (git): [ruby/prism] Make the warn polyfill private
Kernel#warn is private, but the methods defined by the polyfill were
public, so loading prism made warn a public method on every object.
Code that relies on warn not being public, like a logger proxy that
forwards it through method_missi...
sampokuokkanen (Sampo Kuokkanen)

10/30/2026

08:52 AM Ruby Bug #21270: init_fast_fallback_inetsock_internal (default for TCPSocket.new/TCPSocket.open) isn't fiber aware
The DNS side has the same problem. Only `rsock_getaddrinfo` asks the scheduler's `address_resolve`, and the fast-fallback path resolves on its own threads, so the default `TCPSocket.new` never calls the hook. The `address_resolve` docs l... sampokuokkanen (Sampo Kuokkanen)

10/27/2026

03:23 AM Ruby Bug #22328: Should IO#wait_priority be deprecated and then removed?
I opened https://github.com/ruby/ruby/pull/19548 for this.
It makes IO#wait_priority emit a deprecation warning (shown when Warning[:deprecated] is enabled) pointing to IO#wait(IO::PRIORITY, timeout), and adds a NEWS entry.
The war...
sampokuokkanen (Sampo Kuokkanen)

09/17/2026

08:28 AM Ruby Bug #22328 (Open): Should IO#wait_priority be deprecated and then removed?
In #18655, IO#wait_readable, IO#wait_writable, IO#wait_priority, and IO#wait were moved from io/wait into core.
However, in #18655 note 11, Matz wrote:
> After the discussion, we will drop wait_priority, but others are accepted.
htt...
sampokuokkanen (Sampo Kuokkanen)

09/04/2026

12:08 AM Ruby Revision 07ef97df (git): Fetch the execution context once in Array#each (#18610)
rb_yield() calls GET_EC() on every element, which on arm64 is an
out-of-line call to rb_current_ec() (RB_THREAD_CURRENT_EC_NOINLINE).
Hoist it out of the loop and use rb_ec_yield(), as ff831eb057 does
for Mutex#synchronize.
benchmark/lo...
sampokuokkanen (Sampo Kuokkanen)

07/02/2026

04:26 AM Ruby Revision 439c06b4 (git): Annotate Symbol#empty? as leaf (#17464)
Move `Symbol#empty?` from the C `sym_empty` into `symbol.rb`, implemented as `RBOOL(RSTRING_LEN(rb_sym2str(self)) == 0)`, mirroring the existing Symbol#to_s and #name leaf builtins.
Also added an `annotate_builtin! ` in `zjit/src/cruby_...
sampokuokkanen (Sampo Kuokkanen)

06/24/2026

09:17 PM Ruby Revision 93e97793 (git): Define String#ascii_only? and #valid_encoding? in Ruby
Get rid of the CFUNC overhead in String#ascii_only? and #valid_encoding?. Define them as leaf Primitive.cexpr! builtins in a new string.rb, following the pattern of numeric.rb.
This makes them 1.2x-1.4x faster across the interpreter, YJ...
sampokuokkanen (Sampo Kuokkanen)
09:17 PM Ruby Revision bb75c289 (git): ZJIT: Inline String#ascii_only? and #valid_encoding?
Read the cached coderange directly (flags & MASK) instead of calling the
builtin: ascii_only? is == 7BIT, valid_encoding? is != BROKEN, side-exit
on UNKNOWN. Drops the call, ~20% faster on ZJIT.
sampokuokkanen (Sampo Kuokkanen)

06/23/2026

01:29 PM Ruby Revision 13fe77dd (git): Add an ASCII fast path for String#casecmp?
String#casecmp? folds both operands with a Unicode case fold, allocating two new strings, and compares the results. For ASCII-only strings, Unicode case folding is equivalent to ASCII case-insensitive comparison, so the operands can be c... sampokuokkanen (Sampo Kuokkanen)

Also available in: Atom