Activity
From 12/23/2022 to 12/29/2022
12/29/2022
-
11:38 PM Bug #15072 (Closed): thread.c:4356:5: error: implicit declaration of function ‘ubf_list_atfork’
- Fixed in #15130
-
10:41 PM Bug #19279: Allow `Coverage.supported?` to recognize oneshot lines mode
- @mame https://bugs.ruby-lang.org/issues/19026#note-7 should be a good enough reason on its own IMHO.
And as we have seen with recent simplecov issues, it's always a bad idea to use a version check for checking if a feature is available. -
08:31 AM Bug #19279 (Closed): Allow `Coverage.supported?` to recognize oneshot lines mode
-
08:31 AM Bug #19279: Allow `Coverage.supported?` to recognize oneshot lines mode
- Okay, I merged it. If you think this should be backported you need to ask @nagachika :)
-
02:53 AM Bug #19279: Allow `Coverage.supported?` to recognize oneshot lines mode
- TBH, I don't fully understand the need for `Coverage.supported?`. (I thought `RUBY_VERSION > "3.1"` was good enough as I said in https://bugs.ruby-lang.org/issues/19026#note-6.) So I am not sure of the need for `Coverage.supported?(:ones...
-
10:34 PM Bug #19278: Constructing subclasses of Data with positional arguments
- @sam.saffron your hand-maid `Foo` is analogous to `Foo = Data.define(:x)`, right?
Now, can you please show what if somebody wants to inherit your `Foo` to provide:
* argument conversion for `x`
* or, default value for `x`
I belie... -
09:37 PM Bug #19278: Constructing subclasses of Data with positional arguments
- Just going to be a bit more explicit here about the problem for future travelers (I know I am repeating but this is the most succinct way imo to show the issue)...
```ruby
Foo = Data.define :x
class Bar < Foo
def initialize(*args, *... -
08:28 PM Bug #19278: Constructing subclasses of Data with positional arguments
- @tenderlove I assure you that I spent a lot of time thinking about possible design decisions, and I believe that while _somewhat unlike_ other classes, the current choice is the best in usability. It is documented (the documentation migh...
-
08:10 PM Bug #19278: Constructing subclasses of Data with positional arguments
- It seems hard to solve to me, without losing the significant advantages that @zverok mentions.
Also inheriting from a Data class seems kind of an anti/rare pattern.
One can of course:
```ruby
Foo = Data.define(:x, :y)
def custom... -
06:36 PM Bug #19278: Constructing subclasses of Data with positional arguments
- I guess the fact that `new` doesn't behave the same way as `new` on every other class kind of ruins "usability" for me. As an end user, it's not clear why this works:
```ruby
class Foo
def initialize x:, y:
end
end
class B... -
07:39 AM Bug #19278 (Feedback): Constructing subclasses of Data with positional arguments
- It is a deliberate and documented design decision: `new` handles unifying positional and keyword args, and `initialize` always [receives keyword args](https://docs.ruby-lang.org/en/master/Data.html#method-c-new).
> Note that Measure#i... -
07:56 PM Bug #19284 (Closed): Integer overflow when using RUBY_GC_HEAP_INIT_SLOTS environment variable
- If you set the environment variable `RUBY_GC_HEAP_INIT_SLOTS` to anything other than `0`, an integer overflow runtime error occurs:
```ruby
RUBY_GC_HEAP_INIT_SLOTS=10000 ruby -e 'puts "hello, world!"'
# => ruby: integer overflow: 36... -
05:40 PM Bug #19270: Constants lookup and a singleton class issue
- It's expected behavior. When you have a singleton class `singleton_class.ancestors` is:
[singleton_class, attached_object_class, ...]
In this case the lookup for starts at `A`, which is `attached_object_class`.
It goes to the ... -
05:09 PM Bug #19282 (Closed): Regex error on ruby 3.2
-
11:04 AM Bug #19282: Regex error on ruby 3.2
- This issue is same with https://bugs.ruby-lang.org/issues/19283 and both I made. Would you remove this issue?
-
10:55 AM Bug #19282 (Closed): Regex error on ruby 3.2 - There is an regex error pattern on ruby 3.2.0. This pattern is success on ruby 3.1.3.
Is this a bug? Or, is ruby 3.2.0 correct?
- ruby 3.2.0
```
# ruby -v
ruby 3.2.0 (2022-12-25 revision a528908271) [x86_64-linux]
(byebug) MAX_... -
04:14 PM Misc #19276: It is not possible to reply to emails from redmine
- It looks like the message does eventually go through https://bugs.ruby-lang.org/issues/19274#note-4 , however (when doing the typical reply-all) there is still the error message from google about address not existing.
-
06:42 AM Misc #19276 (Assigned): It is not possible to reply to emails from redmine
- 01:20 PM Revision f430701b (git): [DOC] remove space from inside code span element
-
01:13 PM Bug #19280 (Closed): Wrong error message about arity of Data::define.new
- The report about arity is correct.
`Data` decouples `.new` and `#initialize` this way:
* `.new` accepts positional and keyword args, and converts positional to keyword, and passes them to `#initialize`
* `#initialize` accepts only ... -
01:21 AM Bug #19280 (Closed): Wrong error message about arity of Data::define.new
- ```
$ ~/work/r/bin/ruby -e 'Data.define(:a, :b).new(1, 2, 3)'
-e:1:in `new': wrong number of arguments (given 3, expected 0..2) (ArgumentError)
Data.define(:a, :b).new(1, 2, 3)
^^^^^^^
from -e:1:in ... -
11:26 AM Bug #19273: [Regexp] regexp does not match expected
- ruby_3_2 a7d467a792c644a7260d6560ea2002fdb8ff6de3 merged revision(s) b726d60c986bf951d13e7a2ab5f5e58f58657b03.
-
11:26 AM Bug #19263: MJIT fails to compile multiple values in a single case in Ruby 3.2.0
- ruby_3_2 5c551ac59f9620901394a46dffda5a1833b9c4b0 merged revision(s) fc03ba50f1ff6c30f7c654f564b4dffbed0844ef.
-
11:01 AM Bug #19283 (Closed): Regex error on ruby 3.2
- There is an regex error pattern on ruby 3.2.0. This pattern is success on ruby 3.1.3.
Is this a bug? Or, is ruby 3.2.0 correct?
- ruby 3.2.0
```
# ruby -v
ruby 3.2.0 (2022-12-25 revision a528908271) [x86_64-linux]
(byebug) MA... -
09:27 AM Bug #19281 (Closed): SyntaxError if first argument of command call has semicolon inside parenthesis
- These are syntax error
~~~ruby
p (1;2),(3),(4)
p (;),(),()
a.b (1;2),(3),(4)
a.b (;),(),()
~~~
I expect it to be syntax ok because the code below is syntax ok.
~~~ruby
p (1),(2;3),(4;5)
p (),(;),(;)
a.b (1),(2;3),(4;5)
a.b ()... -
08:56 AM Bug #18743: Enumerator#next / peek re-use each others stacktraces
- Good evening, @matz. The PR with the bug fix is available now for a few months. Please advise on the next steps.
- 08:23 AM Revision b3d330c3 (git): Coverage.supported? recognizes oneshot_lines mode (#7040)
- This adds oneshot_lines as a mode of coverage that is supported.
-
06:59 AM Revision a7d467a7 (git): merge revision(s) b726d60c986bf951d13e7a2ab5f5e58f58657b03: [Backport #19273]
- Fix [Bug 19273], set correct value to `outer_repeat` on `OP_REPEAT`
(#7035)
---
regexec.c | 2 +-
test/ruby/test_regexp.rb | 5 +++++
2 files changed, 6 insertions(+), 1 deletion(-) -
06:42 AM Bug #19275 (Assigned): Bundled gems extensions are not installed with 3.2.0 release tarball
-
03:09 AM Feature #19277: Project-scoped refinements
- As @duerst mentioned, we understand the need for (some kind of) package importing, and @shioyama is now working on it. But we are far away from completion.
I personally feel it is a good idea to combine this package with refinements.
...
12/28/2022
-
10:40 PM Misc #19276: It is not possible to reply to emails from redmine
- Thanks. We will investigate this.
-
04:41 PM Misc #19276 (Third Party's Issue): It is not possible to reply to emails from redmine
- It is no possible to reply to email from about issue update in order to add further comments to the tickets. Is that something that could be turned on? I think it would be user friendly to be able to react directly from mail client, with...
-
08:22 PM Bug #19279: Allow `Coverage.supported?` to recognize oneshot lines mode
- I just created the PR here: https://github.com/ruby/ruby/pull/7040
-
08:18 PM Bug #19279: Allow `Coverage.supported?` to recognize oneshot lines mode
- I basically agree with fixing this - can you link the PR?
The only feedback I have is that `:lines` and `:oneshot_lines` are basically the same from a compatibility POV. I wonder if the flags should actually be `:lines | :oneshot`. Beca... -
08:12 PM Bug #19279: Allow `Coverage.supported?` to recognize oneshot lines mode
- I have a commit to support this that I'd like to contribute as a PR, but am waiting on doing so until the process here plays out. Thanks!
-
08:10 PM Bug #19279 (Closed): Allow `Coverage.supported?` to recognize oneshot lines mode
- Currently in Ruby 3.2.0, Coverage's new `supported?` method (introduced in https://bugs.ruby-lang.org/issues/19026) does not recognize support for oneshot lines. Given that it is an available mode of coverage, I'm proposing that `Coverag...
-
07:50 PM Bug #19278 (Rejected): Constructing subclasses of Data with positional arguments
- I'd expect both of the following subclasses to work, but the subclass that uses positional parameters raises an exception:
```ruby
Foo = Data.define
class Bar < Foo
def initialize foo:
p foo
end
end
class Baz < Foo
... -
06:31 PM Feature #19277: Project-scoped refinements
- I didn't mention this in the original issue because it's not the primary motivation for project configuration here, but a secondary benefit of project configuration is affording a place to opt in to new interpreter features (frozen strin...
-
06:14 PM Feature #19277 (Open): Project-scoped refinements
- Refinements are a great way to isolate patches to the files that rely on them. Nonetheless, I believe the need to explicitly enable refinements in every file that uses them has hindered their adoption. As an inciting example, it’s hard t...
-
05:57 PM Bug #18797 (Open): Third argument to Regexp.new is a bit broken
- Pull request submitted to remove support for the 3rd argument: https://github.com/ruby/ruby/pull/7039
-
04:43 PM Revision cada5370 (git): [DOC] Fix call-seq for Data.define
-
04:41 PM Bug #19274: Error installing ruby 3.2.0 on RH 8 - ______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/... -
04:38 PM Bug #19274: Error installing ruby 3.2.0 on RH 8
- On 2022-12-28 12:52:41 +0000, aalllop (Alberto Allegue) via ruby-core wrote:
> Issue #19274 has been updated by aalllop (Alberto Allegue).
> ...
+install the devel version?
This is actually distribution specific. For example archlin... -
12:52 PM Bug #19274: Error installing ruby 3.2.0 on RH 8
Sorry, I have posted one of the diferent tests I have done. I have installed first time the 3.2.0 version and the error was the same.
I had installed libyaml-0.1.7-5.el8.x86_64 and now I have installed libyaml-devel-0.1.7-5.el8.x...-
11:10 AM Bug #19274 (Feedback): Error installing ruby 3.2.0 on RH 8
- * You should use the release version of Ruby 3.2.0, not rc1.
* You may need to install `libyaml-devel` or other libyaml library.
-
10:50 AM Bug #19274 (Feedback): Error installing ruby 3.2.0 on RH 8
- When I execute rvm install 3.2.0 the installation fails with the next error:
installing default gems from lib: /var/lib/jenkins/.rvm/rubies/ruby-3.2.0-rc1/lib/ruby/gems/3.2.0+3
abbrev 0.1.0
... -
01:02 PM Bug #19275 (Closed): Bundled gems extensions are not installed with 3.2.0 release tarball
- Bundled gems extensions are not installed with 3.2.0 release tarball when cross building for `aarch64-linux-android` target.
Possibly related to #19271.
Excerpt from build log:
```
2022-12-28T12:39:39.5065133Z linking shared-ob... -
11:44 AM Bug #19273 (Closed): [Regexp] regexp does not match expected
- merged at b726d60c986bf951d13e7a2ab5f5e58f58657b03
-
09:45 AM Bug #19273: [Regexp] regexp does not match expected
- PR [#7035](https://github.com/ruby/ruby/pull/7035) for fixing the bug is created.
-
03:56 AM Bug #19273: [Regexp] regexp does not match expected
- Pattern using `*` quantifier instead of `{0,3}` quantifier matches expactedly.
```
irb(main):027:0> pattern = /(?-mix:(?i-mx:[+-]?0b[01](?:_?[01])*)|(?-mix:[+-]?(?:[1-9]_?(?:\d_?)*)?\d)|(?i-mx:[+-]?0x\h(?:_?\h)*))(?::(?-mix:(?i-mx:[+-]?... -
03:39 AM Bug #19273: [Regexp] regexp does not match expected
- This pattern shows a binary|decimal|hexadecimal value splitted by : character.
decimal only and decimal|hexadecimal patterns match expectedly.
decimal only pattern:
```
irb(main):019:0> pattern = /(?-mix:[+-]?(?:[1-9]_?(?:\d_?)... -
03:33 AM Bug #19273: [Regexp] regexp does not match expected
- I performed git bisect and found the first bad commit is [37613fea1657b1a0732501657275bc03e8e0ebc4](https://github.com/ruby/ruby/commit/37613fea1657b1a0732501657275bc03e8e0ebc4).
-
03:10 AM Bug #19273 (Closed): [Regexp] regexp does not match expected
- A regexp pattern does not match expected with Ruby 3.2.
Ruby 3.2
``` ruby
pattern = /(?-mix:(?i-mx:[+-]?0b[01](?:_?[01])*)|(?-mix:[+-]?(?:[1-9]_?(?:\d_?)*)?\d)|(?i-mx:[+-]?0x\h(?:_?\h)*))(?::(?-mix:(?i-mx:[+-]?0b[01](?:_?[01])*)|(... -
11:38 AM Feature #19272: Hash#merge: smarter protocol depending on passed block arity
- @sawa I didn't mention the solution with numeric arguments because I believe it to be even more cryptic than with named ones.
The reader needs to remember _at all times_ what's the protocol of merge block (`merge` with a block is not... -
07:33 AM Feature #19272: Hash#merge: smarter protocol depending on passed block arity
- Using numbered parameters, we can do slightly better:
```ruby
{apples: 1, oranges: 2}.merge({apples: 3, bananas: 5}){_2 + _3}
```
although I am neutral about the proposal. -
11:03 AM Revision b726d60c (git): Fix [Bug 19273], set correct value to `outer_repeat` on `OP_REPEAT` (#7035)
-
06:46 AM Revision 39319216 (git): add debug print for the failure
- http://ci.rvm.jp/results/trunk-gc-asserts@ruby-sp2-docker/4364584
```
1) Failure:
TestObjSpace#test_dump_all [/tmp/ruby/src/trunk-gc-asserts/test/objspace/test_objspace.rb:599]:
number of strings.
<2> expected but was
<3>.
``` -
01:24 AM Bug #19267: Compile fails when enabling YJIT on x64-mingw-ucrt
- Yes, I will disable yjit.
-
12:15 AM Revision c6c7f590 (git): Test bundler and bundled gems by exam
-
12:15 AM Revision 84a4f1b3 (git): Order test-bundler-parallel dependency
12/27/2022
-
11:23 PM Bug #19243 (Closed): Windows: Dir.home returns string in wrong encoding
-
01:34 PM Bug #19243: Windows: Dir.home returns string in wrong encoding
- This is fixed by commit https://github.com/ruby/ruby/commit/d6ce4180a5b4dacbac895c9911031a6df6c61136 in ruby-3.2.0. It should be backported to 3.1 and 3.0.
-
09:45 PM Bug #19271: irb ignores rbs and debug
- YJIT or `RUBY_YJIT_ENABLE=1` doesn't interfere with that process, and I confirmed that this is reproducible without YJIT as @st0012 did. So removing the reference to YJIT from the ticket description, also fixing `ruby -v` as you said.
... -
07:09 PM Bug #19271: irb ignores rbs and debug
- I can reproduce this without `IRB`:
```
$ RUBY_YJIT_ENABLE=1 ruby -e "require 'foo'"
Ignoring debug-1.7.1 because its extensions are not built. Try: gem pristine debug --version 1.7.1
Ignoring rbs-2.8.2 because its extensions are not bu... -
04:07 PM Bug #19271: irb ignores rbs and debug
- Impossible to edit the original issue (loads a blank form, looks like a Redmine bug) but `ruby -v` should read:
```
ruby 3.2.0 (2022-12-25 revision a528908271) [arm64-darwin22]
```
I accidentally ran it in the wrong terminal tab when ... -
04:01 PM Bug #19271 (Closed): irb ignores rbs and debug
- Not sure this is a serious issue but when starting IRB this (potentially confusing) message is immediately printed:
```
$ irb
Ignoring debug-1.7.1 because its extensions are not built. Try: gem pristine debug --version 1.7.1
Ignor... -
09:31 PM Bug #19267 (Feedback): Compile fails when enabling YJIT on x64-mingw-ucrt
- > https://github.com/ruby/ruby/blob/master/doc/yjit/yjit.md
> ...
I'm not sure if YJIT supports msys2/ucrt64. If you manually passed `--enable-yjit` to `./configure` (`./configure` does that automatically for supported platforms when rus... -
09:04 AM Bug #19267 (Feedback): Compile fails when enabling YJIT on x64-mingw-ucrt
- Ruby fails to compile with msys2/ucrt64 when enabling yjit.
Error:
``` c
In file included from ./include/ruby/defines.h:72,
from ./include/ruby/ruby.h:25,
from eval_intern.h:4,
... -
08:36 PM Feature #19272 (Rejected): Hash#merge: smarter protocol depending on passed block arity
- Usage of `Hash#merge` with a "conflict resolution block" is almost always clumsy: due to the fact that the block accepts `|key, old_val, new_val|` arguments, and many trivial usages just somehow sum up old and new keys, the thing that sh...
-
05:05 PM Revision ec7e0829 (git): [ruby/irb] Refactor RubyLex#process_literal_type
- (https://github.com/ruby/irb/pull/350)
Simplify part of regex ``[_a-zA-Z0-9]`` with equivalent shorthand ``\w``.
Replace case-when with match ``$1`` or default value ``?"``, making intention more clear. -
04:43 PM Revision 140c93e2 (git): [ruby/irb] Add dynamic prompt test case for quoted heredoc
- (https://github.com/ruby/irb/pull/486)
https://github.com/ruby/irb/commit/31cfbeacbb -
12:58 PM Bug #19270 (Closed): Constants lookup and a singleton class issue
- I've noticed that a constant declared in a singleton class may be not visible on an object:
```ruby
class A
def c; C; end
end
a = A.new
klass = (class << a; self; end)
klass.const_set(:C, 1)
a.c
# (irb):2:in `c': uninitial... -
12:49 PM Bug #19269: Constant lookup and #instance_eval
- As far as I understand, name lookup in block is performed related to the context where the block is defined.
The example with `c` (local name) works, because in `instance_eval`, it is implicitly `self.c`. But wouldn't work if you'll sha... -
12:22 PM Bug #19269 (Closed): Constant lookup and #instance_eval
- I've noticed a confusing behaviour of `#instance_eval` (and `#instance_exec` as well). In some cases it doesn't see constants defined in the object class.
Examples:
```ruby
C = 1
class A
C = 2
end
```
When `#instance_ev... -
12:15 PM Bug #18024: Ractor crashes when connections are closed in multiple Ractors
- I also couldn't reproduce it on m2 mac with both ruby versions 3.0.0 which is reported and 3.2.0 the latest.
I hope it helps.
```
~/src/confirm_bugs.ruby-lang.org/18024 ()
asdf local ruby 3.0.0
~/src/confirm_bugs.ruby-lang.org/180... -
09:42 AM Bug #19268 (Closed): Mingw64 Build Failure
- For both Ruby 3.1.3 and Ruby 3.2.0, building on msys2/ucrt64 fails:
``` c
linking miniruby.exe
/usr/bin/sh: -c: line 1: syntax error near unexpected token `('
/usr/bin/sh: -c: line 1: `/usr/local/ruby/bin/ruby --disable=gems -n -e ... -
05:56 AM Revision 5c551ac5 (git): merge revision(s) fc03ba50f1ff6c30f7c654f564b4dffbed0844ef: [Backport #19263]
- MJIT: Fix JIT code for multiple values in a single case
[Bug #19263]
---
lib/ruby_vm/mjit/compiler.rb | 2 +-
test/ruby/test_mjit.rb | 10 ++++++++++
2 files changed, 11 insertions(+), 1 d... - 01:32 AM Revision db19714b (git): load.c: remove unneeded rb_str_freeze calls
- rb_fstring already resizes and freezes the string, so there's no
need to use rb_str_freeze. -
12:09 AM Revision c09f342d (git): [ruby/irb] Fix wrong conf path with XDG_CONFIG_HOME. It should be under the HOME directory, not current directory
- https://github.com/ruby/irb/commit/33a5e55ffd
12/26/2022
-
10:17 PM Revision 8f678d61 (git): [ruby/net-http] Adding links to references
- https://github.com/ruby/net-http/commit/1c8151aaf3
-
09:10 PM Revision d5985049 (git): Sync IRB master: tool/sync_default_gems.rb irb
- It looks like tool/sync_default_gems.rb is not capable of cherry-picking
commits from ruby/irb. I just executed `tool/sync_default_gems.rb irb`
to fix the sync status.
I'm not sure if what's the cause. It could be related to some diff t... -
09:04 PM Revision d01bcf37 (git): [ruby/irb] Suppress "switching inspect mode" messages
- https://github.com/ruby/irb/commit/565eeb3c19
- 09:04 PM Revision 87988756 (git): [ruby/irb] Remove unnecessary warning check on help command
- It's not an intentional behavior of the command and it behaves
differently in different environments. So checking it actually brings
more problem than benefit.
https://github.com/ruby/irb/commit/b3203bc784 - 09:04 PM Revision 148eb05e (git): [ruby/irb] Remove unnecessary test setup
- https://github.com/ruby/irb/commit/cc6e6d26b6
-
09:04 PM Revision 8038bf23 (git): [ruby/irb] Add test for the help command
- https://github.com/ruby/irb/commit/9cacb5f352
-
09:03 PM Revision 953d4c22 (git): [ruby/irb] fix indent depth calculation after heredoc and embdoc
- https://github.com/ruby/irb/commit/b7973dd2d2
-
09:03 PM Revision f20aac5c (git): [ruby/irb] fix auto-indent after multiline string
- https://github.com/ruby/irb/commit/f65ec49684
- 08:09 PM Revision 82ca4778 (git): [rubygems/rubygems] Bump rb-sys
- Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.52 to 0.9.53.
- [Release notes](https://github.com/oxidize-rb/rb-sys/releases)
- [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.52...v0.9.53)
---
updated-depende... - 07:08 PM Revision f5a035da (git): [rubygems/rubygems] deprecate gem build -C flag
- https://github.com/rubygems/rubygems/commit/fac241d4ef
- 07:08 PM Revision 08f6196b (git): [rubygems/rubygems] add global flag (-C) to change execution directory
- https://github.com/rubygems/rubygems/commit/312fc36711
-
06:52 PM Bug #19266 (Closed): URI::Generic should use URI::RFC3986_PARSER instead of URI::DEFAULT_PARSER
- In June 2014, [`uri/common` was updated][1] to introduce a RFC3986-compliant parser (`URI::RFC3986_PARSER`) as an alternative to the previous RFC2396 parser, and common methods like `URI()` were updated to use that new parser by default....
-
06:52 PM Misc #19265 (Rejected): please remove rust yjit
- I think you hadn't read Maxime's very carefully written proposal: https://bugs.ruby-lang.org/issues/18481
-
02:44 PM Misc #19265 (Rejected): please remove rust yjit
- my job is heavily ruby coding and following ruby new versions.(servers and business depend on ruby, like heavy java server clusters)
my one part of job is compile and customizing ruby for use in company.
it's works ok until 3.1.x but 3... - 05:20 PM Revision 28a17436 (git): [rubygems/rubygems] Bump rb-sys in /test/rubygems/test_gem_ext_cargo_builder/custom_name
- Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.52 to 0.9.53.
- [Release notes](https://github.com/oxidize-rb/rb-sys/releases)
- [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.52...v0.9.53)
---
updated-depende... -
03:28 PM Revision a968d783 (git): [ruby/irb] Test colors with enabling colors
- https://github.com/ruby/irb/commit/998b7a74fa
-
02:39 PM Bug #19259: `Data#with` doesn't call `initialize` nor `initialize_copy`
- zverok (Victor Shepelev) wrote in #note-6:
> Intuitively, I don't think so, but I fail to find good logical arguments :)
> ...
Yeah, I think it's uncommon to call `.new` dynamically for core classes so probably no need here.
It would... -
02:11 PM Bug #19259: `Data#with` doesn't call `initialize` nor `initialize_copy`
- https://github.com/ruby/ruby/pull/7031
-
01:48 PM Bug #19259: `Data#with` doesn't call `initialize` nor `initialize_copy`
- > BTW, should .new be called dynamically too?
Intuitively, I don't think so, but I fail to find good logical arguments :)
(We can, for example, note that `with` is some `Data`-specific and fancy copying/duplication method, and `du... -
01:38 PM Bug #19259: `Data#with` doesn't call `initialize` nor `initialize_copy`
- My expectation is it would call `initialize` as well.
I didn't think about that in the review of https://github.com/ruby/ruby/pull/6766, sorry.
So like:
```ruby
class Data
def with(**changes)
self.class.new(**to_h, **changes)
end... -
07:54 AM Bug #19259: `Data#with` doesn't call `initialize` nor `initialize_copy`
- In principle, it should call `initialize`. But we will reconsider if any there's any concern (e.g., performance).
Matz.
-
01:44 AM Bug #19259 (Closed): `Data#with` doesn't call `initialize` nor `initialize_copy`
- `Data#with` doesn't call `initialize` nor `initialize_copy`.
It is confirmation request.
```ruby
class P < Data.define(:x, :y)
def initialize_copy(...)
p :initialize_copy
super
end
def initialize(...)
p :in... -
02:28 PM Revision d93d7863 (git): Try to fix RDoc markup for Enumerator
-
02:06 PM Revision c182d46d (git): check `NO_COLOR` envval
- Support `NO_COLOR` (https://no-color.org/) to make parsing output easy.
-
12:14 PM Bug #19264 (Closed): Backport 9f2378959e5c5b5c39c9993f1a84e5304ff113d6
- This is a ticket for backport management.
9f2378959e5c5b5c39c9993f1a84e5304ff113d6 may need to be backported.
https://github.com/ruby/ruby/pull/7023 - 12:02 PM Revision 9f237895 (git): numeric.c: Fix round_half_even for specific values (#7023)
- Handle the integert and the float parts separately in round_half_even
to prevent error occursions in floating point calculation. -
11:29 AM Revision bb60e461 (git): [DOC] Un-capitalize headings
-
11:29 AM Revision cb820bff (git): [DOC] Update extension.rdoc
- Refine the uses of word "Data", which were often ambiguous. Also,
that word now refers the new class unrelated to `T_DATA`. -
11:29 AM Revision b37e9c77 (git): Suppress method redefinition warnings
-
08:58 AM Bug #19263 (Closed): MJIT fails to compile multiple values in a single case in Ruby 3.2.0
-
06:51 AM Bug #19263: MJIT fails to compile multiple values in a single case in Ruby 3.2.0
- I've pushed the fix. Please backport https://github.com/ruby/ruby/commit/fc03ba50f1ff6c30f7c654f564b4dffbed0844ef to ruby_3_2 branch. Other older branches shouldn't need this patch.
-
06:42 AM Bug #19263 (Closed): MJIT fails to compile multiple values in a single case in Ruby 3.2.0
- ```
$ cat test.rb
def test(a)
case a
when true, false
a
end
end
test(true)
test(true)
$ ruby --mjit-verbose=1 --mjit-wait --mjit-call-threshold=2 test.rb
/tmp/_ruby_mjit_p237606u1.c: In function ‘_mjit0’:
/tmp/_... - 08:40 AM Revision 5e54c57d (git): [DOC] Surface existing MonitorMixin documentation
-
08:34 AM Revision adc29351 (git): EXPR_DOT is set when next token is tANDDOT ("&.") [ci skip]
-
08:11 AM Revision b466f1a5 (git): Reset ABI version [ci skip]
-
08:11 AM Revision 324656e5 (git): make matz [ci skip]
-
06:48 AM Revision fc03ba50 (git): MJIT: Fix JIT code for multiple values in a single case
- [Bug #19263]
- 06:10 AM Revision 39a96b43 (git): Update default gems list at b7ad60a79440f65cf883d3ff9dbdde [ci skip]
-
06:09 AM Revision b7ad60a7 (git): Merge RubyGems/Bundler master
- from https://github.com/rubygems/rubygems/commit/72fd3dd2096af16d797ad0cd8e0d2a8869e240b3
- 06:09 AM Revision 10c9ce9d (git): bump up to 3.0.5
-
06:09 AM Revision 24c9adca (git): [ruby/openssl] test/openssl/test_pkey.rb: allow failures in test_s_generate_parameters
- Commit https://github.com/ruby/openssl/commit/f2e2a5e5ed8e ("test/openssl/test_pkey.rb: allow failures in
test_s_generate_parameters", 2022-12-23) was completely bogus. The
problem in OpenSSL 3.0.0-3.0.5 is that errors from the callback ... - 06:09 AM Revision cea6951e (git): [ruby/optparse] Add symbolize_names to getopts
- https://github.com/ruby/optparse/commit/3e63d878f8
-
06:09 AM Revision 4c767c13 (git): [ruby/optparse] bump up to 0.4.0.pre.1
- https://github.com/ruby/optparse/commit/73661899ad
-
06:09 AM Revision 8c8645f5 (git): [ruby/net-http] [DOC] Adding links to references
- (https://github.com/ruby/net-http/pull/97)
https://github.com/ruby/net-http/commit/768115167a -
06:09 AM Revision 35aba09e (git): [ruby/net-http] Adding links to references
- https://github.com/ruby/net-http/commit/b85530e6b8
- 06:09 AM Revision 50e58df0 (git): [ruby/csv] Bump version
- https://github.com/ruby/csv/commit/8606ee83e0
- 06:09 AM Revision 79ad0452 (git): [ruby/strscan] Bump version
- https://github.com/ruby/strscan/commit/3ada12613d
-
06:09 AM Revision 8df574a4 (git): [ruby/fiddle] Prefer String#unpack1 in Fiddle::ValueUtil
- (https://github.com/ruby/fiddle/pull/118)
String#unpack1 is available since Ruby 2.4, and support for older than
Ruby 2.5 was dropped by #85.
Also simplified a common return statement. - 06:09 AM Revision 1dc8c18b (git): [ruby/fiddle] Bump version
- https://github.com/ruby/fiddle/commit/3033266902
-
06:09 AM Revision cc25e81f (git): Update generated version of racc on parser headers
-
06:01 AM Revision 5df71184 (git): Skip insanely memory consuming tests
- These tests do not only consume hundreds GiB bytes memory, result in
`rb_bug` when `RUBY_DEBUG` is enabled. -
05:46 AM Revision 509da028 (git): Rewrite Kernel#loop in Ruby (#6983)
- * Rewrite Kernel#loop in Ruby
* Use enum_for(:loop) { Float::INFINITY }
Co-authored-by: Ufuk Kayserilioglu <ufuk@paralaus.com>
* Limit the scope to rescue StopIteration
Co-authored-by: Ufuk Kayserilioglu <ufuk@paralaus.com> -
04:54 AM Bug #19260: ruby/spec is failed with Ruby 3.3
- I postponed enabling them at Ruby 3.3 because CI is always failed.
https://github.com/ruby/ruby/commit/a236661a62dc89173dcdd9e071365929db1201a7
We should track them in this ticket.
-
03:02 AM Bug #19260: ruby/spec is failed with Ruby 3.3
- https://github.com/ruby/ruby/actions/runs/3778576415/jobs/6423165914
ruby 3.3.0dev (2022-12-25T23:46:59Z master 2a6dbf03a2) [i686-linux-gnu]
```
1)
Literal Regexps handles a lookbehind with ss characters ERROR
RegexpErro... -
02:59 AM Bug #19260 (Closed): ruby/spec is failed with Ruby 3.3
- After bumping version, we got the some fails with ruby/spec.
https://github.com/ruby/ruby/actions/runs/3778576412/jobs/6423166914
```
1)
Literal Regexps handles a lookbehind with ss characters ERROR
RegexpError: invalid pa... -
04:52 AM Revision a236661a (git): Skip some examples for Ruby 3.3
-
04:52 AM Misc #18975 (Closed): Propose Stan Lo (@st0012) as an IRB maintainer
- We discussed this again in the DevMeeting-2022-12-15. We agreed to make the following changes after the Ruby 3.2 release. Now that Ruby 3.2 is released, I'm publishing this update and making permission changes on the IRB repository.
###... -
04:19 AM Bug #19262 (Closed): Segmentation fault on RubyVM::AbstractSyntaxTree.node_id_for_backtrace_location
- It seems that `RubyVM::AbstractSyntaxTree.node_id_for_backtrace_location` gives a Segmentation fault if any argument other than `Thread::Backtrace::Location` is given.
repro:
```
$ ruby -e 'RubyVM::AbstractSyntaxTree.node_id_for_b... -
04:17 AM Revision 5ec94ff7 (git): Generate parser-text.rb of racc when sync it
-
03:16 AM Feature #19261 (Rejected): `Data#members` is not important
- `Data#members` is defined but it is calculated by `self.class.members` (in other words, `#members` is a shorthand for `self.class.members`).
So it is better to remove this method.
```ruby
P = Data.define(:x, :y)
p P.new(1, 2).membe... -
03:14 AM Revision 1066d42c (git): Enable arm64 coroutine implementation on OpenBSD/arm64
- Tested by another OpenBSD developer and confirmed to significantly
improve things. - 03:08 AM Revision d29096f4 (git): Update default gems list at cd6c7613f31a371326d86de55af159 [ci skip]
-
03:07 AM Revision cd6c7613 (git): Apply the accidental commits again before Ruby 3.2.
- Reverts the following commits:
eb8d4d7b5145849325985c00b810b8d75661d86e
edb83dc3a2c374e880e8eb488152872152790e92
d40064d1846b5835dff81e3f168c0c3a6c85e814 -
02:43 AM Revision bb2c3601 (git): Update NEWS.md for 3.3.0 [ci skip]
-
02:43 AM Revision 7d264e8e (git): Copy NEWS.md to doc/NEWS/NEWS-3.2.0.md [ci skip]
-
02:25 AM Revision d8b55d11 (git): Reset ABI version [ci skip]
-
12:08 AM Bug #19258 (Closed): URI::Generic#host returns empty string instead of nil
- Thanks for trying Ruby 3.2 quickly.
12/25/2022
-
11:52 PM Bug #19258: URI::Generic#host returns empty string instead of nil
- Thanks or the update, makes sense, I will try to get Excon updated then.
-
11:44 PM Bug #19258: URI::Generic#host returns empty string instead of nil
- This is an intentional change. See https://hackerone.com/reports/156615
-
11:25 PM Bug #19258 (Closed): URI::Generic#host returns empty string instead of nil
- On Ruby 3.1, `URI::Generic#host` would return `nil` for `unix:///` URLs, but on Ruby 3.2 it now returns an empty string:
```rb
uri = URI.parse("unix:///var/run/docker.sock")
uri.host #=>
# Ruby 3.1: nil
# Ruby 3.2: ""
```
Thi... -
11:46 PM Revision 2a6dbf03 (git): Development of 3.3.0 started.
-
06:02 PM Bug #19257: Data that defines a member called hash
- While I understand the potential for confusion or a foot-gun, I also agree with @nobu that this is in spirit with how Ruby operates, where anything is overridable. `Struct` has been behaving in the exact same way for years:
```ruby
irb... -
01:37 PM Bug #19257 (Feedback): Data that defines a member called hash
- Always you can override methods defined in super classes.
```ruby
class C
end
obj = C.new
p obj.hash #=> an integer
class C
def hash = "foo"
end
p obj.hash #=> "foo"
```
No `#[]` method is a significant difference from... -
01:09 PM Bug #19257 (Feedback): Data that defines a member called hash
- I believe this should raise an error given that `Data#hash` exists as a pre-defined core method and serves a very specific purpose:
``` ruby
data = Data.define(:hash)
obj = data.new(hash: "foo")
obj.hash
# => "foo"
```
An ... -
05:16 PM Feature #19236: Allow to create hashes with a specific capacity from Ruby
- maybe the genie is out of the bottle already, but it would be nice to have a uniform API for creating objects with a given capacity, e.g.
```ruby
Array.with_capacity(100) # => []
Hash.with_capacity(100) # => {}
IO::Buffe... -
04:52 PM Feature #19148: Define Hash#merge_sum as Hash#merge with sum block
- ## naming, edge cases
`merge_sum` would be a confusing name IMO, because the method neither takes nor returns a (single) sum.
i'd suggest `merge_tally`, because it is in the same problem domain as [`Enumerable#tally`](https://ruby-... -
08:38 AM Feature #19256 (Feedback): Add PGO support
-
06:55 AM Revision a5289082 (git): v3.2.0
-
04:30 AM Revision 07c19cf5 (git): Fix a grammar [ci skip]
-
03:39 AM Bug #19239 (Closed): miniruby is not built by default when cross-compiling ruby 3.2.0-rc1
-
03:19 AM Revision be7cb324 (git): Clean yjit directory in build directory [ci skip]
-
12:06 AM Feature #19194: Add Regexp.linear_time?
- I feel it would be more natural if it was defined as instance method:
``` ruby
/a/.linear_time?
Regexp.new('a').linear_time?
```
Is there any reason for class method?
12/24/2022
- 08:56 PM Revision 82b8805e (git): Update default gems list at 8f05e4f54bdb3bcf05574bd5f12e56 [ci skip]
-
08:55 PM Revision 8f05e4f5 (git): Update Bundler to 2.4.1 & and RubyGems to 3.4.1
-
07:36 PM Feature #19256 (Feedback): Add PGO support
- [Abstract]
Add PGO support to Ruby interpreter.
[Proposal]
Profile-Guided Optimization (PGO) uses profiles from the existing workloads to make more aggressive optimization during compile time. There are multiple cases in real-life... -
04:47 PM Bug #19005: Ruby interpreter compiled XCode 14 cannot build some native gems on macOS
- I found a video which explains chained fixups:
https://developer.apple.com/videos/play/wwdc2022/110362/ -
03:43 PM Revision 3cbe37bd (git): Support new style diagnostic reports
-
02:49 PM Revision 4378de02 (git): Test of environment variables order for HOME on Windows
-
02:48 PM Revision d0f5dc9e (git): Windows: Prefer USERPROFILE over HOMEPATH
- HOMEPATH is set to "\WINDOWS\system32" when running per "runas" session.
This directory is not writable by ordinary users, leading to errors with many ruby tools.
Also config files in the home directory are not recognized.
Still keeping... -
01:55 PM Revision 6a55b460 (git): Add Dir.home test with encoding
-
01:54 PM Revision d6ce4180 (git): Windows: Fix encoding of Dir.home
- Dir.home returns an UTF-8 string since ruby-3.0, but the actual
encoding of the bytes was CP_ACP or CP_OEMCP.
That led to invalid bytes when calling Dir.home with an unicode
username. -
12:54 PM Bug #19253: `Time` objects can't be efficiently and precisely serialized without Marshal
- `to_r` seems pretty inefficient, I don't think it's a good solution.
I remember seeing `Time#to_r` as a bottleneck in karafka or some dep or so.
Also indeed there should be a way to preserve the zone.
The first example from the de... -
12:35 PM Bug #11064: #singleton_methods for objects with special singleton_class returns an empty array
- It's not because it has a constant name.
It's because `nil.class => NilClass` and `nil.singleton_class => NilClass`.
That means both the class and singleton class of `nil` is the same class object.
And it may be weird if `obj.class.si... -
12:13 PM Bug #19252 (Closed): IO::Buffer.pread last argument is always ignored?
- Merged.
-
11:18 AM Revision 18c1ca8f (git): Fix test-syntax-suggest order
- Prepare for test-syntax-suggest after other tests finished.
-
09:59 AM Revision 3fb1d49a (git): Revert "darwin: resolve rb symbols from ext by `-flat_namespace` to see libruby transitively"
- This reverts commit c5eefb7f37db2865891298dd1a1e60dff09560ad.
Flat namespace breaks gems with C extention if its symbols conflict
with ohter libraries. -
09:13 AM Revision b9332ac8 (git): MJIT: Cancel all on disastrous situations (#7019)
- I noticed this while running test_yjit with --mjit-call-threshold=1,
which redefines `Integer#<`. When Ruby is monkey-patched,
MJIT itself could be broken.
Similarly, Ruby scripts could break MJIT in many different ways. I
prepared the ... -
08:54 AM Revision d521c9e5 (git): cosmetic changes for external link
-
08:20 AM Revision 8263feaa (git): Added some of new features for RubyGems 3.4 and Bundler 2.4
- 07:57 AM Revision 03e030d4 (git): Update default gems list at f6620037ba1477d2c337d7b511f094 [ci skip]
-
07:57 AM Revision f6620037 (git): Merge RubyGems-3.4.0 and Bundler-2.4.0
-
05:50 AM Feature #18181: Introduce Enumerable#min_with_value, max_with_value, and minmax_with_value
- Related to #17097
-
02:29 AM Revision d5635dfe (git): Extract setup of environment variables
-
01:52 AM Revision 640dca9a (git): [DOC] Document AST.parse's keyword arguments
12/23/2022
-
10:48 PM Revision c3c116f6 (git): [DOC] Document new methods of IO::Buffer and Fiber::Scheduler (#7016)
- Co-authored-by: Samuel Williams <samuel.williams@oriontransfer.co.nz>
-
09:46 PM Misc #19247: Ruby 3.2 documentation problems tracker
- https://github.com/ruby/ruby/pull/7016 `Fiber::Scheduler` and `IO::Buffer` missing methods.
@jeremyevans0 sorry, I tagged you in both, you are usually the quickest to respond, and time is tight 🙏
Next year, I plan to follow the dev... -
07:11 PM Bug #19248: TestGCCompact#test_moving_objects_between_size_pools test failure
- peterzhu2118 (Peter Zhu) wrote in #note-12:
> It looks like you're using quite a lot of custom configuration flags
Right, mostly hardening. Which can certainly influence memory layout and what not.
> ...
I think that these are doc... -
06:26 PM Bug #19248: TestGCCompact#test_moving_objects_between_size_pools test failure
- Thank you for checking the patches and testing different configurations. It looks like you're using quite a lot of custom configuration flags, most of which I'm not too familiar with. I'll look into this in the new year and debug the issue.
-
06:14 PM Bug #19248: TestGCCompact#test_moving_objects_between_size_pools test failure
- So far, it seems the key are the compiler flags. Going with default, the test case passes, using Fedora flags, the test case fails. These are hopefully the relevant parts of the log:
~~~
... snip ...
+ CFLAGS='-O2 -flto=auto -ffat... -
05:26 PM Bug #19248: TestGCCompact#test_moving_objects_between_size_pools test failure
- Patches makes no difference.
-
05:18 PM Bug #19248: TestGCCompact#test_moving_objects_between_size_pools test failure
- vo.x (Vit Ondruch) wrote in #note-8:
> peterzhu2118 (Peter Zhu) wrote in #note-7:
> ...
Good news that it works without patches and with default configuration. Now what causes the issue. Let me try. -
04:58 PM Bug #19248: TestGCCompact#test_moving_objects_between_size_pools test failure
- peterzhu2118 (Peter Zhu) wrote in #note-7:
> It looks like your build system is patching files in Ruby? If so, could you provide these files and/or look into potentially upstreaming it?
I have certainly tried at times. But let me try... -
03:31 PM Bug #19248: TestGCCompact#test_moving_objects_between_size_pools test failure
- Thank you for providing the logs, I took a look at it. I noticed these lines:
```Patch #0 (ruby-2.3.0-ruby_version.patch):
+ echo 'Patch #0 (ruby-2.3.0-ruby_version.patch):'
+ /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0
... -
02:01 PM Bug #19248: TestGCCompact#test_moving_objects_between_size_pools test failure
- Just FTR, this is result on the official builder (will be garbage collected in several days, sorry):
https://koji.fedoraproject.org/koji/taskinfo?taskID=95624219
You can check the build.log for each of the platforms. And it seems t... - 06:52 PM Revision 11ad9a42 (git): Fix missing handling of offset argument in `IO::Buffer` `pread` and `pwrite`. (#7012)
-
06:33 PM Bug #19254: Enabling YJIT configuration option breaks rspec-core test suite
- mame (Yusuke Endoh) wrote in #note-1:
> You mean this test?
> ...
Yes, sorry, forgot to attach the link.
k0kubun (Takashi Kokubun) wrote in #note-2:
> In addition to @mame 's point, can you report how to reproduce the issue by ... -
06:03 PM Bug #19254 (Feedback): Enabling YJIT configuration option breaks rspec-core test suite
- In addition to @mame 's point, can you report how to reproduce the issue by building Ruby from a source or a tarball? e.g.
```
$ git clone --depth=1 https://github.com/ruby/ruby
$ cd ruby
$ ./autogen.sh
$ ./configure --enable-yjit... -
05:59 PM Bug #19254: Enabling YJIT configuration option breaks rspec-core test suite
- You mean this test?
https://github.com/rspec/rspec-core/blob/522b7727d02d9648c090b56fa68bbdc18a21c04d/spec/rspec/core/example_spec.rb#L444-L496
Frankly speaking, this test appears to be completely wrong. MRI's GC is not exact (in t... -
03:20 PM Bug #19254 (Third Party's Issue): Enabling YJIT configuration option breaks rspec-core test suite
- In preparation for Ruby 3.2, we have enabled YJIT in Fedora:
https://src.fedoraproject.org/rpms/ruby/c/3c1be9f9c2c1d8679eebb9a185fefa15baa1bcfc?branch=private-ruby-3.2
Since that moment, rspec-core test suite started to fail (see t... -
06:19 PM Revision af4cd997 (git): sample/trick2022/03-mame/entry.rb: remove trailing spaces
-
06:19 PM Revision a8485291 (git): test/test_trick.rb: Add tests for TRICK 2022 entries
-
06:19 PM Revision e8b01809 (git): sample/trick2022/: adds the top-three entries of TRICK 2022
- See https://github.com/tric/trick2022 for TRICK 2022.
-
06:18 PM Revision 1d3bfd80 (git): MJIT: Export fewer shape functions (#7007)
- 05:24 PM Revision ee607564 (git): Fix backtrace beyond _singtramp on macOS arm64 (#7015)
- * move ptrauth_strip logic into vm_dump.c
* don't use _sigtramp special logic on arm64 -
05:19 PM Feature #17097: `map_min`, `map_max`
- IMHO we should just add `max_of` and `min_of`, like Crystal has.
`map` in the name feels out of place here because this method does not return a new array, it's just execute the block and remember the max/min value returned by the block... -
04:30 AM Feature #17097: `map_min`, `map_max`
- For the sake of naming conventions I would personally lean towards `map_max` to match methods like `filter_map`, and while this does not necessarily extend to _all_ Enumerable methods I would wonder if there's another conversation later ...
-
02:14 AM Feature #17097: `map_min`, `map_max`
- `max_of` method is very elegant! I really want the Ruby version of this method.
For example, I need to write `column_width = @ls_files.map { |ls_file| ls_file.name.size }.max` to determine column width according to the longest file nam... -
04:21 PM Revision 1876cda9 (git): Add tests for compacting shared arrays
-
04:21 PM Revision 7891f940 (git): Don't allow re-embedding frozen arrays
- Frozen arrays should not move from heap allocated to embedded because
frozen arrays could be shared roots for other (shared) arrays. If the
frozen array moves from heap allocated to embedded it would cause issues
since the shared array w... -
04:09 PM Revision d61a4cec (git): Docs: path: option for IO.new
-
04:09 PM Revision c621c614 (git): Docs: Fix problems with Fiber's docs
- * References to Scheduler (was outdated to SchedulerInterface)
* References between new methods (storage, [], []=)
* Storage's call-sequence (rendered confusingly) -
04:09 PM Revision 5c04ff94 (git): Docs: Fix small glitch in GC
-
04:09 PM Revision 64cdf193 (git): Docs: Separate documentation for UnboundMethod#==
-
04:09 PM Revision b3d57fdd (git): Docs: Update Struct docs about keyword initialization
-
04:09 PM Revision 91076b2c (git): Docs: Fix rendering of SyntaxError#path
-
04:07 PM Bug #19255: YJIT: global symbol leakage
- A hack: https://github.com/nobu/ruby/tree/yjit-symbol-leakage
-
03:52 PM Bug #19255 (Closed): YJIT: global symbol leakage
- When YJIT support is enabled, libyjit.a adds thousands leaking global symbols.
With this patch:
```diff
diff --git a/template/Makefile.in b/template/Makefile.in
index 145631386d8..6191bcbeb88 100644
--- a/template/Makefile.in
+++... -
02:48 PM Revision 65920cfc (git): addr2line.c: Strip pointer authentication
- We need to manually strip pointer authentication bits on M1 mac because
libunwind leaks them out.
Co-Authored-By: NARUSE, Yui <naruse@airemix.jp>
Co-Authored-By: Yuta Saito <kateinoigakukun@gmail.com> -
02:46 PM Revision 97280faf (git): Add blog post on VWA to NEWS.md [ci skip]
- The link currently 404s but the blog post will be published on Dec 25.
-
12:12 PM Bug #19252: IO::Buffer.pread last argument is always ignored?
- https://github.com/ruby/ruby/pull/7012
-
11:52 AM Bug #19252: IO::Buffer.pread last argument is always ignored?
- It looks like the base pointer is not computed correctly, let me check and fix it.
-
11:33 AM Revision 540b67da (git): test-syntax-suggest is run by check now
-
11:33 AM Revision cae53842 (git): Test syntax_suggest by `make check`
-
11:31 AM Revision 17b63ab6 (git): [ruby/rdoc] Fix fragile tests
- When the temporary path is long enough, the formatter may fold the
path and may hit a hyphen at the end of line, and miscounted.
https://github.com/ruby/rdoc/commit/5f46479543 -
10:37 AM Revision edb83dc3 (git): Revert the additional change from openssl-3.1.0
- Revert "[ruby/openssl] pkey/ec: constify"
This reverts commit d2cd903c85f38f42c6aefc6d97a1558f74d8d9db. -
10:36 AM Revision eb8d4d7b (git): Revert the additional changes from net-http-0.3.2
-
10:33 AM Revision d40064d1 (git): Revert the accidentally commit from erb-4.0.2
- Revert "[ruby/erb] Use a ruby-lang alias on spec.email"
This reverts commit fa64889abbad727d31bb927604d87679825dcd37. -
09:52 AM Bug #19253 (Closed): `Time` objects can't be efficiently and precisely serialized without Marshal
- Ok, I suppose the `#zone` isn't that important.
Thank you @mame. -
09:12 AM Bug #19253: `Time` objects can't be efficiently and precisely serialized without Marshal
- Interesting, `to_r` is what we were currently using: https://github.com/Shopify/paquito/pull/28.
The only part missing is the `zone` property:
```ruby
>> t.zone
=> "CET"
> ...
=> nil
```
It probably isn't a huge deal as it's... -
09:07 AM Bug #19253: `Time` objects can't be efficiently and precisely serialized without Marshal
- How about:
```
irb(main):001:0> t = Time.now
=> 2022-12-19 16:24:11.749470645 +0900
irb(main):002:0> Time.at(t.to_r, in: t.utc_offset)
=> 2022-12-19 16:24:11.749470645 +0900
irb(main):003:0> Time.at(t.to_r, in: t.utc_offset) == t... -
08:49 AM Bug #19253 (Closed): `Time` objects can't be efficiently and precisely serialized without Marshal
- ### Context
In our application we try to avoid to use `Marshal` for serializing cache payloads because we want to be strict on what types we allow to be cached. ([Full context in this post](https://shopify.engineering/caching-without-... -
09:46 AM Misc #19240: DevMeeting-2023-01-19
- - [Feature #19245] `Array#pack` should have a strict mode (byroot)
- Currently it silently modulo the arguments if they are too big for the type.
- This can can lead to silent data loss.
- I believe `pack` need a "strict mode" that... -
08:45 AM Revision c5eefb7f (git): darwin: resolve rb symbols from ext by `-flat_namespace` to see libruby transitively
- This repairs the assumption, which many fat-gem maintainer expect, "An
extension built with --disable-shared Ruby is loadable from
--enable-shared Ruby".
By default all references resolved to a dynamic library use "two-level
namespace",... -
07:57 AM Revision 9c1f03a3 (git): Debug for zlinux CI [ci skip]
-
06:30 AM Revision 970b26fb (git): NEWS.md: add 2 functions for debuggers [ci skip]
- 05:49 AM Revision 0d75d403 (git): Update bundled gems list at 2192f2e6bc361396f6a81ead955a0d [ci skip]
-
05:48 AM Revision 2192f2e6 (git): Update bundled_gems for net-imap
-
05:28 AM Bug #11064: #singleton_methods for objects with special singleton_class returns an empty array
- Thank you, Matz for answering my question.
> Singleton classes are in principle only accessed using the singleton_class method or the singleton class notation.
Since we already have the following results,
```ruby
nil.singleton_class #... -
02:37 AM Bug #11064: #singleton_methods for objects with special singleton_class returns an empty array
- @sawa Singleton classes are in principle only accessed using the `singleton_class` method or the singleton class notation. Implementation wise, FL_SINGLETON is set for singleton classes. Neither is true for NilClass (nor FalseClass nor T...
-
05:07 AM Revision 4aeea3cc (git): Removed the needless test guard for syntax_suggest.
- It's resolved by https://github.com/ruby/ruby/commit/5bb43aeb890657ea586e3fabbf763e5b5670ffd7
-
04:05 AM Revision bf3b3765 (git): [ruby/syntax_suggest] Remove debug print
- https://github.com/ruby/syntax_suggest/commit/4d53d31bc5
-
04:05 AM Revision 5bb43aeb (git): [ruby/syntax_suggest] Should not hardcode ruby name
- https://github.com/ruby/syntax_suggest/commit/0d5201b24d
- 03:54 AM Revision 4d05a96d (git): Bump actions/checkout from 3.1.0 to 3.2.0
- Bumps [actions/checkout](https://github.com/actions/checkout) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](http... - 02:47 AM Revision cc35d3cc (git): Bump actions/cache from 3.0.11 to 3.2.0
- Bumps [actions/cache](https://github.com/actions/cache) from 3.0.11 to 3.2.0.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.c... -
02:42 AM Revision d2cd903c (git): [ruby/openssl] pkey/ec: constify
- https://github.com/ruby/openssl/commit/6fb3499a7b
-
02:39 AM Bug #19113: Inconsistency in retention of compare_by_identity flag in Hash methods
- I agree with @jeremyevans0 too.
Matz.
-
02:12 AM Revision d2847009 (git): [DOC] Fix most of Range#cover? marked as verbatim
-
02:05 AM Revision 792c50e9 (git): [ruby/rdoc] Clean up home directories for each test
- https://github.com/ruby/rdoc/commit/f067c174da
- 01:21 AM Revision def8ad40 (git): Bump octokit/request-action
- Bumps [octokit/request-action](https://github.com/octokit/request-action) from 52ce92ce3185e00e2425f043c3e9509121929aea to 8cd8f5d6738d122de9213dc5cf87e116c40f5fae.
- [Release notes](https://github.com/octokit/request-action/releases)
- ... - 01:13 AM Revision 9c447293 (git): Bump github/codeql-action from 2.1.35 to 2.1.37
- Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.1.35 to 2.1.37.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md... - 01:01 AM Revision fe2c996a (git): Update default gems list at 2fb6b391423fbefc4a542765727a48 [ci skip]
- 01:00 AM Revision 2fb6b391 (git): Bump ruby/setup-ruby from 1.126.0 to 1.128.0
- Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.126.0 to 1.128.0.
- [Release notes](https://github.com/ruby/setup-ruby/releases)
- [Commits](https://github.com/ruby/setup-ruby/compare/c7079efafd956afb5d823e8999c2506e10... - 12:52 AM Revision 5507b32d (git): Update default gems list at 2d2baaf2f46d447f64f4f8fd7cfa3a [ci skip]
-
12:51 AM Revision 3ade7139 (git): Bump version to 1.6.2
-
12:51 AM Revision ba342088 (git): Bump up Racc parser version
- 12:46 AM Revision 6438f3ca (git): [ruby/racc] Removed old originalId in comment
- https://github.com/ruby/racc/commit/1dfbef8e99
-
12:39 AM Revision 2d2baaf2 (git): [ruby/openssl] Ruby/OpenSSL 3.1.0
- https://github.com/ruby/openssl/commit/c2f7d775c6
-
12:39 AM Revision a7783059 (git): [ruby/openssl] Ruby/OpenSSL 3.0.2
- https://github.com/ruby/openssl/commit/48b79333e0
-
12:39 AM Revision 046aadb8 (git): [ruby/openssl] Ruby/OpenSSL 2.2.3
- https://github.com/ruby/openssl/commit/04acccd692
-
12:39 AM Revision 75e7b85e (git): [ruby/openssl] test/openssl/test_pkey.rb: allow failures in test_s_generate_parameters
- The root cause has been fixed by OpenSSL 3.0.6, but Ubuntu 22.04's
OpenSSL package has not backported the patch yet.
Reference: https://github.com/ruby/openssl/issues/492
https://github.com/ruby/openssl/commit/f2e2a5e5ed -
12:39 AM Revision 0e11d2c3 (git): [ruby/openssl] pkey/ec: check private key validity with OpenSSL 3
- The behavior of EVP_PKEY_public_check changed between OpenSSL 1.1.1
and 3.0 so that it no longer validates the private key. Instead, private
keys can be validated through EVP_PKEY_private_check and
EVP_PKEY_pairwise_check.
[ky: simplifi... -
12:39 AM Revision 782777a8 (git): [ruby/openssl] Undefine `OpenSSL::SSL` for no socket platforms
- This fixes a linkage error about `ossl_ssl_type` on platforms which do
not have socket, like WASI.
Even before this patch, some items are disabled under `OPENSSL_NO_SOCK` since
https://github.com/ruby/ruby/commit/ee22fad45d394818690c4a7... -
12:39 AM Revision e6ca6443 (git): [ruby/openssl] ssl: remove OpenSSL::ExtConfig
- This module was introduced in 2015 for internal use within this library.
Neither of the two constants in it is used anymore. I don't think we
will be adding a new constant in the foreseeable future, either.
OPENSSL_NO_SOCK is unused sin... -
12:39 AM Revision a4b4997c (git): [ruby/openssl] test/openssl/test_ssl.rb: do not run SSL tests if not available
- https://github.com/ruby/openssl/commit/a3d230d4e0
-
12:39 AM Revision dd6f3276 (git): [ruby/openssl] ssl: disable NPN support on LibreSSL
- As noted in commit https://github.com/ruby/openssl/commit/a2ed156cc9f1 ("test/test_ssl: do not run NPN tests
for LibreSSL >= 2.6.1", 2017-08-13), NPN is known not to work properly
on LibreSSL.
Disable NPN support on LibreSSL, whether OP... -
12:39 AM Revision d6c16dd3 (git): [ruby/openssl] ssl: update TLS1_3_VERSION workaround for older LibreSSL versions
- The macro is now defined by default in LibreSSL 3.4+. Let's document it
for future readers.
https://github.com/ruby/openssl/commit/935698e9f9 -
12:39 AM Revision 7c073cc1 (git): [ruby/openssl] test/openssl/test_asn1.rb: remove pend for unsupported LibreSSL versions
- Commit https://github.com/ruby/openssl/commit/af895bc5596b ("asn1: avoid truncating OID in
OpenSSL::ASN1::ObjectId#oid", 2016-12-15) added this test case.
The OBJ_obj2txt() issue was fixed by LibreSSL 2.5.1 (released in 2017)
and is no ... -
12:39 AM Revision 5591e493 (git): [ruby/openssl] test/openssl/test_asn1.rb: skip failing tests on LibreSSL 3.6.0
- LibreSSL 3.6.0 expects the seconds part in UTCTime and GeneralizedTime
to be always present. LibreSSL 3.6.0 release note [1] says:
> - The ASN.1 time parser has been refactored and rewritten using CBS.
> ...
[1] https://ftp.openbsd.org/... -
12:39 AM Revision 6df4d272 (git): [ruby/openssl] Suppress deprecation warnings by OpenSSL 3
- https://github.com/ruby/openssl/commit/91657a7924
-
12:39 AM Revision d7d1bb3e (git): [ruby/openssl] Constify when building with OpenSSL 3
- https://github.com/ruby/openssl/commit/c0023822fe
-
12:39 AM Revision 2bc7eac8 (git): [ruby/openssl] Check for functions with arguments
- https://github.com/ruby/openssl/commit/b67aaf925d
-
12:39 AM Revision ca7a6b15 (git): [ruby/openssl] pkey/ec: fix ossl_raise() calls using cEC_POINT instead of eEC_POINT
- https://github.com/ruby/openssl/commit/b2e9f5e132
-
12:39 AM Revision 13137236 (git): [ruby/openssl] raise when EC_POINT_cmp or EC_GROUP_cmp error instead of returning true
- https://github.com/ruby/openssl/commit/e1e8f3cebe
- 12:35 AM Revision f17448e8 (git): Update bundled gems list at fe2bcd352899cd402091c2815846d1 [ci skip]
-
12:35 AM Revision fe2bcd35 (git): Check `added` for the second sub! properly
- Even if the first sub! modifies `news`, when `added` is empty, it always
ended up skipping `File.write("NEWS.md", news)` because of the `next`.
This commit fixes the problem. - 12:32 AM Revision 31b29aad (git): Bump ossf/scorecard-action from 2.0.6 to 2.1.2
- Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.0.6 to 2.1.2.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md...