Project

General

Profile

Activity

From 11/11/2022 to 11/17/2022

11/17/2022

11:19 PM Revision cb4c89e0 (git): Fix quoting of code in `NEWS.md`.
Samuel Williams
10:50 PM Revision ea8a7287 (git): Add support for `sockaddr_un` on Windows. (#6513)
* Windows: Fix warning about undefined if_indextoname()
* Windows: Fix UNIXSocket on MINGW and make .pair more reliable
* Windows: Use nonblock=true for read tests with scheduler
* Windows: Move socket detection from File.socket? to F...
Samuel Williams
10:02 PM Revision 4e4b29b1 (git): YJIT: Make the code GC test stabler
The first `add_pages` call shouldn't hit Code GC yet; otherwise
`compiles` returns false. With the increased code size in runtime_stats
itself, it sometimes hits Code GC too early, at least in arm64 that has
a large code size.
k0kubun (Takashi Kokubun)
08:59 PM Revision c80edc9f (git): YJIT: Add object shape count to stats (#6754)
k0kubun (Takashi Kokubun)
08:10 PM Feature #19135: Support `UNIXSocket` on Windows
PR: https://github.com/ruby/ruby/pull/6513 ioquatix (Samuel Williams)
08:09 PM Feature #19135 (Closed): Support `UNIXSocket` on Windows
In recent versions of Windows, the required parts are now supported: https://devblogs.microsoft.com/commandline/af_unix-comes-to-windows/
This enables UNIXSocket, UNIXServer and UNIXSocket.pair on Windows. The anonymous socket is emul...
ioquatix (Samuel Williams)
08:10 PM Misc #12474: Wishlist for Windows Unix compatibility features
UNIXSocket is implemented in https://bugs.ruby-lang.org/issues/19135 ioquatix (Samuel Williams)
07:43 PM Revision 4b29eb17 (git): Fix indentation of switch statement in shape.c
peterzhu2118 (Peter Zhu)
07:31 PM Revision 3f3a5391 (git): YJIT: Add missing key for non-stats build
k0kubun (Takashi Kokubun)
06:58 PM Revision 0446d961 (git): YJIT: Fix typo in stats references (#6753)
k0kubun (Takashi Kokubun)
05:00 PM Bug #19133: mswin build - missing RbConfig::CONFIG['libdirname']
@nobu
Thanks. Exactly the same patch I started with, then changed to:
```ruby
libdirname = RbConfig::CONFIG.fetch 'libdirname', 'libdir' # defined since 2.1
```
I don't recall if I've built mswin locally, but the guard on this ...
MSP-Greg (Greg L)
04:49 PM Bug #19133 (Feedback): mswin build - missing RbConfig::CONFIG['libdirname']
It may not exist.
Probably, this patch works?
```diff
diff --git a/spec/ruby/optional/capi/spec_helper.rb b/spec/ruby/optional/capi/spec_helper.rb
index ec6b9093977..940b6bce059 100644
--- a/spec/ruby/optional/capi/spec_helper.r...
nobu (Nobuyoshi Nakada)
05:27 AM Bug #19133 (Feedback): mswin build - missing RbConfig::CONFIG['libdirname']
Key and value exists with Ubuntu & mingw/ucrt builds, missing in mswin build.
Noticed when locally run spec test (`spec/ruby/optional/capi/rbasic_spec.rb`) failed.
MSP-Greg (Greg L)
02:19 PM Revision 189e3c0a (git): Add default cases for cache point finding function
make_now_just (Hiroya Fujinami)
02:19 PM Revision 90bfac29 (git): Add OP_CCLASS_MB case
make_now_just (Hiroya Fujinami)
12:52 PM Revision a145a204 (git): [DOC] Update about `sec` argument of `Time.new`
nobu (Nobuyoshi Nakada)
12:28 PM Feature #19000: Data: Add "Copy with changes method" [Follow-on to #16122 Data: simple immutable value object]
nobu (Nobuyoshi Nakada) wrote in #note-11:
> At the developers meeting today, someone proposed something like this.
> ...
Agreed — this is what I do at the moment. There’s no need to `#merge` explicitly because “last keyword wins”, and...
tomstuart (Tom Stuart)
12:05 PM Feature #19000: Data: Add "Copy with changes method" [Follow-on to #16122 Data: simple immutable value object]
At the developers meeting today, someone proposed something like this.
> ```ruby
> ...
```ruby
point = Point.new(**Origin.to_h, **change)
```
nobu (Nobuyoshi Nakada)
07:33 AM Feature #19000: Data: Add "Copy with changes method" [Follow-on to #16122 Data: simple immutable value object]
I'm seeing some overlap with "Object#with to set and restore attributes around a block" https://bugs.ruby-lang.org/issues/18951
Should we have a single method `Object#with_attrs` that:
* returns a copy with the attributes set by default...
p8 (Petrik de Heus)
09:57 AM Revision 7b1d23fd (git): Windows: Readlink improvements (#6745)
* Windows: Use readlink emulation for File.readlink
This fixes readlink emulation for the ERROR_MORE_DATA case and general error reporting.
It now releases GVL while readlink IO operation.
The dedicated rb_readlink was introduced in co...
Lars Kanis
09:30 AM Misc #19074: DevMeeting-2022-12-01 (postponed from 11-17)
* [Feature #19134] `**` is not allowed in `def foo(...)`
* I believe `**` should be allowed, or both `*` and `&` should be prohibited.
shugo (Shugo Maeda)
05:00 AM Misc #19074: DevMeeting-2022-12-01 (postponed from 11-17)
This dev meeting has been postponed to 1st Dec. for various reasons.
If you have any topics you really want us to discuss, you can add them by 30th Nov. (But we already have a lot on the agenda, so I would appreciate your consideration.)
mame (Yusuke Endoh)
09:27 AM Feature #19134 (Closed): ** is not allowed in def foo(...)
`*` and `&` are allowed in the body of a method with `...` argument forwarding, but `**` is not allowed.
```
def foo(...)
bar(*) # OK
baz(&) # OK
quux(**) # NG
end
```
Is it intended behavior?
It seems that parse.y h...
shugo (Shugo Maeda)
09:12 AM Feature #18571: Removed the bundled sources from release package after Ruby 3.2
We should add the additional options and instructions to document or NEWS. hsbt (Hiroshi SHIBATA)
09:09 AM Bug #19132: `**` を引数に指定すると no anonymous keyword rest parameter になる
* UnboundMethod#parametersなどでは ** という変数名が見えている
* `DVAR@1:6-1:8 nil` で `**`を表現するよりは、`kwrest: (DVAR@1:6-1:8 :**)`で表現したほうが理解がしやすい
という点からRubyVM::AST側でも `**` が取得できるというふうに修正し test/ruby/test_ast.rb のexpectationを更新するのがよいと思います。
また調べたところ、議論になってい...
yui-knk (Kaneko Yuichiro)
08:52 AM Bug #19132: `**` を引数に指定すると no anonymous keyword rest parameter になる
shugo (Shugo Maeda) wrote in #note-5:
> nobu (Nobuyoshi Nakada) wrote in #note-4:
> ...
上記の修正でRBSのテストがこけるのを調べてみたのですが、RubyVM::ASTのテストが通るように以下の修正をしたせいでした。
```
--- a/ast.c
+++ b/ast.c
@@ -348,6 +348,7 @@ static VALUE
var_name(ID i...
shugo (Shugo Maeda)
03:32 AM Bug #19132: `**` を引数に指定すると no anonymous keyword rest parameter になる
nobu (Nobuyoshi Nakada) wrote in #note-4:
> `:**`に統一でいいのではないでしょうか。
Rubyレベルで公開されている情報が `:**` なので私もそちらに合わせる方がよいように思います。
shugo (Shugo Maeda)
03:23 AM Bug #19132: `**` を引数に指定すると no anonymous keyword rest parameter になる
`:**`に統一でいいのではないでしょうか。 nobu (Nobuyoshi Nakada)
08:17 AM Feature #19036: Provide a way to set path for File instances created with for_fd
It seems okay for `File.for_fd(fd, path: ...)` but I'm not sure `IO.for_fd(fd, path: ...)`. Maybe it affects only `#inspect` because `IO#path` is not defined.
I think this functionality is also useful to label known IO such as:
```...
ko1 (Koichi Sasada)
06:42 AM Feature #18685 (Closed): Enumerator.product: Cartesian product of enumerables
https://github.com/ruby/ruby/pull/6197 has been merged for Ruby 3.2 hsbt (Hiroshi SHIBATA)
06:40 AM Bug #18281 (Closed): Ruby 3.1.0: gem uninstall -aIx fails to uninstall debug
```ruby
$ gem -v
3.4.0.dev
$ gem uninstall -aIx debug
Successfully uninstalled debug-1.4.0
Successfully uninstalled debug-1.6.2
```
The current master of Rubygems seems working with `GEM_HOME` variable. and without `GEM_HOME` va...
hsbt (Hiroshi SHIBATA)
06:16 AM Feature #18996: Proposal: Introduce new APIs to reline for changing dialog UI colours
I'm +1 to https://bugs.ruby-lang.org/issues/18996#note-8 basically.
>And a new completion-specific API
```ruby
Reline.completion_colors = {
foreground_color: :white,
background_color: :black,
selected_text_color: :black,
...
hsbt (Hiroshi SHIBATA)
04:53 AM Revision 71e668e6 (git): Update default gems list at c76909e551f0f60b7a354ab748ef1a [ci skip]
git[bot]
04:52 AM Revision c76909e5 (git): [ruby/irb] Bump up 1.4.3
https://github.com/ruby/irb/commit/1bddbbf602 hsbt (Hiroshi SHIBATA)
04:06 AM Revision 923c1aae (git): Drop Ruby 2.5 support
Because it has reached EOL for more than 1.5 years and it won't be
supported by the next reline version either.
st0012 (Stan Lo)
03:39 AM Revision e61b3e6f (git): [ruby/irb] Fix https://github.com/ruby/irb/pull/295: Ignore Java
package reference objects in
JRuby
https://github.com/ruby/irb/commit/84d030182d
byteit101 (Patrick Plenefisch)
12:30 AM Revision a777ec0d (git): YJIT: Shrink version lists after mutation (#6749)
k0kubun (Takashi Kokubun)

11/16/2022

11:48 PM Revision 3259aceb (git): YJIT: Pack BlockId and CodePtr (#6748)
k0kubun (Takashi Kokubun)
11:31 PM Revision 1b8236ac (git): YJIT: Add compiled_branch_count stats (#6746)
k0kubun (Takashi Kokubun)
11:30 PM Revision 6de4032e (git): YJIT: Stop wrapping CmePtr with CmeDependency (#6747)
* YJIT: Stop wrapping CmePtr with CmeDependency
* YJIT: Fix an outdated comment [ci skip]
k0kubun (Takashi Kokubun)
11:09 PM Misc #19074: DevMeeting-2022-12-01 (postponed from 11-17)
* [Bug #19132] `**` with other keyword parameters causes "no anonymous keyword rest parameter" (shugo)
* RBS expects no name for keyword rest parameters while test_method.rb etc expects `:**`. Can we choose `:**` for consistency?
shugo (Shugo Maeda)
11:03 PM Bug #19132: `**` を引数に指定すると no anonymous keyword rest parameter になる
shugo (Shugo Maeda) wrote in #note-1:
> 内部的な変数名が変わってtest/ruby/test_ast.rbが失敗するようになったのでその部分は対処しましたが、この修正方法だと他にも問題があるかもしれません。
案の定RBSのテストで失敗したのでANON_KEYWORD_REST_IDを内部IDに変えてみたのですが、今度はUnboundMethod#parametersなどで `:**` が返ることを期待しているテストがコケる...
shugo (Shugo Maeda)
02:16 PM Bug #19132: `**` を引数に指定すると no anonymous keyword rest parameter になる
new_args_tail()でkw_argsがある時にANON_KEYWORD_REST_IDがローカル変数のテーブルから削られてしまうようです。
f_kwrestの値をinternal_idからANON_KEYWORD_REST_IDに変えると動くようになりました。
https://github.com/ruby/ruby/pull/6743
内部的な変数名が変わってtest/ruby/test_ast.rbが失敗するようになったのでその部分は対処...
shugo (Shugo Maeda)
05:15 AM Bug #19132 (Closed): `**` を引数に指定すると no anonymous keyword rest parameter になる
Ruby 3.2.0-preview3 で次のスクリプトを実行するとエラーになります。
```ruby
def hoge(a, *, k: nil, **)
foo(*, **)
end
```
```
% ruby hoge.rb
hoge.rb:2: no anonymous keyword rest parameter
```
次のようにキーワードパラメータが `**` だけであればエラーになりませんでした。
```ruby...
tommy (Masahiro Tomita)
06:32 PM Feature #19117: Include the method owner in backtraces, not just the method name
> Not all code follow a convention where classes map to files 1 to 1.
And that's why I wrote "usually/often", not "always".
> ...
Ok thank you, I missed that above.
But I want to point out that since **usually** ruby code is written w...
Dan0042 (Daniel DeLorme)
05:01 PM Feature #19117: Include the method owner in backtraces, not just the method name
Dan0042 (Daniel DeLorme) wrote in #note-16:
> The owner is usually/often right there in the filepath
That's not the case for methods defined in C (either core or C extensions) as mentioned above, so it's a significant help to read an...
Eregon (Benoit Daloze)
04:57 PM Feature #19117: Include the method owner in backtraces, not just the method name
It must be the owner, anything else would be very confusing.
I believe nobody wants `String#then` (there is no such method), they want to see `Kernel#then`.
Also the receiver class is problematic to define (do we care about the singlet...
Eregon (Benoit Daloze)
04:40 PM Feature #19117: Include the method owner in backtraces, not just the method name
> we're really talking about showing the owner or the receiver of the method?
My suggestion is for the owner. Simply put because it matches the path and other existing method representations.
But I can see arguments about showing t...
byroot (Jean Boussier)
04:25 PM Feature #19117: Include the method owner in backtraces, not just the method name
I'd like to clarify if we're really talking about showing the *owner* or the *receiver* of the method?
```ruby
class Foo
def inspect
raise "hmm"
end
end
class Bar < Foo
end
Bar.new.inspect
#/path/to/foo.rb:3:in `F...
Dan0042 (Daniel DeLorme)
04:20 PM Feature #19117: Include the method owner in backtraces, not just the method name
+1 thanks for looking into this. Happy to help out as well, since I'm quite interested in it! :)
One case where I find this especially useful is for methods implemented in C because currently they get blamed on the file/line of the la...
ivoanjo (Ivo Anjo)
06:09 PM Revision 3eb7a652 (git): YJIT: Shrink the vectors of Block after mutation (#6739)
k0kubun (Takashi Kokubun)
06:08 PM Revision 05af4175 (git): YJIT: Show YJIT build option in RUBY_DESCRIPTION (#6738)
YJIT: Show YJIT profile in RUBY_DESCRIPTION k0kubun (Takashi Kokubun)
04:56 PM Bug #19115: RubyGems fails to detect OpenSSL in --with-static-linked-ext builds
thomthom (Thomas Thomassen) wrote in #note-3:
> So, this isn't necessarily limited to macOS? It just happens to be the configuration we're using on that platform?
Right.
alanwu (Alan Wu)
01:25 PM Bug #19115: RubyGems fails to detect OpenSSL in --with-static-linked-ext builds
So, this isn't necessarily limited to macOS? It just happens to be the configuration we're using on that platform? thomthom (Thomas Thomassen)
12:25 AM Bug #19115: RubyGems fails to detect OpenSSL in --with-static-linked-ext builds
The issue is specific to extensions that are statically linked into the build in `--with-static-linked-ext`.
`autoload?` also doesn't work correctly with these extensions:
```
$ ruby --disable-all -ve 'autoload(:Ripper, "ripper"); p...
alanwu (Alan Wu)
02:47 PM Feature #19104: Introduce the cache-based optimization for Regexp matching
I created a pull request for the report. Thanks @byroot.
https://github.com/ruby/ruby/pull/6744
make_now_just (Hiroya Fujinami)
02:09 PM Feature #19104: Introduce the cache-based optimization for Regexp matching
Not sure if helpful, but after working around this bug, we realized that it wasn't just returning the wrong value.
Avoiding this codepath also caused a lot of weird crashes to vanish (e.g. `Segmentation fault at 0x0000000000000000` a...
byroot (Jean Boussier)
07:37 AM Feature #19104: Introduce the cache-based optimization for Regexp matching
I believe this change may have introduced a weird bug which is causing the `sass` gem to fail in unpredictable ways. I was able to produce a short reproduction script:
```ruby
module Sass
H = /[0-9a-fA-F]/
UNICODE = /\\...
byroot (Jean Boussier)
11:47 AM Revision 24cbc50c (git): Remove duplicate `.rbinc` on `.rb` dependencies
nobu (Nobuyoshi Nakada)
10:02 AM Feature #19000: Data: Add "Copy with changes method" [Follow-on to #16122 Data: simple immutable value object]
While it’s undeniable that this method duplicates its receiver in some sense, I’d like to add my support for the `#with` naming choice.
I don’t have any technical objection to using `#dup`, it’s just a stylistic preference: in the int...
tomstuart (Tom Stuart)
09:58 AM Revision 1f4f6c98 (git): Using UNDEF_P macro
S_H_ (Shun Hiraoka)
09:42 AM Revision dc1c4e46 (git): Clean extension build directories and exts.mk file
nobu (Nobuyoshi Nakada)
09:42 AM Revision be65cf53 (git): Remove `-j` option from `MFLAGS` for sub-makes
nobu (Nobuyoshi Nakada)
07:42 AM Revision fca50abb (git): Let mjit-bindgen use BASERUBY and bundle/inline (#6740)
k0kubun (Takashi Kokubun)
05:59 AM Revision cd2da094 (git): MJIT: Refactor BitField dereference a little
k0kubun (Takashi Kokubun)
05:34 AM Revision e7443dbb (git): Rewrite Symbol#to_sym and #intern in Ruby (#6683)
k0kubun (Takashi Kokubun)

11/15/2022

11:25 PM Feature #19068: Upgrades required Bison version for development
Thanks for sharing.
I think `brew install bison` is enough because the command install `bison@3.8` now.
It seems your fix works well, https://github.com/ruby/ruby-dev-builder/commit/1cdfbf1ebb4d417d43f968b35a416fba5987a3f0.
yui-knk (Kaneko Yuichiro)
03:02 PM Feature #19068: Upgrades required Bison version for development
Although because `bison` is only needed for development/non-release builds it's a smaller concern.
So then it's needed to fix `ruby-build 3.2.0-dev some/prefix` and `rvm install ruby-head` to use the Homebrew bison on macOS.
Eregon (Benoit Daloze)
02:52 PM Feature #19068: Upgrades required Bison version for development
@yui-knk Just installing bison is not enough on macOS:
https://github.com/ruby/ruby-dev-builder/actions/runs/3471482135/jobs/5801034797
So I think you need to make PRs to all Ruby installers otherwise Ruby 3.2 won't build anymore on ...
Eregon (Benoit Daloze)
02:50 PM Feature #19068: Upgrades required Bison version for development
This broke ruby-dev-builder: https://github.com/ruby/ruby-dev-builder/actions/runs/3464389673/jobs/5785863246
I'll try if `brew install bison` is enough.
I hope it isn't needed to prepend bison to PATH, otherwise we'll need changes in ...
Eregon (Benoit Daloze)
11:23 PM Revision 41b0f641 (git): YJIT: Always encode Opnd::Value in 64 bits on x86_64 for GC offsets (#6733)
* YJIT: Always encode Opnd::Value in 64 bits on x86_64
for GC offsets
Co-authored-by: Alan Wu <alansi.xingwu@shopify.com>
* Introduce heap_object_p
* Leave original mov intact
* Remove unneeded branches
* Add a test for movabs
Co-...
k0kubun (Takashi Kokubun)
11:20 PM Revision 0d384ce6 (git): YJIT: Include actual memory region size in stats (#6736)
k0kubun (Takashi Kokubun)
10:50 PM Revision d1fb6595 (git): YJIT: Count getivar side exits by receiver flag changes (#6735)
k0kubun (Takashi Kokubun)
10:14 PM Feature #18915: New error class: NotImplementedYetError or scope change for NotImplementedError
I think that a PR for a documentation change on this would probably be accepted. austin (Austin Ziegler)
08:57 PM Revision 1125274c (git): YJIT: Invalidate redefined methods only through cme (#6734)
Co-authored-by: Alan Wu <alansi.xingwu@shopify.com>
Co-authored-by: Alan Wu <alansi.xingwu@shopify.com>
k0kubun (Takashi Kokubun)
05:26 PM Revision 9751b549 (git): [ruby/irb] Improve testing infra
(https://github.com/ruby/irb/pull/442)
* Add test_in_isolation task to run tests in isolation
This simulates how tests are run in Ruby CI and can detect some issues
before they're merged and break Ruby CI later.
* Run test_in_isolatio...
Stan Lo
03:44 PM Revision ac063fd4 (git): Depending on revision.h with VPATH
nobu (Nobuyoshi Nakada)
03:43 PM Misc #19098: Time#strftime: %z and width
I have checked on MacOS Monterey and Debian 11 (bullseye) (in Docker, if it matters) and received the same results like mentioned in the description. andrykonchin (Andrew Konchin)
03:34 PM Bug #19087: String#to_c supports multiple "_"
Thank you! andrykonchin (Andrew Konchin)
03:33 PM Misc #19131 (Open): MatchData#values_at(): addressing with Range and Integer index behaves differently for the first element (entire matched string)
I've noticed a strange nuance and not sure whether it's intentional or not. In case it's intentional - it seems to me inconsistent.
I will illustrate it with the following example:
```ruby
/(.)(.)(.)(.)/.match("abcde").values_at(-...
andrykonchin (Andrew Konchin)
01:53 PM Revision 5dcbe588 (git): Fix buffer overrun in ivars when rebuilding shapes
In rb_shape_rebuild_shape, we need to increase the capacity when
capacity == next_iv_index since the next ivar will be writing at index
next_iv_index.
This bug can be reproduced when assertions are turned on and you run the
following co...
peterzhu2118 (Peter Zhu)
12:31 PM Bug #18003: Rework internal IO to directly invoke scheduler with IO object.
> `rb_io_wait_readable`, `rb_io_wait_writable` and `rb_wait_for_single_fd` are
deprecated in favour of `rb_io_maybe_wait_readable`,
`rb_io_maybe_wait_writable` and `rb_io_maybe_wait` respectively.
`rb_thread_wait_fd` and `rb_thr...
Eregon (Benoit Daloze)
12:10 PM Feature #19119: Add an interface for out-of-process profiling tools to access Ruby information
Eregon (Benoit Daloze) wrote in #note-7:
> So basically there would be some core API to start profiling (and it would sample every N milliseconds), stop profiling, and retrieve the results. That's agnostic of Ruby VM details, and can us...
kjtsanaktsidis (KJ Tsanaktsidis)
11:38 AM Feature #19119: Add an interface for out-of-process profiling tools to access Ruby information
kjtsanaktsidis (KJ Tsanaktsidis) wrote:
> This variable would be constantly kept populated with up-to-date information about all the call-stacks of all threads/fibers in the program.
This sounds like a huge overhead to me.
And also ...
Eregon (Benoit Daloze)
03:59 AM Feature #19119: Add an interface for out-of-process profiling tools to access Ruby information
Thank you for your feedback!
mame (Yusuke Endoh) wrote in #note-2:
> I understood this ticket as follows.
> ...
Yes, your summary is exactly right.
> One is overhead. It seems very wasteful to always manage two data structures represe...
kjtsanaktsidis (KJ Tsanaktsidis)
11:19 AM Revision 36dc99af (git): Added empty class for test methods in TestIRB cases
hsbt (Hiroshi SHIBATA)
10:08 AM Revision aecb7f6e (git): [ruby/irb] Deprecate USE_RELINE and USE_REIDLINE
Based on this commit: https://github.com/ruby/irb/commit/93f87ec65344b44123b0150a5fc07de1fd4c80c4
It appears that the maintainer @aycabta wanted to deprecate any `USE_*LINE` configs in favor of
`USE_MULTILINE`. So we should deprecate `U...
st0012 (Stan Lo)
10:08 AM Revision 34320d88 (git): [ruby/irb] Deprecate reidline flags
https://github.com/ruby/irb/commit/9957e83f7d st0012 (Stan Lo)
10:08 AM Revision 4f348e48 (git): [ruby/irb] Rename leftover Reidline references
https://github.com/ruby/irb/commit/0ed8b103ed st0012 (Stan Lo)
10:07 AM Revision 1eae1514 (git): [ruby/irb] Remove duplicated TestInputMethod definitions
https://github.com/ruby/irb/commit/4b831d02e1 st0012 (Stan Lo)
09:18 AM Feature #18951: Object#with to set and restore attributes around a block
I discussed this very quickly with @matz at RWC, and it seems the two main concerns are:
- `with` is seen as too generic, so I propose `with_attr` instead.
- The use case isn't seen as common enough, so I added 3 real world examp...
byroot (Jean Boussier)
08:34 AM Revision 1a9e87fe (git): MJIT: Fix vm_cc_cme(cc).def.type to use bit field
access properly. Because the libclang node had two children, it wasn't
handled well by the pattern matching for the bit field case.
In addition to that, this bit field has a non-1 width. Because we're
returning true/false for a width-1 ...
k0kubun (Takashi Kokubun)
08:18 AM Revision f500ca9b (git): Handle more MJIT compilation failures
NotImplementedError is not part StandardError, for example. When that
kind of exception happens, current_cc_unit remains not NULL, and
mjit_finish ends up waiting for 5 seconds, which is inconvenient.
k0kubun (Takashi Kokubun)
08:15 AM Revision 2652bc35 (git): [ruby/racc] Update racc.gemspec
Updated homepage to https://github.com/ruby/racc Johnny Willemsen
07:39 AM Revision 69e47b7f (git): MJIT: Remove reference to ROBJECT_EMBED_LEN_MAX
maybe not used since some shape changes? k0kubun (Takashi Kokubun)
07:38 AM Revision d15d1c01 (git): Rename --mjit-min-calls to --mjit-call-threshold (#6731)
for consistency with YJIT k0kubun (Takashi Kokubun)
07:38 AM Bug #19113: Inconsistency in retention of compare_by_identity flag in Hash methods
I think `Hash[]` remains all keys on the new Hash so `compare_by_identity` should be remained.
ko1 (Koichi Sasada)
06:59 AM Revision c75de1e3 (git): [ruby/bigdecimal] Add fallback definition of MAYBE_UNUSED
https://github.com/ruby/bigdecimal/commit/b2123faa52 Kenta Murata
05:45 AM Revision c925a2ee (git): Update RSpec gems
deivid (David Rodríguez)
04:02 AM Revision 3c60e030 (git): [ruby/bigdecimal] Replace sprintf by snprintf
https://github.com/ruby/bigdecimal/commit/d6f5bb40c7 Kenta Murata
01:04 AM Revision e74d82f6 (git): Implement LDURH on Aarch64
When RUBY_DEBUG is enabled, shape ids are 16 bits. I would like to do
16 bit comparisons, so I need to load halfwords sometimes. This commit
adds LDURH so that I can load halfwords.
https://developer.arm.com/documentation/ddi0596/20...
tenderlovemaking (Aaron Patterson)
12:53 AM Revision 9228ae97 (git): Try to let dependabot maintain the version comment
It seems like dependabot supports updating the `# vX.Y.Z` comment.
The reason why I disabled this was that it failed to update this, but
maybe it was because it had `, checking sha`. Let me try it again with
that removed.
k0kubun (Takashi Kokubun)
12:48 AM Feature #19129 (Feedback): Radix_Sort for arrays of fixnums (implemented)
nobu (Nobuyoshi Nakada)
12:48 AM Feature #19129: Radix_Sort for arrays of fixnums (implemented)
That idea is interesting.
I have a few questions.
* How is Linux concerned?
* What are tons of magic numbers?
nobu (Nobuyoshi Nakada)
12:34 AM Revision 3147a390 (git): [ruby/bigdecimal] Mark some functions MAYBE_UNUSED
https://github.com/ruby/bigdecimal/commit/d70a4d53e5 Kenta Murata
12:01 AM Revision 5c3dba83 (git): Re-order checks for colons in UTC offset
nobu (Nobuyoshi Nakada)

11/14/2022

11:42 PM Revision b7d59164 (git): Remove USE_RVARGC code
We don't need this constant to be exposed anymore, so remove it tenderlovemaking (Aaron Patterson)
11:39 PM Revision 6cd0553a (git): [rubygems/rubygems] Update comment by the review comment
https://github.com/rubygems/rubygems/commit/7c54dc56f6 Shohei YOSHIDA
11:39 PM Revision 436aa6e6 (git): [rubygems/rubygems] Fix '--force' option documentation of 'bundle clean'
'--path' option is no longer used.
https://github.com/rubygems/rubygems/commit/43b3d5f7bc
Shohei YOSHIDA
11:11 PM Bug #17504: Allow UTC offset without colons per ISO-8601
3.0 branch has not backported commit:9441f3f97087a4325ee80911859d37da41fa5050. nobu (Nobuyoshi Nakada)
09:59 PM Revision 710c1ada (git): Use string's capacity to determine if reembeddable
During auto-compaction, using length to determine whether or not a
string can be re-embedded may be a problem for newly created strings.
This is because usually it requires a malloc before setting the length.
If the malloc triggers compa...
peterzhu2118 (Peter Zhu)
08:40 PM Revision 9a6c3355 (git): Set array capacity/shared immediately after alloc
If auto-compaction is enabled, then we have to set the capacity/shared
immediately after allocating a heap array. If compaction runs before
capacity/shared is set then it could cause the array to be re-embedded,
which can cause crashes.
peterzhu2118 (Peter Zhu)
04:52 PM Feature #19119: Add an interface for out-of-process profiling tools to access Ruby information
byroot (Jean Boussier) wrote in #note-3:
> Since about a year ago however, when on Ruby 3.0+ (and when YJIT is not enabled), `stackprof` does collect the stacktrace directly from the signal handler (see https://github.com/tmm1/stackprof...
mame (Yusuke Endoh)
12:11 PM Feature #19119: Add an interface for out-of-process profiling tools to access Ruby information
> the Ruby interpreter should be suspended at a safe place before reading.
That is what `stackprof` has been doing historically, the problem with this is that it tend to skew the profiling results and attribute more weight to methods ...
byroot (Jean Boussier)
10:28 AM Feature #19119: Add an interface for out-of-process profiling tools to access Ruby information
Thanks for the motivation and proposal. I think it's a good idea for Ruby to provide a mechanism for monitoring.
I understood this ticket as follows.
---
What we want to do: get Ruby stack trace from an external process in a fast and ...
mame (Yusuke Endoh)
04:25 PM Revision 6dd1a5f5 (git): Remove unused function rb_shape_transition_shape
peterzhu2118 (Peter Zhu)
01:41 PM Revision 1221c774 (git): Clean YJIT libraries [ci skip]
nobu (Nobuyoshi Nakada)
12:03 PM Feature #19128: Hash#delete could take a second argument as the default value?
@dorianmariefr if you wish for this feature to be considered, you'll need to expand a bit on your description. Like providing a few snippets of code that show how it is helpful, how often and how it makes your code better. Bonus point if... byroot (Jean Boussier)
10:26 AM Feature #19128: Hash#delete could take a second argument as the default value?
Or
```ruby
{}.delete(:a) {[]}
```
nobu (Nobuyoshi Nakada)
10:18 AM Misc #19121: Time: utc offset argument's formats "+/-HH", "+/-HHMM", "+/-HHMMSS" are supported differently
3.0 seems partially backported. nobu (Nobuyoshi Nakada)
09:59 AM Bug #19127 (Closed): Build of 3.2.0-preview3 fails unless Ruby is already installed
Applied in changeset commit:git|3fae53a343ebd7686bb20d8f4b6855f4d11019cd.
----------
[Bug #19127] Fix revision.h dependency when no baseruby
Disconnect the dependency of revision.h on the timestamp file if no
baseruby is available
nobu (Nobuyoshi Nakada)
06:42 AM Bug #19127: Build of 3.2.0-preview3 fails unless Ruby is already installed
On the nightly snapshot builds, it wasn't reproducible as of https://github.com/ruby/actions/actions/runs/3371938561/jobs/5594778747, and it has been reproduced since https://github.com/ruby/actions/actions/runs/3380198941/jobs/561271284... k0kubun (Takashi Kokubun)
03:20 AM Bug #19127: Build of 3.2.0-preview3 fails unless Ruby is already installed
Seems by commit:git|39f91bc24baa37db3c3d1485902056f43b013b54. nobu (Nobuyoshi Nakada)
09:59 AM Revision 3fae53a3 (git): [Bug #19127] Fix revision.h dependency when no baseruby
Disconnect the dependency of revision.h on the timestamp file if no
baseruby is available
nobu (Nobuyoshi Nakada)
09:52 AM Feature #16796: Assigning local variables when using `case when regexp`
shyouhei (Shyouhei Urabe) wrote in #note-3:
> sawa (Tsuyoshi Sawada) wrote in #note-2:
> ...
Not really (or at least it is not what I understand from the original request, as I felt on a similar issue today). You are just pointing out an...
milouse (Étienne Deparis)
08:29 AM Revision a8537aa6 (git): Import shape constants with mjit-bindgen
k0kubun (Takashi Kokubun)
08:24 AM Revision 80bab6c8 (git): Import class constants with mjit-bindgen
k0kubun (Takashi Kokubun)
08:22 AM Feature #19129: Radix_Sort for arrays of fixnums (implemented)
And doubles (merge_sort): https://github.com/alantudyk/ruby/commit/5b3d6c994f133698228358ca91d3e8965fbb45fe
```
$ ../build/miniruby double.rb
Run #1: 1.337 s
Run #2: 1.340 s
Run #3: 1.340 s
Run #4: 1.340 s
Run #5: 1.341 s
...
e8c (Viktor Reznov)
08:03 AM Feature #19117: Include the method owner in backtraces, not just the method name
I agree with this proposal in general.
As everyone is concerned, I don't think `#inspect` should be used to display receivers. I think it will lead to a worse version of the issue of https://bugs.ruby-lang.org/issues/18285.
One ide...
mame (Yusuke Endoh)
06:38 AM Revision e4e2ff76 (git): Update default gems list at d019c3a4bd7b0955c630195c585f3f [ci skip]
git[bot]
06:37 AM Revision d019c3a4 (git): [ruby/error_highlight] Bump version
https://github.com/ruby/error_highlight/commit/5275078dc6 mame (Yusuke Endoh)
06:22 AM Revision 81c494d8 (git): [ruby/error_highlight] Enable tests for TypeError and ArgumentError
These tests were unintentionally disabled by `if false`
https://github.com/ruby/error_highlight/commit/fa6d00d80d
mame (Yusuke Endoh)
06:06 AM Revision 8bfd4dd4 (git): [ruby/error_highlight] Enable ErrorHighlight for TypeError/ArgumentError only after Ruby 3.2
... because changing TypeError#message and ArgumentError#message is
highly incompatible.
https://github.com/ruby/error_highlight/commit/39aa897c7a
mame (Yusuke Endoh)
05:14 AM Revision 96d29dff (git): Fix invokebuiltin in Ruby MJIT
https://github.com/ruby/ruby/blob/45fe7f757522ed7d1d3ec754da59d41d45dd6bab/tool/ruby_vm/views/_mjit_compile_invokebuiltin.erb#L21
has not been ported correctly.
k0kubun (Takashi Kokubun)
04:35 AM Revision 3dd4e381 (git): Reduce the number of branches in jit_exec (#6722)
* Reduce the number of branches in jit_exec
* Address build failure in some configurations
* Refactor yjit.h
k0kubun (Takashi Kokubun)
03:12 AM Feature #14244 (Closed): Better error messages for scripts with non-matching end statements
syntax_suggest gem will solve this issue. Closing. Thank you @schneems ! mame (Yusuke Endoh)
03:11 AM Feature #18564 (Closed): Add Exception#detailed_message
I think I have already merged the change. Closing. mame (Yusuke Endoh)
02:54 AM Revision ea278ddd (git): Bump actions/upload-artifact from 3.1.0 to 3.1.1
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3.1.0 to 3.1.1.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/3cea53...
dependabot[bot]
02:32 AM Bug #19016: syntax_suggest is not working with Ruby 3.2.0-preview2
`syntax_suggest` is not working 3.2.0-preview3 too. @nobu will resolve this until preview4. hsbt (Hiroshi SHIBATA)
02:00 AM Bug #19130 (Closed): MRI failing when executing shell builtin commands with Errno::ENOENT
Sorry if this came up already, Google & Redmine came up blank but maybe I missed it. Bug was found on 3.0.0 but I tested on 3.2.0-preview1 and it's present on both.
Trying to execute any shell builtin commands from irb or script fails...
ifiht (Mikal R)

11/13/2022

11:13 PM Revision dc5e2eaa (git): Refactor update_global_event_hook
It seems more readable to put JIT invalidation code together. k0kubun (Takashi Kokubun)
10:41 PM Revision e377875c (git): s/mjit_func_t/jit_func_t/
k0kubun (Takashi Kokubun)
10:00 PM Revision 68e05234 (git): Remove unused debug counters
The structure and readability of jit_exec is messed up right now. I'd
like to help the current situation by this for now. I'll resurrect
them when I need it again.
k0kubun (Takashi Kokubun)
05:54 PM Revision 6246788b (git): YJIT: Instrument global allocations on stats build (#6712)
* YJIT: Instrument global allocations on stats build
* Just use GLOVAL_ALLOCATOR.stats()
k0kubun (Takashi Kokubun)
05:51 PM Revision bc8ba244 (git): YJIT: Fix invalidation for c_call and c_return (#6719)
Follow-up for 2b8191bdad7545b71f270d2b25a34cd2b3afa02f. Since that
commit, we stopped doing code invalidation the second time the call and
return events are enabled. We need to do it every time these events are
enabled because we might h...
alanwu (Alan Wu)
05:42 PM Revision a1b460bd (git): Update yjit.md
Remove disclaimer maximecb (Maxime Chevalier-Boisvert)
05:33 PM Revision d5e1b82f (git): YJIT: Remove unused src_ctx from Block (#6714)
k0kubun (Takashi Kokubun)
02:54 PM Revision 2f7d2662 (git): Control non-parallel parts with `.WAIT` if available
nobu (Nobuyoshi Nakada)
12:33 PM Revision 8d82f4ba (git): [ruby/bigdecimal] Add specific value allocators
* Add NewZero* and NewOne* function families
* Use them instead of VpAlloc for allocating 0 and 1
https://github.com/ruby/bigdecimal/commit/9276a94ac7
Kenta Murata
09:05 AM Revision 70c9d5b5 (git): Try to overwrite the file in VPATH if possible
nobu (Nobuyoshi Nakada)
08:38 AM Revision 66529eef (git): Force to update revision.h when commits differ
nobu (Nobuyoshi Nakada)
08:08 AM Bug #18599: `vm->loaded_features_snapshot` became very inefficient in Ruby 3.1
ruby_3_1 012015d762d000966a33fcea5f3069decd9d4007 merged revision(s) b8f0dc59d52266d9fbfc039e2f4b0f727c62baa0. nagachika (Tomoyuki Chikanaga)
08:07 AM Revision 012015d7 (git): merge revision(s) b8f0dc59d52266d9fbfc039e2f4b0f727c62baa0: [Backport #18599]
rb_provide_feature: Prevent $LOADED_FEATURES from being copied
[Bug #18599]
`vm->loaded_features` and `vm->loaded_features_snapshot` both share the
same root. When a feature is pushed into `loaded_features`, the...
nagachika (Tomoyuki Chikanaga)
06:15 AM Revision 18fa7059 (git): Deal with different Ruby versions
k0kubun (Takashi Kokubun)
06:01 AM Revision 802dce4a (git): [ruby/bigdecimal] Add and use specific value allocators
* Add rbd_allocate_struct_zero for making 0.0
* Add rbd_allocate_struct_one for making 1.0
* Use them to replace VpAlloc calls
* Renmae VpPt5 to VpConstPt5
https://github.com/ruby/bigdecimal/commit/40c826f5e6
Kenta Murata
06:01 AM Revision 019f53de (git): [ruby/bigdecimal] Make VPrint function always available
https://github.com/ruby/bigdecimal/commit/5391f7e92c Kenta Murata
05:55 AM Revision c0735d1d (git): Fix a CI failure in bigdecimal
k0kubun (Takashi Kokubun)
04:29 AM Revision d1f55dea (git): [ruby/bigdecimal] Tweak VpAlloc
* Stop reusing mx and mf
* Check szVal == NULL first
* Treat special values before checking the leading `#`
https://github.com/ruby/bigdecimal/commit/14f3d965f8
Kenta Murata
03:47 AM Revision bbb9f723 (git): [ruby/bigdecimal] Rewrite allocation functions
* Rename them
* Make allocation count operations atomic
https://github.com/ruby/bigdecimal/commit/a5ab34a115
Kenta Murata
02:46 AM Revision 27034102 (git): [ruby/bigdecimal] Twak GetPrecisionInt and rename it to check_int_precision
https://github.com/ruby/bigdecimal/commit/69d0588a3b Kenta Murata
02:30 AM Feature #19128: Hash#delete could take a second argument as the default value?
Since you are avoiding doing:
```rb
{}.delete(:a) || []
```
it must be the case that you have a hash in which `nil` can be a meaningful value, and you want to distinguish that from the case where `delete` results in a miss hit. W...
sawa (Tsuyoshi Sawada)
02:24 AM Bug #19116: Array#pack is broken for long strings in buffer
ruby_3_1 db1aa39ffcaa5b9f062639eb30c76959f4607a8e merged revision(s) 199b59f065ce6f1c13b8424f35a70c513523211b. nagachika (Tomoyuki Chikanaga)
02:23 AM Bug #19105: mutex: Raise a ThreadError when detecting a fiber deadlock
ruby_3_1 61818395312c6e765dc8e7be8bf32cd2c82fec39 merged revision(s) eacedcfe44a0ae22bf54ddb7df193c48d4c857c6. nagachika (Tomoyuki Chikanaga)
02:23 AM Bug #19106: Time - Hour 24 with tzinfo to_s bug
ruby_3_1 728d9f18348bcffedb0880c67015f08a7c19665f merged revision(s) 011d4c57d21220249600dfb76db84840550da019. nagachika (Tomoyuki Chikanaga)
02:23 AM Bug #19081: Ractor warning shows an internal location
ruby_3_1 f8044a770009b78d46b583600c9bd6660328303f merged revision(s) 131c31a9209c61f84d318aa18b61f468f48b8219. nagachika (Tomoyuki Chikanaga)
02:22 AM Revision f8044a77 (git): merge revision(s) 131c31a9209c61f84d318aa18b61f468f48b8219: [Backport #19081]
[Bug #19081] Show the caller location in warning for Ractor
The internal location in ractor.rb is not usefull at all.
```
$ ruby -e 'Ractor.new {}'
<internal:ractor>:267: warning: Ractor is experimental, ...
nagachika (Tomoyuki Chikanaga)
02:20 AM Revision 728d9f18 (git): merge revision(s) 011d4c57d21220249600dfb76db84840550da019: [Backport #19106]
[Bug #19106] Normalize time at 24:00:00 with a timezone object
---
test/ruby/test_time_tz.rb | 5 +++++
time.c | 24 ++++++++++++++++--------
2 files changed, 21 insertions(+), 8 dele...
nagachika (Tomoyuki Chikanaga)
02:18 AM Revision 61818395 (git): merge revision(s) eacedcfe44a0ae22bf54ddb7df193c48d4c857c6: [Backport #19105]
mutex: Raise a ThreadError when detecting a fiber deadlock (#6680)
[Bug #19105]
If no fiber scheduler is registered and the fiber that
owns the lock and the one that try to acquire it
both belong to the ...
nagachika (Tomoyuki Chikanaga)
02:13 AM Revision db1aa39f (git): merge revision(s) 199b59f065ce6f1c13b8424f35a70c513523211b: [Backport #19116]
Fix bug in array pack with shared strings
If string literals are long and they become shared, we need to make them
independent before we can write to them. [Bug #19116]
---
pack.c | 1 +
...
nagachika (Tomoyuki Chikanaga)
02:02 AM Revision ef1c6109 (git): [ruby/bigdecimal] Tweak check_rounding_mode_option
https://github.com/ruby/bigdecimal/commit/e1c6c9be25 Kenta Murata
02:02 AM Revision 74c6e6e5 (git): [ruby/bigdecimal] Rewrite check_rounding_mode function
Use table-lookup algorithm instead of consecutive if-statements.
https://github.com/ruby/bigdecimal/commit/23eaff3ae5
Kenta Murata
02:02 AM Revision b89769b9 (git): [ruby/bigdecimal] [Doc] Fix the document of n_significant_digits
https://github.com/ruby/bigdecimal/commit/91b72a9341 Kenta Murata
02:02 AM Revision 977aac05 (git): [ruby/bigdecimal] Make GetVpValue inline
https://github.com/ruby/bigdecimal/commit/1b642e2e59 Kenta Murata
02:01 AM Revision 0d524867 (git): [ruby/bigdecimal] Make BigDecimal_double_fig inline
https://github.com/ruby/bigdecimal/commit/4ecf04da7a Kenta Murata
12:50 AM Feature #19129 (Feedback): Radix_Sort for arrays of fixnums (implemented)
Code is already written, all in one listing (git diff, test file, and results of tests):
```
$ cat ../ruby_sort/test.rb
#!/bin/ruby
srand 0
r = Array.new 1e7.to_i do rand -2 ** 40...2 ** 40 end
puts
5.times do
a = ...
e8c (Viktor Reznov)

11/12/2022

11:14 PM Misc #19074: DevMeeting-2022-12-01 (postponed from 11-17)
* [Feature #19000] Data: Add "Copy with changes method" [Follow-on to #16122 Data: simple immutable value object] (bdewater)
* There seems to be consensus for the need of the feature, but not on what the method name should be. The pro...
bdewater (Bart de Water)
10:28 PM Feature #19066: Enable Scorecard Github Action
Btw. it was recently added to rubygems and rubygems.org as well.
https://github.com/rubygems/rubygems/pull/6055
https://github.com/rubygems/rubygems.org/pull/3258
retro (Josef Šimánek)
09:54 PM Feature #19059: Introduce top level `module TimeoutError` for aggregating various timeout error classes.
Lots of other languages are starting accept cancellation by using cancel tokens and have timeout a subclass of a Cancelation Error. This is because, sometimes you want to let cancel a task because of timeout, or because of user cancel r... dsisnero (Dominic Sisneros)
04:10 PM Feature #19128 (Rejected): Hash#delete could take a second argument as the default value?
e.g. `{}.delete(:a, [])` would return `[]` dorianmariefr (Dorian Marié)
12:24 PM Feature #19117: Include the method owner in backtraces, not just the method name
kjtsanaktsidis (KJ Tsanaktsidis) wrote in #note-10:
> This ticket would handle making this change ONLY. The motivation for this change is purely to give better developer ergonomics.
Correct. To be able to understand much more from th...
Eregon (Benoit Daloze)
03:30 AM Feature #19117: Include the method owner in backtraces, not just the method name
@kjtsanaktsidis thanks for proposing to implement the patch, but don’t worry I’ll do it. byroot (Jean Boussier)
02:24 AM Feature #19117: Include the method owner in backtraces, not just the method name
Also - if I've got this right, I'm happy to write up a patch to implement this proposal - I've been playing around in this area of the code so I think I know what to do. kjtsanaktsidis (KJ Tsanaktsidis)
02:08 AM Feature #19117: Include the method owner in backtraces, not just the method name
OK, so if I understand correctly, the proposal in this ticket is to make `Thread::Backtrace::Location#inspect` and `Kernel#callers` print method names using the algorithm used in `rb_profile_frame_qualified_method_name`. Currently, they ... kjtsanaktsidis (KJ Tsanaktsidis)
08:15 AM Bug #19127: Build of 3.2.0-preview3 fails unless Ruby is already installed
This also happens on OpenBSD. I tested with a current OpenBSD snapshot and reproduced, but I assume it also happens on supported OpenBSD releases (7.1 and 7.2).
With OpenBSD make, the error is:
```
*** Error 1 in /usr/obj/ports/r...
jeremyevans0 (Jeremy Evans)
08:02 AM Bug #19127 (Closed): Build of 3.2.0-preview3 fails unless Ruby is already installed
# Steps to reproduce process
1. Make clean install of operating system.
2. Install tools and libraries necessary to build Ruby with release
archive files (C Compiler, make, libyaml, etc). Keep in mind any
version of Ruby isn'...
yasuhirokimura (Yasuhiro KIMURA)
04:24 AM Bug #18912: Build failure with Xcode 14 and macOS 13 (Ventura) Beta
I tried to investigate bigdecimal's build problem on my MacBook Air. But, unfortunately, I couldn't. I used Xcode 14.0 on Ventura. I first tried with the following configure options: `--enable-shared --with-openssl-dir=$(brew --prefix... mrkn (Kenta Murata)
02:22 AM Bug #19124: Compile with clang: Cannot compile with -flto -fvisibility=hidden
`-flto` itself works. `-fvisibility=` is needed for other `-fsanitize=` options. steakknife (Barry Allard)
01:36 AM Bug #19124 (Feedback): Compile with clang: Cannot compile with -flto -fvisibility=hidden
## Environment
- CentOS 9 Stream x86_64
- 96 threads
- 96 GiB RAM
- 140 GiB SSD storage
## Reproduction
```
sudo dnf install -y yum-utils
sudo yum-config-manager --enable crb
sudo dnf install -y \
make bc binutils-gol...
steakknife (Barry Allard)
02:00 AM Feature #19126 (Open): clang: Cannot compile with Control Flow Integrity (CFI)
Maybe related #19124
## Reproduction
```
sudo dnf install -y yum-utils
sudo yum-config-manager --enable crb
sudo dnf install -y \
make bc binutils-gold mold patch git bison xz autoconf automake m4 libtool pkg-config perl-inte...
steakknife (Barry Allard)
01:49 AM Feature #19125 (Open): Support SafeStack
## LLVM's current SafeStack support limitations
- ucontext.h not yet supported (needs LLVM enhancement or workarounds)
- `sigaltstack()` cannot use the unsafe stack
- Mark-and-sweep GC's that modify live pointers must look in both u...
steakknife (Barry Allard)

11/11/2022

11:38 PM Bug #18599: `vm->loaded_features_snapshot` became very inefficient in Ruby 3.1
> Is this targeted to be ported to Ruby 3.1?
Yes.
byroot (Jean Boussier)
03:32 PM Bug #18599: `vm->loaded_features_snapshot` became very inefficient in Ruby 3.1
Is this targeted to be ported to Ruby 3.1? I see it's not included in 3.1.2 nor in the ruby_3_1 branch. thomthom (Thomas Thomassen)
11:37 PM Feature #19117: Include the method owner in backtraces, not just the method name
> I think the one thing we should do is special handling of singleton classes to use the . notation instead, since that improves readability quite a bit.
Yes. I didn't mention it because I thought it was implied. The idea is to use th...
byroot (Jean Boussier)
10:01 AM Feature #19117: Include the method owner in backtraces, not just the method name
Agreed the better default Module#inspect is a mostly separate thing (matching across processes is too difficult IMHO, and there might be multiple modules created on the same file:line so we need to show the ID anyway).
It's also fairly ...
Eregon (Benoit Daloze)
12:23 AM Feature #19117: Include the method owner in backtraces, not just the method name
@kjtsanaktsidis I understand what you are trying to do, but I think it's orthogonal to the current issue.
I'll quickly answer here, but it's probably best to discuss that in your issue instead.
I don't think `object_id` will cut it...
byroot (Jean Boussier)
10:40 PM Revision 0a9d51ee (git): Migrate our resolver engine to PubGrub
https://github.com/rubygems/rubygems/pull/5960
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
hsbt (Hiroshi SHIBATA)
09:51 PM Feature #19066 (Closed): Enable Scorecard Github Action
I added ossf/scorecards at https://github.com/ruby/ruby/pull/6716.
Thanks for introducing that. We will triage these alerts.
hsbt (Hiroshi SHIBATA)
09:05 PM Revision 14a1394b (git): [ruby/irb] Simplify info command's tests
(https://github.com/ruby/irb/pull/440)
https://github.com/ruby/irb/commit/5942949226
st0012 (Stan Lo)
05:29 PM Misc #19123 (Open): Error handling of Struct#values_at and Array#values_at is slightly inconsistent
`Struct#values_at` and `Array#values_at look pretty similar and handle all the complex cases of arguments (integer Ranges, list of Integers and mixing Ranges and Integers) in the same way.
Error handling is similar as well. In case of...
andrykonchin (Andrew Konchin)
05:05 PM Revision a48e01cc (git): [ruby/net-http] Update lib/net/http.rb
https://github.com/ruby/net-http/commit/16d042fad6
Co-authored-by: Peter Zhu <peter@peterzhu.ca>
burdettelamar (Burdette Lamar)
05:05 PM Revision 4d9ada22 (git): [ruby/net-http] Prettify class hierarchies in Net::HTTP
https://github.com/ruby/net-http/commit/4a5732e210 burdettelamar (Burdette Lamar)
04:13 PM Revision 04c5adf8 (git): YJIT: Fix staying in invalidated code after proc calls
Previously, there is no instruction boundary patch point after
the call to a non-leaf C function we generate for
OPTIMIZED_METHOD_TYPE_CALL. This meant that if code GC is triggered
while inside the C function, we would keep running inval...
alanwu (Alan Wu)
04:06 PM Misc #19122: Use MADV_DONTNEED instead of MADV_FREE when freeing a Fiber's stack
@ioquatix apologies for the direct assignment; you just seemed like the person who has the most knowledge and investment in the current state of Fiber. smcgivern (Sean McGivern)
04:06 PM Misc #19122 (Assigned): Use MADV_DONTNEED instead of MADV_FREE when freeing a Fiber's stack
I'd like to propose that Ruby stops using MADV_FREE when freeing a Fiber's stack, and switches to using MADV_DONTNEED even when MADV_FREE is supported.
MADV_FREE is used in one place in the Ruby codebase, when freeing the stack of a f...
smcgivern (Sean McGivern)
02:50 PM Misc #19121 (Open): Time: utc offset argument's formats "+/-HH", "+/-HHMM", "+/-HHMMSS" are supported differently
I've noticed a strange difference between Ruby versions 2.7, 3.0 and 3.1.
The mentioned above formats are supported in Ruby 2.7 and Ruby 3.1 but aren't supported in Ruby 3.0.
So I am wondering whether supporting these formats is ex...
andrykonchin (Andrew Konchin)
02:14 PM Bug #18464: RUBY_INTERNAL_EVENT_NEWOBJ tracepoint causes an interpreter crash when combined with Ractors
Interestingly, my crash happened on `RUBY_INTERNAL_EVENT_GC_ENTER` (you can see my stack includes an attempt to garbage collect) but I believe the fix would work for this situation as well. ivoanjo (Ivo Anjo)
02:11 PM Misc #19120: How does YJIT work in --enable-shared case?
Guys, thanks for answering and sharing the info!
> YJIT does NOT generate Rust code at runtime to perform its JIT compilation. YJIT is, itself, a Rust code-base that generates the correct assembly code for optimized methods at runtime...
jaruga (Jun Aruga)
12:12 PM Revision 90bbc891 (git): Enable only master-branch
hsbt (Hiroshi SHIBATA)
12:12 PM Revision 5a1ddc48 (git): Test with topic-branch
hsbt (Hiroshi SHIBATA)
12:12 PM Revision 800caf4e (git): Use secrets.SCORECARD_READ_TOKEN
hsbt (Hiroshi SHIBATA)
12:12 PM Revision a0fcbce4 (git): Try to use ossf/scorecards
hsbt (Hiroshi SHIBATA)
08:24 AM Revision 28611be6 (git): Merge RubyGems/Bundler master from ee2f8398324af4bc1b95f7565ce2fda98126e026
hsbt (Hiroshi SHIBATA)
08:24 AM Revision de159c5a (git): [rubygems/rubygems] Store last check even when upgrade is not available and fix test.
https://github.com/rubygems/rubygems/commit/bcffc2b0a5 retro (Josef Šimánek)
08:24 AM Revision 7ce0f81f (git): [rubygems/rubygems] Use file in XDG_STATE_HOME directory to store last update check timestamp.
https://github.com/rubygems/rubygems/commit/0fbc4ace8a retro (Josef Šimánek)
08:24 AM Revision c7d04306 (git): [rubygems/rubygems] Add 'call for update' to RubyGems install command.
https://github.com/rubygems/rubygems/commit/05811f8248 retro (Josef Šimánek)
08:24 AM Revision ceeefb58 (git): [rubygems/rubygems] github source should default to secure protocol
Bundler 2 switched to secure https here https://github.com/rubygems/rubygems/commit/c2e81f8ff63613871cc8b52653c5e176f8dafde3
Insecure protocols should be avoided to prevent MITM attacks.
https://github.com/rubygems/rubygems/commit/7584...
Jason Karns
12:07 AM Revision adfbee85 (git): Allow a float error for Regexp.timeout
The tests failed on windows
https://github.com/ruby/ruby/actions/runs/3440997073/jobs/5740085169#step:18:62
```
1) Failure:
TestRegexp#test_s_timeout [D:/a/ruby/ruby/src/test/ruby/test_regexp.rb:1586]:
<0.30000000000000004> expe...
mame (Yusuke Endoh)
 

Also available in: Atom