General

Profile

Eregon (Benoit Daloze)

  • Login: Eregon
  • Registered on: 07/30/2009
  • Last sign in: 12/02/2025

Issues

open closed Total
Assigned issues 1 61 62
Reported issues 22 192 214

Projects

Project Roles Registered on
Ruby Committer 08/02/2012

Activity

Today

02:58 PM Ruby Revision 965ae7f3 (git): Fix typo in Fiber.[] docs
Eregon (Benoit Daloze)
01:38 PM Ruby Revision 9865048a (git): [ruby/timeout] Encapsulate adding a timeout Request
https://github.com/ruby/timeout/commit/cb2ba88fed Eregon (Benoit Daloze)
01:38 PM Ruby Revision b49ff7cc (git): [ruby/timeout] Make Timeout.timeout work in a trap handler on CRuby
* Fixes https://github.com/ruby/timeout/issues/17
https://github.com/ruby/timeout/commit/1a499a8f96
Eregon (Benoit Daloze)
01:05 PM Ruby Revision c678e1bd (git): [ruby/timeout] Revise Timeout.timeout docs and add a section about `ensure`
https://github.com/ruby/timeout/commit/7cfa5a6778 Eregon (Benoit Daloze)
01:05 PM Ruby Revision 46d8e6d9 (git): [ruby/timeout] Reset the interrupt mask when creating the Timeout thread
* Add tests related to Thread.handle_interrupt
* Fixes https://github.com/ruby/timeout/issues/41
https://github.com/ruby/timeout/commit/a52720e82a
Eregon (Benoit Daloze)

12/10/2025

09:43 PM Ruby Feature #21552: allow String.strip and similar to take a parameter similar to String.delete
Also in practice you'd probably want to use `sub!` to mutate in place if a big String.
That would avoid a copy, since CRuby doesn't do lazy substrings which don't share the same end.
Eregon (Benoit Daloze)
09:41 PM Ruby Feature #21552: allow String.strip and similar to take a parameter similar to String.delete
Eregon (Benoit Daloze) wrote in #note-9:
> but that sounds more like something that could/should be optimized in the regexp engine
To substantiate that:
```
$ ruby -rbenchmark/ips -e 'SPACES = ["\0", *("\t".."\r"), " "].join; TARGE...
Eregon (Benoit Daloze)
09:34 PM Ruby Feature #21552: allow String.strip and similar to take a parameter similar to String.delete
This sounds like a lot of complexity for one specific use-case, which already has a good solution with `sub`.
From the benchmarks, `lstrip("\0 \t-\r")` and `sub(/\A[\0\s]+/, "")` are pretty close.
`sub(/[\0\s]+\z/, "")` is slower tha...
Eregon (Benoit Daloze)
11:42 AM Ruby Revision 2b66fc76 (git): Fix typos in comment of rb_current_execution_context()
Eregon (Benoit Daloze)

12/09/2025

08:00 PM Ruby Misc #21770: Stop bumping RUBY_PATCHLEVEL in release versions
:+1: I don't think it has any usefulness anymore.
I do know of one usage of `RUBY_PATCHLEVEL`, for detecting if on a dev build or release version via `is_release = RUBY_PATCHLEVEL >= 0`.
Notably used in https://github.com/grpc/grpc/b...
Eregon (Benoit Daloze)

Also available in: Atom