General

Profile

byroot (Jean Boussier)

Issues

open closed Total
Assigned issues 0 27 27
Reported issues 28 124 152

Projects

Project Roles Registered on
Ruby Committer 09/27/2021

Activity

12/19/2025

07:57 PM Ruby Feature #21796: unpack variant that returns the final offset
> Why a new parameter?
because I misread the ticket, I didn't notice the `o`.
I do think `^` for offset is pure genius though.
byroot (Jean Boussier)
08:10 AM Ruby Feature #21796: unpack variant that returns the final offset
It would be useful indeed, but I'm not sure a new method is the best way?
I think the simplest would be a new keyword parameter:
```ruby
offset, *values = bytes.unpack("Ro", offset: offset, return_offset:true)
```
Another poss...
byroot (Jean Boussier)
08:15 AM Ruby Feature #21791: Implement Set#compact/Set#compact!, these should return Set instead of Array
Since `Set#delete` is O(1) performance and return self, why not just:
```ruby
>> Set[1, 2, nil, 3].delete(nil)
=> Set[1, 2, 3]
```
byroot (Jean Boussier)

12/18/2025

08:08 PM Ruby Bug #21793 (Closed): function name conflict of "mutex_trylock" on Solaris
Applied in changeset commit:git|fb1dd92d30a8df93f6fe2746aacc097f4c3ea62b.
----------
thread_sync.c: rename mutex_trylock internal function
[Bug #21793]
To fix a naming conflict on solaris.
byroot (Jean Boussier)
08:07 PM Ruby Revision fb1dd92d (git): thread_sync.c: rename mutex_trylock internal function
[Bug #21793]
To fix a naming conflict on solaris.
byroot (Jean Boussier)
07:57 PM Ruby Revision 57c4cd9a (git): thread_sync.c: eliminate GET_EC() from queue_do_pop
We receive the ec as argument, it's much cheaper to pass it
around that to look it up again.
byroot (Jean Boussier)
07:57 PM Ruby Revision bbc684d8 (git): thread_sync.c: simplify `check_array`
If the queue was allocated without calling initialize,
`ary` will be `0`.
byroot (Jean Boussier)
07:57 PM Ruby Revision 8cf4f373 (git): thread_sync.c: declare queue_data_type as parent of szqueue_data_type.
Allows to remove some duplicated code like szqueue_length, etc. byroot (Jean Boussier)
06:37 PM Ruby Revision 0e719239 (git): thread_sync: Mutex keep `rb_thread_t *` instead of `VALUE`
We never need the actual thread object and this avoid any issue
if the thread object is ever moved.
byroot (Jean Boussier)

12/17/2025

07:38 AM Ruby Feature #21788 (Open): Promote Thread::Monitor to a core class
`Monitor` is about as useful as `Mutex` and yet one is a core class and the other is a "stdlib" extension.
I propose to promote `Thread::Monitor` as a core class convenience.
### The rest of `monitor.rb`
The `monitor` stdlib als...
byroot (Jean Boussier)

Also available in: Atom