> I think an implementation like [...] could guarantee NUL termination without triggering GC. Alright, I missed/forgot that part. But I can't say I like that solution, as it's a new contention point for Ractors, and if the main threa...byroot (Jean Boussier)
If `RSTRING_PTR` never allocates, it means it doesn't provide NUL termination anymore, right? It may already be wrong, but a lot of code our there assume `RSTRING_PTR` returns a NUL terminated strings. I'll reiterate that I believe...byroot (Jean Boussier)
> Ractors can access instance variables of shareable objects, classes or otherwise. Only if the object the variable points at is itself shareable. ```ruby class C singleton_class.attr_accessor :foo end C.foo = Object.new ...byroot (Jean Boussier)
Ref: https://github.com/ruby/digest/issues/77 `CRC32` is relatively commonly needed for network protocol and some archive formats like `zip`. This is a clean implementation derived from the Wikipedia article. https://github.com/ruby/d...byroot (Jean Boussier)
Given this is just a performance optimization with no behavior change, there is no need for Matz approval. You'd be better off opening a Pull Request at https://github.com/ruby/ruby/pulls/.byroot (Jean Boussier)
It was never intended to be initialized with a stack buffer in that case, as when dumping into an IO we want larger chunks. https://github.com/ruby/json/commit/996bac686dbyroot (Jean Boussier)