Project

General

Profile

Activity

From 01/24/2022 to 01/30/2022

01/30/2022

11:18 PM Feature #18515: Add Range#reverse_each implementation
kyanagi (Kouhei Yanagita) wrote in #note-2:
> In general, I think it would be better to improve `#reverse_each` by u...
Dan0042 (Daniel DeLorme)
11:10 PM Feature #18438: Add `Exception#additional_message` to show additional error information
Very happy about this.
mame (Yusuke Endoh) wrote in #note-16:
> Note: the rdoc of `detailed_message` should expli...
Dan0042 (Daniel DeLorme)
10:59 PM Revision b01657c4 (git): [DOC] Fix case for new sentence.
Steven Nunez
10:38 PM Revision f924e05b (git): [DOC] Fix a typo in the NEWS.md
Follow up of https://github.com/ruby/ruby/commit/fbb3cab. koic (Koichi ITO)
10:17 PM Revision 99a65e80 (git): [DOC] Enhanced RDoc for io.c (#5460)
Treats:
Kernel#readline
Kernel#readlines
Kernel#`cmd`
IO#advise
IO.select
IO#ioctl
IO#fc...
burdettelamar (Burdette Lamar)
10:13 PM Feature #18368: Range#step semantics for non-Numeric ranges
> the implication is that `range.step(1)` (using `+`) would have different semantics than `range.each` (using succ); ... zverok (Victor Shepelev)
09:43 PM Feature #18368: Range#step semantics for non-Numeric ranges
@zverok if understand correctly, the implication is that `range.step(1)` (using `+`) would have different semantics t... Dan0042 (Daniel DeLorme)
02:12 PM Feature #18368: Range#step semantics for non-Numeric ranges
Some clarifications after rereading the corresponding [dev.meeting log](https://github.com/ruby/dev-meeting-log/blob/... zverok (Victor Shepelev)
09:58 AM Feature #18368: Range#step semantics for non-Numeric ranges
> Here's one idea: how about adding an #increment(n) method. For Numeric, Float, Time, Date, it would be an alias to ... zverok (Victor Shepelev)
04:15 AM Feature #18368: Range#step semantics for non-Numeric ranges
> matz: I'd like to allow numeric-type '+', but to deny concatination-type '+'
> matz: we should not modify the beha...
Dan0042 (Daniel DeLorme)
09:48 PM Feature #16122: Data: simple immutable value object
I'm quite fond of this proposal--I basically never use Struct unless I specifically need mutability and have been usi... myronmarston (Myron Marston)
08:57 PM Feature #16122: Data: simple immutable value object
Eregon (Benoit Daloze) wrote in #note-29:
> ValueStruct or ImmutableStruct or FrozenStruct maybe?
Those are good ...
Dan0042 (Daniel DeLorme)
08:39 PM Feature #16122: Data: simple immutable value object
Some more alternatives to get the ideas rolling: `Unit` and `Item` (might be paired with Struct)
I also like `Box`.
matheusrich (Matheus Richard)
12:53 PM Feature #16122: Data: simple immutable value object
ValueStruct or ImmutableStruct or FrozenStruct maybe?
ImmutableStruct would probably only make sense if values are m...
Eregon (Benoit Daloze)
06:47 PM Revision b0bd26ad (git): * 2022-01-31 [ci skip]
git[bot]
06:47 PM Revision e75bd8df (git): pend some tests while using to_binary
ISeqs from ISeq#to_binary/load do not support `keep_script_lines`
now so some tests should be pending tests with
`RUB...
ko1 (Koichi Sasada)
12:45 PM Feature #18285: NoMethodError#message uses a lot of CPU/is really expensive to call
I think Ruby users already know well what `#<MyObject:0xXXXXXXXXXXXXXXXX>` means, and using another naming is likely ... Eregon (Benoit Daloze)
03:36 AM Feature #18285: NoMethodError#message uses a lot of CPU/is really expensive to call
"undefined method 'time' for object Integer" is grammatically incorrect.
It would need to be "undefined method 'time...
Dan0042 (Daniel DeLorme)
12:32 PM Feature #18370: Call Exception#full_message to print exceptions reaching the top-level
Great!
@mame Do you plan to make a PR or should I give it a try?
Eregon (Benoit Daloze)
11:19 AM Bug #18292: 3.1.0-dev `include` cause Module to be marked as initialized
ruby_3_1 28ec24db4a8201fa624692cdc1cbef9b00489412 merged revision(s) a79c59472df38297c246b27713c277f2edaefa7a. naruse (Yui NARUSE)
10:08 AM Revision 28ec24db (git): merge revision(s) a79c59472df38297c246b27713c277f2edaefa7a: [Backport #18292]
Allow include before calling Module#initialize
This is to allow Module subclasses that include modules befor...
naruse (Yui NARUSE)
10:07 AM Bug #18469: Backport c764e368bd9c0487e6cc97f8a62e0e0e99a0d7c5
ruby_3_1 1a1737530bff683041b8f45e7acac8c5c85c4163 merged revision(s) c764e368bd9c0487e6cc97f8a62e0e0e99a0d7c5. naruse (Yui NARUSE)
10:07 AM Revision 1a173753 (git): merge revision(s) c764e368bd9c0487e6cc97f8a62e0e0e99a0d7c5: [Backport #18469]
Fix default --jit-max-cache in `ruby --help`
changed at 028f1887c2bfa50dcfc1b623470d6ab1b880fdde
---...
naruse (Yui NARUSE)
10:07 AM Bug #18436: Fix Pathname dot directory globbing
ruby_3_1 e75246c287436621658bc2b8a5f999d8991e7d1d merged revision(s) 5917f49ad03cd3b2c13d3eea85c969a113b83bf8. naruse (Yui NARUSE)
10:06 AM Revision e75246c2 (git): merge revision(s) 5917f49ad03cd3b2c13d3eea85c969a113b83bf8: [Backport #18436]
Fix documentation for Dir.glob
Dir.glob("*", File::FNM_DOTMATCH) no longer includes ".." in the
retu...
naruse (Yui NARUSE)
10:06 AM Bug #18453: YJIT breaks Rails collection caching
ruby_3_1 2640161df5cf18d08ec86a0c1b913d4ee99e102a merged revision(s) 5414de4b6e4372af832e338f8eb7a9fe8de17c84. naruse (Yui NARUSE)
10:06 AM Bug #18434: error_highlight does not work for -e option
ruby_3_1 20091ccad34904cb5ded13a8787f6662a8e2df68 merged revision(s) 0dc7816c4350683ccd020f5759eee4914de0085d. naruse (Yui NARUSE)
10:06 AM Bug #18458: Segmentation fault when missing Warning#warn method
ruby_3_1 d3a2a3c5420fecfee54cbf3fbdd9287bc6c58f03 merged revision(s) 9e0a91d0640600f2dfd7fc1d5fae6667019c9ca5. naruse (Yui NARUSE)
10:02 AM Revision d3a2a3c5 (git): merge revision(s) 9e0a91d0640600f2dfd7fc1d5fae6667019c9ca5: [Backport #18458]
Don't segfault if Warning.warn is undefined
Check that there is a method entry for the method before passing...
naruse (Yui NARUSE)
10:02 AM Bug #18558 (Closed): Numbered arguments + eval
Yes, see [Feature #16432]. nobu (Nobuyoshi Nakada)
10:01 AM Revision 2640161d (git): merge revision(s) 5414de4b6e4372af832e338f8eb7a9fe8de17c84: [Backport #18453]
YJIT: Fix SP index with optarg and unordered kwarg
Previously when we were calling a method with an optional...
naruse (Yui NARUSE)
10:01 AM Revision 20091cca (git): merge revision(s) 0dc7816c4350683ccd020f5759eee4914de0085d: [Backport #18434]
Make RubyVM::AST.of work with code written in `-e` command-line
option
[Bug #18434]
---
...
naruse (Yui NARUSE)
06:42 AM Bug #18443: IO read/write/wait hook bug fixes.
I have confirmed the PR https://github.com/ruby/ruby/pull/5473 contains the two whole backports and a partial backpor... nagachika (Tomoyuki Chikanaga)
01:42 AM Bug #17629 (Closed): macOS, readline compiled with libedit: adding entries to history doesn't work unless Readline.readline is called before populating it
jeremyevans0 (Jeremy Evans)

01/29/2022

08:34 PM Bug #18555: Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
Right, I have an update -- I worked out that `syntax` was also a gem :) so in the end I added:
```
gem "middleman...
anthonyaykut (Anthony Aykut)
08:16 PM Bug #18555: Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
mame (Yusuke Endoh) wrote in #note-9:
> anthonyaykut (Anthony Aykut) wrote in #note-8:
> > and then... `bundle inst...
anthonyaykut (Anthony Aykut)
05:24 AM Bug #18555: Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
anthonyaykut (Anthony Aykut) wrote in #note-8:
> and then... `bundle install`:
>
> ```
...
> Using ffi 1.15.5
...
mame (Yusuke Endoh)
07:30 PM Bug #17629: macOS, readline compiled with libedit: adding entries to history doesn't work unless Readline.readline is called before populating it
Can someone close this ticket? I don't see a possibility to do it myself. radarek (Radosław Bułat)
07:28 PM Bug #18558 (Closed): Numbered arguments + eval
```ruby
def yield_2_args
yield 1, 2
end
yield_2_args { p [eval("_1"), _2] }
```
Running with ruby 2.7.2, ...
radarek (Radosław Bułat)
01:59 PM Revision 44c44b9b (git): Ignore warnings at reading debug info for now
Something seems changed on FreeBSD 13. nobu (Nobuyoshi Nakada)
10:07 AM Revision 67f4729f (git): [Bug#18556] Fallback `MAP_ ANONYMOUS`
Define `MAP_ANONYMOUS` to `MAP_ANON` if undefined on old systems. nobu (Nobuyoshi Nakada)
08:36 AM Misc #18557 (Closed): DevMeeting-2022-02-17
# The next dev meeting
**Date: 2022/02/17 13:00-17:00** (JST)
Log: https://github.com/ruby/dev-meeting-log/blob/m...
mame (Yusuke Endoh)
08:36 AM Misc #18399 (Closed): DevMeeting-2022-01-13
mame (Yusuke Endoh)
08:32 AM Feature #18370: Call Exception#full_message to print exceptions reaching the top-level
Discussed on the dev-meeting.
#18367 was accepted, so @matz said "give it a try". Need to create a PR.
mame (Yusuke Endoh)
08:32 AM Revision fbb3cab9 (git): Add a NEWS entry about [Feature #16806]
k0kubun (Takashi Kokubun)
08:31 AM Feature #16122: Data: simple immutable value object
Discussed on the dev-meeting.
@matz is now negative to allow settings. Having various semantics in one Struct clas...
mame (Yusuke Endoh)
08:29 AM Feature #16806 (Closed): Struct#initialize accepts keyword arguments too by default
@nobu already committed the last step at commit:c956f979e5d05900315d2753d5c3b1389af8dae4. Closing. k0kubun (Takashi Kokubun)
08:10 AM Feature #18438: Add `Exception#additional_message` to show additional error information
@matz accepted the name `detailed_message`. I'll update and improve my PR (or volunteer is welcome)
Note: the rdoc...
mame (Yusuke Endoh)
08:02 AM Feature #18285: NoMethodError#message uses a lot of CPU/is really expensive to call
Discussed at the dev-meeting but no conclusion.
@akr said the part `0xXXXXXXXXXXXXXXXX` is almost useless, and rou...
mame (Yusuke Endoh)
07:28 AM Bug #18556: error: use of undeclared identifier 'MAP_ANONYMOUS'
https://github.com/ruby/ruby/pull/5506 nobu (Nobuyoshi Nakada)
03:08 AM Bug #18556 (Closed): error: use of undeclared identifier 'MAP_ANONYMOUS'
ruby 3.1.0 fails to build on older versions of macOS such as OS X 10.10.5:
```
gc.c:11141:88: error: use of undec...
ryandesign (Ryan Carsten Schmidt)
07:07 AM Bug #18512: MacOS 12.1 Monterey Bug
I'm unsure but you failed to recompile ffi gem because the size of ffi_c.bundle did not change.
Before:
```
{
"...
mame (Yusuke Endoh)
12:08 AM Bug #18512: MacOS 12.1 Monterey Bug
IPS Report:
```
oucl5976@ck1 cf-zendesk % cat ~/Library/Logs/DiagnosticReports/ruby-2022-01-29-000341.ips
{"app_...
[email protected] (Paul Liu)
12:06 AM Bug #18512: MacOS 12.1 Monterey Bug
```
oucl5976@ck1 ~ % gem uninstall ffi
You have request...
[email protected] (Paul Liu)
06:33 AM Revision 90a8b1c5 (git): Remove a typo hash [ci skip]
nobu (Nobuyoshi Nakada)
06:29 AM Revision 7672f6a4 (git): mkmf: unify duplicate code in pkg_config
nobu (Nobuyoshi Nakada)
06:22 AM Revision b90e56e6 (git): mkmf: pkg_config accepts multiple options
mdalessio (Mike Dalessio)
06:22 AM Revision 24c7e75d (git): test: backfill coverage for MakeMakefile.pkg_config
mdalessio (Mike Dalessio)
06:08 AM Bug #18514: ruby 2.6.9's Date#jisx0301 does not support Reiwa
> Can you confirm with date-2.0.3 ?
Thank you so much.
I tried it, then I get good result!
kouji (Kouji Takao)
03:01 AM Feature #18490: MakeMakefile.pkg_config should accept multiple options
Accepted.
Matz.
matz (Yukihiro Matsumoto)

01/28/2022

11:51 PM Bug #18512: MacOS 12.1 Monterey Bug
[email protected] (Paul Liu) wrote in #note-4:
> gem install ffi --enable-libffi-alloc
> ERROR: While executing g...
jeremyevans0 (Jeremy Evans)
11:39 PM Bug #18512: MacOS 12.1 Monterey Bug
gem install ffi --enable-libffi-alloc
ERROR: While executing gem ... (Gem::OptionParser::InvalidOption)
invali...
[email protected] (Paul Liu)
11:13 PM Feature #18551: Make `Range#reverse_each` to raise an exception if endless
Eregon (Benoit Daloze) wrote in #note-1:
> OTOH Range operations that work differently for numerics tend to make Ran...
kyanagi (Kouhei Yanagita)
04:16 PM Feature #18551: Make `Range#reverse_each` to raise an exception if endless
Yes, this is a useful change. Although wouldn't it be better to prevent `#to_a` instead of only `#reverse_each` ?
...
Dan0042 (Daniel DeLorme)
01:12 PM Feature #18551: Make `Range#reverse_each` to raise an exception if endless
I checked the PR, seems a useful change to me. Eregon (Benoit Daloze)
01:11 PM Feature #18551: Make `Range#reverse_each` to raise an exception if endless
There is no Range#reverse_each currently, only Enumerable#reverse_each, and Enumerable can't know about this.
But ma...
Eregon (Benoit Daloze)
11:02 PM Feature #18515: Add Range#reverse_each implementation
In general, I think it would be better to improve `#reverse_each` by using `#pred` (predecessor; the inverse of `#suc... kyanagi (Kouhei Yanagita)
08:04 PM Bug #18555: Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
mame (Yusuke Endoh) wrote in #note-7:
> If you are using bundler, try the second one.
>
> ```
> bundle config bu...
anthonyaykut (Anthony Aykut)
07:51 PM Bug #18555: Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
If you are using bundler, try the second one.
```
bundle config build.ffi --enable-libffi-alloc
bundle install
...
mame (Yusuke Endoh)
02:02 PM Bug #18555: Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
mame (Yusuke Endoh) wrote in #note-5:
> Ah, maybe it is a typo. Could you try `gem install ffi -- --enable-libffi-al...
anthonyaykut (Anthony Aykut)
07:41 AM Bug #18555: Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
Ah, maybe it is a typo. Could you try `gem install ffi -- --enable-libffi-alloc`? mame (Yusuke Endoh)
04:04 AM Bug #18555: Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
mame (Yusuke Endoh) wrote in #note-3:
> Could you try this? https://github.com/ffi/ffi/issues/800#issuecomment-10083...
anthonyaykut (Anthony Aykut)
02:18 AM Bug #18555: Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
Could you try this? https://github.com/ffi/ffi/issues/800#issuecomment-1008308614 mame (Yusuke Endoh)
01:51 AM Bug #18555: Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
Attaching my `gem env` output anthonyaykut (Anthony Aykut)
01:47 AM Bug #18555: Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
By the way, I have noticed that running
`ruby -e 'require "rbconfig"; pp RbConfig::CONFIG' | grep "cpu"`
gives ...
anthonyaykut (Anthony Aykut)
01:37 AM Bug #18555 (Closed): Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
Hi All,
First of all, I am not a programmer or coder so I am having great difficulty solving this puzzle.
Since...
anthonyaykut (Anthony Aykut)
06:33 PM Revision 1bd033cb (git): * 2022-01-29 [ci skip]
git[bot]
06:33 PM Revision 018036c2 (git): Remove assert_equal that will never be run
`@s1.set_len(3)` will raise so the `assert_equal` will never be ran. peterzhu2118 (Peter Zhu)
03:26 PM Bug #18511: ruby in infinite loop consuming 100% CPU
> could someone look into the core dump ? Is there any possibility to upload a 55MB file ?
I can't guarantee that ...
alanwu (Alan Wu)
09:47 AM Bug #18511: ruby in infinite loop consuming 100% CPU
> Depending on your needs, maybe the pure Ruby [json_pure] gem is good enough. If you have performance requirements, ... shenningz (Henning Sackewitz)
01:43 PM Revision c26e41c9 (git): * 2022-01-28 [ci skip]
git[bot]
01:42 PM Revision e0c5488f (git): Update to ruby/spec@902ab83
Eregon (Benoit Daloze)
01:42 PM Revision bb5f7108 (git): Update to ruby/mspec@49adc2f
Eregon (Benoit Daloze)
01:40 PM Bug #18518: NoMemoryError + [FATAL] failed to allocate memory for twice 1 << large
From this log it's clear this issue happens on 3.1.0 macOS:
https://github.com/eregon/rubyspec/runs/4981235909?check...
Eregon (Benoit Daloze)
01:29 PM Bug #18518: NoMemoryError + [FATAL] failed to allocate memory for twice 1 << large
Actually I'm not sure this is properly fixed on 3.1.0, it looks brittle, for instance it fails in GitHub Actions on m... Eregon (Benoit Daloze)
09:43 AM Feature #18552 (Closed): Expose `VALUE rb_singleton_class_get(VALUE)` to extensions
Nevermind, on first read I didn't notice that these were two distinct function. That's good enough I think, no need t... byroot (Jean Boussier)
09:33 AM Feature #18554: Move unicode_normalize to a default gem
Just a few comments, not sure I have thought everything through completely.
One of the motivations for implementin...
duerst (Martin Dürst)
01:03 AM Feature #18554: Move unicode_normalize to a default gem
Just leaving my :+1: to this idea; not sure how difficult though. shyouhei (Shyouhei Urabe)
06:23 AM Feature #18136: take_while_after
In today's developer meeting, Matz said the only acceptable name so far was "drop_after" (if he had to choose). He's... knu (Akinori MUSHA)

01/27/2022

10:42 PM Feature #18552: Expose `VALUE rb_singleton_class_get(VALUE)` to extensions
> The name rb_singleton_class_get() doesn't seem great though.
Yeah, it could definitely be expose under another n...
byroot (Jean Boussier)
09:15 PM Feature #18552: Expose `VALUE rb_singleton_class_get(VALUE)` to extensions
A new function seems better than that flag check (which doesn't work on TruffleRuby currently, will always return `fa... Eregon (Benoit Daloze)
05:22 PM Feature #18552: Expose `VALUE rb_singleton_class_get(VALUE)` to extensions
> Which does seem very clean.
I of course meant "doesn't". Oops.
> In this case, it's exposing yet another oper...
byroot (Jean Boussier)
05:12 PM Feature #18552: Expose `VALUE rb_singleton_class_get(VALUE)` to extensions
> `!SPECIAL_CONST(obj) && FL_TEST(RBASIC(obj)->klass, FL_SINGLETON);`
> Which does seem very clean.
Beyond cleanl...
alanwu (Alan Wu)
11:57 AM Feature #18552 (Closed): Expose `VALUE rb_singleton_class_get(VALUE)` to extensions
Right now the only way to check wether an object has a singleton class is to do something akin to:
```c
!SPECIAL_...
byroot (Jean Boussier)
04:49 PM Feature #18554 (Open): Move unicode_normalize to a default gem
Could we move the rest of unicode_normalize to a default gem?
The recent updates were mostly updating the Unicode ...
headius (Charles Nutter)
04:22 PM Feature #18339: GVL instrumentation API
I opened a draft for it: https://github.com/ruby/ruby/pull/5500
@ko1 if you'd like to have a look.
byroot (Jean Boussier)
02:30 PM Bug #18553 (Closed): Memory leak on compiling method call with kwargs
The following code produces a memory leak:
```ruby
p(foo: 1)
```
It comes from the allocation in `compile.c`:...
ibylich (Ilya Bylich)
11:54 AM Revision d66e7ec7 (git): [ruby/reline] Add a comment for VK_MENU
https://github.com/ruby/reline/commit/ee307c2b01 aycabta (aycabta .)
11:54 AM Revision f4ee6054 (git): [ruby/reline] The AltGr behaves exactly the same as Ctrl+Alt
On European keyboards.
https://github.com/ruby/reline/commit/75fe9759a4
aycabta (aycabta .)
09:11 AM Bug #18516: Memory leak on aliasing method to itself
I took the liberty to set the backport field.
I was able to repro on 2.6, 2.7,3.0 and 3.1. However 2.6 is security...
byroot (Jean Boussier)
06:46 AM Bug #18516 (Closed): Memory leak on aliasing method to itself
Applied in changeset commit:git|e89d80702bd98a8276243a7fcaa2a158b3bfb659.
----------
Fix memory leak at the same nam...
nobu (Nobuyoshi Nakada)
08:16 AM Revision f511ff3b (git): [ruby/yaml] Add JRuby-specific warning when psych fails
The error here is confusing for users because JRuby does not use
libyaml and installing it will not help. Instead, JR...
headius (Charles Nutter)
06:46 AM Revision e89d8070 (git): Fix memory leak at the same named alias [Bug #18516]
When aliasing a method to the same name method, set a separate bit
flag on that method definition, instead of the ref...
nobu (Nobuyoshi Nakada)
05:58 AM Feature #18551 (Closed): Make `Range#reverse_each` to raise an exception if endless
https://github.com/ruby/ruby/pull/5498
Currently, `Range#reverse_each` for an endless range never returns.
```
...
kyanagi (Kouhei Yanagita)
05:28 AM Revision 7ff1bf31 (git): An alias can suppress method redefinition warning
nobu (Nobuyoshi Nakada)
05:00 AM Bug #18517 (Closed): 0 << (2**40) is NoMemoryError but 0 << (2**80) is 0
Applied in changeset commit:git|6a6227e0168b059c3ed34c9f0ace2e5dc2364221.
----------
Shifting zero always results in...
nobu (Nobuyoshi Nakada)
05:00 AM Revision 6a6227e0 (git): Shifting zero always results in zero [Bug #18517]
nobu (Nobuyoshi Nakada)
04:51 AM Bug #18514: ruby 2.6.9's Date#jisx0301 does not support Reiwa
I released date-2.0.3 with Reiwa support.
@kouji Can you confirm with [date-2.0.3](https://rubygems.org/gems/date/...
hsbt (Hiroshi SHIBATA)
03:33 AM Revision 99d02cae (git): [ruby/logger] Fix log rotation inter-process lock failed.
Issue only occurs in JRuby 9.3.0.0 and Windows and the full
console output is:
log rotation inter-process lock faile...
Jesse Chavez
01:52 AM Feature #18513: Hide patchlevel from `ruby -v`
https://github.com/ruby/ruby/pull/5496 hsbt (Hiroshi SHIBATA)

01/26/2022

08:56 PM Feature #13110: Byte-based operations for String
Seems reasonable to me. Eregon (Benoit Daloze)
01:46 AM Feature #13110: Byte-based operations for String
Are there any objections to introduce only byteindex and byteoffset? shugo (Shugo Maeda)
08:28 PM Revision d3d888b9 (git): [lldb] Handle MacOS 64Kb heap pages in the lldb helpers
eightbitraptor (Matt V-H)
07:42 PM Bug #18511: ruby in infinite loop consuming 100% CPU
@shenningz
> Is there any way to replace the yajl-ruby C extension with another json extension?
Depending on y...
alanwu (Alan Wu)
07:07 PM Feature #18408: Allow pattern match to set instance variables
Eregon (Benoit Daloze) wrote in #note-17:
> In practice it should rarely matter because if a clause isn't matched th...
Dan0042 (Daniel DeLorme)
05:02 PM Revision 1a180b7e (git): Streamline cached attr reader / writer indexes
This commit removes the need to increment and decrement the indexes
used by vm_cc_attr_index getters and setters. It ...
jemmai (Jemma Issroff)
04:29 PM Bug #18389 (Closed): `binding.irb` can fail in some classes that implement `context` and `print` methods.
Applied in changeset commit:git|b6b2e489f10bfc771beae8fa0ee5237613acd18f.
----------
[ruby/irb] Changed to call Kern...
osyo (manga osyo)
04:29 PM Revision 3ce97a18 (git): * 2022-01-27 [ci skip]
git[bot]
04:28 PM Revision b6b2e489 (git): [ruby/irb] Changed to call Kernel.print
If you call `binding.irb` on a class defined `#print`, it will crash, so call `Kernel.print`.
Fix [Bug #18389] `bind...
osyo (manga osyo)
04:03 PM Bug #18517: 0 << (2**40) is NoMemoryError but 0 << (2**80) is 0
https://github.com/ruby/ruby/pull/5494 nobu (Nobuyoshi Nakada)
03:21 PM Bug #18517 (Closed): 0 << (2**40) is NoMemoryError but 0 << (2**80) is 0
I've been looking at Integer#{<<,>>} with RHS bignum and long and there are several issues.
This seems a clear bug...
Eregon (Benoit Daloze)
03:44 PM Bug #18516: Memory leak on aliasing method to itself
https://github.com/ruby/ruby/pull/5493 nobu (Nobuyoshi Nakada)
03:20 PM Bug #18516: Memory leak on aliasing method to itself
ibylich (Ilya Bylich) wrote in #note-1:
> but if we stop increment `alias_count` on `alias foo foo` the warning appe...
ufuk (Ufuk Kayserilioglu)
02:30 PM Bug #18516: Memory leak on aliasing method to itself
As @nobu mentioned the following code gives no warnings (in verbose mode):
```ruby
class A
def foo; end
ali...
ibylich (Ilya Bylich)
01:22 PM Bug #18516 (Closed): Memory leak on aliasing method to itself
The following code produces a memory leak:
```ruby
class A
1.upto(Float::INFINITY) do |i|
define_method(:...
ibylich (Ilya Bylich)
03:30 PM Bug #18518 (Rejected): NoMemoryError + [FATAL] failed to allocate memory for twice 1 << large
Repro:
```ruby
exp = 2**40 # also fails with bignum e.g. 2**64
def exc
begin
yield
rescue NoMemoryErr...
Eregon (Benoit Daloze)
02:45 PM Revision e7141630 (git): Fix typo in assertion in gc.c
peterzhu2118 (Peter Zhu)
09:23 AM Revision bffd6cbd (git): Check if `execv` is available for ruby/missing.h
As MinGW has the declaration, the `dllimport` attribute difference
is warned when compiling missing/*.c without inclu...
nobu (Nobuyoshi Nakada)
07:52 AM Bug #18501: [BUG] try to mark T_NONE object in RubyVM::InstructionSequence. load_from_binary
Thanks @tenderlove, your explanation makes sense to me.
From your description we should be able to reproduce with...
byroot (Jean Boussier)
06:56 AM Revision 4010cbfe (git): Use the prefixed pkg-config command
nobu (Nobuyoshi Nakada)
05:57 AM Feature #18515 (Closed): Add Range#reverse_each implementation
PR is ~~https://github.com/ruby/ruby/pull/5489~~ https://github.com/ruby/ruby/pull/8525
Current `Range#reverse_eac...
kyanagi (Kouhei Yanagita)
05:34 AM Revision 16e75855 (git): Unpoison the cached object in the exact size
nobu (Nobuyoshi Nakada)
04:09 AM Revision c925d3b6 (git): [rubygems/rubygems] Fix `force_ruby_platform` ignored when lockfile includes the current specific platform
https://github.com/rubygems/rubygems/commit/9ca371adf8 deivid (David Rodríguez)
03:07 AM Bug #18514: ruby 2.6.9's Date#jisx0301 does not support Reiwa
I prepared to fix this regression.
https://github.com/ruby/date/pull/47
I will release date-2.0.3 for Ruby 2.6 ...
hsbt (Hiroshi SHIBATA)
02:11 AM Bug #18514 (Closed): ruby 2.6.9's Date#jisx0301 does not support Reiwa
usa (Usaku NAKAMURA)
01:45 AM Bug #18514 (Closed): ruby 2.6.9's Date#jisx0301 does not support Reiwa
In ruby 2.6.9 (ruby 2.6.9p207 (2021-11-24 revision 67954) [x86_64-darwin20]).
$ ruby -rdate -e 'p Date.new(2019, 5, ...
kouji (Kouji Takao)
01:52 AM Feature #18513: Hide patchlevel from `ruby -v`
:+1:, patch levels no longer serves us very well. shyouhei (Shyouhei Urabe)
01:05 AM Revision cc8064ba (git): Do not need to print to stderr
ko1 (Koichi Sasada)
12:56 AM Revision e953d686 (git): refactoring btest output
don't duplicate the message, but prepare `out` var to choose
stdout/err.
ko1 (Koichi Sasada)
12:56 AM Revision cac6fe90 (git): add `--stderr-on-failure` option to test-all
Now all failure messages are printed to stdout. This option
makes all failure messages printed into stderr.
ko1 (Koichi Sasada)

01/25/2022

11:57 PM Bug #18501: [BUG] try to mark T_NONE object in RubyVM::InstructionSequence. load_from_binary
## Hash is writing T_NONE references
I think it's possible that T_NONE objects are being written in to a hash. Ba...
tenderlovemaking (Aaron Patterson)
09:51 PM Revision 142d5db1 (git): Support ID_TABLE_STOP for replace function
Iteration should top if the replace function returns ID_TABLE_STOP. peterzhu2118 (Peter Zhu)
09:51 PM Revision 82f0580a (git): Call rb_id_table_foreach_values instead
These places never replace the value, so call rb_id_table_foreach_values
instead of rb_id_table_foreach_values_with_r...
peterzhu2118 (Peter Zhu)
09:51 PM Revision 4d9ad91a (git): Rename rb_id_table_foreach_with_replace
Renames rb_id_table_foreach_with_replace to
rb_id_table_foreach_values_with_replace and passes only the value to the
...
peterzhu2118 (Peter Zhu)
08:57 PM Revision 6e901939 (git): Revert "`ID` in `rb_id_table_foreach_with_replace` [Feature #18253]"
This reverts commit 530e485265dac6e2aea1d587a4a79a314cc772cf.
`rb_id_table_foreach_with_replace` is used during GC co...
nobu (Nobuyoshi Nakada)
05:24 PM Revision ac574052 (git): * 2022-01-26 [ci skip]
git[bot]
05:24 PM Revision 42ef3fca (git): [rubygems/rubygems] Use Gem::Platform.local instead of RUBY_PLATFORM
In certain places, we want to display the platform name with
`Gem::Platform.local` instead of `RUBY_PLATFORM`.
Fixes...
Ngan Pham
02:38 PM Revision b07879e5 (git): Remove redundant if statement in try_move
The if statement is redundant since if `index == 0` then
`BITS_BITLENGTH * index == 0`.
peterzhu2118 (Peter Zhu)
02:10 PM Revision e3b5cc88 (git): NEWS: `Fixnum` and `Bignum` are removed finally [Feature #12005]
nobu (Nobuyoshi Nakada)
01:12 PM Revision 342e7a09 (git): [rubygems/rubygems] Fix spec to not touch the network
And not depend on the state of rack's master branch, in particular, on
their Ruby support range.
https://github.com/...
deivid (David Rodríguez)
01:12 PM Revision cd806e19 (git): [rubygems/rubygems] Remove unnecessary comment
https://github.com/rubygems/rubygems/commit/ef4e5c6169 deivid (David Rodríguez)
12:39 PM Feature #18513 (Closed): Hide patchlevel from `ruby -v`
We still show patch-level like `3.1.0p0` with `ruby -v`. But it has no benefit for users.
In fact, I heard "What ...
hsbt (Hiroshi SHIBATA)
11:29 AM Bug #18512 (Feedback): MacOS 12.1 Monterey Bug
Could you try this? https://github.com/ffi/ffi/issues/800#issuecomment-1008308614 mame (Yusuke Endoh)
11:20 AM Bug #18512: MacOS 12.1 Monterey Bug
I guess this is related to #18496, and maybe the cause is FFI with M1. mame (Yusuke Endoh)
10:41 AM Bug #18512 (Third Party's Issue): MacOS 12.1 Monterey Bug
Steps to Reproduce
1. Create an Zendesk App: https://developer.zendesk.com/documentation/apps/app-developer-guide/za...
[email protected] (Paul Liu)
08:57 AM Bug #18507: Incorrect target_os detection in configure script

In case 'arm-unknown-linux-gnueabihf' GNU Autotools recognizes target_os as 'linux-gnueabihf' (and 'linux-gnu' if '...
rcl (Andrew Kosteltsev)
07:44 AM Feature #18483 (Closed): `RUBY_ON_BUG` feature for ruby release version
Applied in changeset commit:git|a51e1cd682daeb76f201e62eaedcf6d51a18cffe.
----------
enable `RUBY_ON_BUG` on release...
ko1 (Koichi Sasada)
07:43 AM Revision a51e1cd6 (git): enable `RUBY_ON_BUG` on release build
[Feature #18483] ko1 (Koichi Sasada)
07:33 AM Feature #18181: Introduce Enumerable#min_with_value, max_with_value, and minmax_with_value
Another name proposal:
When I write `array.min_with_value { foo }`, I mean "minimize foo with an element in array"...
kyanagi (Kouhei Yanagita)
02:15 AM Feature #18490: MakeMakefile.pkg_config should accept multiple options
@nobu, I wanted to check if there was any other feedback on this feature? Thank you again for your time. mdalessio (Mike Dalessio)
12:33 AM Bug #18437 (Closed): 3.1.0 install stucks on FreeBSD & NFS
kou (Kouhei Sutou)
12:23 AM Bug #18437: 3.1.0 install stucks on FreeBSD & NFS
Oh, I see. Thanks for the fix.
I think this issue has been resolved.
# 自分で Issue 閉じれないんですね……。
os (Shigeki OHARA)

01/24/2022

11:50 PM Revision de678cd5 (git): [ruby/pathname] Officially drop support for ruby 2.6 or older
The gem doesn't even install on old rubies, but since the gemspec claims
it's supported, `gem install pathname` will ...
deivid (David Rodríguez)
11:41 PM Feature #18253 (Closed): `ID` in `rb_id_table_foreach_with_replace`
Applied in changeset commit:git|530e485265dac6e2aea1d587a4a79a314cc772cf.
----------
`ID` in `rb_id_table_foreach_wi...
nobu (Nobuyoshi Nakada)
11:40 PM Revision 530e4852 (git): `ID` in `rb_id_table_foreach_with_replace` [Feature #18253]
Pass the `ID` from `rb_id_table_foreach_with_replace` to callback
functions.
nobu (Nobuyoshi Nakada)
10:40 PM Feature #18273: Class#subclasses
I see, and tend to agree—to some extent, at least!
Not sure how much can be done here—some amount of "semantically...
zverok (Victor Shepelev)
03:45 PM Feature #18273: Class#subclasses
More than the existence of a real collection (which is a private implementation detail), it is the existence of a cle... fxn (Xavier Noria)
02:53 PM Feature #18273: Class#subclasses
@zverok Sorry, we were typing at the same time.
Exactly! That is my point of view!
fxn (Xavier Noria)
02:52 PM Feature #18273: Class#subclasses
@zverok I think our disagreement is clear. Perhaps your position is also the one of @byroot.
To me, `Class#subclas...
fxn (Xavier Noria)
02:52 PM Feature #18273: Class#subclasses
@fxn You know what?
I think I actually got your point:
* `Class#ancestors` represent a "really existing thing", ...
zverok (Victor Shepelev)
02:11 PM Feature #18273: Class#subclasses
> In the sense that, as a programmer, if I do not change the collection, it should stay the same.
Of course, removin...
fxn (Xavier Noria)
01:55 PM Feature #18273: Class#subclasses
@zverok sure!
I see your point, it works as it is supposed to be.
My point is, `Class#subclasses` should be det...
fxn (Xavier Noria)
01:48 PM Feature #18273: Class#subclasses
We are going in circles here :( It is "non-deterministic" all right, but also reflects the reality.
It is more or ...
zverok (Victor Shepelev)
01:38 PM Feature #18273: Class#subclasses
@zverok one thing is "subclasses can vanish", because the language is dynamic (like ancestors can change), and a diff... fxn (Xavier Noria)
01:26 PM Feature #18273: Class#subclasses
TBH, I still fail to see the point of how the API clearly reflecting the reality should be considered a "broken windo... zverok (Victor Shepelev)
12:19 PM Feature #18273: Class#subclasses
Hmm, now that I think, maybe you don't see how this affects Zeitwerk directly.
In Zeitwerk, "reloading" means issuin...
fxn (Xavier Noria)
11:19 AM Feature #18273: Class#subclasses
@zverok Absolutely, the API of a dynamic language should be dynamic.
For example, take this:
```ruby
C = Class...
fxn (Xavier Noria)
10:38 AM Feature #18273: Class#subclasses
@fxn Isn't it an inherent property of a dynamic language, that whatever you can introspect about the code structure, ... zverok (Victor Shepelev)
10:31 AM Feature #18273: Class#subclasses
To me, this feature makes sense in a language where subclasses cannot disappear once created. In Ruby, they are regul... fxn (Xavier Noria)
10:28 AM Feature #18273: Class#subclasses
> Sure, and you are entitled to it, I just don't understand how you reconcile it with the existence of weak reference... fxn (Xavier Noria)
10:20 AM Feature #18273: Class#subclasses
Sure, and you are entitled to it, I just don't understand how you reconcile it with the existence of weak references. byroot (Jean Boussier)
10:18 AM Feature #18273: Class#subclasses
That is, _since_ objects are not gced as soon as they are unreachable, this implementation of `Class#subclasses` is n... fxn (Xavier Noria)
10:17 AM Feature #18273: Class#subclasses
To me it behave just like weak references do:
```ruby
weakmap = ObjectSpace::WeakMap.new
weakmap[Object.new] = O...
byroot (Jean Boussier)
10:13 AM Feature #18273: Class#subclasses
What I mean is that `Class#subclasses` is effectively a cache that does not have proper invalidation.
The red flag...
fxn (Xavier Noria)
10:07 AM Feature #18273: Class#subclasses
I don't think I understand what your issue is. `subclasses` returns all the *live object* (not yet GCed) that are dir... byroot (Jean Boussier)
10:01 AM Feature #18273: Class#subclasses
> This is perfectly fine, Ruby isn't concerned about wether a Class is still present in the constant table or not
...
fxn (Xavier Noria)
08:26 AM Feature #18273: Class#subclasses
> In my view, this method does not play well with object lifetime, semantically.
This is perfectly fine, Ruby isn'...
byroot (Jean Boussier)
12:32 AM Feature #18273: Class#subclasses
Said in a different way:
```ruby
C = Class.new
-> { Class.new(C); 1 }.call
pp C.subclasses
pp C.subclasses
``...
fxn (Xavier Noria)
12:15 AM Feature #18273: Class#subclasses
In my view, this method does not play well with object lifetime, semantically.
Take for example:
```ruby
C = Class....
fxn (Xavier Noria)
07:57 PM Bug #18511: ruby in infinite loop consuming 100% CPU
Right now we cannot reproduce this systematically, it just occurs with our Fluentd workload sooner or later.
Fluentd...
shenningz (Henning Sackewitz)
04:06 PM Bug #18511 (Feedback): ruby in infinite loop consuming 100% CPU
This happens inside the yajl-ruby C extension. Can you reproduce this without yajl-ruby? jeremyevans0 (Jeremy Evans)
02:13 PM Bug #18511 (Closed): ruby in infinite loop consuming 100% CPU
After running Fluentd (Td-agent) workload for several hours or days, Ruby hangs in an infinite loop.
gdb stack tra...
shenningz (Henning Sackewitz)
07:34 PM Revision 87784fde (git): Keep right operand within width when right shifting
NUM_IN_PAGE could return a value much larger than 64. According to the
C11 spec 6.5.7 paragraph 3 this is undefined b...
peterzhu2118 (Peter Zhu)
04:11 PM Revision 97ab2599 (git): * 2022-01-25 [ci skip]
git[bot]
04:11 PM Revision 4317a675 (git): [rubygems/rubygems] Forbid downgrading past the originally shipped version on Ruby 3.1
https://github.com/rubygems/rubygems/commit/68bef90339 deivid (David Rodríguez)
02:21 PM Revision 663833b0 (git): [wasm] Disallow compaction
WebAssembly doesn't support signals so we can't use read
barriers so we can't use compaction.
peterzhu2118 (Peter Zhu)
09:10 AM Revision 5de62fe3 (git): Fixed an missing percent in the batch file
nobu (Nobuyoshi Nakada)
09:03 AM Revision 85502f3a (git): [ruby/io-wait] [DOC] Fix the return values [ci skip]
Even since 0.1.0, other than +true+ or +false+ may be returned.
https://github.com/ruby/io-wait/commit/d0721e300a
nobu (Nobuyoshi Nakada)
03:12 AM Revision e7b573e5 (git): [ruby/io-wait] Document mandatory require for using io/wait methods
https://github.com/ruby/io-wait/commit/2beb05bd48 apatniv (Vivek Ak)
01:57 AM Revision c6a19b77 (git): Update default gems list at 328e6bf3b3a167529e5c64a281e773 [ci skip]
git[bot]
01:56 AM Revision 328e6bf3 (git): [ruby/bigdecimal] Version 3.1.2
https://github.com/ruby/bigdecimal/commit/57e2194135 Kenta Murata
01:56 AM Revision 7db195d5 (git): [ruby/bigdecimal] Fix the maximum precision of the quotient
Fixes https://github.com/ruby/bigdecimal/pull/220
https://github.com/ruby/bigdecimal/commit/127a1b5a31
Kenta Murata
01:56 AM Revision 506728d0 (git): [ruby/bigdecimal] Fix typo
https://github.com/ruby/bigdecimal/commit/79c09b4dac Kenta Murata
01:17 AM Revision d77f2ff5 (git): [ruby/rdoc] Fix typo in RDoc::Task example
https://github.com/ruby/rdoc/commit/7a77e55c2a gemmaro
 

Also available in: Atom