General

Profile

byroot (Jean Boussier)

Issues

open closed Total
Assigned issues 0 29 29
Reported issues 29 143 172

Projects

Project Roles Registered on
Ruby Committer 09/27/2021

Activity

08/05/2026

02:55 PM Ruby Feature #22229: Allow GCI.escapeHTML to take a custom escape table
> but what about a fixed Regexp with the characters to escape?
@Eregon please see the benchmark at https://github.com/ruby/cgi/pull/55, it doesn't compile a regexp every time and there's still a 5x difference.
I only did it in this...
byroot (Jean Boussier)
06:05 AM Ruby Feature #22229 (Open): Allow GCI.escapeHTML to take a custom escape table
### Use case
`CGI.escapeHTML` has a fixed escape table:
```c
HTML_ESCAPE('\'', "'"),
HTML_ESCAPE('&', "&"),
HTML_ESCAPE('"', """),
HTML_ESCAPE('<', "&lt;"),
HTML_ESCAPE('>', "&gt;"),
```
Bu...
byroot (Jean Boussier)
04:26 AM Ruby Revision 8cb76c13 (git): Shrink `st_table` from 48B down to 40B
This allows `st_table + RHash` to fit in a `64B` slot.
It is achieved by turning `entries_start` from pointer size
down to a single byte.
This means it can now overflow, if you delete the first element
255 times, but in such case we ca...
byroot (Jean Boussier)

08/04/2026

06:48 AM Ruby Feature #22227: Per-Ractor GC: collect each Ractor's heap locally, stop the world only when needed
> GC.start in a multi-Ractor process runs a stop-the-world global GC; automatic GC in a Ractor collects only its own heap.
Should `GC.start` gain some sort of `local_only: true` argument?
I could see this as useful for applications...
byroot (Jean Boussier)

08/03/2026

02:18 PM Ruby Misc #22221: DevMeeting-2026-08-06
* [Feature #22222] Expose a C API equivalent of `RubyVM::InstructionSequence.load_from_binary` (byroot)
* It would allow Bootsnap to directly load iseq from C without copying bytes into a string.
* `rb_str_new_static` exists but is...
byroot (Jean Boussier)

07/31/2026

01:08 PM Ruby Feature #22222: Expose a C API equivalent of `RubyVM::InstructionSequence.load_from_binary`
Yes, I get that, but my point is that these constraints are very hard to ensure in my case.
byroot (Jean Boussier)
08:43 AM Ruby Feature #22222: Expose a C API equivalent of `RubyVM::InstructionSequence.load_from_binary`
@nobu yes I know, but as you mention, it's meant to point at static C strings, not mmaped files or stack buffers, so it doesn't work for Bootsnap. byroot (Jean Boussier)
08:08 AM Ruby Feature #22222 (Open): Expose a C API equivalent of `RubyVM::InstructionSequence.load_from_binary`
Currently the only API to deserialize instruction sequence is `RubyVM::InstructionSequence.load_from_binary(String)`.
It works fine, but isn't ideal for gems like bootsnap, as it needs to allocate a fairly large string and `memcpy` in...
byroot (Jean Boussier)
07:54 AM Ruby Feature #21987 (Rejected): Assume `chdir(2)` isn't called and cache `rb_dir_getwd_ospath()`
byroot (Jean Boussier)
06:25 AM Ruby Revision 5cee5891 (git): [ruby/json] Release 2.21.2
https://github.com/ruby/json/commit/5a32e4367c byroot (Jean Boussier)

Also available in: Atom