Project

General

Profile

Activity

From 03/14/2024 to 03/20/2024

03/20/2024

11:53 PM Bug #20098: Wrong regexp match in ruby 3.2 and 3.3
ruby_3_3 7ae8abc23961bf4fa143a7a2cc0bc38167d468ae merged revision(s) bb59696614083660241ef272f222628cbfa95844. naruse (Yui NARUSE)
10:21 AM Bug #20098 (Closed): Wrong regexp match in ruby 3.2 and 3.3
naruse (Yui NARUSE)
11:27 PM Bug #20184: Ruby segfaults on Fly.io with 256 MB RAM
ruby_3_3 commit:53f0c5a4e8834f11af0f903d2c59754d9be2a7f2. naruse (Yui NARUSE)
11:19 PM Bug #20095: Regex lookahead behaving strangely in 3.3.0
ruby_3_3 commit:5f3dfa1c273c6fb9eae65ceca633b46f7e30f686. naruse (Yui NARUSE)
11:18 PM Bug #20212: Regex match method is crashing - (irb):6: [BUG] Segmentation fault at 0x0000000000000000 ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [x86_64-darwin22]
ruby_3_3 00cb72157a60c20a9b9d9fe81fc974ea83d672b4 merged revision(s) 3e6e3ca2627b1aa71b17de902cc1b8188246a828. naruse (Yui NARUSE)
11:17 PM Bug #20207: Segmentation fault for a regexp containing positive and negative lookaheads
ruby_3_3 00cb72157a60c20a9b9d9fe81fc974ea83d672b4 merged revision(s) 3e6e3ca2627b1aa71b17de902cc1b8188246a828. naruse (Yui NARUSE)
10:16 PM Revision 392dbe06 (git): Bump actions/cache from 4.0.1 to 4.0.2
Bumps [actions/cache](https://github.com/actions/cache) from 4.0.1 to 4.0.2.
- [Release notes](https://github.com/act...
dependabot[bot]
09:32 PM Revision af7bf9e0 (git): [ruby/prism] Provide options for reducing size
https://github.com/ruby/prism/commit/592128de4d kddnewton (Kevin Newton)
08:27 PM Feature #20384 (Closed): RubyVM::InstructionSequence.{new,compile} use --parser option
Right now we have `RubyVM::InstructionSequence.compile` and `RubyVM::InstructionSequence.compile_prism`. We introduce... kddnewton (Kevin Newton)
06:40 PM Feature #19057: Hide implementation of `rb_io_t`.
Re beauty of the implementation this change is more than that, we can see in https://github.com/ruby/ruby/pull/10283/... Eregon (Benoit Daloze)
01:02 PM Feature #19057: Hide implementation of `rb_io_t`.
ioquatix (Samuel Williams) wrote in #note-43:
> Here is the revert PR: https://github.com/ruby/ruby/pull/10283
Th...
mame (Yusuke Endoh)
06:32 PM Bug #20203: `TestEnumerable` test failures with GCC 14
I ran some benchmarks comparing the builtin `ruby_qsort()` and `qsort_r()` on macOS with an M1 chip and on Ubuntu 22.... alanwu (Alan Wu)
06:28 PM Revision 0e8b6c62 (git): [PRISM] Enable specs in CI
kddnewton (Kevin Newton)
05:13 PM Revision 00cb7215 (git): merge revision(s) 3e6e3ca2627b1aa71b17de902cc1b8188246a828: [Backport #20207] (#10299)
Correctly handle consecutive lookarounds (#9738)
Fix [Bug #20207]
Fix [Bug #20212]
Handling...
NARUSE, Yui
04:34 PM Bug #20228: Memory leak in Regexp timeout
ruby_3_3 c626c201e4129bbea17583ecef73472c6f668c81 merged revision(s) 01bfd1a2bf013a9ed92a9722ac5228187e05e6a8,1c120ef... naruse (Yui NARUSE)
04:34 PM Bug #20190: `invalid_encoding_string << number` should be valid encoding in some case, but does not
ruby_3_3 ce372be903e5f3597f1dc83cb558f165850b3bee merged revision(s) ade56737e2273847426214035c0ff2340b43799a. naruse (Yui NARUSE)
03:29 PM Revision 42386154 (git): YJIT: Get rid of Type::TProc (#10287)
k0kubun (Takashi Kokubun)
02:57 PM Feature #20351 (Closed): Optionally extract common GC routines into a DSO
**UPDATE: Based on feedback on the original PR (thank you @katei and @nobu) we have
changed our approach to this pro...
eightbitraptor (Matt V-H)
02:27 PM Revision e07441f0 (git): Make rb_aligned_malloc private
It is not used anywhere else. peterzhu2118 (Peter Zhu)
01:40 PM Revision c626c201 (git): merge revision(s) 01bfd1a2bf013a9ed92a9722ac5228187e05e6a8,1c120efe02d079b0a1dea573cf0fd7978d9cc857,31378dc0969f4466b2122d730b7298dd7004acdf: [Backport #20228] (#10301)
Fix memory leak in OnigRegion when match raises
[Bug #20228]
rb_reg_onig_match can raise a Regexp::...
NARUSE, Yui
01:40 PM Revision ce372be9 (git): merge revision(s) ade56737e2273847426214035c0ff2340b43799a: [Backport #20190] (#10300)
Fix coderange of invalid_encoding_string.<<(ord)
Appending valid encoding character can change coderange fro...
NARUSE, Yui
12:58 PM Bug #20209: YJIT can leak memory by retaining objects with singleton class
ruby_3_3 cdcabd8a44ee2f4a2b549a3460a5c77c2dffca36 merged revision(s) 2cc7a56e,b0711b1,db5d9429. naruse (Yui NARUSE)
12:53 PM Bug #20208: Net::HTTP errors with Errno::EAFNOSUPPORT when setting local_host with Addrinfo
ruby_3_3 606dd03e9b0d4cf65ef56e52fab063e3ed5ef797. naruse (Yui NARUSE)
12:48 PM Bug #20213: zsuper with keyword splat without explicit keywords incorrectly uses mutable keyword splat
ruby_3_3 69cee6fee50f63cd52d59325dc3780a6fc4e5ae2 merged revision(s) 771a2f039b9a059a73e8f111d1d46590fa697f63. naruse (Yui NARUSE)
12:48 PM Bug #20197: Postponed job invocations are significantly reduced in Ruby 3.3
ruby_3_3 0793cbbfde261f4fc9bf7045594d62a21e391811 merged revision(s) ef276858d9295208add48e27208c69184dc50472. naruse (Yui NARUSE)
12:48 PM Bug #20194: Memory leak with TracePoint on bmethod
ruby_3_3 23bfe6218a690bbde5143e26bc6fb243347fb4b3 merged revision(s) b14674b236445fb70f484603e678722760f678f4. naruse (Yui NARUSE)
11:44 AM Revision 6ecee4ec (git): [ruby/openssl] Revert "Always respect the openssl prefix chosen by truffle/openssl-prefix on TruffleRuby"
* This reverts commit https://github.com/ruby/openssl/commit/ca738e7e1357.
* No longer needed since https://github.co...
Eregon (Benoit Daloze)
11:20 AM Revision a008c568 (git): Avoid deprecation warnings in TestString
byroot (Jean Boussier)
11:05 AM Revision 69cee6fe (git): merge revision(s) 771a2f039b9a059a73e8f111d1d46590fa697f63: [Backport #20213] (#10297)
Fix incorrect use of VM_CALL_KW_SPLAT_MUT in zsuper with keyword splat
For zsuper calls with a keyword splat...
NARUSE, Yui
11:05 AM Feature #20349: Pattern Matching - Expose local variable captures
nobu (Nobuyoshi Nakada) wrote in #note-2:
> You look like just want a method to make this local variable hash, to me...
Eregon (Benoit Daloze)
08:32 AM Feature #20349: Pattern Matching - Expose local variable captures
baweaver (Brandon Weaver) wrote:
> PatternMatch.last_match.transform_values(&:source)
Your proposal is `PatternMa...
nobu (Nobuyoshi Nakada)
11:05 AM Revision 0793cbbf (git): merge revision(s) ef276858d9295208add48e27208c69184dc50472: [Backport #20197] (#10296)
Trigger postponed jobs on running_ec if that is available
Currently, any postponed job triggered from a non-...
NARUSE, Yui
11:05 AM Revision 23bfe621 (git): merge revision(s) b14674b236445fb70f484603e678722760f678f4: [Backport #20194] (#10295)
Memory leak with TracePoint on bmethod
[Bug #20194]
When disabling the TracePoint on bmethod, the h...
NARUSE, Yui
11:00 AM Revision 7ae8abc2 (git): merge revision(s) bb59696614083660241ef272f222628cbfa95844: [Backport #20098] (#10298)
Fix [Bug #20098]: set counter value for {n,m} repetition correctly (#9391) NARUSE, Yui
10:52 AM Feature #20350: Return chilled string from Symbol#to_s
+1, I was thinking the same yesterday, that we could revisit `Symbol#to_s` and have a proper deprecation before chang... Eregon (Benoit Daloze)
08:58 AM Feature #20350: Return chilled string from Symbol#to_s
To provide some data-point. Our monolith runs with https://github.com/Shopify/symbol-fstring, which makes the return ... byroot (Jean Boussier)
09:45 AM Bug #20153: Backport 7f9c174102 to fix --yjit-stats with RubyVM::YJIT.enable
Merged https://github.com/ruby/ruby/pull/9424 naruse (Yui NARUSE)
09:43 AM Bug #20214: Backport https://github.com/ruby/ruby/pull/9711 to fix exits on Ruby 3.3's new instruction
ruby_3_3 3f0e3ede02f7d4b31c9073c9eb912f11aa4349cd. naruse (Yui NARUSE)
09:35 AM Bug #19907 (Closed): Method calls with keyword arguments in eval leaks callcache and callinfo objects
Fixed by `1c97abaabae6844c861705fd07f532292dcffa74` and `081ee3d35509110f383cb7dd8d1205def0cdd1e8` byroot (Jean Boussier)
09:33 AM Bug #20348 (Closed): Memory leak with method kwargs in ERB template
Confirmed, this is a duplicate of [Bug #19907]. I'll make that one for backport. byroot (Jean Boussier)
09:25 AM Bug #20348: Memory leak with method kwargs in ERB template
I suspect it's https://github.com/ruby/ruby/pull/9973, trying to confirm. byroot (Jean Boussier)
03:12 AM Revision e5b585ba (git): Bump ruby/setup-ruby from 1.172.0 to 1.173.0
Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.172.0 to 1.173.0.
- [Release notes](https://github...
dependabot[bot]
02:45 AM Revision 3c92fce7 (git): Bump actions/cache in /.github/actions/setup/directories
Bumps [actions/cache](https://github.com/actions/cache) from 4.0.1 to 4.0.2.
- [Release notes](https://github.com/act...
dependabot[bot]
01:39 AM Revision aa2cdaa2 (git): [ruby/reline] Change rendered_screen.lines to non-nil
(https://github.com/ruby/reline/pull/650)
https://github.com/ruby/reline/commit/9685db55f1
tompng (tomoya ishida)
12:46 AM Feature #6317: Range#cover?の引数としてRangeインスタンスを受けられるようにして欲しい
@mame @naruse This currently works on Ruby. Can we close this as completed? matheusrich (Matheus Richard)
12:38 AM Feature #6337: FileUtils#sync
@trans I'm not sure I understand the proposal. Is this basically cloning the source dir with a different name? could ... matheusrich (Matheus Richard)
12:34 AM Misc #20336: DevMeeting-2024-04-17
* [Feature #5133] Array#unzip as an alias of Array#transpose
* Seems a more friendly name for this method (easier i...
matheusrich (Matheus Richard)
12:22 AM Feature #3731: Easier Embedding API for Ruby
@mame @ko1, is this still needed given that we have mruby? matheusrich (Matheus Richard)
12:21 AM Feature #6594: Integrated Functor
@mame Can we close this issue? matheusrich (Matheus Richard)

03/19/2024

11:12 PM Feature #8421: add Enumerable#find_map and Enumerable#find_all_map
zverok (Victor Shepelev) wrote in #note-4:
> @alexbarret There is a somewhat lesser-known trick which looks pretty cl...
alexbarret (Alexandre Barret)
11:08 PM Feature #8421: add Enumerable#find_map and Enumerable#find_all_map
jeremyevans0 (Jeremy Evans) wrote in #note-5:
> `find_map` seems like a bad name as there is no map. map implies call...
alexbarret (Alexandre Barret)
10:46 PM Feature #8421: add Enumerable#find_map and Enumerable#find_all_map
`find_map` seems like a bad name as there is no map. map implies calling the same function over all elements in a col... jeremyevans0 (Jeremy Evans)
08:50 PM Feature #8421: add Enumerable#find_map and Enumerable#find_all_map
@alexbarret There is a somewhat lesser-known trick which looks pretty close to your code:
```ruby
# proposal:
find...
zverok (Victor Shepelev)
08:38 PM Feature #8421: add Enumerable#find_map and Enumerable#find_all_map
Can we reconsider introducing `#find_map` please, especially since `#find_all_map` has been introduced as `#filter_ma... alexbarret (Alexandre Barret)
09:06 PM Feature #20350 (Closed): Return chilled string from Symbol#to_s
During Ruby 2.7 development there was an attempt to return a frozen string from Symbol#to_s (#16150#note-22)
This ...
Dan0042 (Daniel DeLorme)
08:52 PM Feature #16153 (Closed): eventually_frozen flag to gradually phase-in frozen strings
jeremyevans0 (Jeremy Evans)
08:47 PM Feature #16153: eventually_frozen flag to gradually phase-in frozen strings
This proposal is made redundant by #20205 chilled strings. Please close. Dan0042 (Daniel DeLorme)
08:37 PM Feature #20205: Enable `frozen_string_literal` by default
> it's debatable whether the benefit outweigh the maintenance burden long term.
Yeah, good point. And if truly nec...
Dan0042 (Daniel DeLorme)
07:00 PM Feature #20205: Enable `frozen_string_literal` by default
> Would it be possible to have a ruby API for chilled strings? Something like str.chill or String.chill(str)
It's ...
byroot (Jean Boussier)
05:17 PM Feature #20205: Enable `frozen_string_literal` by default
Thank you for this great feature!
Would it be possible to have a ruby API for chilled strings? Something like `str.c...
Dan0042 (Daniel DeLorme)
08:27 AM Feature #20205 (Closed): Enable `frozen_string_literal` by default
Applied in changeset commit:git|12be40ae6be78ac41e8e3f3c313cc6f63e7fa6c4.
----------
Implement chilled strings
[Fea...
etienne (Étienne Barrié)
08:01 PM Feature #20349: Pattern Matching - Expose local variable captures
This would make every pattern matching a lot slower which seems a big no-no performance wise.
I think that's enough ...
Eregon (Benoit Daloze)
05:58 PM Feature #20349 (Open): Pattern Matching - Expose local variable captures
In Regular Expressions we have the ability to utilize `Regexp.last_match` ([link](https://ruby-doc.org/3.2.2/Regexp.h... baweaver (Brandon Weaver)
06:14 PM Revision 0a107027 (git): [ruby/prism] Fix a diagnostic incompatibility
This PR fixes a diagnostic incompatibility when using no anonymous keyword rest parameter:
```ruby
foo(**)
```
Note...
koic (Koichi ITO)
06:13 PM Revision 72a613bc (git): [ruby/prism] Fix a diagnostic incompatibility for `Prism::Translation::Parser`
This PR fixes a diagnostic incompatibility for `Prism::Translation::Parser` when using constant argument:
```ruby
de...
koic (Koichi ITO)
05:59 PM Revision cbcb2d46 (git): [DOC] Unify Doxygen formats (#10285)
k0kubun (Takashi Kokubun)
02:39 PM Bug #20348: Memory leak with method kwargs in ERB template
This has been fixed in the master branch. However, I'm not sure which commit fixed it. jeremyevans0 (Jeremy Evans)
10:47 AM Bug #20348 (Closed): Memory leak with method kwargs in ERB template
Evaluating ERB templates with kwarg method calls leads to unbounded growth in memory use.
Example script:
```ru...
davidtaylorhq (David Taylor)
02:18 PM Revision 5c293773 (git): Update default gems list at d7bc6f0effa1531a12b5c6b6286805 [ci skip]
git[bot]
02:17 PM Misc #20279 (Closed): Is the implementation of `respond_to_missing?` in BasicObject documentation correct?
Applied in changeset commit:git|e127289632396f268099c9815a59bc7e7f13b3ec.
----------
[Bug #20279] [DOC] Update for `...
Anonymous
02:17 PM Revision d7bc6f0e (git): [ruby/reline] Reline 0.5.0.pre
(https://github.com/ruby/reline/pull/614)
* Re-architecture LineEditor's internal state and rendering
* Fix test re...
tompng (tomoya ishida)
12:49 PM Revision e1272896 (git): [Bug #20279] [DOC] Update for `BasicObject`
The current implementation raises on the call to super Earlopain (Earlopain _)
12:33 PM Feature #19057: Hide implementation of `rb_io_t`.
As an alternative (optional) course of action, I've released the latest head of unicorn as `unicorn-maintained` gem. ... ioquatix (Samuel Williams)
11:44 AM Feature #19057: Hide implementation of `rb_io_t`.
> From the reaction to this ticket, it is clear that forcing the "hide all the details" approach could destroy the Ru... Eregon (Benoit Daloze)
10:56 AM Feature #19057: Hide implementation of `rb_io_t`.
Here is the revert PR: https://github.com/ruby/ruby/pull/10283 ioquatix (Samuel Williams)
09:33 AM Feature #19057: Hide implementation of `rb_io_t`.
The simplest option right now is to revert this change and try again later.
@mame are there any other gems apart f...
ioquatix (Samuel Williams)
03:07 AM Feature #19057: Hide implementation of `rb_io_t`.
I agree with @mame. This change would break too many tests, apps, etc. We cannot accept the change at the moment.
Ca...
matz (Yukihiro Matsumoto)
02:35 AM Feature #19057: Hide implementation of `rb_io_t`.
Why don't you reconsider the "nested public interface" approach?
From the reaction to this ticket, it is clear tha...
mame (Yusuke Endoh)
09:10 AM Feature #20347 (Closed): Separate docs task from all
I would like to migrate RDoc as bundled gems at Ruby 3.5.
We need to handle `install-doc` and related task with th...
hsbt (Hiroshi SHIBATA)
08:26 AM Revision 12be40ae (git): Implement chilled strings
[Feature #20205]
As a path toward enabling frozen string literals by default in the future,
this commit introduce "c...
etienne (Étienne Barrié)
05:55 AM Revision 86b15316 (git): Bump github/codeql-action from 3.24.7 to 3.24.8
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.24.7 to 3.24.8.
- [Release notes](https:...
dependabot[bot]
03:05 AM Feature #20345: Add `--target-rbconfig` option to mkmf
Sounds nice. Go ahead.
Matz.
matz (Yukihiro Matsumoto)
02:36 AM Feature #20345: Add `--target-rbconfig` option to mkmf
Code to load the last one only.
```ruby
target_rbconfig = nil
ARGV.delete_if do |arg|
unless (opt = arg.d...
nobu (Nobuyoshi Nakada)
02:36 AM Feature #20345: Add `--target-rbconfig` option to mkmf
> It seems ambiguous when multiple --target-rbconfig options are given.
Nice catch, I prefer to respect the last o...
katei (Yuta Saito)
01:49 AM Feature #20345: Add `--target-rbconfig` option to mkmf
It seems ambiguous when multiple `--target-rbconfig` options are given.
Your patch uses the first one and leaves the...
nobu (Nobuyoshi Nakada)
12:27 AM Feature #20345: Add `--target-rbconfig` option to mkmf
+1 as well. shyouhei (Shyouhei Urabe)
02:56 AM Revision 59849fee (git): Bump actions/checkout from 4.1.1 to 4.1.2
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.1 to 4.1.2.
- [Release notes](https://github.c...
dependabot[bot]
02:17 AM Revision 6c18b247 (git): Update default gems list at 0985e587901a9039ee0f523d285ed3 [ci skip]
git[bot]
02:16 AM Revision 0985e587 (git): [ruby/resolv] Bump up 0.4.0
https://github.com/ruby/resolv/commit/44ae1e8531 hsbt (Hiroshi SHIBATA)
01:54 AM Revision ef0e08f3 (git): Don't replace doc url for vendored files
hsbt (Hiroshi SHIBATA)
01:30 AM Revision ce544f8d (git): [ruby/prism] [Compatibility] Improve printf format
For better compatibility, this patch suggests using __MINGW_PRINTF_FORMAT that GCC provides for MINGW environment.
h...
hasumikin (hitoshi hasumi)
01:27 AM Revision 6c1e8029 (git): [ruby/did_you_mean] Do not use #inspect to avoid unexpected performance degradation
closes https://github.com/ruby/did_you_mean/pull/100
https://github.com/ruby/did_you_mean/commit/bd11eefd6c
Yuki Nishijima

03/18/2024

08:39 PM Revision 3f5f04af (git): Remove duplicated function prototype rb_gc_disable_no_rest
peterzhu2118 (Peter Zhu)
07:09 PM Feature #20276: Introduce Fiber interfaces for Blocking operations on Ractors
ioquatix (Samuel Williams) wrote in #note-7:
> If I had to take a guess, I'd say it's a bug with waiting on a Ractor...
forthoney (Seong-Heon Jung)
07:06 PM Bug #20346 (Open): FiberScheduler.unblock not called by Thread#join when Thread body contains Ractor.take
When using a `Ractor.take` inside a different thread, `Thread#join` on the thread running `Ractor.take` fails to call... forthoney (Seong-Heon Jung)
06:18 PM Revision 0b34b75b (git): [PRISM] Remove unnecessary dependencies in common.mk
kddnewton (Kevin Newton)
06:01 PM Feature #20345: Add `--target-rbconfig` option to mkmf
These patches are very small and focused, this makes a lot of sense to me. mdalessio (Mike Dalessio)
05:16 PM Feature #20345: Add `--target-rbconfig` option to mkmf
Here are patches for Nokogiri and rake-compiler:
- https://github.com/kateinoigakukun/nokogiri/commit/c70ee8ea8ae2c46...
katei (Yuta Saito)
05:03 PM Feature #20345: Add `--target-rbconfig` option to mkmf
> I ported nokogiri gem to WebAssembly/WASI with this change
Can you share a pointer to this code? As a maintainer...
mdalessio (Mike Dalessio)
04:26 PM Feature #20345 (Closed): Add `--target-rbconfig` option to mkmf

## Motivation
Today, CRuby runs on many platforms. But not all platforms are capable of running build tools (e.g...
katei (Yuta Saito)
05:00 PM Revision 548203ea (git): [ruby/prism] Warn on frozen_string_literal after tokens
https://github.com/ruby/prism/commit/edece87801 kddnewton (Kevin Newton)
04:59 PM Revision 8514785e (git): [ruby/prism] CRuby error message for lonely else
https://github.com/ruby/prism/commit/1219a709e4 kddnewton (Kevin Newton)
04:12 PM Revision 7a1a5724 (git): [ruby/prism] Use `require_relative` in the Prism codebase
If there are many searches in the `$LOAD_PATH` in the user environment,
require will perform unnecessary searches tha...
koic (Koichi ITO)
04:02 PM Revision 802e857a (git): YJIT: Support arity=-2 cfuncs (#10268)
This type of cfuncs shows up as consume a lot of cycles in profiles of
the lobsters benchmark, even though in the sta...
alanwu (Alan Wu)
03:55 PM Revision 97810cbb (git): [PRISM] Process encoding on CLI for -K
kddnewton (Kevin Newton)
03:55 PM Revision b7ca4b1e (git): [PRISM] Fix up frozen checks for aref
kddnewton (Kevin Newton)
03:40 PM Feature #20329: Clean up `--dump` sub-options
nobu (Nobuyoshi Nakada) wrote in #note-5:
>
> This looks nice.
>
> Would `--dump=insns --dump=-opt` have the same e...
eightbitraptor (Matt V-H)
02:21 PM Feature #20329: Clean up `--dump` sub-options
eightbitraptor (Matthew Valentine-House) wrote in #note-4:
> ```
> dump=insns
> dump=insns,-opt
> dump=parsetree,...
nobu (Nobuyoshi Nakada)
03:37 PM Bug #20344 (Closed): argument stack underflow (-1)
This file produces argument stack underflow, since ruby 2.5.
```ruby
proc do
next if true
case nil
whe...
nobu (Nobuyoshi Nakada)
02:29 PM Revision f5497203 (git): Highlight messages in fetch-bundled_gems
nobu (Nobuyoshi Nakada)
02:29 PM Revision 6ccc04cf (git): Add more abstract decorations for messaging
nobu (Nobuyoshi Nakada)
02:19 PM Revision 44697295 (git): Remove rb_raw_obj_info_basic
It's not used outside of gc.c. peterzhu2118 (Peter Zhu)
01:58 PM Revision c73dd96f (git): [PRISM] Resync
kddnewton (Kevin Newton)
11:42 AM Revision cb029fa4 (git): [rubygems/rubygems] Deprecate `bundle plugin install --local-git=`
It's the exact same implementation as --git
https://github.com/rubygems/rubygems/commit/18eb2418c6
Cody Cutrer
08:03 AM Feature #19057: Hide implementation of `rb_io_t`.
I don't use `unicorn` so thanks for the clarification. Maybe someone who does know, can write some documentation abou... ioquatix (Samuel Williams)
07:43 AM Feature #19057: Hide implementation of `rb_io_t`.
> are you able to point it at the git head?
You can't just do that because Unicorn has a bunch of files that need ...
byroot (Jean Boussier)
05:22 AM Feature #19057: Hide implementation of `rb_io_t`.
@mame are you able to point it at the git head?
e.g.
```ruby
gem "unicorn", git: "https://yhbt.net/unicorn.git...
ioquatix (Samuel Williams)
01:58 AM Feature #19057: Hide implementation of `rb_io_t`.
This change has broken our internal CI. Because our CI contributes to assure the quality of Ruby master, it is a sham... mame (Yusuke Endoh)
07:55 AM Revision 8a8df491 (git): Update set_backtrace documentation
Followup: https://github.com/ruby/ruby/pull/10017
[Feature #13557]
byroot (Jean Boussier)
07:49 AM Revision 454b939d (git): Launchable: Remove unused codes
ono-max (Naoto Ono)
04:52 AM Revision 0ff2c7fe (git): Faster Integer.sqrt for large bignum
Integer.sqrt uses Newton's method.
This pull request reduces the precision which was unnecessarily high in each calcu...
tompng (tomoya ishida)
03:32 AM Revision dcfbe36c (git): Update unmerged RBS to debug `EBADF` error (#10275)
Update bundled_gems soutaro (Soutaro Matsumoto)
02:37 AM Revision e6487a92 (git): [ruby/irb] docs(help): Add latest options to ja help message
(https://github.com/ruby/irb/pull/903)
https://github.com/ruby/irb/commit/3c6d452495
okuramasafumi (Masafumi OKURA)
01:59 AM Misc #20336: DevMeeting-2024-04-17
* [Feature #19057] Hide implementation of `rb_io_t`
* This change has broken our internal CI. Because our CI contr...
mame (Yusuke Endoh)

03/17/2024

10:55 PM Revision dc06375c (git): [rubygems/rubygems] Ignore commented out keys in config file
https://github.com/rubygems/rubygems/commit/c4a8d2a930 deivid (David Rodríguez)
06:32 PM Bug #20343 (Closed): Ripper.sexp in Ruby 3.4 returns nil
This is expected as that syntax was removed. See #19918 jeremyevans0 (Jeremy Evans)
06:13 PM Bug #20343 (Closed): Ripper.sexp in Ruby 3.4 returns nil
In Ruby 3.4.0's Ripper, there is the following incompatible behavior:
## Expected (Ruby 3.3)
It is expected tha...
koic (Koichi ITO)
10:09 AM Revision 5fd6b461 (git): Refactor encdb and transdb templates
- Simplify globbed file names.
- Prefer `File.open` over `Kernel#open`.
- Swallow initializer blocks instead of line ...
nobu (Nobuyoshi Nakada)
09:47 AM Revision e6708924 (git): Remove no longer needed matching
nobu (Nobuyoshi Nakada)
09:28 AM Revision 9e470ebd (git): Revert "Remove flip-flop usages from build scripts"
This reverts commit 301fa452f7a9cdea922103e9c50d85a2d5652d0d. nobu (Nobuyoshi Nakada)
06:57 AM Revision 28a2105a (git): Prefer `enum ruby_tag_type` over `int`
nobu (Nobuyoshi Nakada)
06:57 AM Revision a91800c4 (git): Validate tag type to jump
nobu (Nobuyoshi Nakada)
05:05 AM Bug #20218 (Closed): aset/masgn/op_asgn with keyword arguments
Applied in changeset commit:git|0d5b16599a4ad606619228623299b931c48b597b.
----------
[Bug #20218] Reject keyword arg...
nobu (Nobuyoshi Nakada)
05:05 AM Bug #19918 (Closed): Should `a[&b]=c` be syntax valid?
Applied in changeset commit:git|df5ef282337764508a1e1d93459d7a280e46647c.
----------
[Bug #19918] Reject block passi...
nobu (Nobuyoshi Nakada)
04:37 AM Revision e69708e5 (git): [DOC] Mention about disallowed arguments in index
[Bug #19918]
[Bug #20218]
nobu (Nobuyoshi Nakada)
04:20 AM Revision 0d5b1659 (git): [Bug #20218] Reject keyword arguments in index
nobu (Nobuyoshi Nakada)
04:18 AM Revision df5ef282 (git): [Bug #19918] Reject block passing in index
nobu (Nobuyoshi Nakada)

03/16/2024

05:55 PM Revision 3605d607 (git): [ruby/prism] Fix token incompatibility for `Prism::Translation::Parser::Lexer`
This PR fixes token incompatibility for `Prism::Translation::Parser::Lexer` when using backquoted heredoc indetiner:
...
koic (Koichi ITO)
04:27 PM Revision 815c7e19 (git): Avoid caller-side hash allocation for f(*a, kw: 1) and f(*a, kw: 1, &block)
Previously, this used:
```
splatarray false
duphash
getlocal/getblockparamproxy # in the block passing case
send ARG...
jeremyevans (Jeremy Evans)
03:20 PM Revision bda5b099 (git): [ruby/irb] Fix irb_history saved to current directory
(https://github.com/ruby/irb/pull/901)
* Always save irb_history in HOME or XDG_CONFIG_HOME
Also split irbrc search...
tompng (tomoya ishida)
02:44 PM Revision aae9f562 (git): Prefer the simple read/write `File` singleton methods
nobu (Nobuyoshi Nakada)
02:29 PM Revision d4a53b46 (git): Prefer the simple read/write `File` singleton methods
nobu (Nobuyoshi Nakada)
01:51 PM Revision 137b52a8 (git): [ruby/irb] Use markdown format for docs
(https://github.com/ruby/irb/pull/890)
* Convert irb.rb's document into markdown format
* Hide should-be-private to...
st0012 (Stan Lo)
10:41 AM Bug #20342: Top level `public`, `private` and `ruby2_keywords` do not work in wrapped load
https://github.com/ruby/ruby/pull/10271
I'm not sure these methods should print the warning too.
nobu (Nobuyoshi Nakada)
10:21 AM Bug #20342 (Closed): Top level `public`, `private` and `ruby2_keywords` do not work in wrapped load
With this file:
```ruby
# load.rb
public def f = :ok
```
It is OK when `require`d.
```sh-session
$ ruby -r...
nobu (Nobuyoshi Nakada)
09:51 AM Revision f1682407 (git): [ruby/did_you_mean] Avoid division for small length2
https://github.com/ruby/did_you_mean/commit/cb518e251a Maumagnaguagno (Mau Magnaguagno)
09:51 AM Revision affbc79a (git): [ruby/did_you_mean] Remove Integer floor and prefix index from Jaro distance
The variable ``length2`` is an Integer, call to floor returns self.
The variables ``i`` and ``prefix_bonus`` are equa...
Maumagnaguagno (Mau Magnaguagno)
03:40 AM Feature #19787: Add Enumerable#uniq_map, Enumerable::Lazy#uniq_map, Array#uniq_map and Array#uniq_map!
rubyFeedback (robert heiler) wrote in #note-6:
> Ultimately you only have to convince matz. :)
>
> However had,...
joshuay03 (Joshua Young)
03:30 AM Feature #19787: Add Enumerable#uniq_map, Enumerable::Lazy#uniq_map, Array#uniq_map and Array#uniq_map!
austin (Austin Ziegler) wrote in #note-5:
> Wouldn’t it make more sense, then, to do `uniq { … }.map { … }`? Yes, th...
joshuay03 (Joshua Young)

03/15/2024

11:15 PM Revision def7023e (git): Initialize VM stack if VM_CHECK_MODE
Lately there has been a few flaky YJIT CI failures where a new Ruby
thread is finding the canary on the VM stack. For...
alanwu (Alan Wu)
08:03 PM Revision 185112f4 (git): Remove unused macro TF
peterzhu2118 (Peter Zhu)
07:28 PM Bug #20341 (Closed): Parser segfault with shareable constant with array of more than 1 element
```ruby
# shareable_constant_value: literal
C = [foo, bar]
```
results in
```
./ruby: [BUG] unexpected node...
kddnewton (Kevin Newton)
06:08 PM Revision e3a82d79 (git): [ruby/prism] Fix token incompatibility for `Prism::Translation::Parser::Lexer`
This PR fixes token incompatibility for `Prism::Translation::Parser::Lexer`
when using escaped backslash in string li...
koic (Koichi ITO)
06:07 PM Revision c9da8d67 (git): [ruby/prism] Fix a token incompatibility for `Prism::Translation::Parser::Lexer`
This PR fixes a token incompatibility between Parser gem and `Prism::Translation::Parser`
for the heredocs_leading_wh...
koic (Koichi ITO)
03:23 PM Revision aceee71c (git): Avoid a hash allocation when calling def f(kw: 1) with keyword splat
c20e819e8b04e84a4103ca9a036022543459c213 made calling a method
that accepts specific keywords but not a keyword splat...
jeremyevans (Jeremy Evans)
03:09 PM Revision a83703af (git): Skip warnings for duplicate keys
nobu (Nobuyoshi Nakada)
02:52 PM Revision 91bf7eb2 (git): Refactor frozen_string_literal check during compilation
In preparation for https://bugs.ruby-lang.org/issues/20205.
The `frozen_string_literal` compilation option will no l...
byroot (Jean Boussier)
01:47 PM Revision b4f3f3c1 (git): [PRISM] Fix up source file when not frozen
kddnewton (Kevin Newton)
01:42 PM Revision 043c90e1 (git): Fix compiling shareable constant nodes
kddnewton (Kevin Newton)
01:31 PM Revision f2e96d4b (git): [ruby/prism] Add PM_STRING_FLAGS_FROZEN / PM_STRING_FLAGS_MUTABLE on PM_SOURCE_FILE_NODE
For all intent and purposes, `__FILE__` is a string literal subject
to the `# frozen_string_literal: true/false` comm...
byroot (Jean Boussier)
01:23 PM Revision ec4333c9 (git): [DOC] exceptions.rdoc : Add heads up about ensure not returning implicitly
There is a weird gotcha I already forgot twice.... and regret not to have found in doc.
See https://dev.to/okuramasaf...
Pierre Merlin
01:21 PM Revision 077ac25e (git): Iterate the documentation of Module.const_missing
fxn (Xavier Noria)
01:21 PM Revision 9284fe12 (git): Remove unnecessary else branch
This matches the existing style in the rest of the file. fxn (Xavier Noria)
01:21 PM Revision a26e3bf3 (git): Minor edits to variable.c
fxn (Xavier Noria)
01:21 PM Revision 0dbe3af4 (git): Fix the signature of Module#name in the API docs
fxn (Xavier Noria)
01:14 PM Revision 40ecad0a (git): [Universal parser] Fix -Wsuggest-attribute=format warnings
Under a configuration including `cppflags=-DUNIVERSAL_PARSER`, warnings listed below show in build time:
```
node.c:...
hasumikin (hitoshi hasumi)
12:54 PM Revision 1d91a1ad (git): Cover all warning categories by using `Warning.categories`
nobu (Nobuyoshi Nakada)
12:54 PM Revision 03e7b266 (git): Test deprecation warning with `$;`
nobu (Nobuyoshi Nakada)
12:46 PM Feature #20331: Should parser warn hash duplication and when clause?
> Subtle cases like { 1.0 => a, 1.00 => b } and { "\x00" => a, "\0" => b } were also discussed, and some committers w... kddnewton (Kevin Newton)
05:53 AM Feature #20331: Should parser warn hash duplication and when clause?
> But we don't want to remove the warnings, so the compiler will need to warn for those cases?
At the dev meeting,...
mame (Yusuke Endoh)
12:31 PM Revision c0b8dee9 (git): [ruby/prism] Fix an AST and token incompatibility for `Prism::Translation::Parser`
This PR fixes an AST and token incompatibility between Parser gem and `Prism::Translation::Parser`
for dstring litera...
koic (Koichi ITO)
12:31 PM Revision c45ad17f (git): [ruby/prism] Shareable constant nodes
https://github.com/ruby/prism/commit/473cfed6d0 kddnewton (Kevin Newton)
06:44 AM Revision 59785680 (git): Remove unused macro GC_NOTIFY in gc.c
peterzhu2118 (Peter Zhu)
06:36 AM Revision 99024a16 (git): Use tag version of minitest-5.22.3
hsbt (Hiroshi SHIBATA)
05:12 AM Revision 82372753 (git): Deprecate `--dryrun` options in favor of `--dry-run`
nobu (Nobuyoshi Nakada)
05:11 AM Revision eceb36c7 (git): downloader.rb: Add `--help` option
nobu (Nobuyoshi Nakada)
04:55 AM Revision f0826057 (git): outdate-bundled-gems.rb: Add `--help` option
nobu (Nobuyoshi Nakada)
04:34 AM Revision a1ced606 (git): [ruby/stringio] NULL StringIO by `StringIO.new(nil)`
https://github.com/ruby/stringio/commit/779f71359d nobu (Nobuyoshi Nakada)
02:46 AM Feature #20300: Hash: set value and get pre-existing value in one call
I'm neutral to this particular method (could be handy). If thread safety is in mind perhaps atomic compare-and-excha... shyouhei (Shyouhei Urabe)
01:49 AM Feature #20300: Hash: set value and get pre-existing value in one call
nobu (Nobuyoshi Nakada) wrote in #note-17:
> I want `ENV.exchange_value` rather than `Hash#exchange_value`.
Is th...
AMomchilov (Alexander Momchilov)
01:59 AM Revision 1e7c0fcc (git): [PRISM] Fix float in case dispatch
kddnewton (Kevin Newton)
01:34 AM Bug #20301: `Set#add?` does two hash look-ups
shyouhei (Shyouhei Urabe) wrote in #note-8:
> Why not:
Because I didn't think of that :)
I would be okay with ...
AMomchilov (Alexander Momchilov)
12:10 AM Bug #20301: `Set#add?` does two hash look-ups
Yes. `add(o) unless include?(o)` isn't thread safe already. My implementation just doesn't care to improve that. shyouhei (Shyouhei Urabe)
12:37 AM Bug #20225: Inconsistent behavior of regex matching for a regex has a null loop
On dev meeting, matz concluded that, but I also think a null-loop bug must be fixed.
However, there are still rema...
make_now_just (Hiroya Fujinami)
12:27 AM Revision 3fcab3cd (git): [ruby/rdoc] Use readline history when ri is interactive
https://github.com/ruby/rdoc/commit/d0074a23cc adam12 (Adam Daniels)
12:10 AM Revision 193ebc3c (git): [ruby/rdoc] test: Add tests for RDoc::TokenStream#add_tokens, add_token ,collect_tokens and pop_token
https://github.com/ruby/rdoc/commit/9ed530b8f9 toshimaru

03/14/2024

11:11 PM Revision c3887849 (git): Fix array allocation optimization for f(*a, kw: 1)
This was broken during the refactoring in 22e488464a412afa58f201c49e54773aa8011320. jeremyevans (Jeremy Evans)
10:36 PM Feature #20309: Bundled gems for Ruby 3.5
>At least it seems useful to have some data and extra details on it (the last paragraph).
I see. Thanks for your i...
hsbt (Hiroshi SHIBATA)
02:58 PM Feature #20309: Bundled gems for Ruby 3.5
OK, thank you. I wanted to make sure my concern on that is clear.
At least it seems useful to have some data and ext...
Eregon (Benoit Daloze)
10:55 AM Feature #20309: Bundled gems for Ruby 3.5
>What about yaml and readline?
There is no conclusion yet. I understood your concern. Do not rush this.
hsbt (Hiroshi SHIBATA)
10:41 AM Feature #20309: Bundled gems for Ruby 3.5
@hsbt What about [yaml](https://github.com/ruby/yaml/blob/master/lib/yaml.rb) and [readline](https://github.com/ruby/... Eregon (Benoit Daloze)
09:44 AM Feature #20309: Bundled gems for Ruby 3.5
Thanks @Eregon and @jeremyevans0 .
I mostly agreed your comments. And I discussed this at DevMeeting 2024/03/14.
...
hsbt (Hiroshi SHIBATA)
08:44 PM Revision ed2f6852 (git): Update to ruby/spec@89175b2
Eregon (Benoit Daloze)
08:44 PM Revision 1d9f9914 (git): Update to ruby/mspec@b8f8f4e
Eregon (Benoit Daloze)
07:39 PM Bug #20340 (Closed): Ractor comments not applying to constant targets
In this example:
```ruby
C, = { foo: bar }
```
You get:
```
== disasm: #<ISeq:<main>@test.rb:1 (1,0)-(1,1...
kddnewton (Kevin Newton)
07:33 PM Bug #20339: Parser segfault with ractor comment
Sorry, this is actually even simpler:
```ruby
# shareable_constant_value: literal
C = { bar => baz }
```
kddnewton (Kevin Newton)
07:32 PM Bug #20339 (Closed): Parser segfault with ractor comment
```ruby
foo(
# shareable_constant_value: literal
(C = { bar => baz })
)
```
kddnewton (Kevin Newton)
07:19 PM Misc #20028: I'd like my commit bit back
(I'd like to get started triaging ruby/rdoc issues and PRs ASAP... too much bitrot) zenspider (Ryan Davis)
07:18 PM Misc #20028: I'd like my commit bit back
GAH! Took me long enough! https://github.com/ruby/git.ruby-lang.org/pull/79 ❤️ zenspider (Ryan Davis)
05:52 PM Revision c2170e5c (git): Fix typo from gloabl_object_list to global_object_list
peterzhu2118 (Peter Zhu)
05:29 PM Revision 4559a161 (git): Move gloabl_object_list from objspace to VM
This is to be consistent with the mark_object_ary that is in the VM. peterzhu2118 (Peter Zhu)
05:08 PM Revision b0be2961 (git): YJIT: Let yjit_perf.py support perf with Python disabled (#10246)
* YJIT: Let yjit_perf.py support perf with Python disabled
* Update yjit.md about perf
* Recommend the extra interf...
k0kubun (Takashi Kokubun)
04:56 PM Revision 09d8c99c (git): Ensure test suite is compatible with --frozen-string-literal
As preparation for https://bugs.ruby-lang.org/issues/20205
making sure the test suite is compatible with frozen strin...
byroot (Jean Boussier)
04:53 PM Feature #20265 (Closed): Deprecate and remove rb_newobj and rb_newobj_of
Applied in changeset commit:git|8e1831406ffd385213f67baba0d1fe6d44e9e0ea.
----------
[Feature #20265] Remove rb_newo...
peterzhu2118 (Peter Zhu)
09:42 AM Feature #20265 (Assigned): Deprecate and remove rb_newobj and rb_newobj_of
Discussed at the dev meeting, and @matz said "go ahead". mame (Yusuke Endoh)
04:53 PM Revision 4e03d56e (git): [Feature #20265] Update NEWS.md
peterzhu2118 (Peter Zhu)
04:53 PM Revision ff51dc56 (git): [Feature #20265] Remove rb_newobj_of and RB_NEWOBJ_OF
peterzhu2118 (Peter Zhu)
04:53 PM Revision 8e183140 (git): [Feature #20265] Remove rb_newobj and RB_NEWOBJ
peterzhu2118 (Peter Zhu)
04:27 PM Revision bd42c172 (git): Backport #20096 to Ruby 3.3 (#9471)
Fix memory overread in registry.rb
The terminator is not actually getting filled in; we're simply passing
(two) byte...
KJ Tsanaktsidis
04:27 PM Revision 606dd03e (git): [Bug #20208] Revert "Set AI_ADDRCONFIG when making getaddrinfo(3) calls for outgoi… (#9791)
Revert "Set AI_ADDRCONFIG when making getaddrinfo(3) calls for outgoing conns"
This reverts commit 673ed41c81cf5a695...
KJ Tsanaktsidis
04:26 PM Revision 53f0c5a4 (git): Backport #9498 to Ruby 3.3 (#9805)
Handle mmap failures for redblack tree cache
The redblack tree cache is totally optional, so if we can't allocate
ro...
krk (Kerem Kat)
04:26 PM Revision cdcabd8a (git): Backport 3.3: YJIT memory leak fix with additional CI fixes (#9841)
merge revision(s) 2cc7a56e,b0711b1,db5d9429: [Backport #20209]
YJIT: Avoid leaks by skipping objects with a ...
alanwu (Alan Wu)
04:20 PM Bug #20150: Memory leak in grapheme clusters
ruby_3_3 62de3eb5a2e5b1f0f1516dc99241c4c54a1bf691 merged revision(s) b3d612804946e841e47d14e09b6839224a79c1a4. naruse (Yui NARUSE)
04:09 PM Revision 161545d5 (git): [ruby/reline] Ensure compatibility with frozen string literals
(https://github.com/ruby/reline/pull/643)
Ref: https://bugs.ruby-lang.org/issues/20205
Ruby is moving forward with ...
Jean byroot Boussier
03:41 PM Revision d10afe03 (git): [ruby/irb] Rescue from exceptions raised by #name
(https://github.com/ruby/irb/pull/899)
* Rescue from exceptions raised by #name
Irb might terminate if the class ov...
Go
03:40 PM Revision 3822ca98 (git): [ruby/irb] Add disable_irb command to disable debug of binding.irb
(https://github.com/ruby/irb/pull/898)
* Add disable_irb command to disable debug of binding.irb
* disable_irb does...
hogelog (Sunao Komuro)
03:15 PM Feature #20335: `Thread.each_caller_location` should accept the same arguments as `caller` and `caller_locations`
Right, Range is problematic, and only Range with positive indices seems an weird restriction so I think better no Ran... Eregon (Benoit Daloze)
03:08 PM Feature #20335: `Thread.each_caller_location` should accept the same arguments as `caller` and `caller_locations`
> I think omitting the first N frames is useful.
Agreed, that's the only one I want. The reason I started the issu...
byroot (Jean Boussier)
02:53 PM Feature #20335: `Thread.each_caller_location` should accept the same arguments as `caller` and `caller_locations`
Ah I mistyped, `caller_locations(20)` is of course just setting start, `caller_locations(0, 20)` has no problem, I'll... Eregon (Benoit Daloze)
02:52 PM Feature #20335: `Thread.each_caller_location` should accept the same arguments as `caller` and `caller_locations`
I think omitting the first N frames is useful.
However I see little reason to have a `length` or `Range`, one can jus...
Eregon (Benoit Daloze)
02:43 PM Feature #20335: `Thread.each_caller_location` should accept the same arguments as `caller` and `caller_locations`
Seems fine to me. Looking at the code, I don't think it would be difficult to implement. jeremyevans0 (Jeremy Evans)
09:32 AM Feature #20335 (Closed): `Thread.each_caller_location` should accept the same arguments as `caller` and `caller_locations`
`Thread.each_caller_location` was added to Ruby 3.2 as part of [Feature #16663] and is a very useful API for emitting... byroot (Jean Boussier)
03:11 PM Misc #20336: DevMeeting-2024-04-17
* [Feature #20300] Hash: set value and get pre-existing value in one call (eregon)
* It seems generally useful (se...
Eregon (Benoit Daloze)
10:17 AM Misc #20336 (Closed): DevMeeting-2024-04-17
# The next dev meeting
**Date: 2024/04/17 13:00-17:00** (JST)
Log: *TBD*
- Dev meeting *IS NOT* a decision-mak...
mame (Yusuke Endoh)
03:06 PM Feature #20300: Hash: set value and get pre-existing value in one call
nobu (Nobuyoshi Nakada) wrote in #note-17:
> I want `ENV.exchange_value` rather than `Hash#exchange_value`.
Agreed i...
Eregon (Benoit Daloze)
03:05 PM Feature #20300: Hash: set value and get pre-existing value in one call
That implementation is incorrect (i.e. less correct than current implementation), and `Hash#exchange_value` is needed... Eregon (Benoit Daloze)
10:12 AM Feature #20300: Hash: set value and get pre-existing value in one call
Discussed at developers meeting. @shyouhei pointed out that `Set#add?` could be improved with a single lookup by look... mame (Yusuke Endoh)
05:22 AM Feature #20300: Hash: set value and get pre-existing value in one call
I want `ENV.exchange_value` rather than `Hash#exchange_value`. nobu (Nobuyoshi Nakada)
03:04 PM Bug #20301: `Set#add?` does two hash look-ups
That implementation using `size` is not thread-safe, even on CRuby AFAIK.
For example, if T2 calls `add?` with a new...
Eregon (Benoit Daloze)
07:15 AM Bug #20301: `Set#add?` does two hash look-ups
nobu (Nobuyoshi Nakada) wrote in #note-9:
> shyouhei (Shyouhei Urabe) wrote in #note-8:
> > ```ruby
> > return n...
shyouhei (Shyouhei Urabe)
06:41 AM Bug #20301: `Set#add?` does two hash look-ups
shyouhei (Shyouhei Urabe) wrote in #note-8:
> ```ruby
> return n == m ? self : nil
> ```
The return value is ...
nobu (Nobuyoshi Nakada)
05:44 AM Bug #20301: `Set#add?` does two hash look-ups
Why not:
```ruby
def add?(o)
n = size
add(o)
m = size
return n == m ? self : nil
end
```
This im...
shyouhei (Shyouhei Urabe)
02:40 PM Bug #20225: Inconsistent behavior of regex matching for a regex has a null loop
What is the decision, to return 0 in both cases (like TruffleRegex behaves), and fix the behavior in Onigmo?
As @j...
Eregon (Benoit Daloze)
09:42 AM Bug #20225: Inconsistent behavior of regex matching for a regex has a null loop
This was discussed at the February dev meeting and @matz said "give it a try." @make_now_just Can you proceed it? mame (Yusuke Endoh)
02:18 PM Revision fafe5db7 (git): merge revision(s) b3d612804946e841e47d14e09b6839224a79c1a4: [Backport #20150] (#10253)
Fix memory leak in grapheme clusters
[Bug #20150]
String#grapheme_cluters and String#each_grapheme_...
NARUSE, Yui
02:15 PM Bug #20338: certain **kwsplat calls have regressed allocations over past few ruby releases
Ah nope never mind, that PR is about methods called with a kwarg splat, which your example is not doing. kjtsanaktsidis (KJ Tsanaktsidis)
02:12 PM Bug #20338: certain **kwsplat calls have regressed allocations over past few ruby releases
I haven’t looked at this at all myself, but it tingled my “this is familiar” sense. Is this the same problem as https... kjtsanaktsidis (KJ Tsanaktsidis)
02:05 PM Bug #20338 (Closed): certain **kwsplat calls have regressed allocations over past few ruby releases
Given this script:
```
class Foo
def initialize(**kwargs)
end
end
class Bar
def initialize(y:)
en...
fablestales (Fable Tales)
01:12 PM Feature #20331: Should parser warn hash duplication and when clause?
Thank you for the response Matz. I just want to clarify what you're asking for the implementation to be, based on wha... kddnewton (Kevin Newton)
08:07 AM Feature #20331: Should parser warn hash duplication and when clause?
1. parser should warn only minimal and apparent cases, no base conversion, no bignum allocation. Handling `_` in the ... matz (Yukihiro Matsumoto)
01:50 AM Feature #20331: Should parser warn hash duplication and when clause?
I understand this ticket as "should the parser be responsible for parse integer values" (because if you have the inte... kddnewton (Kevin Newton)
01:08 PM Bug #20334: Time.to_i truncates a fractional timestamp instead of rounding up
Bit vague to say in the docs that `to_i` and `to_f` "may return a value that rounds or truncates". Why not just say i... werelnon (Malcolm Patterson)
01:37 AM Bug #20334 (Feedback): Time.to_i truncates a fractional timestamp instead of rounding up
It is the intended behavior.
http://ruby-doc.com/3.2.2/Time.html#class-Time-label-Epoch+Seconds
> Other retrieval...
nobu (Nobuyoshi Nakada)
12:26 AM Bug #20334 (Feedback): Time.to_i truncates a fractional timestamp instead of rounding up
Simple steps that can be executed in a ruby interactive shell
```
irb(main):007> t = Time.now
=> 2024-03-14 00:2...
werelnon (Malcolm Patterson)
01:03 PM Bug #20090: Anonymous arguments are now syntax errors in unambiguous cases
ruby_3_3 2a84aaf4a8c8d6d6bbb09416711922532b0033fe merged revision(s) 596db9c1f486d6609a4e97d82c8c71b54609fb6f. naruse (Yui NARUSE)
01:02 PM Bug #20198: Threaded DNS resolver does not propagate errno to the calling thread
ruby_3_3 a889304fed63c3206f27d614ab75219271fb4ca9 merged revision(s) 6c0e58a54e3fda604386d9c409e2a9998bbc9352. naruse (Yui NARUSE)
01:02 PM Bug #20161: Memory leak in regexp grapheme clusters
ruby_3_3 577f9c7a8334bb33512f01e7db95f6fb15e280b2 merged revision(s) 37ed86fd3c798e298fad9db6e7df1f3f45e1e03b. naruse (Yui NARUSE)
12:33 PM Feature #20306 (Closed): Add rb_free_at_exit_p
Applied in changeset commit:git|83618f2cfa004accdd1514de7dcbba291aa7e831.
----------
[Feature #20306] Implement ruby...
peterzhu2118 (Peter Zhu)
09:43 AM Feature #20306 (Assigned): Add rb_free_at_exit_p
Discussed at the dev meeting, and @matz said "go ahead".
mame (Yusuke Endoh)
12:33 PM Revision 83618f2c (git): [Feature #20306] Implement ruby_free_at_exit_p
ruby_free_at_exit_p is a way for extensions to determine whether they
should free all memory at shutdown.
peterzhu2118 (Peter Zhu)
12:06 PM Misc #20320: Using OSU Open Source Lab native ppc64le/s390x CI services trigged on pull-requests
> I opened the following issue ticket to request adding Ubuntu jammy container images. In my understanding, maybe we ... jaruga (Jun Aruga)
11:25 AM Bug #20337: Complex#inspect mutates the string returned by `real.inspect`
Same for Complex#to_s. Eregon (Benoit Daloze)
11:23 AM Bug #20337 (Closed): Complex#inspect mutates the string returned by `real.inspect`
```
irb(main):001:0> n = Numeric.new
=> #<Numeric:0x00007f81b2308578>
irb(main):004:0> class Numeric; def inspect ...
Eregon (Benoit Daloze)
10:47 AM Bug #20333: segfault while running my tests
Thanks @shyouhei that seems to be it dorianmariefr (Dorian Marié)
10:38 AM Feature #13557 (Closed): there's no way to pass backtrace locations as a massaged backtrace
Applied in changeset commit:git|315bde5a0f95562f58405a43456ec6715ef20d32.
----------
`Exception#set_backtrace` accep...
byroot (Jean Boussier)
10:38 AM Revision 315bde5a (git): `Exception#set_backtrace` accept arrays of `Backtrace::Location`
[Feature #13557]
Setting the backtrace with an array of strings is lossy. The resulting
exception will return nil on...
byroot (Jean Boussier)
10:17 AM Misc #20281 (Closed): DevMeeting-2024-03-14
mame (Yusuke Endoh)
10:08 AM Feature #4247 (Rejected): New features for Array#sample, Array#choice
We discussed this at the dev meeting. No one remembered the discussion from over 10 years ago, so we discussed it ane... mame (Yusuke Endoh)
09:55 AM Revision 2a84aaf4 (git): Fix test session reuse but expire (#9824) (#10250)
merge revision(s) 596db9c1f486d6609a4e97d82c8c71b54609fb6f: [Backport #20090]
[Feature #19370] Blocks withou...
NARUSE, Yui
09:45 AM Feature #20261: Add symbol synonyms for '' and nil for IO method line separator arguments
Discussed at the dev meeting, and @matz (Yukihiro Matsumoto) said he wants to take time to consider it. No conclusion... mame (Yusuke Endoh)
09:44 AM Bug #20310: ASAN fake stacks need to be marked during GC for non-current execution context
Discussed at the dev meeting, and @ko1 said the PR looks good to him.
mame (Yusuke Endoh)
09:42 AM Revision a889304f (git): merge revision(s) 6c0e58a54e3fda604386d9c409e2a9998bbc9352: [Backport #20198] (#10252)
Make sure the correct error is raised for EAI_SYSTEM resolver fail
In case of EAI_SYSTEM, getaddrinfo is sup...
NARUSE, Yui
09:40 AM Bug #20203: `TestEnumerable` test failures with GCC 14
This was discussed at the February dev meeting and @matz said "give it a try." @alanwu Can you please discuss with @k... mame (Yusuke Endoh)
09:39 AM Feature #20244 (Closed): Show the conflicting another chdir block
Applied in changeset commit:git|8fe86feecdcd0318c9ec88c10d2698beb9878bee.
----------
[Feature #20244] Extract `chdir...
nobu (Nobuyoshi Nakada)
09:38 AM Revision 72d04bb0 (git): Disable to run appveyor anymore
[Feature #19982] hsbt (Hiroshi SHIBATA)
09:38 AM Revision 8c4b5ac5 (git): Skip AppVeyor and GitHub if only other CI files are changed
nobu (Nobuyoshi Nakada)
09:33 AM Revision 5326337d (git): [Feature #20244] Issue a single `Warning.warn` call
Make the entire series of message lines a multiline string so that the
`Warning.warn` hook can receive them in a sing...
nobu (Nobuyoshi Nakada)
09:33 AM Revision 67fe0478 (git): [Feature #20244] Register global variable for another thread
Co-authored-by: Alan Wu <[email protected]> nobu (Nobuyoshi Nakada)
09:33 AM Revision 4bb8f858 (git): [Feature #20244] Show the conflicting another chdir block
nobu (Nobuyoshi Nakada)
09:33 AM Revision 8fe86fee (git): [Feature #20244] Extract `chdir_lock` and its stuffs
nobu (Nobuyoshi Nakada)
09:26 AM Feature #20293 (Closed): Add `Warning.categories` method that returns the warning category names
Applied in changeset commit:git|1ad366134ded1667745dd9fa70919051869f8d6c.
----------
[Feature #20293] Add `Warning.c...
nobu (Nobuyoshi Nakada)
08:58 AM Feature #20293: Add `Warning.categories` method that returns the warning category names
https://github.com/ruby/ruby/pull/10069 nobu (Nobuyoshi Nakada)
09:04 AM Feature #20202 (Rejected): Memoized endless method definitions
I don't accept this proposal for several reasons:
* I don't see significant use-case
* method set for a class sho...
matz (Yukihiro Matsumoto)
08:57 AM Feature #20080 (Feedback): Introduce #bounds method on Range
mame (Yusuke Endoh)
08:56 AM Revision 1ad36613 (git): [Feature #20293] Add `Warning.categories`
nobu (Nobuyoshi Nakada)
08:49 AM Bug #20307 (Closed): `Hash#update` from compare_by_identity hash can have unfrozen string keys
Applied in changeset commit:git|f36a71e26995b69ff72bc132bbcf40ad89571414.
----------
[Bug #20307] Fix `Hash#update` ...
nobu (Nobuyoshi Nakada)
08:49 AM Revision f36a71e2 (git): [Bug #20307] Fix `Hash#update` to make frozen copy of string keys
nobu (Nobuyoshi Nakada)
08:49 AM Revision cd774f4a (git): Extract `RHASH_STRING_KEY_P`
nobu (Nobuyoshi Nakada)
08:49 AM Revision c1279a3d (git): Extract `RHASH_IDENTHASH_P`
nobu (Nobuyoshi Nakada)
08:41 AM Revision fdf1fa5f (git): Revert "Warn ostruct for Ruby 3.5"
This reverts commit 1acbdc76d6ee73bc2a4d490f8809bd128abafc1f.
I need to remove ostruct from Rake or fix bundler exam...
hsbt (Hiroshi SHIBATA)
08:27 AM Bug #20224: Backport https://github.com/ruby/ruby/pull/9634 to Ruby 3.3
Backported to 3.3 by f8f0d342e48a38caac6d32b438c145bb581a51e6 naruse (Yui NARUSE)
08:07 AM Revision 1acbdc76 (git): Warn ostruct for Ruby 3.5
hsbt (Hiroshi SHIBATA)
07:53 AM Revision 577f9c7a (git): Backport 37ed86fd3c798e298fad9db6e7df1f3f45e1e03b (#10248)
merge revision(s) 37ed86fd3c798e298fad9db6e7df1f3f45e1e03b: [Backport #--ticket=20161]
Fix memory leak in re...
NARUSE, Yui
07:28 AM Revision d5e9942a (git): Update bundled gems list at 04fc9f87be8dd352e7d892b0d6b085 [ci skip]
git[bot]
07:27 AM Revision 04fc9f87 (git): Use released version of bigdecimal
hsbt (Hiroshi SHIBATA)
06:39 AM Bug #19231: Integer#step and Float::INFINITY - inconsistent behaviour when called with and without a block
https://github.com/nobu/ruby/tree/arith_seq-infinite-end nobu (Nobuyoshi Nakada)
05:35 AM Bug #19231: Integer#step and Float::INFINITY - inconsistent behaviour when called with and without a block
Weird a little.
```ruby
seq = 0.step(Float::INFINITY, 10)
p seq.class #=> Enumerator::ArithmeticSequence
p ...
nobu (Nobuyoshi Nakada)
06:12 AM Revision 1cffaf1c (git): minitest-5.22.3 tag is not available yet
hsbt (Hiroshi SHIBATA)
06:11 AM Feature #15554: warn/error passing a block to a method which never use a block
Matz accepted to try it with `-w` (WOW!) so I'll make a patch. ko1 (Koichi Sasada)
05:22 AM Revision cc141b61 (git): Update bundled gems list at 07b40044ada7f98f67b3807dddeda7 [ci skip]
git[bot]
05:21 AM Revision 07b40044 (git): Use released version of minitest
hsbt (Hiroshi SHIBATA)
04:30 AM Revision 578f96af (git): [ruby/stringio] [DOC] Package rdoc files
https://github.com/ruby/stringio/commit/8522c90e4b nobu (Nobuyoshi Nakada)
04:30 AM Revision c913f334 (git): [ruby/stringio] [DOC] Add missing documents
https://github.com/ruby/stringio/commit/9cc1dfa19c nobu (Nobuyoshi Nakada)
04:30 AM Revision 35706c60 (git): [ruby/stringio] [DOC] Add rdoc task
https://github.com/ruby/stringio/commit/5dd52d4aec nobu (Nobuyoshi Nakada)
04:19 AM Revision b01d319e (git): [ruby/fcntl] [DOC] Package files for RDoc
https://github.com/ruby/fcntl/commit/b946e505f1 nobu (Nobuyoshi Nakada)
04:01 AM Revision e394f553 (git): [ruby/fcntl] [DOC] Package document files
https://github.com/ruby/fcntl/commit/ed2d725505 nobu (Nobuyoshi Nakada)
03:49 AM Revision 4ae67b1a (git): [ruby/fcntl] [DOC] Add missing documents
https://github.com/ruby/fcntl/commit/a201ed6682 nobu (Nobuyoshi Nakada)
03:49 AM Revision 085daf48 (git): [ruby/fcntl] [DOC] Add task and files for RDoc
https://github.com/ruby/fcntl/commit/1c7c70fa5d nobu (Nobuyoshi Nakada)
03:49 AM Revision 5fe1853e (git): [ruby/fcntl] Reduce duplicate `O_ACCMODE` definitions
https://github.com/ruby/fcntl/commit/6a6442a7f8 nobu (Nobuyoshi Nakada)
03:49 AM Revision d49b4156 (git): [ruby/fcntl] [DOC] Remove redundant directives
https://github.com/ruby/fcntl/commit/a99909a90f nobu (Nobuyoshi Nakada)
01:37 AM Bug #20319: Singleton class is being frozen lazily in some cases
I looked into this and the current behavior is deliberate, as there is a comment stating `should not propagate to met... jeremyevans0 (Jeremy Evans)
 

Also available in: Atom