General

Profile

Eregon (Benoit Daloze)

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

Issues

open closed Total
Assigned issues 2 61 63
Reported issues 22 192 214

Projects

Project Roles Registered on
Ruby Committer 08/02/2012

Activity

12/11/2025

10:17 PM Ruby Bug #20314: Simultaneous Timeout expires may raise an exception after the block
I'll discuss solutions in https://github.com/ruby/timeout/issues/52.
I got an idea for a fix, but haven't had time to try it yet.
Eregon (Benoit Daloze)
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)

Also available in: Atom