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

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)
10:37 AM Ruby Revision 99133a66 (git): [ruby/net-http] Check whether TCPSocket#initialize supports open_timeout once and without exceptions
* See discussion in https://github.com/ruby/net-http/pull/224
* This check is known to work on at least CRuby, TruffleRuby and JRuby.
* Exceptions show up with `ruby -d`/`$DEBUG == true` and would show for every Net::HTTP instance.
http...
Eregon (Benoit Daloze)
01:37 AM Ruby Revision 19172d64 (git): [ruby/rubygems] Fix indentation of the info message for default_cli_command
* It looked like:
In a future version of Bundler, running `bundle` without argument will no longer run `bundle install`.
Instead, the `cli_help` command will be displayed. Please use `bundle install` explicitly fo...
Eregon (Benoit Daloze)
01:37 AM Ruby Revision fab94ecd (git): [ruby/rubygems] Fix the config suggestion in the warning for `$ bundle`
* `install_or_cli_help` does not exist for older Bundler like Bundler 2
and so results in a confusing error on Bundler 2:
```
$ bundle
Could not find command "".
```
* See https://github.com/ruby/rubygems/pull/9136/files#r25923...
Eregon (Benoit Daloze)

12/08/2025

11:54 PM Ruby Revision 4cb3a61b (git): Fix Ractor test to not depend on the previous test
Eregon (Benoit Daloze)
11:54 PM Ruby Revision 007a70a1 (git): Test that Ractor.make_shareable mutates the original Proc
Eregon (Benoit Daloze)

Also available in: Atom