Project

General

Profile

Activity

From 02/22/2025 to 02/28/2025

02/28/2025

10:14 PM Bug #21164: Performance Regression using --jit
Reinstalling Ruby resolved the issue.
Sorry for bothering you.
purbug28 (puni ru)
06:58 PM Bug #21164: Performance Regression using --jit
Thanks for updating the script. I still can't reproduce your issue.
```
$ chruby 3.3.7; ruby -v --disable-gems --ji...
k0kubun (Takashi Kokubun)
06:39 PM Bug #21164: Performance Regression using --jit
```ruby
# frozen_string_literal: true
require 'benchmark'
n = 200000
time = Benchmark.realtime do
c = Array....
purbug28 (puni ru)
05:40 PM Bug #21164 (Feedback): Performance Regression using --jit
To minimize the benchmarking noise, I suggest using `Benchmark.realtime` on the benchmarked code, or at least using `... k0kubun (Takashi Kokubun)
02:43 PM Bug #21164 (Feedback): Performance Regression using --jit
Ruby 3.4.2 --jit runs slower than no JIT, while Ruby 3.3.7 --jit runs faster.
```ruby
# frozen_string_literal: true...
purbug28 (puni ru)
08:21 PM Feature #15393: Add compilation flags to freeze Array and Hash literals
tenderlovemaking (Aaron Patterson) wrote:
> (Also I think maybe "frozen\_literals" would be a better name, but I don...
shan (Shannon Skipper)
01:00 PM Bug #21163: Inconsistencies in Kernel.Float compared to other number parsing methods
"0b10" and "0o10" are only handled by Integer
also Integer and to_i does have a base param
while Float and to_f ...
Hanmac (Hans Mackowiak)
12:13 PM Bug #21163 (Closed): Inconsistencies in Kernel.Float compared to other number parsing methods
Not sure if I consider the following points to be bugs, but they sure did surprise me:
Item 1: Hexadecimal is the ...
herwin (Herwin W)
11:04 AM Bug #20682 (Closed): Slave PTY output is lost after a child process exits in macOS
Applied in changeset commit:git|db4ea95219f045b8e855afae0b6d28027ec8d3eb.
----------
[Bug #20682] Add sleep 0.1 to s...
ono-max (Naoto Ono)
09:32 AM Revision db4ea952 (git): [Bug #20682] Add sleep 0.1 to stabilize flaky failures on macOS (#12829)
[Bug #20682] Add `sleep 0.1` to stabilize flaky failures on macOS ono-max (Naoto Ono)
08:02 AM Revision d6517a3d (git): Skip VS2022 17.13.x build
see https://github.com/ruby/ruby/pull/12830 hsbt (Hiroshi SHIBATA)
08:01 AM Revision 1ead1eb6 (git): Increase timeouts in Compilations actions to reduce intermittent failures (#12827)
Compilations actions are flaky and intermittently failing now. This run (https://github.com/ruby/ruby/actions/runs/13... ono-max (Naoto Ono)
07:43 AM Revision bc2311fc (git): * 2025-02-28 [ci skip]
git[bot]
07:43 AM Revision 16b298a3 (git): Skip VS2022 17.13.x build
see https://github.com/ruby/ruby/pull/12830 hsbt (Hiroshi SHIBATA)
07:43 AM Revision 7759263c (git): Visual Studio 2022 17.13.x couldn't build miniruby.exe. It prevents other PRs.
https://github.com/actions/runner-images/commit/e43209e1398efe7739e42509162b3187515b9359
```
user32.lib advapi32.lib...
hsbt (Hiroshi SHIBATA)
07:43 AM Revision 2e7f65ac (git): Skip VS2022 17.13.x build
see https://github.com/ruby/ruby/pull/12830 hsbt (Hiroshi SHIBATA)
07:14 AM Bug #21162: Regexp casefold mismatch for latin1 supplemental chars
Sounds like same as #16145. nobu (Nobuyoshi Nakada)
06:51 AM Revision 56f46e54 (git): Visual Studio 2022 17.13.x couldn't build miniruby.exe. It prevents other PRs.
https://github.com/actions/runner-images/commit/e43209e1398efe7739e42509162b3187515b9359
```
user32.lib advapi32.lib...
hsbt (Hiroshi SHIBATA)
06:06 AM Revision 98fc4568 (git): merge revision(s) 2b6fc9ea7212543a1be26768403f59c7a759b5ea: [Backport #21092]
[Bug #21092] Fallback variables after execonf has done
When reading from a dummy makefile, the global variab...
hsbt (Hiroshi SHIBATA)
04:33 AM Revision a6da77c9 (git): [ruby/openssl] ssl: fix tests using TLS 1.1 or older
Commit https://github.com/ruby/openssl/commit/aa7f03e18f26 broke test_minmax_version and test_fallback_scsv
on system...
rhenium (Kazuki Yamaguchi)
04:04 AM Bug #16145 (Closed): regexp match error if mixing /i, character classes, and utf8
Applied in changeset commit:git|a50fbc56a30a0665102781019029e9cf9ddb3576.
----------
Use mbuf instead of bitset for ...
mjrzasa (Maciek Rząsa)
03:55 AM Revision 42c0722f (git): [DOC] Fix the comment for RUBY_CONST_ID and rb_intern
RUBY_CONST_ID has never been deprecated; `rb_intern` is handy but it
is using non-standard GCC extensions and does no...
nobu (Nobuyoshi Nakada)
03:34 AM Revision 3294d3d4 (git): [rubygems/rubygems] Skip default gems executable example with Windows platform
https://github.com/rubygems/rubygems/commit/b4a8bda811 hsbt (Hiroshi SHIBATA)
03:34 AM Revision 0cac191c (git): [rubygems/rubygems] Update version for broken executables with default gems
https://github.com/rubygems/rubygems/commit/d2f90a81d9 hsbt (Hiroshi SHIBATA)
03:34 AM Revision 19bdcc8f (git): [rubygems/rubygems] Retry gracefully on blank partial response in compact index
https://github.com/rubygems/rubygems/commit/fafb9ae090 Martin Emde
03:34 AM Revision 223f37c0 (git): Improve tests for small UTF regex with case fold.
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org> mjrzasa (Maciek Rząsa)
03:34 AM Revision a50fbc56 (git): Use mbuf instead of bitset for character class for small UTF. Fixes #16145
mjrzasa (Maciek Rząsa)
12:28 AM Bug #21161 (Closed): Crash when locale is set to Turkish tr_TR.UTF-8
Applied in changeset commit:git|025832c3859c4369ed12ace13e35523bd04116fe.
----------
[ruby/prism] Use a locale-insen...
byroot (Jean Boussier)
12:28 AM Revision 025832c3 (git): [ruby/prism] Use a locale-insensitive version of tolower
[Bug #21161]
The `tolower` function provided by the libc is locale dependent
and can behave in ways you wouldn't exp...
byroot (Jean Boussier)

02/27/2025

10:15 PM Bug #21152: Enumerator's #size returned by Range#reverse_each raises an exception for endless Range
In 3.3 `each` does raise with this example:
```
Range.new(nil,1).each do |x|
p x
end
```
And `reverse_eac...
eileencodes (Eileen Uchitelle)
10:12 PM Bug #21152: Enumerator's #size returned by Range#reverse_each raises an exception for endless Range
This changed in https://github.com/ruby/ruby/pull/12301 to fix a similar bug.
`Range.new(nil, "a").size` also rais...
eileencodes (Eileen Uchitelle)
09:33 PM Bug #21162 (Closed): Regexp casefold mismatch for latin1 supplemental chars
Originally reported to joni repo with a possible fix here: https://github.com/jruby/joni/pull/20
From that PR:
...
headius (Charles Nutter)
05:18 PM Revision d4b8da66 (git): [ruby/openssl] ssl: refactor check_supported_protocol_versions
As reported in <https://github.com/ruby/ruby/pull/12823>,
check_supported_protocol_versions is unstable and occasiona...
rhenium (Kazuki Yamaguchi)
05:05 PM Feature #21160: Local return from proc
nobu (Nobuyoshi Nakada) wrote in #note-3:
> Why not rescue `LocalJumpError`?
That is definitely a better solution...
JustJosh (Joshua Stowers)
02:23 AM Feature #21160: Local return from proc
Why not rescue `LocalJumpError`?
```ruby
def self.fulfill_promise(promise_name, data)
puts "Fulfilling promise...
nobu (Nobuyoshi Nakada)
12:47 AM Feature #21160: Local return from proc
ufuk (Ufuk Kayserilioglu) wrote in #note-1:
> `next` isn't necessarily the correct thing to use here, `break` is:
...
JustJosh (Joshua Stowers)
12:04 AM Feature #21160: Local return from proc
`next` isn't necessarily the correct thing to use here, `break` is:
```ruby
foo = fulfills_promise :generate_large_...
ufuk (Ufuk Kayserilioglu)
05:04 PM Revision c0f3dcf7 (git): [ruby/openssl] digest: correct assert_equal usage in test_sha3
assert_equal accepts an expected value as the first argument.
https://github.com/ruby/openssl/commit/8faa1d89de
rhenium (Kazuki Yamaguchi)
05:04 PM Revision f5a74bd6 (git): [ruby/openssl] digest: always run SHA-3 and truncated SHA-2 tests
The "pend" are no longer necessary, as they work with all OpenSSL
variants we currently support. They were added in O...
rhenium (Kazuki Yamaguchi)
05:04 PM Revision 9994a957 (git): [ruby/openssl] ssl: manually craft invalid SAN extensions in tests
Starting with LibreSSL 3.5, OpenSSL::X509::ExtensionFactory refuses to
create SAN extensions that are not valid accor...
rhenium (Kazuki Yamaguchi)
05:01 PM Revision 244363b2 (git): [ruby/openssl] Use ENV["TEST_RUBY_OPENSSL_FIPS_ENABLED"] instead of OpenSSL::OPENSSL_FIPS.
As OpenSSL::OPENSSL_FIPS always returns true on OpenSSL >= 3.0.0, we cannot use
this constant as a flag to check whet...
Jun Aruga
05:00 PM Revision 5f2e0cb0 (git): Merge uri-1.0.3
hsbt (Hiroshi SHIBATA)
05:00 PM Revision 5653eb90 (git): Merge cgi-0.4.2
hsbt (Hiroshi SHIBATA)
03:41 PM Misc #21154 (Closed): Document or change Module#autoload?
jeremyevans0 (Jeremy Evans)
11:24 AM Misc #21154: Document or change Module#autoload?
Hi @mame.
My main motivation for starting this discussion was to 1) understand Ruby better, 2) bring some inconsis...
fxn (Xavier Noria)
03:28 PM Bug #21120 (Closed): Segmentation fault when running Rails with MN threads enabled on 3.4.1
jeremyevans0 (Jeremy Evans)
06:32 AM Bug #21120: Segmentation fault when running Rails with MN threads enabled on 3.4.1
luke-gru (Luke Gruber) wrote in #note-3:
> Thank you for the report. I have a few questions:
>
> 1) I ran your sc...
p8 (Petrik de Heus)
03:26 PM Feature #20202: Memoized endless method definitions
(I'm not a frequent user of this board, I hope it is okay to comment on a closed ticket)
I believe there is a sign...
systho (Philippe Van Eerdenbrugghe)
02:55 PM Bug #21104: Net::HTTP connections failing in Ruby >= 3.4.0 on macOS with Happy Eyeballs enabled
I am continuing to investigate this issue.
For those experiencing this problem, can you successfully run the followi...
shioimm (Misaki Shioi)
09:41 AM Bug #21104: Net::HTTP connections failing in Ruby >= 3.4.0 on macOS with Happy Eyeballs enabled
I'm able to reproduce this error as well I think.
``` shell
→ curl -Lks 'https://git.io/rg-ssl' | ruby
Here's yo...
LanikSJ (Ilan Erenstein)
02:33 PM Bug #21161: Crash when locale is set to Turkish tr_TR.UTF-8
Thanks for the quick response!
It does not happen with that command:
```
srbaker@geekopad:~> ruby -v
ruby 3.4...
srbaker (Steven Baker)
02:31 PM Bug #21161: Crash when locale is set to Turkish tr_TR.UTF-8
Does it happens with `LC_CTYPE=tr_TR.UTF-8 ruby --parser=parse.y -e "puts 42"` too?
I think it is because `pm_strn...
nobu (Nobuyoshi Nakada)
01:59 PM Bug #21161: Crash when locale is set to Turkish tr_TR.UTF-8
I have confirmed this does not affect any 3.x versions before 3.4. srbaker (Steven Baker)
01:37 PM Bug #21161 (Closed): Crash when locale is set to Turkish tr_TR.UTF-8
TL;DR this bug was reported in our tracker, and I'm pushing it upstream: https://bugzilla.opensuse.org/show_bug.cgi?i... srbaker (Steven Baker)
10:53 AM Revision 4f19f230 (git): Use erb for simple executable example
hsbt (Hiroshi SHIBATA)
10:50 AM Revision 921ca9d8 (git): Use syntax_suggest instead of erb executable.
erb is only working with Ruby 3.5dev. hsbt (Hiroshi SHIBATA)
07:55 AM Revision 2dff416f (git): Increase timeout in TestParallel testing to reduce flaky failures (#12822)
Currently, the following tests are flaky and failing intermittently, so I'm going to increase the timeout to improve ... ono-max (Naoto Ono)
07:24 AM Misc #21136 (Closed): [ANN] The update of branch maintainer for Ruby 3.2 to 3.4
hsbt (Hiroshi SHIBATA)
06:49 AM Revision 261f8023 (git): Move irb detection to top-level before(:each) block
hsbt (Hiroshi SHIBATA)
06:48 AM Misc #20661 (Closed): Stop retrying tests in `make test-all` command by default
Applied in changeset commit:git|48b6c60969e544d0b50e92bab10711d34fed9c27.
----------
[Misc #20661] Stop retrying tes...
ono-max (Naoto Ono)
06:48 AM Revision 3e8bf097 (git): Use erb executable instead of irb
hsbt (Hiroshi SHIBATA)
06:12 AM Revision 48b6c609 (git): [Misc #20661] Stop retrying tests in `make test-all` command by default (#11271)
[Misc #20661] Stop retrying tests in make test-all command by default ono-max (Naoto Ono)
04:33 AM Revision 8bc74431 (git): Update default gems list at 9cf5d20e5f355e2d355e3f5426080a [ci skip]
git[bot]
04:32 AM Revision 9cf5d20e (git): [ruby/cgi] Bump up v0.4.2
https://github.com/ruby/cgi/commit/ab84b7fe66 hsbt (Hiroshi SHIBATA)
04:32 AM Revision cdc55c24 (git): [ruby/cgi] Bump up 0.4.2.beta2
https://github.com/ruby/cgi/commit/8e6fb1041b hsbt (Hiroshi SHIBATA)
04:32 AM Revision 61060d34 (git): [rubygems/rubygems] Remove MD5 digesting of compact index responses
It has been over a year since the release, so let's stop MD5ing everything
https://github.com/rubygems/rubygems/comm...
Martin Emde
04:32 AM Revision 3e78a2f5 (git): [rubygems/rubygems] Improve error message when on read-only filesystems
If we fail to write the lockfile, give a better error.
https://github.com/rubygems/rubygems/commit/81a08d6eda
deivid (David Rodríguez)
04:32 AM Revision 0d62037f (git): [ruby/json] Ensure parser error snippets are valid UTF-8
Fix: https://github.com/ruby/json/issues/755
Error messages now include a snippet of the document
that doesn't parse...
byroot (Jean Boussier)
04:32 AM Revision 75f07afd (git): [ruby/uri] Use a fully qualified name in warning messages
Currently, some warning messages don't contain a `URI` like the following.
```ruby
warning: URI::ABS_URI is obsolete...
y-yagi (Yuji Yaginuma)
04:30 AM Revision 31bd669f (git): [ruby/uri] Fix the mention to removed `URI.escape/URI::Escape`
This was removed by #9.
https://github.com/ruby/uri/commit/fec924238f
y-yagi (Yuji Yaginuma)
04:07 AM Revision d31c15d8 (git): [DOC] Reference to the idiom from Array#sort
nobu (Nobuyoshi Nakada)
04:00 AM Revision 9394d208 (git): [DOC] Fix indentation
Not to make preceding paragraphs a code block. nobu (Nobuyoshi Nakada)
03:06 AM Bug #21159 (Closed): `Module#set_temporary_name` should freeze given name
Applied in changeset commit:git|931ac960b6d11937364b6c4e847fdd575ee67980.
----------
[Bug #21159] module names shoul...
nobu (Nobuyoshi Nakada)
02:11 AM Bug #21159: `Module#set_temporary_name` should freeze given name
https://github.com/ruby/ruby/pull/12819 nobu (Nobuyoshi Nakada)
02:07 AM Revision 931ac960 (git): [Bug #21159] module names should not be modifiable
nobu (Nobuyoshi Nakada)

02/26/2025

11:31 PM Feature #21160 (Open): Local return from proc
When writing DSL-style helper methods, I often store block arguments as procs to use as callbacks.
Using `return` in...
JustJosh (Joshua Stowers)
08:52 PM Revision 1b6fddf4 (git): [DOC] Tweaks for Hash#keep_if
burdettelamar (Burdette Lamar)
08:52 PM Revision 04e46bd7 (git): [DOC] Tweaks for Hash#key
burdettelamar (Burdette Lamar)
08:51 PM Revision 8dce1890 (git): [DOC] Tweaks for Hash#keys
burdettelamar (Burdette Lamar)
08:22 PM Bug #21159 (Closed): `Module#set_temporary_name` should freeze given name
I think it is preferable to freeze the name.
So `#set_temporary_name` should copy and freeze the name string.
``...
ko1 (Koichi Sasada)
04:21 PM Bug #21158 (Closed): Ractor using 'receive_if' sits in busy wait when there are skipped messages in the incoming queue
When using the conditional receive example from the Ractor documentation (either as a script, or within irb)... NeilW (Neil Wilson)
03:12 PM Feature #21157: Comparison operator <>
Tried an implementation: https://github.com/nobu/ruby/tree/ncmp nobu (Nobuyoshi Nakada)
02:40 PM Feature #21157: Comparison operator <>
nobu (Nobuyoshi Nakada) wrote in #note-4:
> I'm not sure what the last example means, maybe incomparable -> true?
...
lpogic (Łukasz Pomietło)
02:02 PM Feature #21157: Comparison operator <>
P3t3rU5 (Pedro Miranda) wrote in #note-3:
> comparison operator already exists it's `<=>`
>
> if you want a class...
lpogic (Łukasz Pomietło)
01:55 PM Feature #21157: Comparison operator <>
lpogic (Łukasz Pomietło) wrote:
> I propose introducing a comparison operator *<>* which would give the following re...
nobu (Nobuyoshi Nakada)
12:44 PM Feature #21157: Comparison operator <>
comparison operator already exists it's `<=>`
if you want a class to be comparable you just include the [Comparabl...
P3t3rU5 (Pedro Miranda)
12:21 PM Feature #21157: Comparison operator <>
I think that not having to create intermediate arrays and referencing the x coordinate when y is different would be a... lpogic (Łukasz Pomietło)
12:15 PM Feature #21157: Comparison operator <>
Isn't it easier to use sort_by instead? And then use an Array as Sorting Field?
```ruby
array.sort_by {|o| [o.y, ...
Hanmac (Hans Mackowiak)
12:06 PM Feature #21157 (Feedback): Comparison operator <>
I propose introducing a comparison operator *<>* which would give the following results:
```ruby
1 <> 2 # => -1
2 ...
lpogic (Łukasz Pomietło)
02:33 PM Bug #21104: Net::HTTP connections failing in Ruby >= 3.4.0 on macOS with Happy Eyeballs enabled
@radarek
Thank you very much for your cooperation.
Based on the information you provided, it seems almost certain tha...
shioimm (Misaki Shioi)
02:28 PM Revision 3bbb029d (git): [DOC] Tweaks for Hash#invert
burdettelamar (Burdette Lamar)
02:28 PM Revision 43a729b1 (git): [DOC] Tweaks for Hash#replace
burdettelamar (Burdette Lamar)
02:27 PM Revision a870419f (git): [DOC] Tweaks for Hash#inspect
burdettelamar (Burdette Lamar)
01:43 PM Feature #20953: Array#fetch_values vs #values_at protocols
I updated my draft PR with these clarifications. Review welcome. byroot (Jean Boussier)
10:19 AM Revision 9e5d68f0 (git): Merge cgi-0.3.7
hsbt (Hiroshi SHIBATA)
10:19 AM Revision 946907f2 (git): Merge uri-0.12.4
hsbt (Hiroshi SHIBATA)
09:49 AM Revision 35534fb9 (git): * 2025-02-26 [ci skip]
git[bot]
09:49 AM Revision ca7cc093 (git): Merge uri-0.12.4
hsbt (Hiroshi SHIBATA)
09:49 AM Revision b97108a6 (git): Merge cgi-0.3.7
hsbt (Hiroshi SHIBATA)
07:34 AM Revision 237ab21f (git): [ruby/cgi] Escape/unescape unclosed tags as well
https://github.com/ruby/cgi/commit/cd1eb08076
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
hsbt (Hiroshi SHIBATA)
07:34 AM Revision fc60a04d (git): [ruby/cgi] Use String#concat instead of String#+ for reducing cpu usage
https://github.com/ruby/cgi/commit/9907b76dad
Co-authored-by: "Yusuke Endoh" <mame@ruby-lang.org>
hsbt (Hiroshi SHIBATA)
07:13 AM Revision aa31c893 (git): Update default gems list at eac8b1197f65162233465e1c32e2ce [ci skip]
git[bot]
07:12 AM Revision eac8b119 (git): [ruby/uri] Bump up v1.0.3
https://github.com/ruby/uri/commit/3213f4a0f8 hsbt (Hiroshi SHIBATA)
07:08 AM Revision b407b6b5 (git): [ruby/uri] Fix merger of URI with authority component
https://hackerone.com/reports/2957667
https://github.com/ruby/uri/commit/2789182478
Co-authored-by: Nobuyoshi Nakad...
hsbt (Hiroshi SHIBATA)
07:08 AM Revision 57dcb4bb (git): [ruby/uri] Truncate userinfo with URI#join, URI#merge and URI#+
https://github.com/ruby/uri/commit/3675494839 hsbt (Hiroshi SHIBATA)
06:28 AM Misc #21154: Document or change Module#autoload?
Oohhh, now I understand! Thanks for explaining this.
I am also not familiar with how dev meetings are run, so we w...
fxn (Xavier Noria)
04:02 AM Misc #21154: Document or change Module#autoload?
> Why I don't show source code? Because this is not a ticket motivated by a need I have.
I see, you really do not ...
mame (Yusuke Endoh)
06:21 AM Revision 7d24e1d6 (git): Update default gems list at ae0853b5f5f4bf78c2bd9e34cad6e5 [ci skip]
git[bot]
06:20 AM Revision ae0853b5 (git): [ruby/cgi] Bump up 0.4.2.beta1
https://github.com/ruby/cgi/commit/3f5b4ed9e9 hsbt (Hiroshi SHIBATA)
03:50 AM Revision 0c9f149b (git): Launchable: Fix `launchable record session` command failures (#12810)
Currently, the `launchable record session` command is failing some workflows such as YJIT on macOS. This occurs becau... ono-max (Naoto Ono)
02:13 AM Revision 14192921 (git): Check LoadError first
The message from dlerror is not our concern. nobu (Nobuyoshi Nakada)
12:49 AM Bug #21151: IO and StringIO raise FrozenError even for read-only methods
StringIO situation is different, but for an IO to be read it has to be writable; thus can not be frozen. See what Op... shyouhei (Shyouhei Urabe)
12:09 AM Revision 2194e65a (git): Added assertion strings with Xcode 16.3 beta
hsbt (Hiroshi SHIBATA)

02/25/2025

10:18 PM Revision 6efd15a1 (git): [ruby/prism] Restore a comment for `Prism::Translation::Parser#initialize`
This restores the missing method comments in https://github.com/ruby/prism/pull/3479.
https://github.com/ruby/prism/...
koic (Koichi ITO)
09:43 PM Feature #21156: Prettier RUBY_DEBUG_LOG output in cruby
PR here: https://github.com/ruby/ruby/pull/12809
For those interested, I also created a simple vim syntax highlighte...
luke-gru (Luke Gruber)
09:39 PM Feature #21156 (Open): Prettier RUBY_DEBUG_LOG output in cruby
# Motivation
The easiest way I find for debugging ractor and thread scheduling issues is to look at the `RUBY_DEBU...
luke-gru (Luke Gruber)
06:09 PM Misc #21154: Document or change Module#autoload?
@mame I don't want anyone to waste their time, if you believe discussing this is so, please feel free to close.
I op...
fxn (Xavier Noria)
01:21 PM Misc #21154: Document or change Module#autoload?
It may also help to know that I am writing a book about Ruby constants, so it would be helpful to know if the documen... fxn (Xavier Noria)
01:13 PM Misc #21154: Document or change Module#autoload?
@mame I am showing a registered autoload whose `autoload?` does not return a file name. If proves the documentation i... fxn (Xavier Noria)
12:28 PM Misc #21154: Document or change Module#autoload?
I understood as follows: You want @matz to clarify the behavior around autoload under circular require patterns, but ... mame (Yusuke Endoh)
11:50 AM Misc #21154: Document or change Module#autoload?
@mame Let me put it all together:
Consider a script `foo.rb`:
```ruby
autoload :Foo, 'foo' # could be a dynamic cal...
fxn (Xavier Noria)
10:43 AM Misc #21154: Document or change Module#autoload?
Finally, this ticket was intentionally not categorized as "Bug", but it is "Misc". Because I do not know if there is ... fxn (Xavier Noria)
10:41 AM Misc #21154: Document or change Module#autoload?
You have also to take into account that in that example `const_added` is called, `Module#constants` lists `:Foo`, whi... fxn (Xavier Noria)
10:33 AM Misc #21154: Document or change Module#autoload?
Hi @mame, thank for your reply.
> No, not necessarily. The document says "if name is registered as autoload".
And th...
fxn (Xavier Noria)
10:17 AM Misc #21154: Document or change Module#autoload?
> Should that second line always return "foo"?
No, not necessarily. The document says "if name is registered as au...
mame (Yusuke Endoh)
10:05 AM Misc #21154: Document or change Module#autoload?
I would like you to learn how to write a bug report.
> the second line could evaluate to `nil`.
Please write a ...
mame (Yusuke Endoh)
05:11 PM Revision 044570fd (git): [ruby/prism] Fix merge mishap
Caused by https://github.com/ruby/prism/pull/3478 and https://github.com/ruby/prism/pull/3443
I also made the builde...
Earlopain (Earlopain _)
05:05 PM Revision 8d2be590 (git): [Bug #21153] Add missing op-assign to top const in `command_asgn`
It was defined in `arg` only; add that pattern to `command_asgn` as
well.
nobu (Nobuyoshi Nakada)
03:44 PM Revision 790b3858 (git): [ruby/prism] Add a custom builder class for the parser translator
I want to add new node types to the parser translator, for example `itblock`. The bulk of the work is already done by... Earlopain (Earlopain _)
03:41 PM Revision 2c3d2415 (git): [ruby/prism] Support custom parser in `Prism::Translation::Parser`
Follow-up to https://github.com/Shopify/ruby-lsp/pull/1849.
This is an extension of `Prism::Translation::Parser` to ...
koic (Koichi ITO)
09:49 AM Feature #21105: Improve Ruby Stack Trace to Include Exact Error Position (Column Number)
@ennder Which Ruby version are you using? As @eregon said, a recent version of Ruby should show which error it was, a... mame (Yusuke Endoh)
08:28 AM Bug #21153: ::Foo ||= p 1 should parse
The backport patch to 3.4 is https://github.com/ruby/ruby/pull/12805 nobu (Nobuyoshi Nakada)
06:36 AM Revision e0c0e061 (git): Skip fiddle assertions if fiddle is not available
hsbt (Hiroshi SHIBATA)
06:36 AM Revision 158e4cc4 (git): [rubygems/rubygems] Improve log message about adding a new platform
This message is printed when running `bundle lock --add-platform`. This
command affects the lockfile, not the gemfile...
deivid (David Rodríguez)
06:36 AM Revision 52847192 (git): [rubygems/rubygems] Refactor handling platform removals
And make it consistent with platform additions.
https://github.com/rubygems/rubygems/commit/64342ae404
deivid (David Rodríguez)
06:36 AM Revision 8b952e64 (git): [rubygems/rubygems] Improve log message when resolving due to local platform not in lockfile
Current it says "you added a new platform to your gemfile", but that's
not actually the case here.
https://github.co...
deivid (David Rodríguez)
06:36 AM Revision 71f0c374 (git): [rubygems/rubygems] Modify `bundle doctor` to not report issue when files aren't writable:
- ### Problem
Running `bundle doctor` warn about files that aren't writable.
This makes the output of `bundle do...
Edouard CHIN
06:36 AM Revision b7c87ccd (git): [rubygems/rubygems] Added fiddle dependency for TestGemExtCargoBuilder
https://github.com/rubygems/rubygems/commit/a7c6696ffd hsbt (Hiroshi SHIBATA)
06:36 AM Revision ea8b0017 (git): [ruby/strscan] Enable tests passing on TruffleRuby
(https://github.com/ruby/strscan/pull/144)
Changes:
- enabled tests passing on TruffleRuby
- removed `truffleruby` a...
andrykonchin (Andrew Konchin)
06:36 AM Revision 018943ba (git): [ruby/strscan] Fix a bug that inconsistency of IndexError vs nil for
unknown capture group
(https://github.com/ruby/strscan/pull/143)
Fix https://github.com/ruby/strscan/pull/139
Repor...
naitoh (Jun NAITOH)
06:36 AM Revision 36ab247e (git): [ruby/strscan] Fix a bug that scanning methods that don't use Regexp
don't clear named capture groups
(https://github.com/ruby/strscan/pull/142)
Fix https://github.com/ruby/strscan/pull...
naitoh (Jun NAITOH)
03:38 AM Revision 021ccbf7 (git): [ruby/pp] Ensure the thread local state is always set up.
(https://github.com/ruby/pp/pull/38)
https://github.com/ruby/pp/commit/5b5d483ac2
Samuel Williams
03:37 AM Revision d32fa528 (git): Prefer `0.000001` over `0.000001f` for timeout calculations. (#12803)
Samuel Williams
01:29 AM Revision 3198b46a (git): s/TERMINTOR/TERMINATOR/
ydah (Yudai Takada)
12:27 AM Revision 8749a131 (git): [DOC] Tweaks for Hash#include?
burdettelamar (Burdette Lamar)
12:27 AM Revision 0615df2a (git): [DOC] Tweaks for Hash#hash
burdettelamar (Burdette Lamar)
12:26 AM Revision 19f7961e (git): [DOC] Tweaks for Hash#flatten
burdettelamar (Burdette Lamar)

02/24/2025

11:30 PM Revision aa7b5e2d (git): [ruby/mmtk] Trigger forced GC in GC.start
We now use `MMTK::handle_user_collection_request(true, ...)` to force
triggering a GC instead of enabling GC temporar...
wks (Kunshan Wang)
06:58 PM Bug #21120: Segmentation fault when running Rails with MN threads enabled on 3.4.1
Thank you for the report. I have a few questions:
1) I ran your script a few times and never encountered an error. D...
luke-gru (Luke Gruber)
05:35 PM Misc #20652: Memory allocation for gsub has increased from Ruby 2.7 to 3.3
Sorry, I wasn't clear. The allocation is eluded if the previous MatchData wasn't accessed. If it was, I'm afraid ther... byroot (Jean Boussier)
05:33 PM Misc #20652: Memory allocation for gsub has increased from Ruby 2.7 to 3.3
The commit says the issue is partially fixed, but I made a followup that elide the MatchData allocation in almost eve... byroot (Jean Boussier)
05:32 PM Misc #20652 (Closed): Memory allocation for gsub has increased from Ruby 2.7 to 3.3
Applied in changeset commit:git|87f9c3c65e38fa3e5c6ef097e2cf63ff448f48d6.
----------
String#gsub! Elide MatchData al...
byroot (Jean Boussier)
05:32 PM Bug #21153 (Closed): ::Foo ||= p 1 should parse
Applied in changeset commit:git|21ac0a3a640a2a86e8716675f82221f178e29088.
----------
[Bug #21153] Add missing op-ass...
nobu (Nobuyoshi Nakada)
05:32 PM Revision 97e6ad49 (git): Reuse the backref if it isn't marked as busy.
[Misc #20652] byroot (Jean Boussier)
05:32 PM Revision 87f9c3c6 (git): String#gsub! Elide MatchData allocation when we know it can't escape
In gsub is used with a string replacement or a map that doesn't
have a default proc, we know for sure no code can cau...
byroot (Jean Boussier)
05:18 PM Feature #21155: File scoped namespace declarations as in C#
Hanmac (Hans Mackowiak) wrote in #note-2:
> @artur86 the difference between these two are the module nesting
>
> ...
artur86 (Artur *)
02:59 PM Feature #21155: File scoped namespace declarations as in C#
@artur86 the difference between these two are the module nesting
See this doku about this: https://ruby-doc.org/3....
Hanmac (Hans Mackowiak)
11:33 AM Feature #21155 (Open): File scoped namespace declarations as in C#
Given there is a file with a class that needs to be namespaced. There are basically two options currently.
`module...
artur86 (Artur *)
02:20 PM Revision 21ac0a3a (git): [Bug #21153] Add missing op-assign to top const in `command_asgn`
It was defined in `arg` only; moved that pattern to `op_asgn` rule to
share it with `command_asgn`.
nobu (Nobuyoshi Nakada)
09:47 AM Revision c27f433d (git): Fix RUBY_PAGER in manpage
etienne (Étienne Barrié)
09:44 AM Revision 5cf14639 (git): Merge NODE_LINE and NODE_ENCODING cases in cond0 function
NODE_LINE and NODE_ENCODING cases are used SWITCH_BY_COND_TYPE macro that is same to NODE_INTEGER and other cases.
NO...
S_H_ (Shun Hiraoka)
12:12 AM Bug #21104: Net::HTTP connections failing in Ruby >= 3.4.0 on macOS with Happy Eyeballs enabled
shioimm (Misaki Shioi) wrote in #note-5:
> If possible, could you run these and let me know the results?
>
> - Ch...
radarek (Radosław Bułat)

02/23/2025

08:37 AM Misc #21035: Clarify or redefine Module#autoload? and Module#const_defined?
Yes, you are not meant to edit others comments, it's just that each comment can contain one or more tickets. byroot (Jean Boussier)
08:30 AM Misc #21035: Clarify or redefine Module#autoload? and Module#const_defined?
Thanks @byroot! I see there is only one comment with a series of tickets, but I cannot edit that comment. Should I wr... fxn (Xavier Noria)
08:25 AM Misc #21035: Clarify or redefine Module#autoload? and Module#const_defined?
See: https://bugs.ruby-lang.org/issues/21134 byroot (Jean Boussier)
08:22 AM Misc #21035: Clarify or redefine Module#autoload? and Module#const_defined?
I have tried to formulate a more narrowed question in https://bugs.ruby-lang.org/issues/21154.
@eregon How to add ...
fxn (Xavier Noria)
08:15 AM Misc #21154 (Feedback): Document or change Module#autoload?
The documentation of `Module#autoload?` says
> Returns filename to be loaded if name is registered as autoload in ...
fxn (Xavier Noria)
01:37 AM Revision dfc25204 (git): [doc] update Time document.
akr (Akira Tanaka)
01:28 AM Bug #21153 (Closed): ::Foo ||= p 1 should parse
There is an inconsistency between how `Foo` and `::Foo` are handled:
```console
% ./miniruby --parser=parse.y -e ...
qnighy (Masaki Hara)

02/22/2025

11:47 PM Bug #21152 (Closed): Enumerator's #size returned by Range#reverse_each raises an exception for endless Range
I've noticed a change between 3.3 and 3.4 in a way how `Range#reverse_each` behaves:
Ruby 3.3:
```ruby
Range.n...
andrykonchin (Andrew Konchin)
03:11 PM Revision fd882fb6 (git): [ruby/openssl] test_ssl_session.rb: test adjustments to work with AWS-LC
The SSL SESSION files we were originally testing against use DHE and
SSLv3. AWS-LC happens to have no support for eit...
sachiang (Samuel Chiang)
03:11 PM Revision 7a15ba48 (git): [ruby/openssl] ssl: account for slight behavioral differences in AWS-LC
There are a few SSL discrepencies in AWS-LC when compared to OpenSSL.
1. AWS-LC has slightly different error message...
sachiang (Samuel Chiang)
03:11 PM Revision 4ec0e9e2 (git): [ruby/openssl] pkey/ec: AWS-LC disallows serialization of explicit curves
https://github.com/ruby/openssl/commit/65c5a772ea sachiang (Samuel Chiang)
03:11 PM Revision 23465d84 (git): [ruby/openssl] pkey/dh: tweak break tests for AWS-LC
We reecently tweaked some break tests in test_pkey_dh.rb due to
different behavior with OpenSSL in FIPS mode.
AWS-LC ...
sachiang (Samuel Chiang)
03:11 PM Revision 841d9f25 (git): [ruby/openssl] pkey: EVP_DigestVerify doesn't return -1 in AWS-LC
EVP_DigestVerify in OpenSSL returns 0 to indicate a signature
verification failure and can return -1 to indicate oth...
sachiang (Samuel Chiang)
03:11 PM Revision f63a1236 (git): [ruby/openssl] pkey: AWS-LC disallows parsing of invalid keys and params
OpenSSL allows invalid EC keys or DH params to be parsed. The consuming
application can then run parameter/key checks...
sachiang (Samuel Chiang)
03:11 PM Revision 6263d0d1 (git): [ruby/openssl] test_pkcs7.rb: skip AWS-LC's unsupported features
1. AWS-LC has no support for SMIME with PKCS7. That may change in the
near future, so I've marked that with "pend"...
sachiang (Samuel Chiang)
03:11 PM Revision b995eee8 (git): [ruby/openssl] asn1: adjusting an ASN1 test to use CONTEXT_SPECIFIC
AWS-LC's ASN1 parsing capabilities led to us examine some of our
ASN1 tests. One test in test_asn1.rb happens to use ...
sachiang (Samuel Chiang)
03:11 PM Revision c4a39d6e (git): [ruby/openssl] test_config.rb: skip AWS-LC's unsupported features
AWS-LC has a few minor functionalities removed from NCONF_get_string.
1. Expanding of $foo to a previously-parsed va...
sachiang (Samuel Chiang)
03:11 PM Revision ee5af886 (git): [ruby/openssl] test_bn.rb: AWS-LC does not support BN::CONSTTIME
AWS-LC does not support BN_FLG_CONSTTIME due to its historically
inconsistent constant-time guarantees.
https://gith...
sachiang (Samuel Chiang)
03:11 PM Revision f14995e2 (git): [ruby/openssl] test_pkcs12.rb: don't use KEY_EX/SIG with AWS-LC
AWS-LC does not support the KEY_SIG or KEY_EX flags that were only ever
supported by old MSIE.
https://github.com/ru...
sachiang (Samuel Chiang)
03:11 PM Revision 6f3bd376 (git): [ruby/openssl] test_fips.rb: account for AWS-LC's FIPS mode
AWS-LC's FIPS mode is decided at compile time. FIPS in AWS-LC can't be
toggled on and off like OpenSSL, so tests that...
sachiang (Samuel Chiang)
03:03 PM Bug #21104: Net::HTTP connections failing in Ruby >= 3.4.0 on macOS with Happy Eyeballs enabled
@radarek
Thank you for your additional report.
I would like to determine how to address this issue, but unfortuna...
shioimm (Misaki Shioi)
10:14 AM Revision d6f44535 (git): [DOC] Fix a typo
nobu (Nobuyoshi Nakada)
01:29 AM Revision b17f984e (git): [doc] Time class document updated.
akr (Akira Tanaka)
01:09 AM Revision 4963d393 (git): Add description for Socket::Ifaddr#flags.
akr (Akira Tanaka)
 

Also available in: Atom