Project

General

Profile

Activity

From 07/25/2024 to 07/31/2024

07/31/2024

11:23 PM Revision bbeebc92 (git): Only set shape id for CCs on attr_set + ivar
Only ivar reader and writer methods should need the shape ID set on the
inline cache. We shouldn't accidentally over...
tenderlovemaking (Aaron Patterson)
08:50 PM Revision 16b02428 (git): [ruby/rdoc] Add new ruby parser that uses Prism
(https://github.com/ruby/rdoc/pull/1144)
* Add a new ruby parser RDoc::Parser::PrismRuby
* Add a new ruby parser te...
tompng (tomoya ishida)
08:37 PM Revision e68e9582 (git): [PRISM] Increase test-bundler-parallel to 40 minutes
It's timing out frequently recently, so increasing the timeout should
fix it.
peterzhu2118 (Peter Zhu)
08:09 PM Revision f5d193d5 (git): [DOC] Adds "Further Considerations" to documentation_guide.md (#11281)
burdettelamar (Burdette Lamar)
08:04 PM Revision cc814372 (git): Rewrite Array.new documentation
Use plain paragraphs instead of a nested unordered list.
Remove some examples, including examples that produce warni...
jeremyevans (Jeremy Evans)
08:03 PM Revision 290089c1 (git): [rubygems/rubygems] Remove some `file_uri_for` calls
https://github.com/rubygems/rubygems/commit/3570ba20ed deivid (David RodrΓ­guez)
06:47 PM Revision 63583974 (git): Fix leak of AST when Ripper#compile_error jumps
For example, the following script leaks:
class MyRipper < Ripper
def initialize(src, &blk)
super(s...
peterzhu2118 (Peter Zhu)
02:51 PM Revision 70b4f45d (git): YJIT: Decouple Context from encoding details (#11283)
k0kubun (Takashi Kokubun)
02:36 PM Revision 27c22f82 (git): [ruby/rdoc] Drop unnecessary `file_name` parameter from `Parser.for`
method.
(https://github.com/ruby/rdoc/pull/1135)
* Unify top_level creation in tests
* Remove unnecessary file_name...
st0012 (Stan Lo)
01:20 PM Revision 12a5400a (git): [ruby/io-console] Remove no longer used variable
https://github.com/ruby/io-console/commit/651797ff8a nobu (Nobuyoshi Nakada)
12:38 PM Bug #20659: Speed regression of `parse.y` parser after numeric nodes were introduced
Some light profiling shows that this workload spends over half of its time in `Kernel#require`. I don't think it's co... alanwu (Alan Wu)
03:34 AM Bug #20659: Speed regression of `parse.y` parser after numeric nodes were introduced
Just a simple curiosity, I am not sure how the change will affect the performance so much. Does mail gem use `eval` a... mame (Yusuke Endoh)
02:37 AM Bug #20659 (Assigned): Speed regression of `parse.y` parser after numeric nodes were introduced
mame (Yusuke Endoh)
11:27 AM Misc #20658: Dropping the Arm Neoverse (Ubuntu) server on RubyCI
> Remove the content about the "Ubuntu arm neoverse" on our Wiki page.
Updated [the wiki page](https://github.com/...
jaruga (Jun Aruga)
07:00 AM Revision dedc4965 (git): Update bundled gems list as of 2024-07-30
git[bot]
05:14 AM Feature #20525: Percent string literal with indentation support or String#dedent
Actually this looks decent:
```rb
Markdown ~{
# Hi!
This is markdown
}
```
bradgessler (Brad Gessler)
02:32 AM Feature #20525: Percent string literal with indentation support or String#dedent
Why not `<<~"}"` ? shyouhei (Shyouhei Urabe)
02:52 AM Feature #20612: Introduce new Epsilon (no-op) GC
eightbitraptor (Matthew Valentine-House) wrote in #note-2:
> 1. This will be used to write tests to help us improve ...
mame (Yusuke Endoh)
02:19 AM Revision 92865d87 (git): Remove files to build libffi in mswin
These files were to build libffi from the bundled source, but are no
longer used since we stopped bundling the libffi...
nobu (Nobuyoshi Nakada)
02:00 AM Feature #20563 (Closed): Drop support for old Windows
Applied in changeset commit:git|7ef8051cbbb7194a8899a3966130af2bc09fc896.
----------
[Feature #20563] Drop support f...
nobu (Nobuyoshi Nakada)
01:48 AM Feature #20563: Drop support for old Windows
Thanks @jeremyevans0 , we can drop Windows Server 2008 and 2012 at least.
FYI: There is no CI and development envi...
hsbt (Hiroshi SHIBATA)
12:57 AM Feature #20563 (Open): Drop support for old Windows
nobu (Nobuyoshi Nakada)
01:59 AM Revision 19ec8031 (git): Reset the counter for two consecutive runs
tagomoris (Satoshi Tagomori)
12:57 AM Revision 7aea269b (git): [Feature #20563] Drop support for Windows older than 8/Sever 2012
Directly call APIs available on Windows 8/Server 2012 and later. nobu (Nobuyoshi Nakada)
12:57 AM Revision 7ef8051c (git): [Feature #20563] Drop support for Windows older than Vista/2008
Directly call APIs available on Windows Vista/Server 2008 and later. nobu (Nobuyoshi Nakada)
12:23 AM Feature #20657 (Feedback): Allow Enumerable#map(&:method) and #each accept additional parameters for method
ukolovda (Dmitry Ukolov) wrote in #note-3:
> Oo, the ampersand is not language syntax, as I think before, but simple...
nobu (Nobuyoshi Nakada)

07/30/2024

08:31 PM Revision d2b8fd0f (git): [DOC] Tweaks to Array.try_convert (#11260)
burdettelamar (Burdette Lamar)
04:29 PM Bug #20659 (Closed): Speed regression of `parse.y` parser after numeric nodes were introduced
The [`mail` benchmark from yjit-bench][1] is about 20% slower on `master` compared to commit:98eeadc9 ("Development o... alanwu (Alan Wu)
04:05 PM Revision f85c7dea (git): Update RubyGems 3.5.16 and Bundler 2.5.16 for Ruby 3.3 (#11252)
* Merge RubyGems-3.5.12 and Bundler-2.5.12
* Merge RubyGems-3.5.13 and Bundler-2.5.13
* Merge RubyGems-3.5.14 and B...
hsbt (Hiroshi SHIBATA)
04:05 PM Revision 0922afa9 (git): [Bug #20654] Fix floor and ceil when ndigits is large (#11277)
* Fix floor when ndigits is large
[Bug #20654]
This commit fixes Integer#floor and Float#floor when the number is
n...
peterzhu2118 (Peter Zhu)
03:32 PM Misc #20652: Memory allocation for gsub has increased from Ruby 2.7 to 3.3
> I'd be surprised if it was accepted.
Same here. Although perhaps I should clarify that `$~` would be accessible ...
Dan0042 (Daniel DeLorme)
03:21 PM Misc #20652: Memory allocation for gsub has increased from Ruby 2.7 to 3.3
Right, so it's not as simple as marking the ISeq as not needing the backref because it doesn't use `getspecial`.
I...
byroot (Jean Boussier)
11:37 AM Misc #20652: Memory allocation for gsub has increased from Ruby 2.7 to 3.3
@byroot It depends in which situation but generally yes it's able to avoid the allocation.
If there is no block arou...
Eregon (Benoit Daloze)
05:25 AM Misc #20652: Memory allocation for gsub has increased from Ruby 2.7 to 3.3
> is there something in the semantic that make it impossible to predict?
Answering to myself:
```ruby
def matc...
byroot (Jean Boussier)
05:18 AM Misc #20652: Memory allocation for gsub has increased from Ruby 2.7 to 3.3
ko1 (Koichi Sasada) wrote in #note-16:
> No. It is not user visible behavior so no incompatiblity.
Sorry my wrong...
ko1 (Koichi Sasada)
02:58 PM Feature #20563: Drop support for old Windows
jeremyevans0 (Jeremy Evans) wrote in #note-3:
> Windows Server 2016 is not yet EOL, the EOL date is January 12, 2027...
nobu (Nobuyoshi Nakada)
02:39 PM Feature #20563: Drop support for old Windows
It seems that the import library in VisualStudio 2015 is missing the symbol that was introduced in Windows Server 201... nobu (Nobuyoshi Nakada)
02:16 PM Feature #20563: Drop support for old Windows
hsbt (Hiroshi SHIBATA) wrote in #note-2:
> @usa said "Windows Server 2016 is already EOL, we can drop them".
>
> ...
jeremyevans0 (Jeremy Evans)
06:38 AM Feature #20563 (Closed): Drop support for old Windows
@usa said "Windows Server 2016 is already EOL, we can drop them".
I also agreed to drop Windows Server 2008, 2012 ...
hsbt (Hiroshi SHIBATA)
02:32 PM Misc #20658 (Closed): Dropping the Arm Neoverse (Ubuntu) server on RubyCI
## Context
On July 26 2024, 4 days ago, the person at Arm sponsoring a SSH-accessing Arm server via Works on Arm p...
jaruga (Jun Aruga)
02:29 PM Bug #20571 (Closed): Compile error on for loop
nobu (Nobuyoshi Nakada)
12:49 AM Bug #20571: Compile error on for loop
After some additional work, I think this is an optimizer issue. With `--dump=i,-opt`, both parse.y and prism generat... jeremyevans0 (Jeremy Evans)
02:28 PM Bug #20651 (Closed): `false && (1 in 1)` produces argument stack underflow (-1)
nobu (Nobuyoshi Nakada)
02:09 PM Revision 91bb6afa (git): [DOC] Tweaks for Array.new (#11259)
burdettelamar (Burdette Lamar)
02:06 PM Revision b44a1549 (git): [DOC] Tweaks for Array#&
burdettelamar (Burdette Lamar)
02:04 PM Feature #20657: Allow Enumerable#map(&:method) and #each accept additional parameters for method
Oo, the ampersand is not language syntax, as I think before, but simple operator, converting Symbol to Proc. It is fi... ukolovda (Dmitry Ukolov)
01:53 PM Feature #20657: Allow Enumerable#map(&:method) and #each accept additional parameters for method
As @bkuhlmann mentioned, there's room for the language enhancement here to provide arguments to the method for a bloc... matz (Yukihiro Matsumoto)
01:04 PM Feature #20657: Allow Enumerable#map(&:method) and #each accept additional parameters for method
[Method Parameters And Arguments](https://alchemists.io/articles/ruby_method_parameters_and_arguments) are already co... bkuhlmann (Brooke Kuhlmann)
12:30 PM Feature #20657 (Feedback): Allow Enumerable#map(&:method) and #each accept additional parameters for method
I can use `#map` (or `#each`) with short method name, for example:
``` ruby
a = ["a1", "b1", "c1"]
b = a.map(&...
ukolovda (Dmitry Ukolov)
02:02 PM Revision 0dda30d9 (git): [rubygems/rubygems] Print a better debug message when lockfile does not include the current platform
https://github.com/rubygems/rubygems/commit/afb7a6d754 deivid (David RodrΓ­guez)
02:02 PM Revision 997642cf (git): [rubygems/rubygems] The `simulate_platform` helper can take a string
https://github.com/rubygems/rubygems/commit/680bafac1a deivid (David RodrΓ­guez)
02:02 PM Revision cf6efd1b (git): [rubygems/rubygems] Simplify logic to add current platform a bit
https://github.com/rubygems/rubygems/commit/e102516e27 deivid (David RodrΓ­guez)
02:01 PM Revision 1164b6a7 (git): [rubygems/rubygems] Fix `gem list` regression when a regular gem shadows a default one
Previously, if you have bundler installed both as a regular gem and a
default gem, the default gem would be displayed...
deivid (David RodrΓ­guez)
02:01 PM Revision 3d248b2e (git): [rubygems/rubygems] Always leave default gem executables around
https://github.com/rubygems/rubygems/commit/775c35e197 deivid (David RodrΓ­guez)
01:54 PM Revision ec13ccdf (git): [rubygems/rubygems] Allow smoother breaking changes in test env
https://github.com/rubygems/rubygems/commit/0fc3feae19 deivid (David RodrΓ­guez)
01:17 PM Bug #20654: Floor and ceil have unexpected behaviour when ndigits is large
I opened backport PRs.
3.3: https://github.com/ruby/ruby/pull/11277
3.2: https://github.com/ruby/ruby/pull/11278
peterzhu2118 (Peter Zhu)
12:49 PM Bug #20654 (Closed): Floor and ceil have unexpected behaviour when ndigits is large
Applied in changeset commit:git|3af2a7fbe12e11bac7b26bd991d3d02349f47295.
----------
Fix floor when ndigits is large...
peterzhu2118 (Peter Zhu)
01:02 PM Revision b37ffb93 (git): Move incorrectly placed tests
The tests for Integer#ceil was accidentally placed in test_truncate. peterzhu2118 (Peter Zhu)
12:56 PM Feature #20612: Introduce new Epsilon (no-op) GC
"Epsilon" is the term used by the JVM's no-op garbage collector: https://openjdk.org/jeps/318
I don't have a stron...
peterzhu2118 (Peter Zhu)
06:04 AM Feature #20612: Introduce new Epsilon (no-op) GC
Another question is about naming, "Epsilon" is common term for users? ko1 (Koichi Sasada)
12:36 PM Feature #20594: A new String method to append bytes while preserving encoding
duerst (Martin DΓΌrst) wrote in #note-17:
> This may need a completely separate issue, but when I introduced `String#...
Dan0042 (Daniel DeLorme)
08:03 AM Feature #20594: A new String method to append bytes while preserving encoding
Eregon (Benoit Daloze) wrote in #note-9:
> My understanding of `byte*` methods is they treat the String as a byte ...
duerst (Martin DΓΌrst)
12:21 PM Revision a7167d0c (git): Fix ceil when ndigits is large
[Bug #20654]
This commit fixes Integer#ceil and Float#ceil when the number is
negative and ndigits is large such tha...
peterzhu2118 (Peter Zhu)
12:21 PM Revision 3af2a7fb (git): Fix floor when ndigits is large
[Bug #20654]
This commit fixes Integer#floor and Float#floor when the number is
negative and ndigits is large such t...
peterzhu2118 (Peter Zhu)
07:22 AM Feature #20525: Percent string literal with indentation support or String#dedent
It conflicts with an existing syntax.
`%` plus a punctuation starts a string literal that ends with the punctuation.
nobu (Nobuyoshi Nakada)
07:18 AM Bug #20514 (Feedback): Open3#capture3 does not receive correct exit code from Heroku but Kernel#system does
Some process may behave differently with `Open3.capture3` and `system`, for example, a process that changes its behav... mame (Yusuke Endoh)
06:37 AM Bug #20501 (Assigned): ruby SEGV
mame (Yusuke Endoh)
06:31 AM Revision 1870505f (git): Fix wrong unreachable chunk remove when jump destination label is unremovable
tompng (tomoya ishida)
06:31 AM Bug #20655 (Closed): Calling continuation triggers ensure function of rb_ensure
Applied in changeset commit:git|c884db0b5b4f5296e5eacd27357b730b42f27b3a.
----------
[BUG #20655] Add tests to use r...
tagomoris (Satoshi Tagomori)
06:31 AM Revision 77f8107e (git): Delete the rjit definition already deleted in C
tagomoris (Satoshi Tagomori)
06:31 AM Revision 6c5c30b5 (git): Use tmpdir for various environments (including Windows)
tagomoris (Satoshi Tagomori)
06:31 AM Revision 50a0552b (git): Fix test code and extension to avoid using gvars and Kernel methods
tagomoris (Satoshi Tagomori)
06:31 AM Revision ac5ac48a (git): Revert 28a1c4f33e3349a98c04b8e068d9c674eb936064
28a1c4f33e3349a98c04b8e068d9c674eb936064 seems to call an improper
ensure clause. [Bug #20655]
Than fixing it properl...
mame (Yusuke Endoh)
06:31 AM Revision c884db0b (git): [BUG #20655] Add tests to use rb_ensure and call cont.call
tagomoris (Satoshi Tagomori)
05:14 AM Bug #20631: Build failure with Xcode 16 beta and macOS 15 (Sequoia) Beta
Xcode 16 beta 4 fixed the following issue.
>This line is broken with Xcode 16 beta.
>linking shared-object oj/int...
hsbt (Hiroshi SHIBATA)
03:58 AM Feature #20646 (Closed): Improve Socket.tcp
Applied in changeset commit:git|b3baa11ee90c3fc0a3c43f1ac3293558fbfe76cb.
----------
Improve Socket.tcp (#11187)
[F...
Anonymous
03:58 AM Revision b3baa11e (git): Improve Socket.tcp (#11187)
[Feature #20646]Improve Socket.tcp
This is a proposed improvement to `Socket.tcp`, which has implemented Happy Eyeba...
Misaki Shioi
03:48 AM Revision 7ea678b2 (git): Add array test cases for `TestParse#test_define_singleton_error`
yui-knk (Kaneko Yuichiro)
12:45 AM Revision ce565cd4 (git): [Bug #20653] Fix memory leak in String#start_with? when regexp times out (#11255)
Fix memory leak in String#start_with? when regexp times out
[Bug #20653]
This commit refactors how Onigmo handles t...
peterzhu2118 (Peter Zhu)

07/29/2024

11:54 PM Bug #20571: Compile error on for loop
I looked into this and was able to determine the underlying cause (currently on line 7844 of `compile.c`):
```c
A...
jeremyevans0 (Jeremy Evans)
11:37 PM Revision cdda284c (git): Bump ossf/scorecard-action from 2.3.3 to 2.4.0
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.3 to 2.4.0.
- [Release notes](https:...
dependabot[bot]
11:33 PM Revision 30f57637 (git): Wait for server threads to finish
nobu (Nobuyoshi Nakada)
11:24 PM Revision 0afbc73b (git): [rubygems/rubygems] Bump rb-sys
Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.98 to 0.9.99.
- [Release notes](https://github.com/oxid...
dependabot[bot]
09:29 PM Misc #20652: Memory allocation for gsub has increased from Ruby 2.7 to 3.3
> I'd be happier to see something like:
@Eregon given how good TruffleRuby is at escape analysis and such, before ...
byroot (Jean Boussier)
07:40 PM Misc #20652: Memory allocation for gsub has increased from Ruby 2.7 to 3.3
Dan0042 (Daniel DeLorme) wrote in #note-19:
> After reading over https://github.com/ruby/ruby/pull/4734/files it see...
jeremyevans0 (Jeremy Evans)
07:19 PM Misc #20652: Memory allocation for gsub has increased from Ruby 2.7 to 3.3
After reading over https://github.com/ruby/ruby/pull/4734/files it seems there's two parts to it.
1. use a `set_match...
Dan0042 (Daniel DeLorme)
05:39 PM Misc #20652: Memory allocation for gsub has increased from Ruby 2.7 to 3.3
byroot (Jean Boussier) wrote in #note-4:
> Maybe we could add a new Regexp flag to turn off this behavior?
My fir...
Dan0042 (Daniel DeLorme)
09:18 PM Revision 2c165531 (git): Revert moving things to Ruby
This is slowing down benchmarks on x86, so lets revert it for now. tenderlovemaking (Aaron Patterson)
08:26 PM Revision acbb8d4f (git): Expand opt_newarray_send to support Array#pack with buffer keyword arg
Use an enum for the method arg instead of needing to add an id
that doesn't map to an actual method name.
$ ruby --d...
Randy Stauner
06:29 PM Bug #20651: `false && (1 in 1)` produces argument stack underflow (-1)
https://github.com/ruby/ruby/pull/11267
I think this issue is same as https://bugs.ruby-lang.org/issues/20571
~~~...
tompng (tomoya ishida)
03:07 PM Revision 86a762ce (git): [ruby/reline] Fix memory leak in setupterm
(https://github.com/ruby/reline/pull/733)
The allocated Fiddle::Pointer never gets freed because it doesn't have a
f...
peterzhu2118 (Peter Zhu)
01:16 PM Revision 63bdf2d7 (git): [ruby/rdoc] [DOC] Mods about markup formats
(https://github.com/ruby/rdoc/pull/1143)
https://github.com/ruby/rdoc/commit/011de3f2fd
burdettelamar (Burdette Lamar)
01:15 PM Revision df1cc043 (git): Add remark about call-seq
burdettelamar (Burdette Lamar)
01:11 PM Revision 477f6725 (git): [DOC] rb_ary_s_create (#11256)
burdettelamar (Burdette Lamar)
03:31 AM Revision d2184e8d (git): Bump github/codeql-action from 3.25.14 to 3.25.15
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.25.14 to 3.25.15.
- [Release notes](http...
dependabot[bot]
03:31 AM Revision 14eb3860 (git): Bump ruby/setup-ruby from 1.188.0 to 1.190.0
Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.188.0 to 1.190.0.
- [Release notes](https://github...
dependabot[bot]
03:02 AM Bug #20088: Ruby 3.3.0 does not cross-complie on arm64-darwin
Thanks, I cherry-picked the revision to `ruby_3_3`.
Since this ticket wasn't flagged as a backport request, I also...
k0kubun (Takashi Kokubun)
02:56 AM Bug #20088: Ruby 3.3.0 does not cross-complie on arm64-darwin
ruby_3_3 commit:6d744837abc3f7f71a1f10c7ca399201f6f05e43. k0kubun (Takashi Kokubun)
02:56 AM Bug #20088 (Closed): Ruby 3.3.0 does not cross-complie on arm64-darwin
Applied in changeset commit:git|6d744837abc3f7f71a1f10c7ca399201f6f05e43.
----------
[Bug #20088] Fix ARCH_FLAG for ...
nobu (Nobuyoshi Nakada)
02:55 AM Revision 6d744837 (git): [Bug #20088] Fix ARCH_FLAG for cross compiling
nobu (Nobuyoshi Nakada)

07/28/2024

11:01 PM Revision 3f40ceba (git): Specify `LAST_NODE` for `NODE_DEFINED`
For example:
```
defined?(1)
```
Before:
```
# @ NODE_SCOPE (id: 2, line: 1, location: (1,0)-(1,11))
# +- nd_tbl: ...
yui-knk (Kaneko Yuichiro)
04:07 PM Bug #20088: Ruby 3.3.0 does not cross-complie on arm64-darwin
@k0kubun Can I ask for 2a4a8466 to be backported to 3.3? mdalessio (Mike Dalessio)
11:57 AM Misc #20652: Memory allocation for gsub has increased from Ruby 2.7 to 3.3
> I'm thinking cases of Regexps being stored in constants and potentially composed of other regexps/strings, like htt... byroot (Jean Boussier)
08:34 AM Bug #20655: Calling continuation triggers ensure function of rb_ensure
I guess https://github.com/ruby/ruby/pull/11264 will solve your issue. Could you give it a try with your patch? mame (Yusuke Endoh)
07:19 AM Feature #20656 (Feedback): Import Hash#except! from Active Support
willianveiga (Willian Veiga) wrote:
> For some unknown reason, Hash#except! was not imported on #8499. We have Hash#...
nobu (Nobuyoshi Nakada)

07/27/2024

11:03 PM Bug #20079: alexandria testsuite began to segfault recently
vo.x (Vit Ondruch) wrote in #note-13:
> This does not help testing with Ruby 3.3.2
Hmmm that's a bit surprising...
AMomchilov (Alexander Momchilov)
10:14 PM Feature #20656 (Feedback): Import Hash#except! from Active Support
For some unknown reason, Hash#except! was not imported on #8499. We have Hash#except, but we don't have the bang vers... willianveiga (Willian Veiga)
10:04 PM Misc #20652: Memory allocation for gsub has increased from Ruby 2.7 to 3.3
Eregon (Benoit Daloze) wrote in #note-14:
> ko1 (Koichi Sasada) wrote in #note-11:
> > I found an idea that each th...
ko1 (Koichi Sasada)
11:05 AM Misc #20652: Memory allocation for gsub has increased from Ruby 2.7 to 3.3
byroot (Jean Boussier) wrote in #note-9:
> I see what you mean, but such flag would only really be worth using in pla...
Eregon (Benoit Daloze)
10:58 AM Misc #20652: Memory allocation for gsub has increased from Ruby 2.7 to 3.3
ko1 (Koichi Sasada) wrote in #note-8:
> what does it happen when creating a thread just after storing `$~`?
It's ...
Eregon (Benoit Daloze)
07:09 AM Misc #20652: Memory allocation for gsub has increased from Ruby 2.7 to 3.3
Interestingly the NO_MATCH regexp options was suggested in the ticket that led to `Regexp#match?` [Feature #8110] byroot (Jean Boussier)
07:00 AM Misc #20652: Memory allocation for gsub has increased from Ruby 2.7 to 3.3
I don't follow, how can it be re-used in your example? :
```ruby
def foo
if /foo/ =~ "foo" # generate MatchDat...
byroot (Jean Boussier)
06:19 AM Bug #20655 (Closed): Calling continuation triggers ensure function of rb_ensure
The bug is reproduced when:
* `rb_ensure(func1, arg1, func2, arg2)` is called with arguments:
* func1: eventually...
tagomoris (Satoshi Tagomori)

07/26/2024

08:23 PM Bug #20635: Can't build fat binaries on Darwin (Mac OS X)
If you run `make V=1`, you can get the command which causes the SIGBUS. With that, you can run it under a debugger (n... alanwu (Alan Wu)
04:08 AM Bug #20635: Can't build fat binaries on Darwin (Mac OS X)
Apologies for the delay in responding. The two-factor authentication had me locked out of this site.
Regarding the ...
gsteemso (Gordon Steemson)
07:19 PM Feature #20625: Object#chain_of
@zverok do you think `Enumerator#chain_of?` would be useful as an specialization of `produce().take_while {!_1.nil?}`? matheusrich (Matheus Richard)
05:20 PM Revision e798f45c (git): Error when --with-shared-gc doesn't specify a directory
peterzhu2118 (Peter Zhu)
05:07 PM Revision a65c205a (git): [ruby/prism] Add explicit check for PRISM_HAS_NO_FILESYSTEM
https://github.com/ruby/prism/commit/89c22f0e6c katei (Yuta Saito)
05:07 PM Revision 1992bd31 (git): [ruby/prism] Fallback to pm_string_file_init on platforms without memory-mapped files
> ..., and on other POSIX systems we'll use `read`.
As `pm_string_mapped_init`'s doc comment says, it should fall ba...
katei (Yuta Saito)
05:04 PM Misc #20652: Memory allocation for gsub has increased from Ruby 2.7 to 3.3
I found an idea that each thread points to unescaped MatchData rather than `$~` and reuse it.
In other words, all gen...
ko1 (Koichi Sasada)
01:54 PM Misc #20652: Memory allocation for gsub has increased from Ruby 2.7 to 3.3
byroot (Jean Boussier) wrote in #note-9:
> > I don't really like a Regexp flag for this because a Regexp might be us...
austin (Austin Ziegler)
12:09 PM Misc #20652: Memory allocation for gsub has increased from Ruby 2.7 to 3.3
> I don't really like a Regexp flag for this because a Regexp might be used in different contexts and some usages mig... byroot (Jean Boussier)
12:05 PM Misc #20652: Memory allocation for gsub has increased from Ruby 2.7 to 3.3
Eregon (Benoit Daloze) wrote in #note-7:
> FWIW, what TruffleRuby does for this is to store `$~` as a frame-local th...
ko1 (Koichi Sasada)
11:09 AM Misc #20652: Memory allocation for gsub has increased from Ruby 2.7 to 3.3
FWIW, what TruffleRuby does for this is to store `$~` as a frame-local thread-local variable, but thread-local only i... Eregon (Benoit Daloze)
09:23 AM Misc #20652: Memory allocation for gsub has increased from Ruby 2.7 to 3.3
> it could be better if we had a gsub variant that doesn't touch $~.
Right, but the problem is beyond `gsub`, e.g....
byroot (Jean Boussier)
07:19 AM Misc #20652: Memory allocation for gsub has increased from Ruby 2.7 to 3.3
I agree this is counter-intuitive. The #17507 problem was that
```ruby
i = lambda { ...(touches $~)... }
many...
shyouhei (Shyouhei Urabe)
06:15 AM Misc #20652: Memory allocation for gsub has increased from Ruby 2.7 to 3.3
> If anyone can come up with an approach that fixes #17507 without causing an increase in memory usage
I guess I'...
byroot (Jean Boussier)
04:33 PM Misc #20628: DevMeeting-2024-08-01
* [Bug #20620] singleton_method undefined for module using "extend self" (jeremyevans0)
* I believe this is expect...
jeremyevans0 (Jeremy Evans)
03:55 PM Misc #20628: DevMeeting-2024-08-01
* [Feature #18368] Range#step semantics for non-Numeric ranges (zverok)
* The feature was approved a year ago by @...
zverok (Victor Shepelev)
03:13 PM Misc #20628: DevMeeting-2024-08-01
* [Feature #20590] Ensure `fork` isn't called when `raddrinfo`'s background thread is in `getaddrinfo` (byroot)
* ...
byroot (Jean Boussier)
03:44 PM Revision cb5c4605 (git): * expand tabs. [ci skip]
Please consider using misc/expand_tabs.rb as a pre-commit hook. git[bot]
03:44 PM Revision 158177e3 (git): Improve allocation throughput by outlining cache miss code path
Previously, GCC 11 on x86-64 inlined the heavy weight logic for
potentially triggering GC into newobj_alloc(). This s...
alanwu (Alan Wu)
03:44 PM Revision a06cfa7e (git): Fix a -Wmaybe-uninitialized
With the body of functions available, GCC noticed that lev is
uninitialized in rb_gc_vm_lock_no_barrier() in single r...
alanwu (Alan Wu)
03:44 PM Revision 0ada02ab (git): Put the default GC implementation back into gc.o
We discovered that having gc.o and gc_impl.o in separate translation
units diminishes codegen quality with GCC 11 on ...
alanwu (Alan Wu)
03:44 PM Revision cef959df (git): Delete unused rb_gc_impl_get_finalizers() not in gc_impl.h
alanwu (Alan Wu)
03:22 PM Revision aaa542d8 (git): Doc for some #ceil and #floor
burdettelamar (Burdette Lamar)
03:22 PM Revision 78f1b835 (git): Doc for some #ceil and #floor
burdettelamar (Burdette Lamar)
03:20 PM Feature #19993 (Closed): Optionally Free all memory at exit
alanwu (Alan Wu)
03:19 PM Bug #20654 (Closed): Floor and ceil have unexpected behaviour when ndigits is large
GitHub PR: https://github.com/ruby/ruby/pull/11257
There is unexpected behaviour in Integer#floor, Float#floor, In...
peterzhu2118 (Peter Zhu)
01:43 PM Bug #20653: Memory leak in String#start_with? when regexp times out
Ruby 3.3 backport PR: https://github.com/ruby/ruby/pull/11255 peterzhu2118 (Peter Zhu)
12:42 PM Bug #20653 (Closed): Memory leak in String#start_with? when regexp times out
Applied in changeset commit:git|7464514ca5e825ada31522b63a33e02d62a0a248.
----------
Fix memory leak in String#start...
peterzhu2118 (Peter Zhu)
01:37 PM Revision 0cc98ae3 (git): skip bundled gem rss test for a while.
nagachika (Tomoyuki Chikanaga)
12:42 PM Revision 7464514c (git): Fix memory leak in String#start_with? when regexp times out
[Bug #20653]
This commit refactors how Onigmo handles timeout. Instead of raising a
timeout error, onig_search will ...
peterzhu2118 (Peter Zhu)
12:16 PM Revision 67e1ea00 (git): [rubygems/rubygems] Remove inconsistent whitespace from CLI flags
RuboCop sometimes accepts extra spaces for alignment, but in this case I
don't see any consistent alignment.
https:/...
deivid (David RodrΓ­guez)
11:54 AM Revision 31d0f1a2 (git): bump patchlevel.
nagachika (Tomoyuki Chikanaga)
11:53 AM Revision 367ad505 (git): Revert "merge revision(s) 9f708d48f6df37ee9600db9d51b57a156609a13b,0301473fb523c71d8cdc4966971f31f502001185,7f0e26b7f99bf76408569892ce20318501f74729: [Backport #20516]"
This reverts commit 56c311aa0b20dee13ab43309ae3386f57f8cb797. nagachika (Tomoyuki Chikanaga)
09:41 AM Revision ae9a4351 (git): bump teeny
nagachika (Tomoyuki Chikanaga)
08:05 AM Revision bfaccd64 (git): [rubygems/rubygems] Make all tests still pass when switching from truffleruby to cruby
https://github.com/rubygems/rubygems/commit/4f3d9fa3bf deivid (David RodrΓ­guez)
08:05 AM Revision 7feccb12 (git): [rubygems/rubygems] Make test env resilient to ruby version changes
We use pre-existence of `rake_path` to decide whether we need to
regenerate dummy test gems in `tmp`. When changing r...
deivid (David RodrΓ­guez)
07:56 AM Revision 71dec15a (git): [rubygems/rubygems] Fix bundle check exit code when git gem is missing
Make `bundle check` exit with code 1 when gem git source is not yet
checked out.
https://github.com/rubygems/rubygem...
jeromedalbert (Jerome Dalbert)
06:20 AM Feature #20594: A new String method to append bytes while preserving encoding
Ok, so after thinking about this for a bit, I think a good name would be:
- `String#append_bytes(String) => self...
byroot (Jean Boussier)
02:57 AM Revision 3542ad52 (git): Bump github/codeql-action from 3.25.13 to 3.25.14
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.25.13 to 3.25.14.
- [Release notes](http...
dependabot[bot]
02:24 AM Revision 5f1eb0dc (git): Fix wrong conversion in disasm dump
`LINK_ELEMENT::type` is an `enum` not a `VALUE`, `FIX2LONG` doesn't
make sense.
nobu (Nobuyoshi Nakada)
01:58 AM Misc #20639: Request to host C API docs on docs.ruby-lang.org
I added <https://docs.ruby-lang.org/capi/en/master/> and link from <https://docs.ruby-lang.org/> to it. znz (Kazuhiro NISHIYAMA)
01:45 AM Revision 83a99bdb (git): [ruby/net-http] Removed needless NullWriter class
https://github.com/ruby/net-http/commit/ddb2a81aed hsbt (Hiroshi SHIBATA)
01:29 AM Revision 2c76bb7e (git): Remove `struct RNode_VALUES`
This was removed by a5cc6341c0688c346f70098652b2375c03df40aa. yui-knk (Kaneko Yuichiro)

07/25/2024

10:29 PM Revision f2728c33 (git): Change RESBODY Node structure
Extracrt exception variable into `nd_exc_var` field
to keep the original grammar structure.
For example:
```
begin
...
yui-knk (Kaneko Yuichiro)
07:50 PM Revision a4563be0 (git): [rubygems/rubygems] bundle-gem learns to find Gemfile template correctly
Removes the symlink for gems.rb.tt and instead uses the singular
template file. Only the destination filename for the...
Jason Karns
07:34 PM Bug #20653 (Closed): Memory leak in String#start_with? when regexp times out
GitHub PR: https://github.com/ruby/ruby/pull/11247
This commit refactors how Onigmo handles timeout. Instead of ra...
peterzhu2118 (Peter Zhu)
07:25 PM Revision 54ff3d69 (git): Fix test_kwarg_eval_memory_leak
Hash.new no longer takes keyword arguments except for capacity, so we
should just use a method that takes keyword arg...
peterzhu2118 (Peter Zhu)
06:59 PM Revision 24770c30 (git): [ruby/prism] Sync from ruby/ruby
https://github.com/ruby/prism/commit/280517c325 kddnewton (Kevin Newton)
04:46 PM Revision 83b0cedf (git): Add branch prediction annotations for object allocation
I get a slight boost from these with GCC 11 on Intel Skylake.
Part of a larger story to fix an allocation throughput...
alanwu (Alan Wu)
04:14 PM Revision 7571ad42 (git): [Bug #20650] Fix memory leak in Regexp capture group when timeout (#11244)
Fix memory leak in Regexp capture group when timeout
[Bug #20650]
The capture group allocates memory that is leaked...
peterzhu2118 (Peter Zhu)
02:18 PM Misc #20652: Memory allocation for gsub has increased from Ruby 2.7 to 3.3
It's expected that fixing #17507 caused memory usage to increase. If anyone can come up with an approach that fixes ... jeremyevans0 (Jeremy Evans)
11:13 AM Misc #20652: Memory allocation for gsub has increased from Ruby 2.7 to 3.3
@jeremyevans0 What do you think? mame (Yusuke Endoh)
10:11 AM Misc #20652 (Closed): Memory allocation for gsub has increased from Ruby 2.7 to 3.3
I recently upgraded from ruby 2.7.7 to 3.3.1 and noticed that the GC load increased.
When I used the allocation prof...
orisano (Nao Yonashiro)
01:54 PM Bug #20650: Memory leak in Regexp capture group when timeout
I opened a Ruby 3.3 backport here: https://github.com/ruby/ruby/pull/11244 peterzhu2118 (Peter Zhu)
01:23 PM Bug #20650 (Closed): Memory leak in Regexp capture group when timeout
Applied in changeset commit:git|10574857ce167869524b97ee862b610928f6272f.
----------
Fix memory leak in Regexp captu...
peterzhu2118 (Peter Zhu)
01:23 PM Revision 10574857 (git): Fix memory leak in Regexp capture group when timeout
[Bug #20650]
The capture group allocates memory that is leaked when it times out.
For example:
re = Regexp.new...
peterzhu2118 (Peter Zhu)
11:39 AM Revision 53f0d3b1 (git): [ruby/prism] Do not serialize common flags when PRISM_SERIALIZE_ONLY_SEMANTICS_FIELDS is set
* Note that we could shift the flags by 2 on serialize & deserialize
but it does not seems worth it as it does not ...
Eregon (Benoit Daloze)
11:39 AM Revision 9cc2747e (git): [ruby/prism] Do not serialize node_id when PRISM_SERIALIZE_ONLY_SEMANTICS_FIELDS is set
* $ bundle exec rake serialized_size:topgems
Before:
Total sizes for top 100 gems:
total source size: 90207647
t...
Eregon (Benoit Daloze)
07:46 AM Bug #20651 (Closed): `false && (1 in 1)` produces argument stack underflow (-1)
`false && (1 in 1)` and `true || (1 in 1)` produces argument stack underflow since ruby 3.0
~~~
# ruby -v
ruby 3...
tompng (tomoya ishida)
05:43 AM Revision 22ad6b24 (git): Extend RUBY_TEST_TIMEOUT_SCALE on macos-14 and --repeat-count=2
mame (Yusuke Endoh)
04:47 AM Revision 5f6a1c2e (git): Omit TestFile#test_stat when the machine is stupidly slow
GitHub Actions macos-14 machine is stupid.
https://app.launchableinc.com/organizations/ruby/workspaces/ruby/data/tes...
mame (Yusuke Endoh)
04:23 AM Revision 357ae357 (git): Dump forwarding field of `struct rb_args_info` and `struct RNode_BLOCK_PASS`
yui-knk (Kaneko Yuichiro)
 

Also available in: Atom