Activity
From 04/02/2025 to 04/08/2025
04/08/2025
-
08:45 PM Bug #21193: Inherited callback returns `nil` for `Object.const_source_location`
- After exchanging impressions with @byroot today, I have created https://github.com/ruby/ruby/pull/13085 to restore th...
-
05:34 PM Bug #21256 (Assigned): `it` value is wrapped in an array when that doesn't happen with numbered parameter
- Here is a repro without rspec.
```ruby
class C
define_method(:foo) do
p it
end
end
class D < C
... -
04:42 PM Bug #21256 (Open): `it` value is wrapped in an array when that doesn't happen with numbered parameter
- I have the following script:
```rb
require "bundler/inline"
gemfile do
source "https://rubygems.org"
g... -
05:34 PM Misc #20968: `Array#fetch_values` unexpected method name in stack trace
- > In any case, it was reaffirmed that matz strongly prefers that `<internal:` not be displayed.
I somewhat agree t... -
03:22 AM Misc #20968: `Array#fetch_values` unexpected method name in stack trace
- `rake` suppressed these backtrace at https://github.com/ruby/rake/pull/554
I'm +1 to proposal of mame and matz. -
04:18 PM Feature #21254: Inlining Class#new
- Btw, @ko1 came up with this idea, so I want to say thanks to him.
-
04:02 PM Feature #21254: Inlining Class#new
- Earlopain (Earlopain _) wrote in #note-3:
> > As you can see in the above output, the Class#new frame is eliminated.... -
06:58 AM Feature #21254: Inlining Class#new
- > As you can see in the above output, the Class#new frame is eliminated. I'm not sure if anyone really cares about th...
-
01:37 AM Feature #21254: Inlining Class#new
- ko1 (Koichi Sasada) wrote in #note-1:
> `swap` is remained?
I [made a patch to remove `swap`](https://github.com/... -
12:45 AM Feature #21254: Inlining Class#new
- `swap` is remained?
-
03:15 PM Feature #21221: Proposal to upstream ZJIT
- Thank you for you trust Matz!
I think it should be helpful to onboard new people if we have an architecture that i... -
07:10 AM Feature #21221: Proposal to upstream ZJIT
- I agree with making ZJIT upstream. And I feel no worry about the migration, since I trust the team with merging proce...
-
01:00 PM Feature #16993: Sets: from hash keys using Hash#key_set
- mame (Yusuke Endoh) wrote in #note-9:
> Given the convention of deriving methods such as `key_set` from `keys`, wher... -
05:54 AM Feature #16993: Sets: from hash keys using Hash#key_set
- Given the convention of deriving methods such as `key_set` from `keys`, where the former returns a set instead of an ...
-
10:43 AM Bug #21255 (Assigned): Can't build Ruby with Windows SDK 10.0.26100
-
07:05 AM Bug #21255 (Closed): Can't build Ruby with Windows SDK 10.0.26100
- I tried to build ruby.exe with Windows SDK 10.0.26100. But it failed with:
```
dmyext.obj dmyenc.obj
linking sha... -
09:23 AM Bug #21220: Memory corruption in update_line_coverage() [write at index -1]
- > So I guess I should merge the proposed patch as a precaution?
I think so yes, with that eval code as a test case. -
08:47 AM Bug #21220: Memory corruption in update_line_coverage() [write at index -1]
- byroot (Jean Boussier) wrote in #note-7:
> Can source line ever legitimately be `0`?
With `eval`, it can. It can ... -
08:32 AM Bug #21220: Memory corruption in update_line_coverage() [write at index -1]
- @mbcodeandsound Just FYI, I bet you meant to write `!(1..16).cover?(channel)` in the following line.
https://git... -
08:28 AM Bug #21220: Memory corruption in update_line_coverage() [write at index -1]
- Nice find!
Can source line ever legitimately be `0`? Perhaps we are missing some assertions that would have caught... -
08:25 AM Bug #21220 (Assigned): Memory corruption in update_line_coverage() [write at index -1]
- @byroot Thanks! I think this is an issue of the prism compiler handling the line number around a flip-flop syntax.
t... -
07:50 AM Bug #21220: Memory corruption in update_line_coverage() [write at index -1]
- What I've figured for now it that the corruption is triggered by:
```ruby
# This require line makes sure the or... -
07:43 AM Bug #21220: Memory corruption in update_line_coverage() [write at index -1]
- > The issue reproduces on my machine, but it's very rare.
You can make it happen 100% of the time with the follow... -
07:41 AM Bug #21220: Memory corruption in update_line_coverage() [write at index -1]
- Thanks for the report. The issue reproduces on my machine, but it's very rare. I haven't figured out what happens.
... -
07:00 AM Bug #21220: Memory corruption in update_line_coverage() [write at index -1]
- > I do not know if it's normal for rb_sourceline() to return 0
Yes:
```ruby
const char *
rb_sourcefile(vo... -
07:24 AM Misc #21154: Document or change Module#autoload?
- Hi @mame, did you have a chance to watch the video or discuss it in a dev meeting?
-
06:00 AM Bug #21104: Net::HTTP connections failing in Ruby >= 3.4.0 on macOS with Happy Eyeballs enabled
>For those experiencing this problem, can you successfully run the following script?
```
➜ ruby-sandbox ruby -...
04/07/2025
-
11:09 PM Misc #21100: DevMeeting before RubyKaigi 2025
- * [Feature #21254] Inline YARV instructions for `Class#new`
* Patch inlines YARV instructions for calls to `new`
... -
06:31 PM Misc #21100: DevMeeting before RubyKaigi 2025
- * [Feature #21221] Proposal to upstream ZJIT
* The YJIT team has been working on ZJIT, a more advanced Ruby JIT
... -
04:37 PM Misc #21100: DevMeeting before RubyKaigi 2025
- * [Feature #21216] Implement Set as a core class (jeremyevans0)
* I propose to implement Set as a core class.
*... -
11:03 PM Feature #21254 (Closed): Inlining Class#new
- We would like to propose inlining YARV bytecode for speeding up object allocations, specifically inlining the `Class#...
-
06:44 PM Feature #21219: `Object#inspect` accept a list of instance variables to display
- > could only symbols be used to simplify the syntax further?
Technically possible, but not ideal because of variou... -
06:41 PM Feature #21219: `Object#inspect` accept a list of instance variables to display
- From an developer ergonomic standoint, could only symbols be used to simplify the syntax further? Example:
``` rub... -
06:34 PM Feature #21219: `Object#inspect` accept a list of instance variables to display
- I'm fine with either of those, with perhaps a slight preference for `private def inspect_instance_variables = [:@a, :...
-
06:17 PM Feature #21219: `Object#inspect` accept a list of instance variables to display
- I agree with @mame that a keyword argument to `#inspect` is undesirable. `#inspect_instance_variables` is one possibl...
-
05:37 PM Feature #21219: `Object#inspect` accept a list of instance variables to display
- Just FYI, pretty_print already has that mechanism. It allows to control the list of instance variables that should be...
-
01:29 PM Feature #21219 (Closed): `Object#inspect` accept a list of instance variables to display
- ## Context
The default `Object#inspect` implementation is quite useful to have a generic representation of objects... -
06:27 PM Feature #21221 (Assigned): Proposal to upstream ZJIT
- # Background
For the past 3 months, the YJIT team at Shopify has been working on a next-generation Ruby JIT, which... -
05:33 PM Bug #21220: Memory corruption in update_line_coverage() [write at index -1]
- Something like this should prevent the memory corruption, but may be hiding a deeper issue:
``` diff
--- thread.c... -
05:27 PM Bug #21220 (Closed): Memory corruption in update_line_coverage() [write at index -1]
- Hello!
I have encountered repeatable memory corruption in Ruby 3.4.2 on Ubuntu 24.04.2 LTS, which I believe is hap... -
02:43 PM Bug #21201: Performance regression when defining methods inside `refine` blocks
- Your patch look really good.
I wonder if it would be possible to do like the `vm->constant_cache` table, have the ... -
02:16 PM Bug #21201: Performance regression when defining methods inside `refine` blocks
- byroot (Jean Boussier) wrote in #note-1:
> The solution is likely to keep the list (set) of all existing call caches... -
02:30 PM Bug #21218 (Rejected): SizedQueue not stopping threads in push even when non_block: false
- The `non_block` argument is a positional argument, not a keyword argument, and `{non_block: true}` is considered true...
-
11:17 AM Bug #21218 (Rejected): SizedQueue not stopping threads in push even when non_block: false
- Use this to recreate
``` ruby
3.1.4 :019 > sq.push(1, non_block: true)
=> #<Thread::SizedQueue:0x00007f39e759af60... -
01:41 PM Bug #21214 (Closed): VmRSS consumption increase in Ruby 3.4.2 vs Ruby 3.3.6
- Applied in changeset commit:git|d4406f0627c78af31e61f9e07dda9151e109dbc4.
----------
Grow GC heaps independently
[B... -
12:21 PM Bug #21217: Integer.sqrt produces wrong results even on input <= 1e18
- ruby_3_3 commit:a67e9e41846cdadad9bb2d9e9d10223c52253898 merged revision(s) commit:3a7b9ca93b91dcc086b9ac8b9957e59268...
-
02:08 AM Bug #21217 (Closed): Integer.sqrt produces wrong results even on input <= 1e18
- Applied in changeset commit:git|3a7b9ca93b91dcc086b9ac8b9957e59268f9493b.
----------
Fix `Integer.sqrt` to never exc... -
09:30 AM Bug #20255: Embedded arrays aren't moved correctly across ractors
- For the record, I went back to a lower level copying code, but made it size pool aware: https://github.com/ruby/ruby/...
04/06/2025
-
11:05 AM Bug #21217: Integer.sqrt produces wrong results even on input <= 1e18
- mame (Yusuke Endoh) wrote in #note-3:
> https://github.com/ruby/ruby/pull/13076
Thanks for the quick resolution! -
09:52 AM Bug #21217: Integer.sqrt produces wrong results even on input <= 1e18
- https://github.com/ruby/ruby/pull/13076
-
09:20 AM Bug #21217: Integer.sqrt produces wrong results even on input <= 1e18
- I was given a reproducible example!
https://x.com/tatyam_prime/status/1908810778276487443
```
irb(main):001> n... -
09:13 AM Bug #21217: Integer.sqrt produces wrong results even on input <= 1e18
- Thank you. I think it's most likely a Ruby bug, but I can't proceed until I identify the input that causes it.
I s... -
05:00 AM Bug #21217 (Closed): Integer.sqrt produces wrong results even on input <= 1e18
- Hello, I have been so far using Ruby in various online judge platforms that support it, while recently I discovered a...
-
04:43 AM Bug #21027: `not()` receiver should be `nil`
- Fixed prism tests with updated snapshots at 5640fea8aada2380145375a7f9eac2b979fe1258.
-
02:32 AM Bug #21027: `not()` receiver should be `nil`
- ruby_3_3 commit:7c315e23983a35d29108d9ba8c914d6320254d43 merged revision(s) commit:117d6e145a0270ab8fc9134403519ef13b...
-
03:44 AM Feature #21216 (Closed): Implement Set as a core class
- I propose to implement Set as a core class. Set has been an autoloaded standard library since Ruby 3.2. The standar...
04/04/2025
-
02:45 PM Bug #21211: Incomplete Backtrace for Socket Errors in Ruby 3.4+
- Thanks @byroot, this must be some kind of record from bug report to merged fix.
-
05:45 AM Bug #21214: VmRSS consumption increase in Ruby 3.4.2 vs Ruby 3.3.6
- byroot (Jean Boussier) wrote in #note-2:
> `ObjectSpace.memsize_of_all` being mostly stable suggest the difference i...
04/03/2025
-
09:13 PM Bug #21214: VmRSS consumption increase in Ruby 3.4.2 vs Ruby 3.3.6
- I have a fix here: https://github.com/ruby/ruby/pull/13061
-
05:58 AM Bug #21214: VmRSS consumption increase in Ruby 3.4.2 vs Ruby 3.3.6
- byroot (Jean Boussier) wrote in #note-2:
> `ObjectSpace.memsize_of_all` being mostly stable suggest the difference i... -
11:38 AM Feature #14565: Simpler, one-liner, failsafe require in ruby? [Suggested names: require_failsafe, require_safe, require_try, require_add)
- I like `require "rubocop-rspec", optional: true` idea from https://bugs.ruby-lang.org/issues/20714.
I wonder if a ... -
03:11 AM Feature #14565: Simpler, one-liner, failsafe require in ruby? [Suggested names: require_failsafe, require_safe, require_try, require_add)
- jeromedalbert (Jerome Dalbert) wrote in #note-4:
> I like this feature request, a non-failing require would be great... -
06:39 AM Bug #20255: Embedded arrays aren't moved correctly across ractors
- No offense taken.
-
03:37 AM Bug #21215 (Closed): IRB upto yield self when self is little then end_val
-
02:33 AM Bug #21215 (Closed): IRB upto yield self when self is little then end_val
- irb(main):001:0> 1.upto(0) { |k| p k } => 1
1
irb(main):002:0> 0.downto(1) { |k| p k } => 0
0
Save these stat...
04/02/2025
-
11:59 PM Misc #21209 (Closed): Endless classes and modules
- There's something special about proposals on April 1st, isn't there?
-
05:16 PM Misc #21209: Endless classes and modules
- A similar issue was raised in #21155. We discussed that issue at the last dev meeting, and several endless class defi...
-
09:20 PM Bug #20255: Embedded arrays aren't moved correctly across ractors
- I reread my message and I didn't mean to come across like I disagreed with your changes, because I don't :)
-
08:46 PM Bug #20255: Embedded arrays aren't moved correctly across ractors
- > doesn't really "move" the object anymore, it just deep copies it since your change. It's not a less expensive opera...
-
08:43 PM Bug #20255: Embedded arrays aren't moved correctly across ractors
- That would be fine with me, because actually `move: true` doesn't really "move" the object anymore, it just deep copi...
-
05:44 PM Bug #20255: Embedded arrays aren't moved correctly across ractors
- Yeah, it's really tricky. There has been some talks of just removing the `move: true` capability.
Given: https://b... -
05:41 PM Bug #20255: Embedded arrays aren't moved correctly across ractors
- Yeah I was afraid that would be the case, but we could differentiate between user-defined clone callbacks and builtin...
-
10:37 AM Bug #20255: Embedded arrays aren't moved correctly across ractors
- > The best solution is to not allow these callbacks,
So it's not actually possible, because many types rely on it.... -
07:53 PM Bug #21214: VmRSS consumption increase in Ruby 3.4.2 vs Ruby 3.3.6
- > It looks like there is an issue with strings
Looking at `GC.count` and `GC.stat_heap`
`3.3.4`
```
gc_coun... -
07:02 PM Bug #21214: VmRSS consumption increase in Ruby 3.4.2 vs Ruby 3.3.6
- It looks like there is an issue with strings. I simplified the script to:
```ruby
require 'objspace'
BYTES_TO_... -
06:09 PM Bug #21214: VmRSS consumption increase in Ruby 3.4.2 vs Ruby 3.3.6
- `ObjectSpace.memsize_of_all` being mostly stable suggest the difference is likely in the GC releasing the memory less...
-
04:18 PM Bug #21214: VmRSS consumption increase in Ruby 3.4.2 vs Ruby 3.3.6
- Add random strings to the object created during the loop
-
04:06 PM Bug #21214 (Closed): VmRSS consumption increase in Ruby 3.4.2 vs Ruby 3.3.6
- Hello,
After updating Ruby from 3.3.6 to 3.4.2, our batch-style (not based on rails) application exceed its memory... -
02:04 PM Bug #21206: Segmentation fault on ISeq#to_binary
- I tracked it down to:
```c
if (!p->it_id) {
p->it_id = internal_id(p);
... -
01:26 PM Bug #21206: Segmentation fault on ISeq#to_binary
- Running in on ruby master with debugs run into the following assertion failure:
```
../include/ruby/internal/core... -
12:19 PM Bug #20984: ENV.inspect is not encoding aware
- Backported d78ff6a767ca813ac5fa178dd7611f20a993c191 into ruby_3_3 at 3d8a66568e8106b367665d716e0d3c8c8208aa07.
-
11:24 AM Bug #21211 (Closed): Incomplete Backtrace for Socket Errors in Ruby 3.4+
- Applied in changeset commit:git|580aa60051773e3512121088eb8ebaee8ce605ea.
----------
Improve backtrace of errors rai... -
10:26 AM Bug #21211: Incomplete Backtrace for Socket Errors in Ruby 3.4+
- https://github.com/ruby/ruby/pull/13041
-
09:28 AM Bug #21203: TestGc#test_gc_parameter_init_slots is flaky results
- @peterzhu2118 I could reproduce this only one time with my Apple Silicon macOS.
```
1) Failure:
TestGc#test_la... -
09:25 AM Bug #21203: TestGc#test_gc_parameter_init_slots is flaky results
- @peterzhu2118 Thanks for working on this issue. Because it's a flaky issue, it is difficult to tell how to reproduce ...
-
08:58 AM Bug #21204: `TestEtc#test_ractor_parallel` is still flaky result with ModGC/MMTk
- `TestSocket#test_timestamp` is failed sometimes on ModGC workflow.
```
1) Failure:
TestSocket#test_timesta... -
06:43 AM Feature #14565: Simpler, one-liner, failsafe require in ruby? [Suggested names: require_failsafe, require_safe, require_try, require_add)
- I like this feature request, a non-failing require would be great for gems that optionally depend on another gem.
... -
05:55 AM Bug #21213 (Third Party's Issue): [BUG] heap_idx_for_size: allocation size too large (size=145u, heap_idx=146u)
- It is a bug of Visual C 17.3.5 and has been fixed by preview versions.
-
05:31 AM Bug #21213 (Third Party's Issue): [BUG] heap_idx_for_size: allocation size too large (size=145u, heap_idx=146u)
- Failed to build ruby 3.4.2 after upgrade Visual C++ build Tools from 17.2 to 17.3.5. The logging file is as attachmen...
-
04:53 AM Bug #21212 (Assigned): IO::Buffer can be freed while its slice is locked
- ```ruby
buffer = IO::Buffer.new(100)
slice = buffer.slice
buffer.locked do
buffer.free rescue p $! #=> IO::B... -
02:40 AM Bug #21210: IO::Buffer gets invalidated on GC compaction
- alanwu (Alan Wu) wrote in #note-5:
> Another option that maintains validity across movement (untested):
>
> ```di... -
01:39 AM Bug #21210: IO::Buffer gets invalidated on GC compaction
- eightbitraptor (Matt V-H) wrote in #note-4:
> Instead of pinning the source string, did you consider allowing the str...
Also available in: Atom