Project

General

Profile

Activity

From 11/27/2021 to 12/03/2021

12/03/2021

11:19 PM Feature #17881: Add a Module#const_added callback
I added the ticket back to the next developer meeting (Dec 9th) agenda. byroot (Jean Boussier)
11:13 PM Feature #17881: Add a Module#const_added callback
I thought `debug` didn't have this tracepoint issue, hence why I didn't bother to push this more. But if it does, the... byroot (Jean Boussier)
11:02 PM Feature #17881: Add a Module#const_added callback
I came across this issue when researching why `zeitwerk`-enabled applications can fail to autoload constants inside `... brasic (Carl Brasic)
11:19 PM Misc #18346: DevelopersMeeting20211209Japan
- [Feature #17881] Add a Module#const_added callback
- Would allow the Zeitwerk autoloader to no longer use tracep...
byroot (Jean Boussier)
08:58 PM Revision 3be06723 (git): NEWS for [GH-#5146] [ci skip] (#5210)
jhawthorn (John Hawthorn)
08:18 PM Revision c38c1d82 (git): [rubygems/rubygems] Let original EACCES error be raised
This block of code already wraps file operations with
`SharedHelpers.filesystem_access`, which rescues and re-raises ...
deivid (David Rodríguez)
05:45 PM Revision 54ca530d (git): YJIT: Add ivar counter exits
On Rails we're seeing a lot of exits for ivars in the Active Record
tests. In trying to track them down it was hard t...
eileencodes (Eileen Uchitelle)
04:46 PM Revision 7fc9d83b (git): Fix link (#5208)
burdettelamar (Burdette Lamar)
03:45 PM Bug #18374: make: Circular spec/ruby/optional/capi/ext/array_spec.c <- spec/ruby/optional/capi/ext/array_spec.c dependency dropped.
vo.x (Vit Ondruch) wrote in #note-3:
> So looking into the source:defs/gmake.mk history (thx for the pointer), the c...
vo.x (Vit Ondruch)
03:42 PM Bug #18374: make: Circular spec/ruby/optional/capi/ext/array_spec.c <- spec/ruby/optional/capi/ext/array_spec.c dependency dropped.
Carefully checking the logs, there is one more place with similar issue:
~~~
make: Circular ruby.pc <- ruby.pc de...
vo.x (Vit Ondruch)
03:24 PM Bug #18374: make: Circular spec/ruby/optional/capi/ext/array_spec.c <- spec/ruby/optional/capi/ext/array_spec.c dependency dropped.
So looking into the source:defs/gmake.mk history (thx for the pointer), the commit:git|d1f0d1ca2ea4d7418b096ce71f68ce... vo.x (Vit Ondruch)
01:30 PM Bug #18374: make: Circular spec/ruby/optional/capi/ext/array_spec.c <- spec/ruby/optional/capi/ext/array_spec.c dependency dropped.
This is the build [1], but for your convenience and because it will be garbage collected soon, I'll attach the full b... vo.x (Vit Ondruch)
03:44 PM Bug #18375: Timeout.timeout(sec, klass: MyExceptionClass) can not retry correctly.
jeremyevans0 (Jeremy Evans) wrote in #note-2:
> I don't think this is a bug, and I don't think timeout can work with ...
zw963 (Wei Zheng)
03:40 PM Feature #18181: Introduce Enumerable#min_with_value, max_with_value, and minmax_with_value
There's also a frequent similar problem with `#find` when you need to find the first matched value instead of entry. ... cvss (Kirill Vechera)
03:00 PM Feature #18181: Introduce Enumerable#min_with_value, max_with_value, and minmax_with_value
What about `min_with` ?
```ruby
%w(abcde fg hijk).min_with(&:size) # => ['fg', 2]
...
Dan0042 (Daniel DeLorme)
05:04 AM Feature #18181: Introduce Enumerable#min_with_value, max_with_value, and minmax_with_value
Just for confirmation, is it OK that `min_with_value` returns only a single value?
I don't like the name `_with_valu...
matz (Yukihiro Matsumoto)
03:26 PM Revision 08153902 (git): Refactor GC functions to have consistent naming
Refactor function names for consistency. Function with name xyz_page
should have a corresponding function named xyz_p...
peterzhu2118 (Peter Zhu)
03:04 PM Bug #18073: test/ruby/test_jit.rb: "error: invalid use of '__builtin_va_arg_pack ()'" on Ruby 2.7.4 on gcc 4.8.5
I run into a similar issue (in https://github.com/DataDog/dd-trace-rb/issues/1799); in my case, I was running the Sem... ivoanjo (Ivo Anjo)
03:01 PM Revision 81eadd97 (git): * 2021-12-04 [ci skip]
git[bot]
03:01 PM Revision ec7f14d9 (git): Add `nd_type_p` macro
S_H_ (Shun Hiraoka)
02:44 PM Feature #18384: Pattern Match Object
> it leads to a proverbial rabbit hole
Probably, instead of a separate Patter Match class it would be enough to make...
cvss (Kirill Vechera)
09:23 AM Feature #18384: Pattern Match Object
There was an idea in the past, while various attempts to facilitate functional programming were considered, to deprec... hmdne (hmdne -)
08:35 AM Feature #18384: Pattern Match Object
I remember we briefly discussed the problem with @palkan and @matz in person at RubyConf'19, and, if the memory serve... zverok (Victor Shepelev)
07:06 AM Feature #18384: Pattern Match Object
See also this comment from Zverok: https://bugs.ruby-lang.org/issues/18369#note-11 baweaver (Brandon Weaver)
07:05 AM Feature #18384 (Open): Pattern Match Object
Related to discussion in #18369 it might be nice to have a literal syntax for constructing a single pattern match cas... baweaver (Brandon Weaver)
02:34 PM Feature #18275: Add an option to define_method to not capture the surrounding environment
~~Does `Ractor.make_shareable(proc{})` actually _do_ anything? It seem to only check if the proc is (can be?) shareab... Dan0042 (Daniel DeLorme)
11:56 AM Feature #18275: Add an option to define_method to not capture the surrounding environment
+1 for `define_method(:show_a, shareable: true){p a}`.
That nicely avoids the issue of whether `Ractor.make_shareabl...
Eregon (Benoit Daloze)
03:42 AM Feature #18275 (Open): Add an option to define_method to not capture the surrounding environment
Eregon's comment #7 is true. This is why `Ractor.make_shareable(proc_object)` is supported.
So
```ruby
class C
a ...
ko1 (Koichi Sasada)
02:32 PM Feature #18279: ENV.merge! support multiple arguments as Hash.merge!
https://github.com/ruby/ruby/pull/5207 nobu (Nobuyoshi Nakada)
03:53 AM Feature #18279 (Assigned): ENV.merge! support multiple arguments as Hash.merge!
`Hash#merge!(*other)` accepts multiple values, so I think it is acceptable.
Matz, how about it?
ko1 (Koichi Sasada)
02:23 PM Feature #18369: users.detect(:name, "Dorian") as shorthand for users.detect { |user| user.name == "Dorian" }
> Close enough?
Obviously :) But still a "hack". E.g. it is not a "value representing the pattern", this way we can ...
zverok (Victor Shepelev)
02:04 PM Feature #18369: users.detect(:name, "Dorian") as shorthand for users.detect { |user| user.name == "Dorian" }
zverok (Victor Shepelev) wrote in #note-11:
> TBH, since pattern matching inception I hope for some way of putting p...
Dan0042 (Daniel DeLorme)
02:14 PM Bug #18373: Bundled gem (RBS, debug) extensions are not properly built
Can you provide the full log of the `build.log` showing the build error as an attachment of this ticket or somewhere?... jaruga (Jun Aruga)
01:35 AM Bug #18373: Bundled gem (RBS, debug) extensions are not properly built
What `make` command do you use? ko1 (Koichi Sasada)
02:09 PM Misc #18354: Lazily create singletons on instance_{exec,eval}
Bravo! This is really great work! Dan0042 (Daniel DeLorme)
12:52 AM Misc #18354 (Closed): Lazily create singletons on instance_{exec,eval}
Closed in 733500e9d02b11ff60fbbdb8daa43c2e9cfbd750 jhawthorn (John Hawthorn)
01:49 PM Feature #18033: Time.new to parse a string
Eregon (Benoit Daloze) wrote in #note-17:
> Hence, why not make `Time.iso8601` fast and a core method?
> Then code ...
nobu (Nobuyoshi Nakada)
01:21 PM Feature #18033: Time.new to parse a string
sawa (Tsuyoshi Sawada) wrote in #note-16:
> nobu (Nobuyoshi Nakada) wrote in #note-15:
> > I remember #18331 won't ...
nobu (Nobuyoshi Nakada)
11:33 AM Feature #18033: Time.new to parse a string
Yes, `Kernel#Time(str)` seems better than `Time.new(str)`.
However I think being precise for parsing is key for ti...
Eregon (Benoit Daloze)
10:23 AM Feature #18033: Time.new to parse a string
nobu (Nobuyoshi Nakada) wrote in #note-15:
> I remember #18331 won't work with subclasses of `Time`.
Can you elab...
sawa (Tsuyoshi Sawada)
06:54 AM Feature #18033: Time.new to parse a string
I remember #18331 won't work with subclasses of `Time`.
Does `Time.at("2021-12-04 02:00:00")` make sense?
nobu (Nobuyoshi Nakada)
04:07 AM Feature #18033: Time.new to parse a string
Eregon (Benoit Daloze) wrote in #note-10:
> Also it's technically incompatible (the first argument is always the yea...
nobu (Nobuyoshi Nakada)
01:12 PM Revision 28fb6d6b (git): Adding links to literals and Kernel (#5192)
* Adding links to literals and Kernel burdettelamar (Burdette Lamar)
12:10 PM Misc #18335 (Third Party's Issue): openindiana ruby 3.1 --enable-dtrace requires debugflags="-g1"
OpenIndiana's gcc + gnu binutils + dtrace only work with `-g1` seems to be OpenIndiana specific problem and this shou... ngoto (Naohisa Goto)
11:52 AM Feature #17721: Proc.new should be able to contruct a lambda
There is `Kernel.send(lambda ? :lambda : :proc) { ... }` if you really really need this.
But it's probably slow and ...
Eregon (Benoit Daloze)
02:13 AM Feature #17721 (Feedback): Proc.new should be able to contruct a lambda
A correct status of a ticket whose description doesn't have a use cases or user stories to discuss the validness of t... naruse (Yui NARUSE)
11:27 AM Revision 324d57df (git): TestClass#test_subclass_gc reduce the number of iteration by 10x
The test was taking 10 seconds on my machine and did timeout
on CI once.
byroot (Jean Boussier)
11:00 AM Revision 0073f624 (git): [rubygems/rubygems] Don't unnecessarily loop twice through dependencies
https://github.com/rubygems/rubygems/commit/06b4a7994d deivid (David Rodríguez)
11:00 AM Revision 4c5e8624 (git): [rubygems/rubygems] Improve source gemfile/lockfile equivalence checks
Since we no longer have multiple global sources, each top level dependency is
always pinned to a single source, so it...
deivid (David Rodríguez)
11:00 AM Revision 248fae0e (git): [rubygems/rubygems] Improve sources representation
We have two representations of a source. Once used for sorting, which
should not depend on the source's state, but so...
deivid (David Rodríguez)
11:00 AM Revision 7d974cc5 (git): [rubygems/rubygems] Don't overwrite locked dependency sources too early
Otherwise we hide some useful message about dependency source changes.
https://github.com/rubygems/rubygems/commit/c...
deivid (David Rodríguez)
11:00 AM Revision aa87780f (git): [rubygems/rubygems] Fix incorrect order in changed sources message
https://github.com/rubygems/rubygems/commit/6f1b5f68de deivid (David Rodríguez)
11:00 AM Revision ca65f7bb (git): [rubygems/rubygems] Remove unnecessary code
Somehow this is trying to relax frozen mode constraints for path
sources. It doesn't make sense to me and it's not co...
deivid (David Rodríguez)
11:00 AM Revision d19c266b (git): [rubygems/rubygems] Reuse `locked_dependencies` helper
It makes the code more consistent with the above line.
https://github.com/rubygems/rubygems/commit/f28d05a548
deivid (David Rodríguez)
11:00 AM Revision 901a2575 (git): [rubygems/rubygems] Reformat for consistency with the above line
https://github.com/rubygems/rubygems/commit/11193be3f1 deivid (David Rodríguez)
11:00 AM Revision 906b9578 (git): [rubygems/rubygems] Remove unnecessary nil checks
https://github.com/rubygems/rubygems/commit/d047b8935d deivid (David Rodríguez)
10:20 AM Feature #16456 (Closed): Ruby 2.7 argument delegation (...) should be its own kind of parameter in Method#parameters
On current master:
```ruby
irb(main):001:0> def foo(...); end
irb(main):002:0> p method(:foo).parameters
[[:rest, :*]...
Eregon (Benoit Daloze)
09:35 AM Revision e4c7c546 (git): Add tests of string argument to Time.at
nobu (Nobuyoshi Nakada)
09:18 AM Bug #18383: When I access to localhost:3000, got "Don't forget to include the Crash Report log file under DiagnosticReports directory in bug reports"
mame (Yusuke Endoh) wrote in #note-8:
> Thank you. I guess it is a bug of sassc-ruby.
>
> https://github.com/sass...
yuuyake9191 (Heppoko Neet)
09:10 AM Bug #18383 (Third Party's Issue): When I access to localhost:3000, got "Don't forget to include the Crash Report log file under DiagnosticReports directory in bug reports"
Thank you. I guess it is a bug of sassc-ruby.
https://github.com/sass/sassc-ruby/issues/197
https://github.com/sa...
mame (Yusuke Endoh)
09:06 AM Bug #18383: When I access to localhost:3000, got "Don't forget to include the Crash Report log file under DiagnosticReports directory in bug reports"
mame (Yusuke Endoh) wrote in #note-5:
> Sorry for the lack of clarity. I'd like to see the sections before the numbe...
yuuyake9191 (Heppoko Neet)
08:31 AM Bug #18383: When I access to localhost:3000, got "Don't forget to include the Crash Report log file under DiagnosticReports directory in bug reports"
Sorry for the lack of clarity. I'd like to see the sections before the numbers start. This is an example of the full ... mame (Yusuke Endoh)
08:19 AM Bug #18383: When I access to localhost:3000, got "Don't forget to include the Crash Report log file under DiagnosticReports directory in bug reports"
mame (Yusuke Endoh) wrote in #note-3:
> Thanks. Unfortunately, the part I want to see is before
>
> ```
> 3443 ...
yuuyake9191 (Heppoko Neet)
07:34 AM Bug #18383: When I access to localhost:3000, got "Don't forget to include the Crash Report log file under DiagnosticReports directory in bug reports"
Thanks. Unfortunately, the part I want to see is before
```
3443 /Users/daimetatsuru/.rbenv/versions/3.0.0/lib/r...
mame (Yusuke Endoh)
07:00 AM Bug #18383: When I access to localhost:3000, got "Don't forget to include the Crash Report log file under DiagnosticReports directory in bug reports"
mame (Yusuke Endoh) wrote in #note-1:
> Could you please paste all logs without omission? I guess the full terminal ...
yuuyake9191 (Heppoko Neet)
05:33 AM Bug #18383: When I access to localhost:3000, got "Don't forget to include the Crash Report log file under DiagnosticReports directory in bug reports"
Could you please paste all logs without omission? I guess the full terminal log is the most important. mame (Yusuke Endoh)
04:29 AM Bug #18383 (Third Party's Issue): When I access to localhost:3000, got "Don't forget to include the Crash Report log file under DiagnosticReports directory in bug reports"
Terminal log is like this:
``` ruby
103bfa000-103bfb000 r-x /Users/daimetatsuru/.rbenv/versions/3.0.0/bin/ruby
1...
yuuyake9191 (Heppoko Neet)
09:04 AM Feature #18339: GVL instrumentation API
> could you try?
Sure. Would likely be a next year thing anyway.
However Is a new dedicated hook API ok? Since ...
byroot (Jean Boussier)
04:09 AM Feature #18339: GVL instrumentation API
ah, it not easy to implement...
could you try?
ko1 (Koichi Sasada)
07:00 AM Revision dd6c59cd (git): Update bundled_gems at 2021-12-03
git[bot]
04:17 AM Revision 433a5a0e (git): [DOC] Fix Time.new description [ci skip]
nobu (Nobuyoshi Nakada)
04:04 AM Feature #18276 (Rejected): `Proc#bind_call(obj)` same as `obj.instance_exec(..., &proc_obj)`
Ok, I close this ticket. ko1 (Koichi Sasada)
03:56 AM Feature #18376: Version comparison API
I think it is useful for not just gem authors but also application developers.
In my known case of providing an SDK ...
unasuke (Yusuke Nakamura)
03:41 AM Feature #14794 (Feedback): Primitive arrays (Ruby 3x3)
As far as I understand, this ticket proposes an optimization of the Array representation, for example, by using raw m... mame (Yusuke Endoh)
02:41 AM Feature #14794: Primitive arrays (Ruby 3x3)
@ahorek I guess what you want is like `pandas.Series`. Is my speculation is correct? mrkn (Kenta Murata)
03:28 AM Feature #15504: Freeze all Range objects
Eregon (Benoit Daloze) wrote in #note-19:
> This issue title is a bit confusing, also https://bugs.ruby-lang.org/iss...
ko1 (Koichi Sasada)
03:13 AM Feature #14394: Class.descendants
Note:
The internal implementation of subclass iteration seems fragile (difficult to maintain) because it needs to ...
ko1 (Koichi Sasada)
03:08 AM Feature #18253: `ID` in `rb_id_table_foreach_with_replace`
Which patch, passing the ID, or removing ID argument? nobu (Nobuyoshi Nakada)
02:46 AM Bug #18244 (Closed): Unexpected errors output order
nobu (Nobuyoshi Nakada)
02:23 AM Bug #16908: Strange behaviour of Hash#shift when used with `default_proc`.
ioquatix (Samuel Williams) wrote in #note-8:
> Should we introduce some kind of deprecation or warning in 3.1?
No...
naruse (Yui NARUSE)
01:46 AM Bug #8826 (Third Party's Issue): BigDecimal#div and #quo different behavior and inconsistencies
The behavior of `BigDecimal#div` to return an Integer isn't a bug but the specification of `Numeric#div`. `Float#div... mrkn (Kenta Murata)
01:36 AM Bug #17813: rb_funcall() may reset the latest socket error unexpectedlly since Ruby 3.0.0
Ruby cannot guarantee that the state of WSA does not change between two method calls, because select is called intern... usa (Usaku NAKAMURA)

12/02/2021

11:53 PM Revision 733500e9 (git): Lazily create singletons on instance_{exec,eval} (#5146)
* Lazily create singletons on instance_{exec,eval}
Previously when instance_exec or instance_eval was called on an o...
jhawthorn (John Hawthorn)
11:41 PM Bug #18374: make: Circular spec/ruby/optional/capi/ext/array_spec.c <- spec/ruby/optional/capi/ext/array_spec.c dependency dropped.
I have never seen such messages in my environment, and cannot find ones in Ruby CI (disable-shared) or GitHub Actions... xtkoba (Tee KOBAYASHI)
10:43 PM Bug #18079: [PATCH] make error for MinGW with Clang/LLVM + LLD
This no longer happens, presumably fixed by commit:be9cc6c75865b24652d001f0f34f2e63180418c6. Thanks! xtkoba (Tee KOBAYASHI)
09:32 PM Bug #18373: Bundled gem (RBS, debug) extensions are not properly built
FYI, in my environment ruby-3.1.0-preview1 can be cross-installed without error for `aarch64-linux-android` target (w... xtkoba (Tee KOBAYASHI)
09:01 PM Bug #18130 (Closed): Showing exceptions from Ractor on console causes errors
The GH ticket is closed, so I close it too. ko1 (Koichi Sasada)
09:01 PM Revision 1f4af993 (git): [rubygems/rubygems] Move required_ruby_version gemspec attribute to recommended section.
https://github.com/rubygems/rubygems/commit/de6552ac30 retro (Josef Šimánek)
08:59 PM Feature #18139 (Rejected): Add a method to stop/kill a Ractor from outside
Now Ractor is designed to "unexpected interruption free" (at least cross-ractor interruptions) so now it is not accep... ko1 (Koichi Sasada)
08:55 PM Feature #18253: `ID` in `rb_id_table_foreach_with_replace`
I don't think this was intentional. Nobu, can you apply the patch? (Or I can) tenderlovemaking (Aaron Patterson)
08:55 PM Bug #18120 (Assigned): Deadlock and segfault when using autoload in Ractor
ko1 (Koichi Sasada)
08:35 PM Feature #18047 (Feedback): TracePoint: Add event type for constant access
ko1 (Koichi Sasada)
08:17 PM Bug #17998 (Assigned): ractor: process hanging (with ractors initialized, but not being used)
ko1 (Koichi Sasada)
08:14 PM Feature #14835 (Feedback): Support TracePoint#raised_exception on non-:raise events
Sorry I can't understand the request.
Could you explain more?
ko1 (Koichi Sasada)
08:07 PM Feature #17785: Allow named parameters to be keywords
I personally like `\class` too. I run into the issue from time to time. ioquatix (Samuel Williams)
07:53 PM Misc #17502: C vs Ruby
> 1) be accessible to C extensions
I think it is better but not sure we can.
> 2) can't be re-written any faste...
ko1 (Koichi Sasada)
07:41 PM Feature #18369: users.detect(:name, "Dorian") as shorthand for users.detect { |user| user.name == "Dorian" }
> it would be nice to have syntax that allows to shorten one-line matchers for predicates where they would be commonl... zverok (Victor Shepelev)
05:58 PM Feature #18369: users.detect(:name, "Dorian") as shorthand for users.detect { |user| user.name == "Dorian" }
Pattern Matching may make a very interesting tie-in here for a short-hand:
```ruby
# Struct provides built-in pat...
baweaver (Brandon Weaver)
04:16 PM Feature #18369: users.detect(:name, "Dorian") as shorthand for users.detect { |user| user.name == "Dorian" }
cvss (Kirill Vechera) wrote in #note-8:
> It's a good occasion to use the composition of Proc/Method objects:
>
>...
sawa (Tsuyoshi Sawada)
01:52 PM Feature #18369: users.detect(:name, "Dorian") as shorthand for users.detect { |user| user.name == "Dorian" }
It's a good occasion to use the composition of Proc/Method objects:
``` ruby
collection.detect(&:first_name.to_proc>...
cvss (Kirill Vechera)
06:00 AM Feature #18369: users.detect(:name, "Dorian") as shorthand for users.detect { |user| user.name == "Dorian" }
Since `Enumerable#detect` or `Enumerable#find` has the argument for the different purpose, I think that the extension... nobu (Nobuyoshi Nakada)
07:40 PM Bug #17840 (Closed): `make install` overriding file permission with 644
So far my understanding is the `make install` overriding file permission with 644 is specification. In my case with t... jaruga (Jun Aruga)
07:35 PM Feature #17721: Proc.new should be able to contruct a lambda
Why a new ticket? What's wrong with this one? If you wanted clarification you didn't have to close it, and even now y... bughit (bug hit)
06:45 PM Feature #17721 (Rejected): Proc.new should be able to contruct a lambda
could you make new ticket with more motivation/example/discussion? ko1 (Koichi Sasada)
07:24 PM Bug #14090 (Assigned): `TestGc#test_interrupt_in_finalizer` fails very rarely
ko1 (Koichi Sasada)
07:21 PM Bug #17826 (Assigned): Ractor#take hangs if used in multiple Threads
ko1 (Koichi Sasada)
06:57 PM Bug #17765 (Feedback): Segmentation fault when calling String#gsub
ko1 (Koichi Sasada)
06:31 PM Feature #17670 (Closed): Improve performance Float#to_i
closed on GH PR ko1 (Koichi Sasada)
06:07 PM Bug #18382 (Closed): Crash in compaction for ObjectSpace.trace_object_allocations
Applied in changeset commit:git|9f0c6f20c58067923864575b60af730d191b8f6c.
----------
[Bug #18382] Fix crash in compa...
peterzhu2118 (Peter Zhu)
04:20 PM Bug #18382 (Closed): Crash in compaction for ObjectSpace.trace_object_allocations
# GitHub PR: https://github.com/ruby/ruby/pull/5202
`ObjectSpace.trace_object_allocations` can crash with auto-c...
peterzhu2118 (Peter Zhu)
06:06 PM Revision 9f0c6f20 (git): [Bug #18382] Fix crash in compaction for ObjectSpace.trace_object_allocations
ObjectSpace.trace_object_allocations can crash when auto-compaction is
enabled.
peterzhu2118 (Peter Zhu)
05:01 PM Revision fbc16157 (git): YJIT: Fix side-exit typo in comments [ci skip]
HParker (Adam Hess)
04:56 PM Feature #18376: Version comparison API
Sorry @Austin, I was actually replying to @vo.x in my previous comment, but our comments crossed. Anyways, I don't ha... deivid (David Rodríguez)
04:54 PM Feature #18376: Version comparison API
Of course, but I believe most people who need this are gem authors, and most gem authors use rubygems. People develop... deivid (David Rodríguez)
04:50 PM Feature #18376: Version comparison API
deivid (David Rodríguez) wrote in #note-15:
> I'm definitely aware that this is used for what you point out. But mos...
austin (Austin Ziegler)
04:42 PM Feature #18376: Version comparison API
deivid (David Rodríguez) wrote in #note-15:
> But most gem authors
This is OT, but just FTR, I might be considere...
vo.x (Vit Ondruch)
04:32 PM Feature #18376: Version comparison API
There is probably more to this issue.
1. On the first place, I'd love if everybody used introspection instead of v...
vo.x (Vit Ondruch)
04:11 PM Feature #18376: Version comparison API
I'm definitely aware that this is used for what you point out. But most gem authors just use it and don't worry about... deivid (David Rodríguez)
03:28 PM Feature #18376: Version comparison API
deivid (David Rodríguez) wrote in #note-11:
> > RubyGems could adopt this API and slowly phase out its own version.
...
austin (Austin Ziegler)
10:45 AM Feature #18376: Version comparison API
That feature request was rejected by Matz because of not being common enough, and nothing seems to have changed in th... deivid (David Rodríguez)
10:35 AM Feature #18376: Version comparison API
`String#version_compare` (#5861) would likely be a much less invasive way to add this, and so probably better. Eregon (Benoit Daloze)
09:56 AM Feature #18376: Version comparison API
> RubyGems could adopt this API and slowly phase out its own version.
Thanks for bringing that up. The more I thin...
deivid (David Rodríguez)
08:16 AM Feature #18376: Version comparison API
If you are saying we want to use some rubygems feature with --disable-gems, we need to raise #17684 again. naruse (Yui NARUSE)
07:47 AM Feature #18376: Version comparison API
`::Version` will be conflict with `optparse`'s convention. Probably we need to consider the naming.
ref: https://git...
pocke (Masataka Kuwabara)
03:56 PM Revision 6b64e788 (git): [ruby/irb] Examine indentation of in keyword when trying to type include
Use in_keyword_case_scope?
Return fast
https://github.com/ruby/irb/commit/8acc7f8dc7
kaiquekandykoga (Kaíque Koga)
03:51 PM Revision d486286f (git): [ruby/irb] Add Alt+d keycode when convert-meta isn't used
I pushed reline#389 for when convert-meta is not turned on in .inputrc.
Alt+D in irb also needs to be set to the keyc...
ima1zumi (Mari Imaizumi)
03:48 PM Bug #18377: Integer#times has different behavior depending on the size of the integer
jemmai (Jemma Issroff) wrote in #note-4:
> Thanks for the quick response Jeremy! I'm very new to opening issues on h...
jeremyevans0 (Jeremy Evans)
02:36 PM Bug #18377: Integer#times has different behavior depending on the size of the integer
Thanks for the quick response Jeremy! I'm very new to opening issues on here and making fixes on Ruby. Quick question... jemmai (Jemma Issroff)
12:22 AM Bug #18377 (Closed): Integer#times has different behavior depending on the size of the integer
Applied in changeset commit:git|fe1725236c8a4d6cb780874c470f7f443185ed38.
----------
Don't call + and < in Integer.t...
jeremyevans (Jeremy Evans)
03:42 PM Revision dcbe29d2 (git): [ruby/irb] Fix bug infinite loop when pasting multilines fo code in Ruby 2.6
Fix bug infinite loop when pasting multilines fo code in Ruby 2.6.
This is not reproduced in Ruby 2.7.
Changes added ...
osyo (manga osyo)
03:39 PM Revision 4d4716d9 (git): [ruby/reline] No need to check `x > 0`
Checked in the previous line.
https://github.com/ruby/reline/commit/bf774c0f2c
ima1zumi (Mari Imaizumi)
03:14 PM Revision 0b22e3e1 (git): * 2021-12-03 [ci skip]
git[bot]
03:14 PM Revision f7bdfb39 (git): Don't clear the constant cache when finishing compaction
References are being updated correctly, so this is no longer necessary eightbitraptor (Matt V-H)
02:41 PM Revision ca33b590 (git): [ruby/reline] fix `TerminfoError` -> `Reline::Terminfo::TerminfoError`
https://github.com/ruby/reline/commit/c07b0ace6a ima1zumi (Mari Imaizumi)
02:41 PM Revision 697d7b8d (git): [ruby/reline] Rescue if tigetstr(capname) cannot be obtained
fix https://github.com/ruby/reline/issues/384
If `$TERM` is `vt102`, there are no `kend`, `khome`, `civis`, or `cnor...
ima1zumi (Mari Imaizumi)
02:19 PM Bug #18381: Default vs Bundled gems
💡Not sure if this helps, but [Ruby Standard Gems](https://stdgems.org) is always a great source of reference. I use i... bkuhlmann (Brooke Kuhlmann)
01:24 PM Bug #18381 (Closed): Default vs Bundled gems
Could there be documented what is the difference between default and bundled gems? E.g.
* Are the Bundled gems con...
vo.x (Vit Ondruch)
02:00 PM Feature #12125: Proposal: Shorthand operator for Object#method
One more use case - method composition, for example from #18369:
``` ruby
collection.detect(&:first_name>>"Dorian...
cvss (Kirill Vechera)
01:21 PM Revision 3f1dcd7f (git): Cache downloaded files
Cache downloaded external libraries/gems, which are expected not
changed so frequently.
Also sometimes downloading f...
nobu (Nobuyoshi Nakada)
12:13 PM Revision 60fc8dda (git): update-bundled_gems.rb: Fix typo and version comparison
nobu (Nobuyoshi Nakada)
09:29 AM Revision 524a808d (git): Define Ripper::Lexer::Elem#to_s
Alias `#inspect` as `#to_s` also in the new `Ripper::Lexer::Elem`
class, so that `puts Ripper::Lexer.new(code).scan` ...
nobu (Nobuyoshi Nakada)
09:10 AM Revision 39f2b4f1 (git): [rubygems/rubygems] This warrants a comment
https://github.com/rubygems/rubygems/commit/8fa29e5e55 deivid (David Rodríguez)
09:10 AM Revision cf882713 (git): [rubygems/rubygems] Fix gemspec source unlocking also for prereleases like 0.0.0.SNAPSHOT
The default prerelease requirement in rubygems doesn't actually match
things like "0.0.0.SNAPSHOT".
https://github.c...
deivid (David Rodríguez)
09:10 AM Revision 2a15b28a (git): [rubygems/rubygems] Fix materialization of locked 0 prereleases
Since the default requirement in rubygems is ">= 0", it was failing to
match 0 prereleases. Changing the default glob...
deivid (David Rodríguez)
08:32 AM Bug #18380 (Closed): TestAddressResolve#test_socket_getnameinfo_domain_blocking test failures
Testing Ruby 3.1.0, I observe the following test failure:
~~~
2) Error:
TestAddressResolve#test_socket_getname...
vo.x (Vit Ondruch)
08:29 AM Bug #18378: Parsing CSV files from ARGF not working correctly anymore (it stopped working starting from Ruby 2.5)
Okay, thank you, I reported it there Fravadona (Frava Dona)
02:02 AM Bug #18378 (Third Party's Issue): Parsing CSV files from ARGF not working correctly anymore (it stopped working starting from Ruby 2.5)
Could you report this to https://github.com/ruby/csv ? kou (Kouhei Sutou)
01:05 AM Bug #18378 (Third Party's Issue): Parsing CSV files from ARGF not working correctly anymore (it stopped working starting from Ruby 2.5)
Hi everyone,
I noticed that, starting from Ruby 2.5, parsing multiple CSV files from `ARGF` stops after reading fi...
Fravadona (Frava Dona)
07:58 AM Misc #18335: openindiana ruby 3.1 --enable-dtrace requires debugflags="-g1"
Thanks for explaining. Indeed, I tested I can confirm that,
by default it seems to set debugflags to "-g3" (or -gg...
stes (David Stes)
07:45 AM Misc #16980 (Closed): Improve documentation on JSON#parse and JSON#parse!
Merged at https://github.com/flori/json/commit/75ada77b9664c1d1f0ae6e210f8db4919849561e hsbt (Hiroshi SHIBATA)
07:07 AM Revision fe506d79 (git): [MSWin] Stop passing non-numeric string to `exit` command
nobu (Nobuyoshi Nakada)
06:55 AM Revision 8944009b (git): Deprecate `Lexer::Elem#[]` and `Lexer::State#[]`
Discussed in https://github.com/ruby/ruby/pull/5093#issuecomment-964426481.
> it would be enough to mimic only [] fo...
schneems (Richard Schneeman)
06:55 AM Revision 2b22c935 (git): Compatibility with IRB
Instead of accessing the struct as an array, access it via methods. There are other places inside of this file alread... schneems (Richard Schneeman)
06:55 AM Revision 3685b5af (git): Only iterate Lexer heredoc arrays
The last element in the `@buf` may be either an array or an `Elem`. In the case it is an `Elem` we iterate over every... schneems (Richard Schneeman)
06:55 AM Revision 3f74eaa7 (git): ~1.10x faster Change Ripper.lex structs to classes
## Concept
I am proposing we replace the Struct implementation of data structures inside of ripper with real classes...
schneems (Richard Schneeman)
06:53 AM Revision 6721ce1c (git): Cast tv_usec to int32_t to fit in tv_nsec
suseconds_t, which is the type of tv_usec, may be defined with a longer
size type than tv_nsec's type (long). So usec...
katei (Yuta Saito)
03:28 AM Revision a7d0c2c4 (git): Needs to update revision.h unless existing [ci skip]
nobu (Nobuyoshi Nakada)
03:05 AM Misc #18371: Release branches (release information in general)
On 2021-12-02 09:24, tenderlovemaking (Aaron Patterson) wrote:
> Issue #18371 has been updated by tenderlovemaking ...
duerst (Martin Dürst)
02:44 AM Misc #18371: Release branches (release information in general)
tenderlovemaking (Aaron Patterson) wrote in #note-3:
> So is RC the point when we create a branch? I guess I'm just...
mame (Yusuke Endoh)
02:13 AM Misc #18371 (Assigned): Release branches (release information in general)
>I guess I'm just not clear on when release branches get made.
It's totally release manager's convenience.
hsbt (Hiroshi SHIBATA)
12:24 AM Misc #18371: Release branches (release information in general)
Eregon (Benoit Daloze) wrote in #note-2:
> > when the first preview is shipped
>
> Do you mean when the first RC ...
tenderlovemaking (Aaron Patterson)
02:23 AM Bug #18379 (Closed): [CI] Windows mingw/ucrt - test-all timeout failures
Recently there was another test-all timeout failure on a Windows mingw or ucrt job. These are intermittent failures,... MSP-Greg (Greg L)
12:21 AM Revision fe172523 (git): Don't call + and < in Integer.times for !FIXNUM
The methods aren't called for FIXNUM, and it's best to have
consistent behavior.
Fixes [Bug #18377]
jeremyevans (Jeremy Evans)

12/01/2021

11:50 PM Revision e387458d (git): Ignore to generate the documentation from vendored libraries
hsbt (Hiroshi SHIBATA)
11:06 PM Bug #17836: JIT fails to create a precompiled header with Clang
ruby_3_0 69272c74a3f675373fc6c6f32b685620da8a85ee merged revision(s) 9f8a50723f8a84b3e4755b418570148f422d1b28. nagachika (Tomoyuki Chikanaga)
11:05 PM Revision 69272c74 (git): merge revision(s) 9f8a50723f8a84b3e4755b418570148f422d1b28: [Backport #17836]
Specify -c to emit pch with clang (#4423)
[Bug #17836]
---
mjit_worker.c | 1 +
1 f...
nagachika (Tomoyuki Chikanaga)
11:04 PM Bug #13392 (Closed): TracePoint return event location is incorrect for methods defined with define_method
Applied in changeset commit:git|9121e57a5f50bc91bae48b3b91edb283bf96cb6b.
----------
Rework tracing for blocks runni...
alanwu (Alan Wu)
11:03 PM Revision 5c5974db (git): merge revision(s) 44d67128a827c65d1a3867c5d8fd190d10aa1dd2:
test/openssl/test_cipher: skip AES-CCM tests on OpenSSL <= 1.1.1b
AES CCM mode in OpenSSL <= 1.1.1b was over...
nagachika (Tomoyuki Chikanaga)
10:59 PM Feature #18376: Version comparison API
RubyGems could adopt this API and slowly phase out its own version. vo.x (Vit Ondruch)
09:24 PM Feature #18376: Version comparison API
Yeah, I still think it's completely overkill, and people will be confused because we will have two different things t... deivid (David Rodríguez)
08:36 PM Feature #18376: Version comparison API
Note that for default gems (which ffi is on jruby/truffleruby) it's also not possible to use RubyGems, so I think the... Eregon (Benoit Daloze)
05:55 PM Feature #18376: Version comparison API
My opinion is that the right place for this functionality is RubyGems and that adding/duplicating it as builtin funct... deivid (David Rodríguez)
05:47 PM Feature #18376: Version comparison API
Eregon (Benoit Daloze) wrote in #note-1:
> One issue I could imagine is different version conventions and how to com...
vo.x (Vit Ondruch)
05:08 PM Feature #18376: Version comparison API
I think this could be useful.
I've seen several cases like this, notably I remember https://github.com/ffi/ffi/blob/...
Eregon (Benoit Daloze)
04:56 PM Feature #18376 (Open): Version comparison API
Is there a chance to have version comparison API? For example if `Gem::Version` was extracted into `::Version`. This ... vo.x (Vit Ondruch)
10:42 PM Revision 9121e57a (git): Rework tracing for blocks running as methods
The main impetus for this change is to fix [Bug #13392]. Previously, we
fired the "return" TracePoint event after pop...
alanwu (Alan Wu)
09:44 PM Bug #18377: Integer#times has different behavior depending on the size of the integer
Eregon (Benoit Daloze) wrote in #note-1:
> The inconsistency for bignums is indeed surprising, I think that is worth...
jeremyevans0 (Jeremy Evans)
08:42 PM Bug #18377: Integer#times has different behavior depending on the size of the integer
I think this should remain unspecified, or explicitly mention both behavior (respecting +, < or not) are valid.
For ...
Eregon (Benoit Daloze)
05:05 PM Bug #18377 (Closed): Integer#times has different behavior depending on the size of the integer
If we redefine `+` or `>`, `Integer#times` adheres to this redefinition for big integers but not for small integers.
...
jemmai (Jemma Issroff)
09:41 PM Bug #18375 (Rejected): Timeout.timeout(sec, klass: MyExceptionClass) can not retry correctly.
I don't think this is a bug, and I don't think timeout can work with your proposed code. There's no way the block-le... jeremyevans0 (Jeremy Evans)
12:28 PM Bug #18375 (Rejected): Timeout.timeout(sec, klass: MyExceptionClass) can not retry correctly.
Following is a example for describe this issue.
```rb
class DelayError < Exception
end
Timeout.timeout(2, Del...
zw963 (Wei Zheng)
09:07 PM Bug #18260 (Closed): YJIT uses insecure mmap protections
Fixed by commit:157095b3a44d8b0130a532a0b7be3f5ac197111c jeremyevans0 (Jeremy Evans)
08:46 PM Revision 3b2b28d0 (git): Revert "Force disable yjit on OpenBSD"
This reverts commit 119626da947bf6492ef7a27abf3bf12de5d0d95a. tenderlovemaking (Aaron Patterson)
08:45 PM Revision 4079f0da (git): Check that cb / ocb exist before marking executable
If YJIT isn't enabled, or hasn't finished booting, cb / ocb could be
null. This commit just checks to make sure they...
tenderlovemaking (Aaron Patterson)
08:45 PM Revision 157095b3 (git): Mark JIT code as writeable / executable depending on the situation
Some platforms don't want memory to be marked as writeable and
executable at the same time. When we write to the code...
tenderlovemaking (Aaron Patterson)
07:43 PM Revision 94ee88b3 (git): [rubygems/rubygems] Provide distinguished name which will be correctly parsed.
It seems that since ruby openssl 2.1.0 [[1]], the distinguished name
submitted to `OpenSSL::X509::Name.parse` is not ...
Vít Ondruch
05:25 PM Revision eb7ec00d (git): * 2021-12-02 [ci skip]
git[bot]
05:25 PM Revision d0772632 (git): YJIT: Fail gracefully while OOM for new entry points
Previously, YJIT crashes with rb_bug() when asked to compile new methods
while out of executable memory.
To handle t...
alanwu (Alan Wu)
02:24 PM Misc #18371: Release branches (release information in general)
> when the first preview is shipped
Do you mean when the first RC is shipped?
Previews can be early in the dev cy...
Eregon (Benoit Daloze)
11:57 AM Bug #18373: Bundled gem (RBS, debug) extensions are not properly built
I have downgraded RBS to 1.6.2, but the same issue suffers (not surprisingly) debug:
~~~
Building native extensio...
vo.x (Vit Ondruch)
11:11 AM Bug #18373 (Closed): Bundled gem (RBS, debug) extensions are not properly built
Trying to build Ruby 3.1.0 preview1 (or the current snapshot), I observe the following issue during installation of b... vo.x (Vit Ondruch)
11:43 AM Bug #18374 (Closed): make: Circular spec/ruby/optional/capi/ext/array_spec.c <- spec/ruby/optional/capi/ext/array_spec.c dependency dropped.
The build log contains plenty of messages such as:
~~~
... snip ...
make: Circular spec/ruby/optional/capi/ext...
vo.x (Vit Ondruch)
09:54 AM Bug #18353 (Closed): Czech keyboard input encoding on czech Windows
Applied in changeset commit:git|37cd35aea8afa35476640e454eaf2c53150dc014.
----------
[win32] Transcode input from co...
nobu (Nobuyoshi Nakada)
09:54 AM Revision a84dc9d8 (git): [win32] skip example about STDIN encodings
nobu (Nobuyoshi Nakada)
09:54 AM Revision 37cd35ae (git): [win32] Transcode input from console [Bug #18353]
On Windows, as the input from console is encoded in the active
code page, convert the input to the internal encoding.
nobu (Nobuyoshi Nakada)
08:16 AM Feature #18367: Stop the interpreter from escaping error messages
Dan0042 (Daniel DeLorme) wrote in #note-7:
> I'm not sure it makes sense to allow ANSI escapes that can _only_ resul...
mame (Yusuke Endoh)
05:59 AM Bug #18372 (Closed): Need to backport 43a3c88187dcd54ba008834a865e50eb28a78de9
To get rid of compile warning of (newer) VC++ usa (Usaku NAKAMURA)
02:00 AM Revision 0b53a889 (git): Merge rubygems master fd676ac464491afaa0baf5435cb11b3f86229cbd
hsbt (Hiroshi SHIBATA)
12:53 AM Revision 9f4bdeb4 (git): Removed vcr files. They are needless for this repo
hsbt (Hiroshi SHIBATA)

11/30/2021

11:33 PM Misc #18371: Release branches (release information in general)
In recent years, we released the final version of new release from master branch directly. Because creating the relea... hsbt (Hiroshi SHIBATA)
10:52 PM Misc #18371 (Assigned): Release branches (release information in general)
Hi,
I was trying to learn about Ruby's release process. I noticed that we don't create a release branch until the...
tenderlovemaking (Aaron Patterson)
10:15 PM Revision 3eac05c7 (git): * 2021-12-01 [ci skip]
git[bot]
10:15 PM Revision b68217ff (git): [rubygems/rubygems] Update bundler/lib/bundler/templates/newgem/github/workflows/main.yml.tt
https://github.com/rubygems/rubygems/commit/8836fe157b
Co-authored-by: David Rodríguez <[email protected]>
olleolleolle (Olle Jonsson)
10:15 PM Revision 46a24f7e (git): [rubygems/rubygems] Update main.yml.tt
https://github.com/rubygems/rubygems/commit/3260173c59 olleolleolle (Olle Jonsson)
10:15 PM Revision a7fd6394 (git): [rubygems/rubygems] newgem tmpl: ruby as "2.7" in GH Actions matrix
https://github.com/rubygems/rubygems/commit/f5bead5634 olleolleolle (Olle Jonsson)
10:15 PM Revision 42efb8c1 (git): [rubygems/rubygems] newgem templ: Avoid Float 3.0 -> "3" in GH Action
This change avoids a YAML Float-to-String conversion, which turns a 3.0 into a "3". That can make names of builds les... olleolleolle (Olle Jonsson)
07:07 PM Feature #18367: Stop the interpreter from escaping error messages
How is this supposed to interact with the default highlighting?
-e:1:in `<main>': **\e[31mRed\e[0m error (_Runtim...
Dan0042 (Daniel DeLorme)
09:14 AM Feature #18367: Stop the interpreter from escaping error messages
Eregon (Benoit Daloze) wrote in #note-2:
> To clarify, does this affect only `full_message` and the default exceptio...
mame (Yusuke Endoh)
09:12 AM Feature #18367: Stop the interpreter from escaping error messages
Thanks, I have created a PR: https://github.com/ruby/ruby/pull/5195 mame (Yusuke Endoh)
06:11 AM Feature #18367: Stop the interpreter from escaping error messages
+1 matz (Yukihiro Matsumoto)
03:47 PM Misc #18346: DevelopersMeeting20211209Japan
- [Feature #18364] Add `GC.stat_pool` for Variable Width Allocation (peterzhu2118)
- This feature will allow acces...
peterzhu2118 (Peter Zhu)
02:37 PM Misc #18346: DevelopersMeeting20211209Japan
* [Feature #18370] Call Exception#full_message to print exceptions reaching the top-level (eregon)
* Improve consi...
Eregon (Benoit Daloze)
02:36 PM Feature #18370 (Closed): Call Exception#full_message to print exceptions reaching the top-level
Extracted from https://bugs.ruby-lang.org/issues/18296#note-6.
I think this a clear gain to improve consistency in...
Eregon (Benoit Daloze)
02:28 PM Feature #18369: users.detect(:name, "Dorian") as shorthand for users.detect { |user| user.name == "Dorian" }
Maybe the feature would be to be possible to have arguments after a block, e.g.
```ruby
def detect(&block, value)...
dorianmariefr (Dorian Marié)
02:21 PM Feature #18369: users.detect(:name, "Dorian") as shorthand for users.detect { |user| user.name == "Dorian" }
I think that is too specific to be a part of Ruby core. I don't think this feature would be accepted.
I think you ca...
sawa (Tsuyoshi Sawada)
01:55 PM Feature #18369: users.detect(:name, "Dorian") as shorthand for users.detect { |user| user.name == "Dorian" }
Dan0042 (Daniel DeLorme) wrote in #note-3:
> So you try not to use `_1` ... just out of curiosity, would you use thi...
dorianmariefr (Dorian Marié)
01:53 PM Feature #18369: users.detect(:name, "Dorian") as shorthand for users.detect { |user| user.name == "Dorian" }
So you try not to use `_1` ... just out of curiosity, would you use this?
`collection.detect{ .attribute == value }`
Dan0042 (Daniel DeLorme)
12:40 PM Feature #18369: users.detect(:name, "Dorian") as shorthand for users.detect { |user| user.name == "Dorian" }
Could also be `users.detect(&:name, "Dorian")` dorianmariefr (Dorian Marié)
12:40 PM Feature #18369 (Open): users.detect(:name, "Dorian") as shorthand for users.detect { |user| user.name == "Dorian" }
Hi,
I was thinking I often do things like `collection.detect { |item| item.attribute == value }` and a shorthand l...
dorianmariefr (Dorian Marié)
11:54 AM Revision 7fd88da9 (git): [rubygems/rubygems] Fix race condition when reading & writing gemspecs concurrently
When bundler parallel installer installs gems concurrently, one can get
confusing warnings like the following:
```
"...
deivid (David Rodríguez)
11:54 AM Revision d7f6cb0f (git): [rubygems/rubygems] Revert "Remove spec file before building"
This reverts commit af604436d8141c34cb2e1e645b9b0d47bfd55a55.
The issue that led to introducing it was never reprodu...
deivid (David Rodríguez)
11:54 AM Revision 2b1f0487 (git): [rubygems/rubygems] Run hooks tests on gemspecs not already installed
The current `setup_base_installer` ends up using the `quick_gem` helper,
which leaves the created specification insta...
deivid (David Rodríguez)
11:46 AM Feature #5778 (Closed): Allow WEBrick::HTTPResponse to send IO-duck-typed bodies
webrick is removed from ruby repo since Ruby 3.0.
The canonical repo is here: https://github.com/ruby/webrick/
hsbt (Hiroshi SHIBATA)
11:44 AM Feature #8601 (Closed): Win32API.rb long life plan
Win32API.rb was removed from Ruby repo since Ruby 3.0 release.
The canonical repo is here: https://github.com/ruby...
hsbt (Hiroshi SHIBATA)
11:03 AM Misc #18335 (Rejected): openindiana ruby 3.1 --enable-dtrace requires debugflags="-g1"
By default, Ruby's configure script automatically sets `-ggdb3` or `-g` to `debugflags` after checking if the compile... ngoto (Naohisa Goto)
08:01 AM Bug #18355 (Assigned): require("pathname") within rack application chnages behaviors of Pathname methods, such as absolute?(), when there are two versions of 'pathname' gem installed.
hsbt (Hiroshi SHIBATA)
07:39 AM Bug #18034: Segmentation fault fiddle with `--enable-bundled-libffi` and macOS
@kou Thanks. I submitted https://github.com/ruby/fiddle/pull/98 hsbt (Hiroshi SHIBATA)
07:39 AM Revision e59f3054 (git): Delete #if line during checking madvise() on Solaris
The madvise() declaration should always be compiled on Solaris
to check whether the declaration is good on the enviro...
ngoto (Naohisa Goto)
07:32 AM Bug #18170: Exception#inspect should not include newlines
I have updated my PR to follow the approved semantics. https://github.com/ruby/ruby/pull/4857 mame (Yusuke Endoh)
07:25 AM Feature #14383 (Closed): Making prime_division in prime.rb Ruby 3 ready.
prime.rb removed from ruby repo for Ruby 3.1. We should move this to https://github.com/ruby/prime . hsbt (Hiroshi SHIBATA)
06:27 AM Misc #10757 (Rejected): Vagrant environment for MRI contributors
I understood that vagrant is useful software. But We have no strong reason to use it instead of other container tools... hsbt (Hiroshi SHIBATA)
06:17 AM Feature #12084: `Class#instance`
ufuk (Ufuk Kayserilioglu) wrote in #note-4:
> ```ruby
> Array.attached_object # => nil
> "foo".attached_object # => n...
sawa (Tsuyoshi Sawada)
06:05 AM Feature #18366: Enumerator#return_eval
mame (Yusuke Endoh) wrote in #note-8:
> `a.lazy.map(&:length).max`
Thank you. That seems to do the work.
I hav...
sawa (Tsuyoshi Sawada)
04:27 AM Feature #18366: Enumerator#return_eval
`a.lazy.map(&:length).max` mame (Yusuke Endoh)
02:53 AM Feature #18366 (Rejected): Enumerator#return_eval
* There's no real-world use case shown
* the term `eval` is not sufficient (unless it works as `eval`)
* `return` i...
matz (Yukihiro Matsumoto)
05:44 AM Misc #16980 (Assigned): Improve documentation on JSON#parse and JSON#parse!
hsbt (Hiroshi SHIBATA)
05:38 AM Bug #17882 (Assigned): bootstraptest/test_ractor.rb:224 segfaults on Cygwin
hsbt (Hiroshi SHIBATA)
05:37 AM Bug #18024 (Assigned): Ractor crashes when connections are closed in multiple Ractors
hsbt (Hiroshi SHIBATA)
05:26 AM Bug #17587 (Assigned): Segmentation fault with ractors and unix signals
hsbt (Hiroshi SHIBATA)
05:26 AM Bug #17516 (Assigned): forking in a ractor causes Ruby to crash
hsbt (Hiroshi SHIBATA)
05:20 AM Bug #17196 (Assigned): Segmentation Fault with Socket#close in Ractors
hsbt (Hiroshi SHIBATA)
05:16 AM Revision 438220f0 (git): Let pretty_inspect work once at first
For older pp.rb which did not need io/console, and dealing with
`LoadError`.
nobu (Nobuyoshi Nakada)
04:59 AM Feature #14973 (Closed): Proposal of percent literal to expand Hash
https://bugs.ruby-lang.org/issues/14579 was accepted and added for Ruby 3.1.
We don't need to `%` literal now.
hsbt (Hiroshi SHIBATA)
04:50 AM Feature #15353 (Closed): Support client certificates with TLS 1.3 and OpenSSL 1.1.1
This feature was merged at https://github.com/ruby/openssl/pull/239 hsbt (Hiroshi SHIBATA)
04:49 AM Revision dc46529b (git): [ruby/error_highlight] Ignore all syscall errors
At least, Error::ENOTSUP may be raised on some extreme environments
https://github.com/ruby/error_highlight/commit/2...
mame (Yusuke Endoh)
04:46 AM Revision 3288f0d0 (git): lib/pp.rb (width_for): Ignore all syscall errors
According to nobu, Errno::EBAD is raised on Windows. mame (Yusuke Endoh)
04:42 AM Bug #13671 (Assigned): Regexp with lookbehind and case-insensitivity raises RegexpError only on strings with certain characters
mame (Yusuke Endoh)
04:41 AM Feature #9673 (Closed): pieをconfigureからdisableしたい
hsbt (Hiroshi SHIBATA)
04:28 AM Feature #7400 (Closed): Incorporate OpenSSL tests from JRuby.
We continue to discuss this at https://github.com/ruby/openssl/issues/20 hsbt (Hiroshi SHIBATA)
04:17 AM Revision 20065eab (git): lib/pp.rb (width_for): ignore Errno::EINVAL
The error is raised on Solaris
http://rubyci.s3.amazonaws.com/solaris10-gcc/ruby-master/log/20211130T030003Z.fail.htm...
mame (Yusuke Endoh)
04:15 AM Revision d400c44a (git): Load io/console earlier
Something goes wrong at loading libraries inside `mu_pp` in the
test overriding `Class.inherited`.
nobu (Nobuyoshi Nakada)
04:14 AM Feature #12913 (Open): A way to configure the default maximum width of pp
I have committed the change for 1. mame (Yusuke Endoh)
02:44 AM Feature #12913 (Closed): A way to configure the default maximum width of pp
Applied in changeset commit:git|eac347fdb04023e1a365d84a8c163263cc7a5904.
----------
lib/pp.rb (PP.pp): Use io/conso...
mame (Yusuke Endoh)
03:40 AM Revision d20a120b (git): Recent systems prohibit symlink for relative loading
nobu (Nobuyoshi Nakada)
03:40 AM Revision 316caf6b (git): Enable load-relative on Solaris
nobu (Nobuyoshi Nakada)
02:43 AM Revision eac347fd (git): lib/pp.rb (PP.pp): Use io/console's winsize by default
[Feature #12913] mame (Yusuke Endoh)
02:12 AM Revision f379748e (git): Cache wheather madvise declaration is needed on Solaris
nobu (Nobuyoshi Nakada)
12:10 AM Revision 12fbdf4d (git): Fix conflicting declaration on Solaris
SunC
```
"cont.c", line 24: identifier redeclared: madvise
current : function(pointer to char, unsigned int, ...
nobu (Nobuyoshi Nakada)

11/29/2021

11:49 PM Revision ac8647be (git): Fix `GC.total_time` example
The result may increase actually or not, since GC can finish
shorter than the timer granularity.
nobu (Nobuyoshi Nakada)
09:29 PM Feature #12084: `Class#instance`
Agreed that `instance` is a bad name for this concept and we should not be basing the name on the `Singleton` class, ... ufuk (Ufuk Kayserilioglu)
06:29 PM Feature #12084: `Class#instance`
`#instance` seems a too generic name for such a rarely-needed meta-programming feature, I think `#singleton_instance`... Eregon (Benoit Daloze)
06:25 PM Feature #18351: Support anonymous rest and keyword rest argument forwarding
Same comment as on https://github.com/ruby/ruby/pull/4961 (I'll copy for convenience):
This could be problematic, ...
Eregon (Benoit Daloze)
04:59 PM Misc #18346: DevelopersMeeting20211209Japan
* [Feature #18351] Support anonymous rest and keyword rest argument forwarding (jeremyevans0)
* I think this is a ...
jeremyevans0 (Jeremy Evans)
04:29 PM Revision af59d355 (git): [rubygems/rubygems] Fix escape of filenames in `bundle doctor`
https://github.com/rubygems/rubygems/commit/3ede1435ea ooooooo-q
03:30 PM Feature #18368 (Closed): Range#step semantics for non-Numeric ranges
I am sorry if the question had already been discussed, can't find the relevant topic.
"Intuitively", this looks (f...
zverok (Victor Shepelev)
03:27 PM Revision a60aba18 (git): * 2021-11-30 [ci skip]
git[bot]
03:07 PM Revision f8f2885b (git): Revert "test/socket/test_socket.rb: skip on Solaris"
This reverts commit 27fb9d272daaae89089dfb61849ebe8e7aa6c833.
The test failure on Solaris 10 is due to incomplete IP...
ngoto (Naohisa Goto)
03:03 PM Revision 8287d2f2 (git): Workaround for implicit declaration of function 'madvise' on Solaris
On Solaris, madvise(3C) is NOT defined for SUS (XPG4v2) or later,
but MADV_* macros are defined when __EXTENSIONS__ i...
ngoto (Naohisa Goto)
02:50 PM Revision 67a1e225 (git): Update to ruby/spec@7f22a0b
Eregon (Benoit Daloze)
02:50 PM Revision e6d93a27 (git): Update to ruby/mspec@098b320
Eregon (Benoit Daloze)
02:40 PM Revision f8ead3a7 (git): [ci skip] Update documentation for GC.stat
peterzhu2118 (Peter Zhu)
02:38 PM Revision 659c864a (git): [rubygems/rubygems] Deprecate typo name
https://github.com/rubygems/rubygems/commit/62d54cbf08 nobu (Nobuyoshi Nakada)
02:07 PM Revision 95a6212a (git): Simplify platform check for Windows-UCRT
RUBY_PLATFORM can be used since commit 576b2e64cdc5ea42ad345dd3c1c215e006c06fca . Lars Kanis
02:05 PM Feature #18367: Stop the interpreter from escaping error messages
:+1:
BTW, this is already the behavior in both JRuby and TruffleRuby :)
To clarify, does this affect only `full_m...
Eregon (Benoit Daloze)
09:46 AM Feature #18367: Stop the interpreter from escaping error messages
+1
A very minor thing: "a control character(s)" is wrong. It should be either "a control character", "control char...
sawa (Tsuyoshi Sawada)
06:29 AM Feature #18367 (Closed): Stop the interpreter from escaping error messages
## Proposal
At the present time, the Ruby interpreter escapes some characters (*1) in error messages when an uncau...
mame (Yusuke Endoh)
02:00 PM Feature #18366: Enumerator#return_eval
I would advise against making Enumerable methods more complex with additional arguments, it'll only make them slower ... Eregon (Benoit Daloze)
11:48 AM Feature #18366: Enumerator#return_eval
Just a thought, but another option to achieve the aims of this proposal might be to add `return_eval: true` kwargs fo... shan (Shannon Skipper)
05:39 AM Feature #18366: Enumerator#return_eval
baweaver (Brandon Weaver) wrote in #note-2:
> It seems the common usecase you have isolated is similar to the idea of...
sawa (Tsuyoshi Sawada)
04:46 AM Feature #18366: Enumerator#return_eval
Interesting. It seems the common usecase you have isolated is similar to the idea of composing some function with the... baweaver (Brandon Weaver)
04:04 AM Feature #18366 (Rejected): Enumerator#return_eval
Some `Enumerable` methods return one or more of the receiver's elements according to the return value of a block it t... sawa (Tsuyoshi Sawada)
02:00 PM Revision 4acc7563 (git): Consider environment variable case-insensitiveness
nobu (Nobuyoshi Nakada)
09:57 AM Revision 1db06618 (git): * 2021-11-29 [ci skip]
git[bot]
09:50 AM Revision e19b6564 (git): [ruby/readline] Suppress constant redefinition warning
When already set by `use_lib_reline` in test/readline/helper.rb of
readline-ext.
https://github.com/ruby/readline/co...
nobu (Nobuyoshi Nakada)
09:48 AM Feature #18364: Add GC.stat_pool for Variable Width Allocation
> I think it is good it only contains Symbols to Integer, and there is probably code relying on that.
Yes, `size_...
byroot (Jean Boussier)

11/28/2021

10:39 PM Misc #18352: What is the Hash#grep expected?
Should we have `grep_{keys,values}`? matheusrich (Matheus Richard)
07:16 PM Bug #18365 (Third Party's Issue): Error with pods that says I may have encountered issue with ruby interpreter
jeremyevans0 (Jeremy Evans)
06:56 PM Bug #18365: Error with pods that says I may have encountered issue with ruby interpreter
https://bugs.ruby-lang.org/search?utf8=%E2%9C%93&scope=&issues=1&q=pod+mac xtkoba (Tee KOBAYASHI)
04:37 AM Bug #18365 (Third Party's Issue): Error with pods that says I may have encountered issue with ruby interpreter
running pod install that gives me a possible ruby interpreter error
I've attached the file and really have no idea...
[email protected] (Hyden Polikoff)
01:09 PM Misc #18335: openindiana ruby 3.1 --enable-dtrace requires debugflags="-g1"
I've changed the subject to "--enable-dtrace" requires CFLAGS="-g"
To be honest, what I tested so far is : with g...
stes (David Stes)
08:45 AM Revision 4a09b7de (git): Suppress address-of-packed-member warning by gcc
nobu (Nobuyoshi Nakada)
08:10 AM Revision ca7de49a (git): [ruby/ostruct] [DOC] Fix code markups [ci skip]
Backquotes are not special characters in RDoc.
https://github.com/ruby/ostruct/commit/a901df26b9
nobu (Nobuyoshi Nakada)

11/27/2021

08:02 PM Feature #18364: Add GC.stat_pool for Variable Width Allocation
I like the idea of having a no argument case that returns stats for all pools.
In the ticket description, I named ...
peterzhu2118 (Peter Zhu)
07:52 PM Feature #18364: Add GC.stat_pool for Variable Width Allocation
I would avoid extending `GC.stat`, I think it is good it only contains `Symbols` to `Integer`, and there is probably ... Eregon (Benoit Daloze)
07:45 PM Feature #18364: Add GC.stat_pool for Variable Width Allocation
Thanks for the TruffleRuby and JRuby info @eregon! Maybe we could extend `GC.stat` to include size pool info in an ar... peterzhu2118 (Peter Zhu)
06:56 PM Feature #18364: Add GC.stat_pool for Variable Width Allocation
There is something maybe related in TruffleRuby and JRuby, where we have per-heap information.
Maybe it would make s...
Eregon (Benoit Daloze)
07:07 PM Revision 0e5e2e35 (git): * 2021-11-28 [ci skip]
git[bot]
07:07 PM Revision eac7c635 (git): Enhanced RDoc for numeric.c (#5184)
Adds remarks about literals and Kernel methods to Float and Integer. burdettelamar (Burdette Lamar)
09:40 AM Revision f53f6d92 (git): [ruby/cgi] Exclude unused files from built package
https://github.com/ruby/cgi/commit/e840b6c368 nobu (Nobuyoshi Nakada)
06:46 AM Misc #18362 (Third Party's Issue): mswin builds & vs2022
It's a known bug of VS2022.
https://developercommunity.visualstudio.com/t/With-__assume-isnan-after-isinf/1515649
nobu (Nobuyoshi Nakada)
05:44 AM Revision 45034e9d (git): [ruby/cgi] Set extconf.rb to extensions
Fix https://github.com/ruby/cgi/pull/11
https://github.com/ruby/cgi/commit/60d8f5e7d9
nobu (Nobuyoshi Nakada)
04:35 AM Misc #12124 (Closed): Use Automake
nobu (Nobuyoshi Nakada)
 

Also available in: Atom