Project

General

Profile

Activity

From 12/26/2020 to 01/01/2021

01/01/2021

11:23 PM Feature #17500: Move RubyVM::* to ExperimentalFeatures
> it is meant as experimental unstable MRI-specific API
I think it means only MRI-specific API, while some of it m...
k0kubun (Takashi Kokubun)
12:56 PM Feature #17500: Move RubyVM::* to ExperimentalFeatures
Migration plan:
* In Ruby 3.1: define `ExperimentalFeatures`, add the same constants & methods as `RubyVM` under i...
Eregon (Benoit Daloze)
12:43 PM Feature #17500 (Rejected): Move RubyVM::* to ExperimentalFeatures
`RubyVM` is a trap:
* Users will think from the name it's some official blessed API when it is meant as experimental...
Eregon (Benoit Daloze)
10:34 PM Feature #17496: Add constant Math::TAU
I also don't understand why `Math::TAU` needs to be added to Ruby, even though I am familiar with the manifesto and t... ufuk (Ufuk Kayserilioglu)
10:14 PM Feature #17496: Add constant Math::TAU
@jzakiya you just need to comment on https://bugs.ruby-lang.org/issues/17480 then, copying the format of the other co... chrisseaton (Chris Seaton)
10:12 PM Feature #17496 (Open): Add constant Math::TAU
Personally, I don't think that anything significant has changed in the last three years this area. And the compariso... jeremyevans0 (Jeremy Evans)
09:48 PM Feature #17496: Add constant Math::TAU
Well since I don't have the power to re``Open`` it, will you then see that it is?
Otherwise, this is just going ar...
jzakiya (Jabari Zakiya)
09:42 PM Feature #17496: Add constant Math::TAU
> I request that whoever has the power to request he review this issue again now do that too.
That's done by addin...
chrisseaton (Chris Seaton)
09:41 PM Feature #17496: Add constant Math::TAU
OK, well then I request this issue be reclassified as ``Open``, by whoever has the power to do that.
Also, as it s...
jzakiya (Jabari Zakiya)
09:30 PM Feature #17496: Add constant Math::TAU
Ok well this issue is currently marked rejected. You need to convince someone to change that first. Then you need to ... chrisseaton (Chris Seaton)
09:27 PM Feature #17496: Add constant Math::TAU
> I don't think this manifesto helps itself by conflating a serious argument with a lot of silliness and jokes. You c... jzakiya (Jabari Zakiya)
09:03 PM Feature #17496: Add constant Math::TAU
I don't think this manifesto helps itself by conflating a serious argument with a lot of silliness and jokes. You can... chrisseaton (Chris Seaton)
08:58 PM Feature #17496: Add constant Math::TAU
FYI.
Yesterday (the last day of 2020) before I created this issue to include ``TAU`` in ``Ruby``, literally second...
jzakiya (Jabari Zakiya)
05:04 PM Feature #17496: Add constant Math::TAU
Almost 25 years ago I started my computer career with 3D programming. Very low level to that times, but using a lot o... larskanis (Lars Kanis)
04:42 PM Feature #17496: Add constant Math::TAU
This is a very serious proposal, and ``TAU`` is a very serious concept - the unit turn.
As Michael Hartl raises, t...
jzakiya (Jabari Zakiya)
03:54 PM Feature #17496: Add constant Math::TAU
It's difficult to work out if this is a genuine proposal or a meme.
Surely Jabari is joking when they say 'you mus...
chrisseaton (Chris Seaton)
03:46 PM Feature #17496: Add constant Math::TAU
To help answer this question,
> IMO, the sufficient condition is that it appears in some major textbooks for schoo...
jzakiya (Jabari Zakiya)
06:46 AM Feature #17496: Add constant Math::TAU
> So, I want to know how many mathematicians accept such tau. Do you know how many academic papers that uses tau as t... jzakiya (Jabari Zakiya)
02:41 AM Feature #17496: Add constant Math::TAU
At least Julia doesn't have `tau` in its core now. There is Tau.jl, but it isn't a standard library. Following Juli... mrkn (Kenta Murata)
02:14 AM Feature #17496: Add constant Math::TAU
jzakiya (Jabari Zakiya) wrote in #note-4:
> Well, Python3 added it, so when do you (empirically?, subjectively?) est...
mame (Yusuke Endoh)
03:13 PM Feature #15921: R-assign (rightward-assignment) operator
dgutov (Dmitry Gutov) wrote in #note-25:
> It's not like the new syntax makes anything possible that a simple assign...
marcandre (Marc-Andre Lafortune)
03:03 PM Feature #15921: R-assign (rightward-assignment) operator
This is not as bad as the "pipeline operator" (which didn't do what its name said), but still, why add this?
It's ...
dgutov (Dmitry Gutov)
12:50 PM Misc #17480: DevelopersMeeting20210113Japan
* [Feature #17500] Move RubyVM::* to ExperimentalFeatures (eregon)
* I think this is the best solution, for everyo...
Eregon (Benoit Daloze)
12:18 PM Misc #17480: DevelopersMeeting20210113Japan
* [Misc #17499] Documentation backporting (zverok)
* Address systematic lack of docs at docs.ruby-lang.org
* [Bug #...
zverok (Victor Shepelev)
12:48 PM Feature #17490: Rename RubyVM::MJIT to RubyVM::JIT
FYI, I filed #17500 regarding RubyVM.
I think `ExperimentalFeatures::JIT` would be fine if we accept that issue, and...
Eregon (Benoit Daloze)
12:20 PM Feature #17490: Rename RubyVM::MJIT to RubyVM::JIT
k0kubun (Takashi Kokubun) wrote in #note-4:
> Didn't you clarify it by yourself at [Feature #15743]? The person who ...
Eregon (Benoit Daloze)
12:09 PM Misc #17499 (Closed): Documentation backporting
I recently noticed that the documentation created after `x.y` release (even 1 day after) never reflected at `docs.rub... zverok (Victor Shepelev)
11:53 AM Feature #17473: Make Pathname to embedded class of Ruby
hsbt (Hiroshi SHIBATA) wrote in #note-9:
> I'm not sure how embedded pure-Ruby implementation to core classes. The a...
Eregon (Benoit Daloze)
07:34 AM Bug #17494: ruby is hanged when using activesupport + rspec + rspec-parameterized
Looks like this behavior has been triggered by https://github.com/ruby/ruby/commit/b9007b6c548f91e88fd3f2ffa23de74043... yahonda (Yasuo Honda)
06:22 AM Feature #17498 (Closed): Improve performance some Float methods
Improve performance some Float methods(write in Ruby)
benchmark:
```yml
prelude: |
flo = 4.2
benchmark:
...
S_H_ (Shun Hiraoka)
05:50 AM Bug #17495 (Closed): Make args info for RubyVM::AST to available on endless method without parens
Applied in changeset commit:git|ab32e98f984318f1074c6e39b8f2f04266a1224b.
----------
Added AST assertions for method...
nobu (Nobuyoshi Nakada)

12/31/2020

10:47 PM Feature #17496: Add constant Math::TAU
From that post 3 years ago.
> For the time being, use math-tau gem.
> I will add it after (and only after) it became...
jzakiya (Jabari Zakiya)
10:18 PM Feature #17496: Add constant Math::TAU
Relevant context is probably Matz's reason for rejection and criteria for reconsidering.
https://bugs.ruby-lang.or...
chrisseaton (Chris Seaton)
10:16 PM Feature #17496: Add constant Math::TAU
Well, I guess this regresses to a philosophical|religious issue, it's obviously not technical. :-(
But how can addin...
jzakiya (Jabari Zakiya)
09:13 PM Feature #17496 (Rejected): Add constant Math::TAU
jzakiya (Jabari Zakiya) wrote:
> Excuse me if this has been brought up before.
It has been brought up before, by ...
jeremyevans0 (Jeremy Evans)
07:27 PM Feature #17496 (Open): Add constant Math::TAU
Excuse me if this has been brought up before.
This is a simple proposal to add the math constant ``Math::TAU`` = 2...
jzakiya (Jabari Zakiya)
09:48 PM Bug #17497 (Closed): Ractor performance issue
There's a strange performance issue with Ractor (at least on MacOS, didn't run on other OS).
I ran a benchmark doi...
marcandre (Marc-Andre Lafortune)
04:18 PM Bug #17495 (Closed): Make args info for RubyVM::AST to available on endless method without parens

Problem
===
Arguments information is missing for endless method without parens.
For example:
```ruby
# ok
...
pocke (Masataka Kuwabara)
02:18 PM Bug #17491: `./configure' unsuccessful on Android NDK cross-build
Thanks for the comment.
A patch is attached to solve the problem.
xtkoba (Tee KOBAYASHI)
08:37 AM Bug #17491 (Feedback): `./configure' unsuccessful on Android NDK cross-build
Currently, Ruby does not support Android officially. A patch is welcome.
I'm experimentally maintaining a CI on An...
mame (Yusuke Endoh)
11:47 AM Bug #17494 (Closed): ruby is hanged when using activesupport + rspec + rspec-parameterized
# Example code
## Gemfile
```ruby
# frozen_string_literal: true
source "https://rubygems.org"
git_source(:gi...
sue445 (Go Sueyoshi)
09:22 AM Feature #17473: Make Pathname to embedded class of Ruby
hsbt (Hiroshi SHIBATA) wrote in #note-9:
> I'm not sure how embedded pure-Ruby implementation to core classes. The...
duerst (Martin Dürst)
12:01 AM Feature #17473: Make Pathname to embedded class of Ruby
>Then, we could share more of Pathname between Ruby implementations, and avoid maintaining both a Ruby and C version.... hsbt (Hiroshi SHIBATA)
08:05 AM Feature #17490: Rename RubyVM::MJIT to RubyVM::JIT
I'm +1 to rename it. hsbt (Hiroshi SHIBATA)
07:47 AM Feature #17490: Rename RubyVM::MJIT to RubyVM::JIT
> If we'd consider RubyVM is CRuby-specific, then it seems fine.
> However, that's rather unclear, and then the quest...
k0kubun (Takashi Kokubun)
06:40 AM Bug #17358: Backport 1ca9facab6c85264168b4c0a18c24f489cabcc9f
ruby_2_7 5cbba4d6005a03914fc47e7a65ae5b6ef76c8e29 merged revision(s) 1ca9facab6c85264168b4c0a18c24f489cabcc9f. nagachika (Tomoyuki Chikanaga)
06:39 AM Bug #17275: Please backport 8b0dc77a621ded75f72486c33f55404ce73f00d7
ruby_2_7 9eff912943a71745087ea4ae892774e33bd2e8ca merged revision(s) 8b0dc77a621ded75f72486c33f55404ce73f00d7. nagachika (Tomoyuki Chikanaga)
06:37 AM Bug #15178: Wrong paramaters passing to pthread_setname_np(3)
ruby_2_7 16930b254b4e5397759d6b42845b495041b71321 merged revision(s) be9dbe1c3eb4bb4cab0bdc42a91ef425bb1eaddd. nagachika (Tomoyuki Chikanaga)
06:32 AM Feature #16378: Support leading arguments together with ...
Thank you for ping me. I backported f8b4340f into ruby_2_7 at 27fca66207f2c35f2f44f6a7cbbe6fd153546082. nagachika (Tomoyuki Chikanaga)
06:30 AM Bug #17493 (Closed): Calling Reline::Unicode.calculate_width appears to lock up when called from emacs or if output is redirected
In https://github.com/ruby/reline/pull/224 there is a test program
```
require "reline"
p Reline::Unicode.calc...
rsharman (Richard Sharman)
06:05 AM Bug #17488: Regression in Ruby 3: Hash#key? is non-deterministic when argument uses DelegateClass
shyouhei (Shyouhei Urabe) wrote in #note-4:
> Hello, I cannot reproduce this on any of `ruby 3.0.0p0 (2020-12-25 rev...
nobu (Nobuyoshi Nakada)
03:13 AM Bug #17488 (Closed): Regression in Ruby 3: Hash#key? is non-deterministic when argument uses DelegateClass
Applied in changeset commit:git|20a8425aa0f9a947e72b06cbd3a2afe9674dd18f.
----------
Make any hash values fixable [B...
nobu (Nobuyoshi Nakada)
01:14 AM Bug #17405: irb ---nomultiline gets exception when output contains some non-ascii characters
Sorry not to have checked back recently. The patch mentioned above works great for me.
I doubt if this is required ...
rsharman (Richard Sharman)

12/30/2020

11:59 PM Bug #17492 (Closed): Breakpoints in debug.rb only work when program invoked with absolute filename
When using the debugger, as in ruby -r debug, it seems that breakpoints sometimes are honoured and sometimes not. I... rsharman (Richard Sharman)
11:46 PM Bug #17486: Build fails on darwin due to libtool being removed
I tried the following on a Macbook Pro with Catalina and the error was still present.
```
$ sudo rm -rf /Library/...
dark.panda (J Smith)
11:46 PM Bug #17486: Build fails on darwin due to libtool being removed
FYI: https://github.com/rbenv/ruby-build/issues/1505#issuecomment-752274233 hsbt (Hiroshi SHIBATA)
11:28 PM Bug #15499: Breaking behavior on ruby 2.6: rb_thread_call_without_gvl doesn't invoke unblock_function when used on the main thread
Thanks for the followup on this issue. However, was the fix ever released?
I can still reproduce this issue on the...
apolcyn (alex polcyn)
10:59 PM Feature #17490: Rename RubyVM::MJIT to RubyVM::JIT
Eregon (Benoit Daloze) wrote in #note-2:
> If we'd consider RubyVM is CRuby-specific, then it seems fine.
Yes.
comm...
nobu (Nobuyoshi Nakada)
03:04 PM Feature #17490: Rename RubyVM::MJIT to RubyVM::JIT
If we'd consider RubyVM is CRuby-specific, then it seems fine.
However, that's rather unclear, and then the question...
Eregon (Benoit Daloze)
05:45 AM Feature #17490 (Closed): Rename RubyVM::MJIT to RubyVM::JIT
## Background
These days it's sometimes said that CRuby may add another lightweight JIT. Leaving `RubyVM::MJIT` unde...
k0kubun (Takashi Kokubun)
09:24 PM Bug #17488: Regression in Ruby 3: Hash#key? is non-deterministic when argument uses DelegateClass
I have confirmed this too in `ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-linux]` built with `gcc (Debian 8... sekiyama (Tomoki Sekiyama)
04:18 PM Bug #17488: Regression in Ruby 3: Hash#key? is non-deterministic when argument uses DelegateClass
On my mac pro (High Sierra) too:
```
$ clang --version
Apple LLVM version 10.0.0 (clang-1000.11.45.2)
Target: x...
marcandre (Marc-Andre Lafortune)
04:14 PM Bug #17488: Regression in Ruby 3: Hash#key? is non-deterministic when argument uses DelegateClass
shyouhei (Shyouhei Urabe) wrote in #note-4:
> Also I want to know your `clang --version`.
```
$ clang --version
...
marcandre (Marc-Andre Lafortune)
03:42 PM Bug #17488 (Feedback): Regression in Ruby 3: Hash#key? is non-deterministic when argument uses DelegateClass
Hello, I cannot reproduce this on any of `ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-linux]` compiled usin... shyouhei (Shyouhei Urabe)
08:38 PM Feature #17475 (Rejected): Implement arguments forwarding for blocks
jeremyevans0 (Jeremy Evans)
06:46 PM Feature #17475: Implement arguments forwarding for blocks
Found it, duplicate of rejected #16605. Sorry for the noise, can be closed/rejected. svoop (Sven Schwyn)
08:26 PM Bug #17491 (Closed): `./configure' unsuccessful on Android NDK cross-build
We have no such command as `getprop` in our Android NDK cross-build environment, and so `./configure` says
```
chec...
xtkoba (Tee KOBAYASHI)
03:10 PM Feature #17473: Make Pathname to embedded class of Ruby
shyouhei (Shyouhei Urabe) wrote in #note-7:
> JFYI pathname was born as a pure-ruby library, then was eventually tra...
Eregon (Benoit Daloze)
03:05 PM Feature #17473: Make Pathname to embedded class of Ruby
JFYI pathname was born as a pure-ruby library, then was eventually translated into C (in commit:4bf3cb5ba9c0242bd5a6d... shyouhei (Shyouhei Urabe)
07:42 AM Feature #17316: On memoization
IMO there should be an operator in the language directly to keep it more dry.
```ruby
def my_method # current...
sebyx07 (Sebastian Buza)
05:49 AM Misc #17480: DevelopersMeeting20210113Japan
* [Feature #16806] `Struct#initialize` accepts keyword arguments too by default (k0kubun)
* Is there any update on ...
k0kubun (Takashi Kokubun)

12/29/2020

08:49 PM Feature #16746: Endless method definition
I haven't seen it mentioned in the comments so I just wanted to point out that the regular method-definition syntax d... etienne (Étienne Barrié)
08:34 PM Feature #17472: HashWithIndifferentAccess like Hash extension
I believe that `HashWithIndifferentAccess` is one of the very false ideas in Rails -- and that as of today, it is a m... zverok (Victor Shepelev)
03:23 PM Feature #17471: send_if method for improved conditional chaining
osyo (manga osyo) wrote in #note-1:
```ruby
puts number.tap { break _1 * 2 if _1 > 5 }.send(:-, 1)
puts %w(Merry C...
ozu (Fabio Pesari)
09:12 AM Bug #17477: Ractor and pp incompatibility
marcandre (Marc-Andre Lafortune) wrote in #note-4:
> I wrote a similar opinion to Martin Dürst's in #17420. I propos...
kirs (Kir Shatrov)
06:56 AM Feature #17187: Add connect_timeout to TCPSocket
@PhobosK
Many thanks for reporting the issue!
I merged your patch.
Glass_saga (Masaki Matsushita)
04:43 AM Bug #17488: Regression in Ruby 3: Hash#key? is non-deterministic when argument uses DelegateClass
Seems commit:9e6e39c3512f7a962c44dc3729c98a0f8be90341 by bisect. nobu (Nobuyoshi Nakada)
03:54 AM Bug #17486 (Feedback): Build fails on darwin due to libtool being removed
nobu (Nobuyoshi Nakada)
03:50 AM Bug #17486: Build fails on darwin due to libtool being removed
I've heard that similar error used to occur in earlier versions too,
and `sudo xcode-select -s /Library/Developer/Co...
nobu (Nobuyoshi Nakada)

12/28/2020

10:21 PM Bug #17487 (Closed): rb_gc segfaults on ARM64 platforms
Thank you for confirming. I will close this as the issue appears to have already been fixed. jeremyevans0 (Jeremy Evans)
10:12 PM Bug #17487: rb_gc segfaults on ARM64 platforms
I cannot reproduce with 2.6.6 or 2.7.2, using those the call to rb_gc doesn't cause a segfault. josegutierrez (Jose Gutierrez de la Concha)
07:51 PM Bug #17487 (Feedback): rb_gc segfaults on ARM64 platforms
Both Ruby 2.0 and 2.3 are out of support. Can you reproduce this on Ruby 2.6, 2.7, or 3.0? jeremyevans0 (Jeremy Evans)
07:48 PM Bug #17487 (Closed): rb_gc segfaults on ARM64 platforms
I have a ruby native extension, and I see a segfault when calling rb_gc, so far I have seen this happening on arm64 p... josegutierrez (Jose Gutierrez de la Concha)
09:27 PM Bug #17420: Unsafe mutation of $" when doing non-RubyGems require in Ractor
(coming to this bug from https://bugs.ruby-lang.org/issues/17477)
I think it's fine to force `require` to be calle...
kirs (Kir Shatrov)
11:58 AM Bug #17420: Unsafe mutation of $" when doing non-RubyGems require in Ractor
That sounds like a good way to fix it.
marcandre (Marc-Andre Lafortune) wrote in #note-3:
> the main thread could...
Eregon (Benoit Daloze)
08:43 AM Bug #17420: Unsafe mutation of $" when doing non-RubyGems require in Ractor
I agree that it would be best to make require work everywhere, but always be executed in the main Reactor. That would... duerst (Martin Dürst)
09:23 PM Bug #17489 (Closed): Ractor segfaults
I was able to boil it down to this script:
```ruby
require 'bundler/inline'
gemfile do
source 'https://ruby...
kirs (Kir Shatrov)
09:12 PM Bug #17488: Regression in Ruby 3: Hash#key? is non-deterministic when argument uses DelegateClass
Bug requires more than 8 keys (as in the example) marcandre (Marc-Andre Lafortune)
09:08 PM Bug #17488: Regression in Ruby 3: Hash#key? is non-deterministic when argument uses DelegateClass
I didn't run a git bisect, but this was the case already in `ruby 3.0.0preview1` marcandre (Marc-Andre Lafortune)
08:52 PM Bug #17488 (Closed): Regression in Ruby 3: Hash#key? is non-deterministic when argument uses DelegateClass
Upon upgrading a library to run on Ruby 3.0, I have observed that `Hash#key?` has non-deterministic behavior when the... myronmarston (Myron Marston)
08:09 PM Feature #17411: Allow expressions in pattern matching
mame (Yusuke Endoh) wrote in #note-8:
> ktsj (Kazuki Tsujimoto) wrote in #note-7:
> > If there were a obvious reaso...
marcandre (Marc-Andre Lafortune)
05:20 PM Feature #17411: Allow expressions in pattern matching
ktsj (Kazuki Tsujimoto) wrote in #note-7:
> If there were a obvious reason, I'd like to know that.
I can think of...
mame (Yusuke Endoh)
04:18 PM Feature #17411: Allow expressions in pattern matching
I am basically positive.
(I've had the same idea. :) https://speakerdeck.com/k_tsj/pattern-matching-new-feature-in-r...
ktsj (Kazuki Tsujimoto)
07:15 PM Bug #17486 (Closed): Build fails on darwin due to libtool being removed
The following commit is causing builds in master and for the recently released Ruby 3.0.0 to fail on darwin. This was... dark.panda (J Smith)
06:30 PM Feature #17474: Interpreting constants at compile time
Your example:
```
def m(i)
$("foo#{i}")
end
```
**_would not_** work because it doesn't evaluate at parse...
jzakiya (Jabari Zakiya)
04:52 PM Feature #17474: Interpreting constants at compile time
> Agree but... can a JIT optimize `Set["x","y","z"].include?(v)` so that the Set is only allocated once?
Absolutel...
chrisseaton (Chris Seaton)
04:48 PM Feature #17474: Interpreting constants at compile time
Eregon (Benoit Daloze) wrote in #note-13:
> Doesn't `private_constant` (no arguments) work? (if not, sounds worth ad...
Dan0042 (Daniel DeLorme)
12:32 PM Feature #17474: Interpreting constants at compile time
marcandre (Marc-Andre Lafortune) wrote in #note-9:
> Moreover, constants would ideally use `private_constant`, makin...
Eregon (Benoit Daloze)
04:57 AM Feature #17474: Interpreting constants at compile time
Regarding "once" syntax, I've had an idea to use `BEGIN`.
```ruby
BEGIN {/#{1+2}/} #equivalen...
nobu (Nobuyoshi Nakada)
02:22 AM Feature #17474: Interpreting constants at compile time
Some time ago I thought of basically the same idea, but in the end decided that constants were the appropriate way to... Dan0042 (Daniel DeLorme)
04:42 PM Bug #15857: <=> の右辺が <=> を実装していない場合の振る舞い
In doing a bit of maintenance work for the ruby-units gem this issue came up. I think there may be some additional m... kolbrich (Kevin Olbrich)
02:53 PM Feature #17187: Add connect_timeout to TCPSocket
You forgot to add the new parameter *connect_timeout* to the return statement of the function **socks_init** in socks... PhobosK (Phobos Kappa)
02:47 PM Feature #17479: Enable to get "--backtrace-limit" value by "$-B"
I am making a library that makes error messages easier to read. Therefore, instead of using `Exception#full_message`,... neg_hide (Hidenori Negishi)
02:05 PM Bug #17484: pry & byebug gems not working properly with Ruby 3.0.0
It works perfectly for me. Did you `gem install pry-byebug`? mame (Yusuke Endoh)
01:41 PM Bug #17484 (Closed): pry & byebug gems not working properly with Ruby 3.0.0
When I try to use pry with version 3, it won't allow me. For example when I type in the command next in the terminal... pabs08 (Pablo Vent)
02:04 PM Feature #17485 (Closed): Keyword argument for timezone in Time.new
Currently, `Time.at` and `Time.now` accept a timezone as a keyword argument, but not `Time.new`.
This means minor ar...
nobu (Nobuyoshi Nakada)
12:38 PM Feature #17473: Make Pathname to embedded class of Ruby
I thought about FileUtils too, but it's required lazily for these two methods.
So I think it might be fine to move o...
Eregon (Benoit Daloze)
12:30 AM Feature #17473: Make Pathname to embedded class of Ruby
Dan0042 (Daniel DeLorme) wrote in #note-4:
> Isn't Pathname dependent on FileUtils though?
Yes. It uses only `Fil...
mame (Yusuke Endoh)
12:35 PM Feature #16378: Support leading arguments together with ...
Agreed it should be in 2.7 (well, I've said since the beginning of this issue :D).
Right now, I consider `...` non...
Eregon (Benoit Daloze)
11:53 AM Feature #17472: HashWithIndifferentAccess like Hash extension
naruse (Yui NARUSE) wrote in #note-11:
> I think it will not fast.
Before we start considering performance trade-...
Eregon (Benoit Daloze)
11:24 AM Feature #17472: HashWithIndifferentAccess like Hash extension
byroot (Jean Boussier) wrote in #note-10:
> > A feature to implement Rails's ActiveSupport::HashWithIndifferentAcces...
naruse (Yui NARUSE)
11:22 AM Feature #17472: HashWithIndifferentAccess like Hash extension
> A feature to implement Rails's ActiveSupport::HashWithIndifferentAccess
Would it be possible to have a "hook" ak...
byroot (Jean Boussier)
03:41 AM Feature #17472: HashWithIndifferentAccess like Hash extension
My intention is
* A feature to implement Rails's ActiveSupport::HashWithIndifferentAccess, not providing HashWithInd...
naruse (Yui NARUSE)
10:41 AM Feature #16476: Socket.getaddrinfo cannot be interrupted by Timeout.timeout
Dan0042 (Daniel DeLorme) wrote in #note-16:
> naruse (Yui NARUSE) wrote in #note-15:
> > It's a long requested series...
naruse (Yui NARUSE)
06:47 AM Bug #17477: Ractor and pp incompatibility
I wrote a similar opinion to Martin Dürst's in #17420. I propose that we comment there (simply because the issue is o... marcandre (Marc-Andre Lafortune)
02:25 AM Bug #17477: Ractor and pp incompatibility
My preference would be to make `require` work everywhere, but always be executed in the main Reactor. That would just... duerst (Martin Dürst)
12:45 AM Bug #17476 (Assigned): 3.0/specifications/default/net-*.gemspec repeats the same files
hsbt (Hiroshi SHIBATA)
12:43 AM Bug #17483 (Rejected): Array#insert is pathologically slow
In short, it is unavoidable.
Currently, an array is internally represented as consecutive memory area. Adding new ...
mame (Yusuke Endoh)

12/27/2020

11:59 PM Bug #17483 (Rejected): Array#insert is pathologically slow
I ran some generic Array method benchmarks:
https://github.com/djberg96/berger_spec/blob/ruby23/bench/core/bench_a...
djberg96 (Daniel Berger)
10:29 PM Feature #17474: Interpreting constants at compile time
(Unassigning, as there is no acceptable proposal yet) marcandre (Marc-Andre Lafortune)
10:28 PM Feature #17474 (Open): Interpreting constants at compile time
tldnr; I feel that the possibility to have "inline shareable constant expressions" could improve expressiveness and a... marcandre (Marc-Andre Lafortune)
04:08 PM Feature #17474 (Rejected): Interpreting constants at compile time
There is no "compile time" for Ruby, and there is no way to execute arbitrary Ruby code at any other time than runtim... Eregon (Benoit Daloze)
01:44 PM Feature #17474: Interpreting constants at compile time
Also to reiterate, this "feature" also applies to string constants.
So ``[["Hello World".reverse * 3"]]`` # => ``"...
jzakiya (Jabari Zakiya)
03:41 AM Feature #17474: Interpreting constants at compile time
I think you're missing my point.
I agree 100% the compiler(s) should do it, but they don't, not across all CRuby v...
jzakiya (Jabari Zakiya)
03:17 AM Feature #17474: Interpreting constants at compile time
> What about something like `Math.sqrt(Math.log(2*PI))`?
Isn't that obviously a constant as well? Or at least `Mat...
chrisseaton (Chris Seaton)
03:08 AM Feature #17474: Interpreting constants at compile time
But is that the case?
Does ``10**6`` get's used at runtime as ``1_000_000``?
What about something like ``Math....
jzakiya (Jabari Zakiya)
02:39 AM Feature #17474: Interpreting constants at compile time
But why do you need to specially mark expressions as constant? `10**6` is already obviously constant (modulo the rede... chrisseaton (Chris Seaton)
02:36 AM Feature #17474: Interpreting constants at compile time
My intent is to ensure the operations needed to create the constant values are performed at compile time (not runtime... jzakiya (Jabari Zakiya)
08:08 PM Feature #17472: HashWithIndifferentAccess like Hash extension
Count me in the "No" camp.
`HashWithIndifferentAccess` has horrible semantics. It may have had a reason to be when...
marcandre (Marc-Andre Lafortune)
07:09 PM Feature #17472: HashWithIndifferentAccess like Hash extension
I'm also against this, but I think a more general-purpose version might be ok. In my code I use a `NormalizedHash` cl... Dan0042 (Daniel DeLorme)
05:13 PM Feature #17472: HashWithIndifferentAccess like Hash extension
I am against adding this in principle. One of the harder things for new Ruby programmers to understand is the differ... jeremyevans0 (Jeremy Evans)
04:14 PM Feature #17472: HashWithIndifferentAccess like Hash extension
I don't think C code will be more efficient for things like https://github.com/rails/rails/blob/914caca2d31bd753f47f9... Eregon (Benoit Daloze)
10:44 AM Feature #17472: HashWithIndifferentAccess like Hash extension
+1, if Rails people really want it, and if it brings performance improvement. We need to experiment, but in principle... mame (Yusuke Endoh)
07:41 PM Feature #16378: Support leading arguments together with ...
@nagachika I would really like to see this backported to 2.7 ... may I ask for the status? Dan0042 (Daniel DeLorme)
07:19 PM Feature #17473: Make Pathname to embedded class of Ruby
mame (Yusuke Endoh) wrote in #note-2:
> Though FileUtils and Tsort are relatively easy to be removed from the depend...
Dan0042 (Daniel DeLorme)
04:16 PM Feature #17473: Make Pathname to embedded class of Ruby
I forgot to mention, +1 from me for Pathname in core, if it's written mostly in Ruby. Eregon (Benoit Daloze)
10:57 AM Feature #17473: Make Pathname to embedded class of Ruby
The proposal lacks one background, so I'd like to add it. Rubygems cannot allow uesrs to choose the version of a gem ... mame (Yusuke Endoh)
06:27 PM Feature #16476: Socket.getaddrinfo cannot be interrupted by Timeout.timeout
naruse (Yui NARUSE) wrote in #note-15:
> It's a long requested series of improvements for HTTP client like read_timeo...
Dan0042 (Daniel DeLorme)
09:45 AM Feature #16476 (Open): Socket.getaddrinfo cannot be interrupted by Timeout.timeout
ioquatix (Samuel Williams) wrote in #note-12:
> * I'm not convinced that getaddrinfo_a is a good idea, it has a user-...
naruse (Yui NARUSE)
05:30 PM Bug #17420: Unsafe mutation of $" when doing non-RubyGems require in Ractor
Maybe a solution would be to do all `require` in the main Ractor?
Something like whenever a new Ractor is created,...
marcandre (Marc-Andre Lafortune)
05:03 PM Bug #17481 (Closed): Keyword arguments change value after calling super without arguments in Ruby 3.0
Applied in changeset commit:git|c8010fcec016ee89aa0c45fe31094b2db0023e5c.
----------
Dup kwrest hash when merging ot...
nobu (Nobuyoshi Nakada)
01:56 PM Bug #17481: Keyword arguments change value after calling super without arguments in Ruby 3.0
Bisect resulted in commit:d2c41b1bff1f3102544bb0d03d4e82356d034d33. nobu (Nobuyoshi Nakada)
12:40 PM Bug #17481 (Closed): Keyword arguments change value after calling super without arguments in Ruby 3.0
There seems to be a bug in Ruby 3.0 regarding keyword arguments and calling super without arguments, where the splatt... janko (Janko Marohnić)
04:24 PM Feature #17470: Introduce non-blocking `Timeout.timeout`
ioquatix (Samuel Williams) wrote in #note-2:
> Actually, that's not necessarily true, even for the current implement...
Eregon (Benoit Daloze)
06:44 AM Feature #17470: Introduce non-blocking `Timeout.timeout`
It appears that `Timeout.timeout` does not work when a Fiber scheduler is set, regardless of the implementation, even... jsc (Justin Collins)
04:20 PM Bug #17477: Ractor and pp incompatibility
I doubt `require` can ever be supported in a Ractor, see #17420.
It seems there is no good solution for this, and ...
Eregon (Benoit Daloze)
08:14 AM Bug #17477 (Closed): Ractor and pp incompatibility
```ruby
r = Ractor.new do
pp("foobar")
end
Ractor.select(r)
```
fails with:
```
#<Thread:0x00007f973414...
kirs (Kir Shatrov)
04:03 PM Feature #17479: Enable to get "--backtrace-limit" value by "$-B"
What's the use case?
I think we should encourage to use `Exception#full_message` (instead of manually formatting back...
Eregon (Benoit Daloze)
11:06 AM Feature #17479: Enable to get "--backtrace-limit" value by "$-B"
+1 if we can provide `-B` option too. mame (Yusuke Endoh)
10:03 AM Feature #17479 (Closed): Enable to get "--backtrace-limit" value by "$-B"
# Background
There is currently no way to get "--backtrace-limit" value when outputing backtraces from my script, ...
neg_hide (Hidenori Negishi)
02:28 PM Bug #17482 (Assigned): Ractor.receive doesnt accept Ctrl+C under some condition
Thank you for the report, I could reproduce it. ko1 (Koichi Sasada)
01:41 PM Bug #17482 (Closed): Ractor.receive doesnt accept Ctrl+C under some condition
When I run this script, Ctrl+C doesn't work.
Waiting forever on #4 is fine, but I think Ctrl+C should work.
``` r...
riskwa (riskwa anon)
12:42 PM Misc #17480: DevelopersMeeting20210113Japan
* [Feature #17327] The `Queue` constructor should take an initial set of items (chrisseaton)
* This simple feature ...
chrisseaton (Chris Seaton)
11:08 AM Misc #17480: DevelopersMeeting20210113Japan
* [Feature #17472] `HashWithIndifferentAccess` like `Hash` extension (mame)
* It is a good idea for Ruby 3.1 to pro...
mame (Yusuke Endoh)
10:17 AM Misc #17480 (Closed): DevelopersMeeting20210113Japan
# The next dev meeting
**Date: 2021/01/13 13:00-17:00**
Place/Sign-up/Agenda/Log: https://github.com/ruby/dev-mee...
mame (Yusuke Endoh)
10:24 AM Feature #16989: Sets: need ♥️
FYI: SortedSet has been extracted out from set.rb since 3.0. So there is no longer the dependency problem. mame (Yusuke Endoh)
10:17 AM Misc #17346 (Closed): DevelopersMeeting20201210Japan
mame (Yusuke Endoh)
09:25 AM Bug #17220 (Closed): Rails Active Job integration test fails with Ruby 3.0.0 since 2038cc6cab6ceeffef3ec3a765c70ae684f829ed
naruse (Yui NARUSE)
09:09 AM Bug #17478 (Closed): Ruby3.0 is slower than Ruby2.7.2 when parsing a large CSV file
Ruby3.0 is around 10%-20% slower than Ruby2.7.2 when parsing and aggregating a large CSV file.
The script is here:...
okkez (okkez _)
01:28 AM Bug #17476 (Closed): 3.0/specifications/default/net-*.gemspec repeats the same files
I guess net-* generated gemspec during ruby build assumes that the net/ directory only contains its files (as it happ... luizluca (Luiz Angelo Daros de Luca)

12/26/2020

10:29 PM Feature #17370: Introduce non-blocking `Addrinfo.getaddrinfo` and related methods.
In order to implement this hook, we need to expose the C interface to extensions:
https://github.com/ruby/ruby/pul...
ioquatix (Samuel Williams)
09:40 PM Feature #17474: Interpreting constants at compile time
Why do we need a new syntax to do this? Couldn't the compiler already work out `10**6` at compile-time, and invalidat... chrisseaton (Chris Seaton)
04:36 PM Feature #17474 (Open): Interpreting constants at compile time
Ruby has borrowed concepts/idioms from allot of languages.
I am proposing borrowing a feature from Forth to provid...
jzakiya (Jabari Zakiya)
09:36 PM Feature #17470: Introduce non-blocking `Timeout.timeout`
> Timeout.timeout must be able to interrupt non-IO operations as well.
Actually, that's not necessarily true, even...
ioquatix (Samuel Williams)
12:48 PM Feature #17470: Introduce non-blocking `Timeout.timeout`
How would that work, what would be a sample implementation of the hook?
`Timeout.timeout` must be able to interrupt ...
Eregon (Benoit Daloze)
07:42 AM Feature #17470 (Closed): Introduce non-blocking `Timeout.timeout`
In this bug report, user complained that `Timeout.timeout` does not work correctly with scheduler: https://github.com... ioquatix (Samuel Williams)
06:57 PM Feature #17475 (Rejected): Implement arguments forwarding for blocks
In a gem, I create a bunch of initializer shortcuts as follows:
# Shortcut initializers
CLASSES.each do |...
svoop (Sven Schwyn)
02:49 PM Feature #16005: A variation of Time.iso8601 that can parse yyyy-MM-dd HH:mm:ss
naruse (Yui NARUSE) wrote in #note-11:
> * Time#sql_timestamp for serializer
Time#sql_timestamp needs to conver...
akr (Akira Tanaka)
02:16 PM Feature #16005: A variation of Time.iso8601 that can parse yyyy-MM-dd HH:mm:ss
What about making `Time.new(string)` to work more?
```ruby
Time.new("2020-12-25 17:09:16 +0900") #=> 2020-01-01 0...
nobu (Nobuyoshi Nakada)
01:42 PM Feature #16005: A variation of Time.iso8601 that can parse yyyy-MM-dd HH:mm:ss
kamipo says Rails 6.1 uses their RDB driver's implementation to decode serialized string into Time object.
https://t...
naruse (Yui NARUSE)
11:07 AM Feature #16005: A variation of Time.iso8601 that can parse yyyy-MM-dd HH:mm:ss
We (akr, naruse and matsuda) discussed this issue.
- implementing this method, Time.sql_timestamp(string), in time.c...
akr (Akira Tanaka)
11:00 AM Feature #16005: A variation of Time.iso8601 that can parse yyyy-MM-dd HH:mm:ss
https://pubs.opengroup.org/onlinepubs/9695959099/toc.pdf
P.42 says " If the application or the user cannot infer a ti...
naruse (Yui NARUSE)
01:24 PM Bug #17469: Ruby 3.0.0 do not install cleanly from source on MacOS 10.12.6
Thanks for both of the responses. I'm using the latest supported compiler/Xcode.
Ruby needs a wiki page explaining w...
jasnow (Al Snow)
03:59 AM Bug #17469: Ruby 3.0.0 do not install cleanly from source on MacOS 10.12.6
Seems a compiler related issue.
Try more recent Xcode.
nobu (Nobuyoshi Nakada)
01:23 AM Bug #17469 (Rejected): Ruby 3.0.0 do not install cleanly from source on MacOS 10.12.6
MacOS 10.12.6 is too old environment. We couldn't care it.
hsbt (Hiroshi SHIBATA)
12:56 PM Feature #17471: send_if method for improved conditional chaining
hi.
How about using `#tap` + `break` ?
```ruby
# Proposal
puts number.send_if(:*, 2) {|obj| obj > 5}.send(:-, 1...
osyo (manga osyo)
10:37 AM Feature #17471 (Open): send_if method for improved conditional chaining
# Background
Method chaining is very important to many Ruby users, since everything in Ruby is an object.
It al...
ozu (Fabio Pesari)
12:53 PM Feature #17472: HashWithIndifferentAccess like Hash extension
Isn't a C extension in a gem enough?
Also what specifically would writing it in C instead of Ruby gain?
Intuitive...
Eregon (Benoit Daloze)
11:06 AM Feature #17472: HashWithIndifferentAccess like Hash extension
❤️ matsuda (Akira Matsuda)
11:04 AM Feature #17472 (Rejected): HashWithIndifferentAccess like Hash extension
Rails has [ActiveSupport::HashWithIndifferentAccess](https://api.rubyonrails.org/classes/ActiveSupport/HashWithIndiff... naruse (Yui NARUSE)
12:45 PM Feature #17473: Make Pathname to embedded class of Ruby
If we do so, could we actually define most of Pathname in Ruby, and not in C?
Right now, https://github.com/ruby/r...
Eregon (Benoit Daloze)
12:00 PM Feature #17473 (Closed): Make Pathname to embedded class of Ruby
pathname is one of most useful utility class of Ruby. I'm happy to use Pathname without require it.
Any thought?
hsbt (Hiroshi SHIBATA)
07:40 AM Feature #17369: Introduce non-blocking `Process.wait`, `Kernel.system` and related methods.
We introduced experimental feature and implemented non-blocking hook for Ruby 3.
More work is required here, but w...
ioquatix (Samuel Williams)
04:26 AM Bug #17373: Ruby 3.0 is slower at Discourse bench than Ruby 2.7
In my early benchmarks:
## Async
### ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-darwin19]
```
Wrapper#...
ioquatix (Samuel Williams)
01:27 AM Feature #13368 (Closed): Improve performance of Array#sum with float elements
https://github.com/ruby/ruby/pull/1555 was merged at https://github.com/ruby/ruby/commit/2d001003e4b3a6c20ead09ed54b6... hsbt (Hiroshi SHIBATA)
 

Also available in: Atom