Activity
From 04/12/2022 to 04/18/2022
04/18/2022
-
04:57 PM Bug #18741: Slicing an Array using index out of range inconsistent return type
- I already raised the problem in #16822, it was closed by @matz with
> I don't think the benefit of changing outwei... -
02:37 PM Bug #18741 (Rejected): Slicing an Array using index out of range inconsistent return type
- Hi there!
I've been learning ruby and following the Koans path. On the arrays part i get the following test case to ... -
10:00 AM Bug #18740 (Assigned): Use of rightward assignment changes line number needed for line-targeted TracePoint
- Affected ruby 3.1.1
Sample illustrating the problem (`test.rb`):
```
def foo
File.read("test.rb")
.s... -
09:36 AM Bug #18739 (Closed): Wrong mid-rule index
- `arg in pattern` rule in the `expr` has a wrong index.
```diff
diff --git a/parse.y b/parse.y
index d391354beaa.... -
09:27 AM Bug #18735: The crash reporter need to be updated for Apple silicon
- byroot (Jean Boussier) wrote in #note-3:
> But I suppose we can assume Apple is going to ship a working `libunwind` ... -
09:07 AM Feature #10548: remove callcc (Callcc is now going obsoleted. Please use Fiber.)
- Never use callcc in practical applications or libraries. It violates a common assumption of control flow that many pr...
-
09:06 AM Bug #18665 (Closed): Tutorial Link for Optionparser is still broken
- Now the links in https://docs.ruby-lang.org/en/master/OptionParser.html should be correct.
-
08:57 AM Bug #18677 (Assigned): BigDecimal#power (**) returns FloatDomainError when passing an infinite parameter
-
08:47 AM Bug #18684 (Feedback): Support for out of source build
-
08:38 AM Feature #18654: Enhancements to prettyprint
- Thank you. So, is the essence of your proposal to delay output until flush is called? Sounds like a significant chang...
-
12:00 AM Bug #18738: IRB can't recognize heredoc after words
- kaiquekandykoga (Kaรญque Koga) wrote in #note-1:
> I think it can be interesting to open an issue at https://github.c...
04/17/2022
-
06:36 PM Bug #18738: IRB can't recognize heredoc after words
- I think it can be interesting to open an issue at https://github.com/ruby/irb.
-
03:51 PM Bug #18738 (Closed): IRB can't recognize heredoc after words
- My irb_info
```ruby
irb(main):001:0> irb_info
=>
Ruby version: 3.1.1
IRB version: i... -
03:20 PM Bug #18737 (Closed): Windows 'require' is case independent
- On Windows, `require` may cause one file to load in more than once if user accidentally spells the wrong name of a ge...
04/16/2022
-
05:02 PM Feature #18611: Promote best practice for combining multiple values into a hash code
- Regarding my last reply, I changed my mind, including the class is useful to avoid unintentional hash conflicts betwe...
-
03:45 PM Feature #18611: Promote best practice for combining multiple values into a hash code
- Implemented in https://github.com/ruby/ruby/pull/5805
-
03:42 PM Feature #18611: Promote best practice for combining multiple values into a hash code
- I think an `eql?` implementation should either not check the class, and assume it will be used a key with objects of ...
-
05:15 AM Bug #18727: Make failed on x86_64-cygwin (LoadError)
- I open PR https://github.com/ruby/ruby/pull/5810
04/15/2022
-
03:52 PM Misc #18726: CI Error on c99 and c2x
- Older autoconf versions and `rb_define_method()` both cause warnings.
Having different flags during configure and co... -
10:20 AM Misc #18726: CI Error on c99 and c2x
- Regarding #18615, I think it's different, we still anyway have `-Werror=implicit-function-declaration` for C extensio...
-
10:17 AM Misc #18726: CI Error on c99 and c2x
- Is there a way we could disable that warning only for configure checks (or even the specific configure checks which n...
-
05:41 AM Misc #18726: CI Error on c99 and c2x
- @alanwu Thank you. I can live with that workaround. But I would also like to hear what @Eregon thinks. The fix ign...
-
03:47 PM Feature #18654: Enhancements to prettyprint
- @mame I have included only a small amount of changes in a smaller PR just to get this started: https://github.com/rub...
-
02:50 PM Feature #18654: Enhancements to prettyprint
- Thank you @mame. I can definitely split it up. I will include examples as well. If it's alright, I'll leave this tick...
-
08:54 AM Feature #18654: Enhancements to prettyprint
- I spent some time to understand your proposal, but gave up because it was too huge. Can you split your proposal to sm...
-
02:51 PM Bug #18729: Method#owner and UnboundMethod#owner are incorrect after using Module#public/protected/private
- Eregon (Benoit Daloze) wrote in #note-3:
> > I'm not sure if this is a bug, since the current behavior seems intenti... -
10:37 AM Bug #18729: Method#owner and UnboundMethod#owner are incorrect after using Module#public/protected/private
- Thank you, that looks great.
And as mentioned in the PR it also fixes `Method#super_method` to actually be the corre... -
02:17 PM Feature #10548: remove callcc (Callcc is now going obsoleted. Please use Fiber.)
- I know it's late to weight in on this, but see the ambit[1] and unific[2] gems and the in-progress rulog[2] gem for e...
-
11:09 AM Feature #18736: self-p for method chain
- That's exactly I meant. Thanks a lot, I call this topic closed. Sorry for the bad traffic.
-
09:29 AM Feature #18736: self-p for method chain
- It just looks too ugly to me. What do you gain from passing the block to `sp` instead of the method that is originall...
-
09:03 AM Feature #18736 (Open): self-p for method chain
- You may want to check object with `p` method at the middle of a method chain.
Here is my recomendation.
```ruby
... -
11:07 AM Bug #18735: The crash reporter need to be updated for Apple silicon
- No you're right, my patch isn't working as well as I though it was.
> Can you confirm that your PR works well wit... -
10:31 AM Bug #18735: The crash reporter need to be updated for Apple silicon
- I guess [this commit of libunwind](https://github.com/libunwind/libunwind/pull/330) is required to work on M1 mac. Lo...
-
09:08 AM Bug #18735: The crash reporter need to be updated for Apple silicon
- I think your patch does not work well for me. Does it work well on your machine?
```
% sw_vers
ProductName: m... -
08:19 AM Bug #18735 (Closed): The crash reporter need to be updated for Apple silicon
- C backtrace dumping is only enabled for `x86_64` arch on macOS: `if defined(__APPLE__) && defined(__x86_64__) && def...
-
10:30 AM Bug #18734 (Closed): [Win32] `File.sticky?` returns `nil` while `File::Stat.sticky?` returns `false`
- Applied in changeset commit:git|7f81f335478a3ca873f34e3bc0af6927819d3e84.
----------
Return `false` where sticky-bit... -
07:40 AM Bug #18734 (Closed): [Win32] `File.sticky?` returns `nil` while `File::Stat.sticky?` returns `false`
- On the platforms where sticky bit is not provided, `File.sticky?` returns `nil` while `File::Stat.sticky?` returns `f...
-
10:30 AM Bug #18732 (Closed): [Win32] `File.chardev?` and `File::Stat.chardev?` are not working
- Applied in changeset commit:git|a0040af6715d85f416f1282588974e151a8164eb.
----------
[Win32] Fix mode of character/p... -
02:41 AM Bug #18732 (Closed): [Win32] `File.chardev?` and `File::Stat.chardev?` are not working
- ```
$ ruby -v -e 'p ["con", "nul"].to_h {|f| [f, [File.chardev?(f), File.stat(f).chardev?]]}'
ruby 3.0.3p157 (2021-... -
09:13 AM Bug #18733: Heavy GC allocations cause performance issue with Ractor
- One problem I found was that when I ran the same script on different Ruby versions, there was performance gap between...
-
06:22 AM Bug #18733: Heavy GC allocations cause performance issue with Ractor
- Thanks much! :)
And I change the topic to GC problem instead problem of m1.
Hope the memory management will get imp... -
05:42 AM Bug #18733: Heavy GC allocations cause performance issue with Ractor
- Thank you for your report.
On my WSL2 environment with 12 cores, `ruby 3.2.0dev (2022-04-15T04:24:48Z master 92614... -
05:04 AM Bug #18733 (Assigned): Heavy GC allocations cause performance issue with Ractor
- Code:
```
require 'benchmark'
def fib(n)
return n if [0,1].include?(n)
fib(n-1) + fib(n-2)
end
tp = ...
04/14/2022
-
11:00 PM Bug #18729: Method#owner and UnboundMethod#owner are incorrect after using Module#public/protected/private
- I'm not sure if this is a bug, since the current behavior seems intentional. However, I do agree it would be best to...
-
02:44 PM Bug #18729: Method#owner and UnboundMethod#owner are incorrect after using Module#public/protected/private
- FWIW, I've found 2 CRuby tests fail with this change (through implementing `#owner` correctly on TruffleRuby):
```
... -
02:38 PM Bug #18729 (Closed): Method#owner and UnboundMethod#owner are incorrect after using Module#public/protected/private
- The #owner should be "the class or module that defines the method".
Or in other words, the owner is the module which... -
10:44 PM Misc #18726: CI Error on c99 and c2x
- Sorry, I pushed a CI fix without finding this ticket first:
https://github.com/ruby/ruby/commit/307cb57ba6d4833cc40d... -
07:15 PM Misc #18726: CI Error on c99 and c2x
- shyouhei (Shyouhei Urabe) wrote in #note-1:
> Is it okay to require 2.71? Or any reasons not to?
2.69 is still d... -
07:39 AM Misc #18726: CI Error on c99 and c2x
- The problem is whether we are allowed to do this.
```patch
From b60e5fdfa540a0ddef35f5dc904d004d226dac25 Mon Sep ... -
04:55 AM Misc #18726: CI Error on c99 and c2x
- Is it okay to require 2.71? Or any reasons not to?
-
02:43 AM Misc #18726 (Closed): CI Error on c99 and c2x
- https://github.com/ruby/ruby/runs/6013849896?check_suite_focus=true
```
checking char bit... 8
checking size of in... -
04:51 PM Bug #18728: Segfault since ruby 3.0.4 when parsing JSON
- The underlying issue is that `rb_utf8_str_new` and `rb_str_new` will accept a NULL pointer, where `rb_enc_interned_st...
-
03:33 PM Bug #18728 (Third Party's Issue): Segfault since ruby 3.0.4 when parsing JSON
- Thank you for the report. The script works fine on Ruby's builtin JSON gem. I can reproduce the crash when I install ...
-
11:52 AM Bug #18728 (Third Party's Issue): Segfault since ruby 3.0.4 when parsing JSON
- This is a regression since 3.0.4. When parsing a JSON with an empty string as a key ruby segfaults.
Reproduction s... -
03:38 PM Bug #18731: Parallel test-all sometimes does not run at all some tests
- Here is a quick search of test classes with the same name in different places:
```
class Test_Bignum
class TestDat... -
03:28 PM Bug #18731 (Closed): Parallel test-all sometimes does not run at all some tests
- In TruffleRuby I've noticed that some CRuby tests sometimes run or not, non-deterministically.
The TruffleRuby CI cu... -
02:50 PM Bug #18730 (Closed): Double `return` event handling with different tracepoints
- I'm not sure if this is a bug or intentional behavior, but feels a bit unexpected. Ruby 3.0.x, 3.1.x affected.
Her... -
12:54 PM Bug #18727: Make failed on x86_64-cygwin (LoadError)
- Thank you for the bug report. That patch looks good, could you open a Pull Request on GitHub and I can merge.
-
06:18 AM Bug #18727 (Assigned): Make failed on x86_64-cygwin (LoadError)
-
06:08 AM Bug #18727: Make failed on x86_64-cygwin (LoadError)
- ```diff
diff --git a/include/ruby/internal/abi.h b/include/ruby/internal/abi.h
index 98a63927c5..ed779f3558 100644
... -
06:06 AM Bug #18727 (Closed): Make failed on x86_64-cygwin (LoadError)
- Make failed on x86_64-cygwin (LoadError)
```
$ git clone https://github.com/ruby/ruby.git
$ cd ruby
$ autorecon... -
10:42 AM Bug #18373 (Closed): Bundled gem (RBS, debug) extensions are not properly built
- This seems to be addressed by [PR#5774](https://github.com/ruby/ruby/pull/5774). Thx @nobu.
For the backport, plea... -
08:14 AM Misc #18687: [ANN] Upgraded bugs.ruby-lang.org to Redmine 5.0
- Oh, `_underscores_` are now back to meaning _italic_! Thank you, it was minor, but constant irritation after previous...
-
01:33 AM Misc #18687: [ANN] Upgraded bugs.ruby-lang.org to Redmine 5.0
- @nagachika found the regression or behavior change of filter feature.
If you get the expected result like `3.0: RE... -
06:52 AM Misc #18691 (Feedback): An option to build Ruby with build only flags not propagated to `rbconfig.rb`.
-
06:51 AM Misc #18691: An option to build Ruby with build only flags not propagated to `rbconfig.rb`.
- I think you can pass build-time-only flags to `make`:
```sh
$ ./autogen.sh
$ CFLAGS='-O2' ./configure
$ make ARCH... -
05:51 AM Bug #18658: Need openssl 3 support for Ubuntu 22.04 (Ruby 2.7.x and 3.0.x)
- hsbt (Hiroshi SHIBATA) wrote in #note-5:
> FYI: https://bugs.launchpad.net/ubuntu/+source/ruby2.7/+bug/1946190
>
... -
02:59 AM Bug #18658: Need openssl 3 support for Ubuntu 22.04 (Ruby 2.7.x and 3.0.x)
- schneems (Richard Schneeman) wrote in #note-6:
> I think that would maybe not work with people using `bundle exec` t...
04/13/2022
-
11:20 PM Misc #18725 (Open): IO#write and IO#wait_writable block for write pipe if read pipe is closed in other thread on OpenBSD
- I'm not sure whether this is a Ruby issue, an OpenBSD issue, or something else, but @ioquatix asked me to post this h...
-
07:51 PM Bug #12312: Make PTY take environment variables like popen does
- FYI, I have updated [PTY.spawn's doc](https://github.com/ruby/ruby/pull/5786) for the optional `env` argument.
-
05:41 PM Bug #16672 (Closed): net/http leaves original content-length header intact after inflating response
- Applied in changeset commit:git|0579486f154e80d17521494003dcd2499ef74688.
----------
[ruby/net-http] Update the cont... -
04:07 PM Bug #18658: Need openssl 3 support for Ubuntu 22.04 (Ruby 2.7.x and 3.0.x)
- > After that, I can use gem install rails or anything as usual.
Thank you for the idea Mame. I think that would ma... -
09:29 AM Bug #18692 (Rejected): Set += is O(n^2)
- It's fully expected, `a += b` is just `a = a + b` and so it's N Set instances/copies created vs 1 with <<.
-
08:42 AM Bug #18692 (Rejected): Set += is O(n^2)
$ time ruby26 --disable=gems -r set -e 's = Set.new(); 1.upto(10_000).each { |n| s += [n] }'
real 0m1...-
07:50 AM Misc #18652: DevMeeting-2022-04-21
- - [Feature #18683] Allow to create hashes with a specific capacity.
- Useful for various parsers and deserializers...
04/12/2022
-
04:44 PM Misc #18691 (Feedback): An option to build Ruby with build only flags not propagated to `rbconfig.rb`.
- In a Fedora Ruby RPM packaging, I have a challenge for the current `make rbconfig.rb`. Currently when we build Ruby f...
-
12:56 PM Feature #2567 (Closed): Net::HTTP does not handle encoding correctly
- Applied in changeset commit:git|ebb4378237e572ce2e888136a613c7c051439f95.
----------
[ruby/net-http] Add HTTP#respon... -
12:56 PM Feature #15517 (Closed): Net::HTTP not recognizing valid UTF-8
- Applied in changeset commit:git|ebb4378237e572ce2e888136a613c7c051439f95.
----------
[ruby/net-http] Add HTTP#respon... -
09:52 AM Feature #18690: Allow `Kernel#then` to take arguments
- The last example is just:
```ruby
p.call(honyarara, fugafugafuga, hogehogehoge)
```
isn't it? And that's a lot mo... -
09:20 AM Feature #18690 (Open): Allow `Kernel#then` to take arguments
- `Kernel#then` passes the receiver to the block as its first positional block parameter.
```ruby
1.5.then{|x| Math... -
06:34 AM Bug #18155: (nil..nil).cover?(x) is true for all x since beginless ranges were introduced
- I do not understand the logic behind option 2. I would rather expect this logic:
> a beginless-and-endless range h...