Project

General

Profile

Activity

From 05/13/2020 to 05/19/2020

05/19/2020

09:41 PM Bug #16852: Refining Enumerable fails with ruby 2.7
I can confirm this bug. It was introduced in commit:a0579f3606561a74e323f6193b9504c06845236c, which fixed prepending... jeremyevans0 (Jeremy Evans)
08:15 PM Feature #16848: Allow callables in $LOAD_PATH
> In other words should the "omitted extension" handling be done inside or outside of the resolver?
In my opinion ...
byroot (Jean Boussier)
03:40 PM Feature #16848: Allow callables in $LOAD_PATH
I really love this idea; it's simple yet powerful. I do have a few questions though.
1) How would this API handle .r...
Dan0042 (Daniel DeLorme)
01:09 PM Revision feb8dc55 (git): Include wchar.h before wrapping memchr
On mingw, wmemcpy() is defined as an inline function using
memcpy(), and the static inline wrapper causes a warning.
...
nobu (Nobuyoshi Nakada)
09:45 AM Feature #16891: Restore Positional Argument to Keyword Conversion
Instead of restoring all positional hash argument to keyword argument conversion, how about adding new implicit maybe... kamipo (Ryuta Kamizono)
03:56 AM Feature #16891: Restore Positional Argument to Keyword Conversion
> Assuming we did not remove ruby2_keywords until a equally efficient replacement exists (which I'm assuming will be ... sam.saffron (Sam Saffron)
03:19 AM Feature #16891: Restore Positional Argument to Keyword Conversion
Dan0042 (Daniel DeLorme) wrote in #note-12:
> An idea: it may be worth sub-dividing "Positional Hash Argument to Key...
jeremyevans0 (Jeremy Evans)
01:43 AM Feature #16891: Restore Positional Argument to Keyword Conversion
An idea: it may be worth sub-dividing "Positional Hash Argument to Keyword Argument Conversion" into
### a) Overflow...
Dan0042 (Daniel DeLorme)
01:07 AM Feature #16891: Restore Positional Argument to Keyword Conversion
sam.saffron (Sam Saffron) wrote in #note-10:
> I agree many gems already work, but we have built ourselves a time bom...
jeremyevans0 (Jeremy Evans)
12:21 AM Feature #16891: Restore Positional Argument to Keyword Conversion
I agree many gems already work, but we have built ourselves a time bomb here.
`ruby2_keywords` is certainly going to...
sam.saffron (Sam Saffron)
08:49 AM Bug #16780 (Closed): Net::FTP PUT command issuing Net::ReadTimeout too quickly
Applied in changeset commit:git|5e81e8675a020ecd493620a4ff38db8fcf4b972a.
----------
Ignore exceptions when closing ...
shugo (Shugo Maeda)
08:45 AM Bug #16780: Net::FTP PUT command issuing Net::ReadTimeout too quickly
koshigoe (Masataka SUZUKI) wrote in #note-3:
> The `Net::FTP#close` suppresses exception about `Socket#shutdown` and...
shugo (Shugo Maeda)
08:48 AM Revision 5e81e867 (git): Ignore exceptions when closing data connections [Bug #16780]
Patch by koshigoe (Masataka SUZUKI). Thanks! shugo (Shugo Maeda)
06:22 AM Revision 1f063abb (git): add static modifier to rb_ary_aref2 func
S_H_ (Shun Hiraoka)
03:59 AM Feature #16897: General purpose memoizer in Ruby 3 with Ruby 2 performance
Alternative proposal
```ruby
def bar(*args, **kwargs)
end
def foo(*args)
bar(*args)
args
end
args = foo(1, ...
sam.saffron (Sam Saffron)
02:47 AM Feature #16897: General purpose memoizer in Ruby 3 with Ruby 2 performance
Expanded proposal:
```ruby
def foo(...args)
bar(...)
args
end
args = foo(1, 2, {1 => 2}, a: 7, b: 9)
args.c...
sam.saffron (Sam Saffron)
03:54 AM Revision 79292b30 (git): Make builtin loader sources by Ripper
nobu (Nobuyoshi Nakada)
03:16 AM Feature #16791: Shortcut for Process::Status.exitstatus
nobu (Nobuyoshi Nakada) wrote in #note-7:
> That executes `exit(nil)` and results in `TypeError`.
Ah, interesting, I...
Dan0042 (Daniel DeLorme)
02:02 AM Feature #16898: Modify the syntax of -> lambda expressions in ruby3
I get your point. But to my eyes, `==>` is even uglier. It's easily confused with other operators which do not corres... matz (Yukihiro Matsumoto)

05/18/2020

11:57 PM Revision 6efb9fe0 (git): Allow references stored in the VM stack to move
We can update these references too, so lets allow them to move. tenderlovemaking (Aaron Patterson)
10:51 PM Bug #16811 (Closed): [NOTE] You may have encountered a bug in the Ruby interpreter or extension libraries. Bug reports are welcome. For details: http://www.ruby-lang.org/bugreport.html This application has requested the Runtime to terminate it in an unusual way. Please cont
jeremyevans0 (Jeremy Evans)
10:47 PM Bug #16831 (Closed): Running `Pathname#glob` with `File::FNM_DOTMATCH` option loses `.` and `..`
jeremyevans0 (Jeremy Evans)
10:46 PM Bug #16834 (Closed): rb_profile_frame_classpath only recognize class singleton methods, not module singleton methods
jeremyevans0 (Jeremy Evans)
10:44 PM Feature #16838: Enumerator::ArithmeticSequence missing allocator for #clone and #dup
`ArithmeticSequence.new` and `ArithmeticSequence.allocate` being undefined was definitely a deliberate change in comm... jeremyevans0 (Jeremy Evans)
10:37 PM Bug #16840: Decrease in Hash#[]= performance with object keys
Running your example code, I see a speedup between 2.5 and 2.6, but a slowdown in 2.7 and in master.
```
ruby 2.5...
jeremyevans0 (Jeremy Evans)
05:32 PM Misc #16775: DevelopersMeeting20200514Japan
mame wrote:
> [...] We'll hold an extra meeting at 26th.
\o/
shevegen (Robert A. Heiler)
03:59 PM Revision 9ee66d2b (git): * 2020-05-19 [ci skip]
git[bot]
03:58 PM Revision 6c1a51da (git): Skip some tests if extracted from tarball (again)
Fix up previous commit
ref
9aa75795f9f438d5c874d8e418c3c7cdd63024fa,
38002a8adbd98266426940d829429a30af0622a4, and
0...
znz (Kazuhiro NISHIYAMA)
03:41 PM Feature #16894: Integer division for Ruby 3
I am not necessarily against such a change per se, but I think it would come with a
high cost right now. It should pe...
shevegen (Robert A. Heiler)
02:45 PM Feature #16891: Restore Positional Argument to Keyword Conversion
sam.saffron (Sam Saffron) wrote in #note-8:
> To me the big question @matz needs to answer is "do we want gems to wor...
jeremyevans0 (Jeremy Evans)
07:10 AM Feature #16891: Restore Positional Argument to Keyword Conversion
To me the big question @matz needs to answer is "do we want gems to work on both 3.X and 2.X?"
Personally I 100% su...
sam.saffron (Sam Saffron)
02:18 PM Revision 1f011ccc (git): Skip some tests if extracted from tarball (again)
ref 9aa75795f9f438d5c874d8e418c3c7cdd63024fa znz (Kazuhiro NISHIYAMA)
12:25 PM Revision 185f49f9 (git): Fixed RDoc formatting [ci skip]
nobu (Nobuyoshi Nakada)
08:42 AM Revision cf31e980 (git): Fix a typo [ci skip]
znz (Kazuhiro NISHIYAMA)
08:36 AM Feature #16898: Modify the syntax of -> lambda expressions in ruby3
Maybe my expression has some problems, sorry, it has been modified, in fact, what I want to say is that the existing ... jackmaple (maple jack)
01:19 AM Feature #16898: Modify the syntax of -> lambda expressions in ruby3
Not going to join the ugliness debate but I doubt if the proposed new syntax technically possible. It would be much ... shyouhei (Shyouhei Urabe)
06:42 AM Revision 3bada920 (git): Simplify maybe_special_const_class_p
k0kubun (Takashi Kokubun)
06:38 AM Revision b16a2aa9 (git): Reduce code size for rb_class_of
by inlining only hot path.
=== mame/optcarrot ===
$ benchmark-driver -v --rbenv 'before --jit;after --jit' benchmar...
k0kubun (Takashi Kokubun)
05:39 AM Revision afd84c58 (git): Document how to enable USDT method entry/exit tracepoints
Avdi Grimm
05:21 AM Revision 0e5a58b6 (git): Mark some JIT-ed functions as COLDFUNC
Put some functions which are unlikely to be called on JIT in
.text.unlikely section to improve hot code's locality.
k0kubun (Takashi Kokubun)
03:42 AM Revision c0cd474d (git): Prefer dedicated enum over int
nobu (Nobuyoshi Nakada)
03:40 AM Revision acf61e85 (git): * 2020-05-18 [ci skip]
git[bot]
03:28 AM Revision b02c10b2 (git): built-in method call must not have a receiver
nobu (Nobuyoshi Nakada)
01:44 AM Feature #16899: Add method `Array#both_end`
Thanks for feedbacks.
shan (Shannon Skipper) wrote in #note-1:
> I think #both_ends reads better in the plural fo...
S_H_ (Shun Hiraoka)
12:59 AM Feature #16899: Add method `Array#both_end`
Why not start as a gem? There are things not possible without core changes, but it seems this requested feature need... shyouhei (Shyouhei Urabe)
12:38 AM Misc #16805: Coroutine's license is unclear
Looks good to me. shyouhei (Shyouhei Urabe)
12:21 AM Bug #16780: Net::FTP PUT command issuing Net::ReadTimeout too quickly
I'm facing the same problem.
The `Net::FTP#close` suppresses exception about `Socket#shutdown` and `Socket#read`.
...
koshigoe (Masataka SUZUKI)

05/17/2020

11:04 PM Feature #16898: Modify the syntax of -> lambda expressions in ruby3
matz (Yukihiro Matsumoto) wrote in #note-3:
> "Ugliness is in the eye of the beholder". Could you explain why the cur...
jackmaple (maple jack)
09:50 PM Feature #16898: Modify the syntax of -> lambda expressions in ruby3
matz (Yukihiro Matsumoto) wrote in #note-3:
> "Ugliness is in the eye of the beholder".
``` ruby
-> (;x) { x = 1...
0x81000000 (/ /)
06:03 PM Feature #16898: Modify the syntax of -> lambda expressions in ruby3
To me, this
``` ruby
-> lightness { lightness }
```
Is prettier than
```ruby
lambda { |lightness| lightne...
shan (Shannon Skipper)
07:55 AM Feature #16898: Modify the syntax of -> lambda expressions in ruby3
"Ugliness is in the eye of the beholder". Could you explain why the current syntax is ugly?
In any case, if we cha...
matz (Yukihiro Matsumoto)
06:04 AM Feature #16898 (Open): Modify the syntax of -> lambda expressions in ruby3
Hello ruby team.
Can we modify the syntax of lambda expressions in ruby3?
The current definition of lambda expressi...
jackmaple (maple jack)
09:21 PM Feature #16899: Add method `Array#both_end`
I think `ary.values_at(0,-1)` does the job pretty well. Dan0042 (Daniel DeLorme)
06:33 PM Feature #16899: Add method `Array#both_end`
I think #first_last would be a better name as well; primary reason being that we
already have #first and #last.
I...
shevegen (Robert A. Heiler)
05:54 PM Feature #16899: Add method `Array#both_end`
I think #both_ends reads better in the plural form. Or #first_last harkens to #min_max and is unambiguous. Other opti... shan (Shannon Skipper)
04:51 PM Feature #16899 (Open): Add method `Array#both_end`
Add a method that gets both the first and the last elements of an array: `Array#both_end`.
## Current Status
So...
S_H_ (Shun Hiraoka)
06:57 PM Feature #16894: Integer division for Ruby 3
I'd really rather not deal with Floats unless absolutely necessary.
Raku (Perl 6) and Clojure's default division t...
shan (Shannon Skipper)
04:04 PM Feature #16891: Restore Positional Argument to Keyword Conversion
IMHO, Update from ruby 2 to ruby 3, it should be a BIG major version, it was expected to breaking some things, right?... zw963 (Wei Zheng)
03:44 AM Feature #16891: Restore Positional Argument to Keyword Conversion
> You could argue that we could remove non-symbol keyword arguments in 2.7.2, but I think that change is way too larg... marcandre (Marc-Andre Lafortune)
12:01 PM Revision fa7addeb (git): Fix typos [ci skip]
znz (Kazuhiro NISHIYAMA)
10:26 AM Revision 9f18b139 (git): [ruby/reline] Add a test of autowrap for yamatanooroti
https://github.com/ruby/reline/commit/38676ba8c2 aycabta (aycabta .)
10:26 AM Revision f56e05fa (git): [ruby/reline] Remove unnecessary TODO commnet
https://github.com/ruby/reline/commit/23c67fb7b3 aycabta (aycabta .)
10:26 AM Revision fc2a121c (git): [ruby/reline] If history-size isn't numeric, it should be 500
https://tiswww.case.edu/php/chet/readline/readline.html#IDX25
> If an attempt is made to set history-size to a non-n...
aycabta (aycabta .)
10:26 AM Revision dc0cdf43 (git): [ruby/irb] Version 1.2.4
https://github.com/ruby/irb/commit/d7c5fb0273 aycabta (aycabta .)
10:03 AM Revision bd8aa047 (git): Removed useless implementation tests
nobu (Nobuyoshi Nakada)
09:34 AM Bug #16852: Refining Enumerable fails with ruby 2.7
hi.
Thanks for issues :)
I got the same error when `include M` after `refine M`.
```ruby
module M; end
class...
osyo (manga osyo)
09:10 AM Revision dc57136f (git): Removed PRNG implementation details from the test
nobu (Nobuyoshi Nakada)
09:01 AM Revision 6e7551a5 (git): * 2020-05-17 [ci skip]
git[bot]
08:59 AM Bug #16680: Symlink folder in $LOAD_PATH does not work with autoload
Eregon (Benoit Daloze) wrote in #note-3:
> One issue is that `$LOAD_PATH` entries might not necessarily exist.
So...
zw963 (Wei Zheng)
07:34 AM Revision 968d6df4 (git): Added --test-order=nosort option
Run tests in the order given in the command line. nobu (Nobuyoshi Nakada)

05/16/2020

06:21 PM Feature #16891: Restore Positional Argument to Keyword Conversion
Dan0042 (Daniel DeLorme) wrote in #note-1:
> IMHO there's one consideration that's more important than all others. T...
jeremyevans0 (Jeremy Evans)
08:37 AM Revision 2c3c6c96 (git): Defer initialization
Defer initialization of extension libraries, loading prelude files
and requiring files, and skip if dump options are ...
nobu (Nobuyoshi Nakada)
08:36 AM Revision 9e67a38f (git): Fallback to built-in UTF-8 for miniruby
Source code encoding is defaulted to UTF-8 now too. nobu (Nobuyoshi Nakada)
08:35 AM Revision 8c3a60df (git): leakchecker.rb: show test name
When multiple autoclose IO objects are leaked too. nobu (Nobuyoshi Nakada)
08:28 AM Feature #16781: alias :fold :reduce
shan (Shannon Skipper) wrote in #note-2:
> I was surprised to hear this, since I think of "reduce" as most popular.
...
0x81000000 (/ /)
08:20 AM Misc #16775: DevelopersMeeting20200514Japan
We've hold a dev-meeting at 14th, but could go through only half topics. We'll hold an extra meeting at 26th.
Log...
mame (Yusuke Endoh)
06:30 AM Feature #16894: Integer division for Ruby 3
The following is meant to be an objective assessment of the proposal, taking no stand on approval, or not.
The pro...
jzakiya (Jabari Zakiya)
03:26 AM Feature #16894: Integer division for Ruby 3
Just FYI, I've made these patches for division recently.
https://github.com/ruby/ruby/compare/master...nobu:feature/...
nobu (Nobuyoshi Nakada)
01:43 AM Feature #16894: Integer division for Ruby 3
fwiw, array indexing code likely wouldn't need changed.
``` ruby
a = ["zero", "one", "two"]
a[1/2] # "zero"
a...
ankane (Andrew Kane)
01:35 AM Feature #16897: General purpose memoizer in Ruby 3 with Ruby 2 performance
Yes I can get this to work with hacks like this:
```ruby
def memoize_26(method_name)
cache = {}
uncached = "#{m...
sam.saffron (Sam Saffron)
12:25 AM Feature #16897: General purpose memoizer in Ruby 3 with Ruby 2 performance
You should be able to have similar performance by using `ruby2_keywords` and keeping the method definition the same. ... jeremyevans0 (Jeremy Evans)
12:14 AM Feature #16897 (Open): General purpose memoizer in Ruby 3 with Ruby 2 performance
```ruby
require 'benchmark/ips'
module Memoizer
def memoize_26(method_name)
cache = {}
uncached = "#{met...
sam.saffron (Sam Saffron)

05/15/2020

11:51 PM Misc #16895: Request for cooperation: Try your applications/libraries with master branch and debug options
Make first paragraph read a bit better. ioquatix (Samuel Williams)
11:47 PM Misc #16895: Request for cooperation: Try your applications/libraries with master branch and debug options
Updated from latest edits. ioquatix (Samuel Williams)
02:36 PM Misc #16895: Request for cooperation: Try your applications/libraries with master branch and debug options
Samuel and Eregon rewrote a description. Thank you! ko1 (Koichi Sasada)
09:13 AM Misc #16895 (Closed): Request for cooperation: Try your applications/libraries with master branch and debug options
## Summary
If you maintain a Ruby application or library, please consider testing with the Ruby `master` branch, i...
ko1 (Koichi Sasada)
10:08 PM Feature #16894: Integer division for Ruby 3
IMHO this is completely unrealistic for compatibility, and very clearly not worth breaking all the code (even more so... Eregon (Benoit Daloze)
05:39 PM Feature #16894: Integer division for Ruby 3
> It'd be great if division in Ruby matched what we all learned in school.
In my time it was C++ or Java at school...
NuriYuri (Youri Nouri)
03:34 PM Feature #16894: Integer division for Ruby 3
I was just pointing out that other languages recognized this issue and only fairly recently chose to make syntax chan... jzakiya (Jabari Zakiya)
09:52 AM Feature #16894: Integer division for Ruby 3
Here's a good read on the thoughts and motivation behind Python changing it: https://www.python.org/dev/peps/pep-0238/ ankane (Andrew Kane)
09:22 AM Feature #16894: Integer division for Ruby 3
jzakiya (Jabari Zakiya) wrote in #note-7:
> Ruby already has ``a.div b`` for explicit integer division.
Thanks, I ha...
sawa (Tsuyoshi Sawada)
08:43 AM Feature #16894: Integer division for Ruby 3
jzakiya (Jabari Zakiya) wrote in #note-7:
> Ruby already has ``a.div b`` for explicit integer division.
Also `a.q...
nobu (Nobuyoshi Nakada)
06:38 AM Feature #16894: Integer division for Ruby 3
Ruby already has ``a.div b`` for explicit integer division.
Nim also uses ``a div b`` for integer division.
Cry...
jzakiya (Jabari Zakiya)
04:39 AM Feature #16894: Integer division for Ruby 3
Thanks for the responses!
Re 0.5 vs 1/2r: In my experience, developers use floats way more than rationals.
Re "...
ankane (Andrew Kane)
04:04 AM Feature #16894: Integer division for Ruby 3
What would you do when you want integer division? Have you thought of it? ~~`(a / b).round`~~ `(a / b).floor`is not a... sawa (Tsuyoshi Sawada)
03:43 AM Feature #16894: Integer division for Ruby 3
> 1) Why 0.5 and not 1/2r
I'm for 1/2r.
naruse (Yui NARUSE)
03:42 AM Feature #16894: Integer division for Ruby 3
I would bet that a majority of Rubyists would agree that `1/2 == 0` is an unfortunate choice. Either `0.5` or `1/2r` ... marcandre (Marc-Andre Lafortune)
03:29 AM Feature #16894: Integer division for Ruby 3
Sorry, for the edits, first issue! Changed normal to floating point. ankane (Andrew Kane)
03:20 AM Feature #16894 (Assigned): Integer division for Ruby 3
Hi Ruby team,
It'd be great if division in Ruby matched what we all learned in school.
``` ruby
1 / 2 == 0.5
...
ankane (Andrew Kane)
09:14 PM Revision cc525d76 (git): [ci skip] Enhanced rdoc for String.new (#3067)
* Per @nobu review
* Enhanced rdoc for String.new
* Respond to review
burdettelamar (Burdette Lamar)
09:12 PM Revision 24739c62 (git): [ci skip] Rdoc enhancements for Array (#3063)
* Per @nobu review
* Rdoc enhancements for Array
* Responses to review
burdettelamar (Burdette Lamar)
09:12 PM Revision a3cd0152 (git): * 2020-05-16 [ci skip]
git[bot]
09:11 PM Revision d4698079 (git): [CI skip] Enhance rdoc intro for Hash (#3056)
* Per @nobu review
* [CI skip] Enhance rdoc intro for Hash
* Tweak call-seq for Hash.new
* Tweak call-seq for Hash...
burdettelamar (Burdette Lamar)
08:26 PM Feature #16791: Shortcut for Process::Status.exitstatus
Dan0042 (Daniel DeLorme) wrote in #note-6:
> `exec` only works as a tail-call at the end of the script. Most of the ...
0x81000000 (/ /)
07:38 PM Bug #16896 (Closed): MakeMakefile methods should be private
Right now they are public, and since mkmf.rb does `include MakeMakefile` it defines a lot of public methods on all ob... Eregon (Benoit Daloze)
03:06 PM Feature #16786: Light-weight scheduler for improved concurrency.
Hi, I am a Ruby user that would probably vote for
``` ruby
Fiber do
end
```
only if I see the poll back then.
...
midnight (Sarun R)
03:10 AM Feature #16786: Light-weight scheduler for improved concurrency.
@ioquatix I was well represented by Martin-sensei (@duerst).
The fiber created by `Fiber() do ...end` does context-s...
matz (Yukihiro Matsumoto)
02:41 PM Bug #16853: calling bla(hash, **kw) with a string-based hash passes the strings into **kw (worked < 2.7)
@sylvain.joyeux
Hi! I read [your comment in the discuss RubyOnRails](https://discuss.rubyonrails.org/t/new-2-7-3-...
mame (Yusuke Endoh)
11:20 AM Feature #16891: Restore Positional Argument to Keyword Conversion
First of all, I'm really sorry for bothering many people about this change. And I'd like to really thank you @jeremy... mame (Yusuke Endoh)
04:03 AM Feature #16891: Restore Positional Argument to Keyword Conversion
Dan0042 (Daniel DeLorme) wrote in #note-1:
> Also I believe there's a fifth aspect that deserves consideration for r...
marcandre (Marc-Andre Lafortune)
03:45 AM Feature #16891: Restore Positional Argument to Keyword Conversion
Dan0042 (Daniel DeLorme) wrote in #note-1:
> ## Non-Symbol Keyword Argument
>
> Previously one could trust that `foo...
sawa (Tsuyoshi Sawada)
01:23 AM Feature #16891: Restore Positional Argument to Keyword Conversion
IMHO there's one consideration that's more important than all others. The following code _must_ work in ruby 2.8/3.0
...
Dan0042 (Daniel DeLorme)
08:45 AM Revision a9b2014d (git): Fix a typo [ci skip]
znz (Kazuhiro NISHIYAMA)
07:35 AM Bug #16854 (Closed): Using (...) when the method name is a keyword generates error
Applied in changeset commit:git|71c166e11e761dcaaa943f9b94da38f86ada1bdb.
----------
Fixed argument forwarding in re...
nobu (Nobuyoshi Nakada)
06:00 AM Bug #16854: Using (...) when the method name is a keyword generates error
It results in a syntax error, right?
https://github.com/ruby/ruby/pull/3112
nobu (Nobuyoshi Nakada)
05:59 AM Revision 71c166e1 (git): Fixed argument forwarding in reserved word method [Bug #16854]
nobu (Nobuyoshi Nakada)
05:54 AM Revision e89b8750 (git): fix for multi-run test.
TestAutoload#test_source_location can't run multiple test-run so
that use assert_separately().
repro command:
make y...
ko1 (Koichi Sasada)
02:12 AM Misc #16893 (Closed): Create Rosetta Code page on website
I've been doing some [Rosetta Code](http://rosettacode.org/wiki/Rosetta_Code) tasks recently, and thought it would be... jzakiya (Jabari Zakiya)
01:26 AM Bug #16892 (Closed): Reconsider the test directory name for scheduler
Applied in changeset commit:git|6fa8455ebbf457e5d8752295a8d6380146636c0c.
----------
Move `test/scheduler` -> `test/...
Anonymous
12:22 AM Bug #16892: Reconsider the test directory name for scheduler
I am happy to move it to `test/fiber`. ioquatix (Samuel Williams)
12:14 AM Bug #16892 (Closed): Reconsider the test directory name for scheduler
`test/scheduler` is broke the convention of test directory. We use only `class` or `module` name excepts `ruby` and `... hsbt (Hiroshi SHIBATA)
01:26 AM Revision 6fa8455e (git): Move `test/scheduler` -> `test/fiber` [Bug #16892][ruby-core:98366].
Samuel Williams
12:08 AM Misc #16890 (Rejected): [Ruby Keywords and Ruby 3.0 release] Feedback to matz and the ruby core team
You should comment it to https://discuss.rubyonrails.org/t/new-2-7-3-0-keyword-argument-pain-point/
We are going t...
hsbt (Hiroshi SHIBATA)

05/14/2020

09:00 PM Feature #16851: Ruby hashing algorithm could be improved using Tabulation Hashing
@byroot
> I'd suggest running the hash related benchmarks included in ruby's repo: https://github.com/ruby/ruby/tree...
ana06 (Ana Maria Martinez Gomez)
08:30 PM Feature #16891 (Rejected): Restore Positional Argument to Keyword Conversion
Based on feedback from Rails-core, Matz has decided to postpone full separation of keyword and positional arguments (... jeremyevans0 (Jeremy Evans)
07:28 PM Misc #16890: [Ruby Keywords and Ruby 3.0 release] Feedback to matz and the ruby core team
The discussion at https://discuss.rubyonrails.org/t/new-2-7-3-0-keyword-argument-pain-point/74980/2
is already quite...
shevegen (Robert A. Heiler)
07:20 PM Misc #16890 (Rejected): [Ruby Keywords and Ruby 3.0 release] Feedback to matz and the ruby core team
As some folks may already have read/heard, matz is asking for feedback.
He specifically asked this in regards to t...
shevegen (Robert A. Heiler)
04:23 PM Bug #16787: [patch] allow Dir.home to work for non-login procs when $HOME not set
Attaching version "v7-rebased-2020-05-14" of the patch. This version corresponds to the **rebase-only** changes pushe... salewski (Alan Salewski)
04:22 PM Revision 39365b46 (git): Merge pull request #3047 from mame/suppress-backtrace
Add `--suppress-backtrace=num` option to limit the backtrace length mame (Yusuke Endoh)
04:22 PM Revision 531e4a35 (git): * 2020-05-15 [ci skip]
git[bot]
04:21 PM Revision 7f86ad61 (git): test/scheduler: suppress warnings
https://rubyci.s3.amazonaws.com/debian/ruby-master/log/20200514T123004Z.log.html.gz
```
/home/chkbuild/chkbuild/tmp/...
mame (Yusuke Endoh)
03:06 PM Feature #16254: MRI internal: Define built-in classes in Ruby with `__intrinsic__` syntax
An even better example, `dir.rb` could be used in TruffleRuby & other implementations easily:
https://github.com/rub...
Eregon (Benoit Daloze)
02:57 PM Feature #16254: MRI internal: Define built-in classes in Ruby with `__intrinsic__` syntax
As an example, https://github.com/ruby/ruby/blob/d7d0d01401a8082e514eb2cb3cec5410e7acba7d/trace_point.rb could be use... Eregon (Benoit Daloze)
02:42 PM Feature #16254: MRI internal: Define built-in classes in Ruby with `__intrinsic__` syntax
Some examples of `Primitive.name` used in TruffleRuby:
https://github.com/oracle/truffleruby/blob/af97b03a55b757688a...
Eregon (Benoit Daloze)
01:44 PM Bug #16889: TracePoint.enable { ... } also activates the TracePoint for other threads, even outside the block
Maybe `enable(&block)` should behave like `enable(target: block); disable`? Eregon (Benoit Daloze)
01:37 PM Bug #16889 (Closed): TracePoint.enable { ... } also activates the TracePoint for other threads, even outside the block
```ruby
threads = []
inspects = []
trace = TracePoint.new(:line) do |tp|
threads << Thread.current
inspects ...
Eregon (Benoit Daloze)
12:33 PM Feature #16827: C API for writing custom random number generator that can be used as Random objects
IMHO it's not nice to replace a nice Ruby-level API by a C API one.
Is there a benchmark of how much is it slower wi...
Eregon (Benoit Daloze)
08:08 AM Feature #16827: C API for writing custom random number generator that can be used as Random objects
Sounds OK. Go ahead.
Matz.
matz (Yukihiro Matsumoto)
12:27 PM Misc #16803: Discussion: those internal macros reside in public API headers
ko1 (Koichi Sasada) wrote in #note-12:
> Please respect current convention `rb_`/`RB_` are called in ruby interprete...
Eregon (Benoit Daloze)
10:58 AM Revision d7d0d014 (git): Endless method definition including `rescue` modifier
nobu (Nobuyoshi Nakada)
10:57 AM Revision 634eeb43 (git): Removed trailing spaces [ci skip]
nobu (Nobuyoshi Nakada)
10:51 AM Misc #16805: Coroutine's license is unclear
Are you happy adding the following to `LEGAL`:
```
coroutine::
Where specified, these files are licensed und...
ioquatix (Samuel Williams)
10:50 AM Bug #16814: Segmentation fault in GC while running test/ruby/test_fiber.rb on s390x
@mame I have merged the light weight concurrency patch, and it included some changes to these tests to make them less... ioquatix (Samuel Williams)
10:44 AM Feature #16786: Light-weight scheduler for improved concurrency.
Using latest master:
```ruby
class Scheduler
def fiber(&block)
fiber = Fiber.new(blocking: false, &block)...
ioquatix (Samuel Williams)
09:25 AM Feature #16786: Light-weight scheduler for improved concurrency.
ioquatix (Samuel Williams) wrote in #note-34:
> Thanks Matz.
>
> > since the fiber created by the method is not t...
duerst (Martin Dürst)
08:50 AM Feature #16786: Light-weight scheduler for improved concurrency.
Thanks Matz.
> since the fiber created by the method is not the original fiber at all.
Can you clarify "not the ori...
ioquatix (Samuel Williams)
07:22 AM Feature #16786: Light-weight scheduler for improved concurrency.
Accepted for experimentation.
We still have some concerns, for example, mixture with blocking and non-blocking fib...
matz (Yukihiro Matsumoto)
07:16 AM Feature #16786: Light-weight scheduler for improved concurrency.
> I don't think we should refer this kind of result because the voted people does not know concerns.
I think you are...
ioquatix (Samuel Williams)
10:10 AM Revision 0e3b0fcd (git): Thread scheduler for light weight concurrency.
Samuel Williams
09:32 AM Feature #16822 (Rejected): Array slicing: nils and edge cases
mrkn (Kenta Murata)
04:52 AM Feature #16822: Array slicing: nils and edge cases
I don't think the benefit of changing outweighs the pain of incompatibility. Rejected.
Matz.
matz (Yukihiro Matsumoto)
08:49 AM Feature #16847: Cache instruction sequences by default
Julia uses `~/.julia/compiled/vX.Y` directory to store precompiled cache files. mrkn (Kenta Murata)
02:58 AM Feature #16847: Cache instruction sequences by default
I think python changed that default mostly because it can be annoying to see all .py files give rise to .pyc
files i...
shevegen (Robert A. Heiler)
08:42 AM Feature #16832: Use #name rather than #inspect to build "uninitialized constant" error messages
Sounds OK. Let's see how it works.
Matz.
matz (Yukihiro Matsumoto)
08:41 AM Feature #8661: Add option to print backtrace in reverse order (stack frames first and error last)
LGTM (including `--backtrace-limit`).
Matz.
matz (Yukihiro Matsumoto)
08:19 AM Revision 336119df (git): extlibs.rb: fixed Downloader.cache_file call and return value
`cache_dir` is an optinal argument but not a keyword argument, and
the return value is a `Pathname`.
nobu (Nobuyoshi Nakada)
08:15 AM Revision 0a52015d (git): Constified code_loc_gen
nobu (Nobuyoshi Nakada)
04:51 AM Feature #16815: Implement Fiber#backtrace
Accepted.
Matz.
matz (Yukihiro Matsumoto)
04:36 AM Misc #16778 (Feedback): Should we stop vendoring default gems code?
We still wait for the PoC of this issue. hsbt (Hiroshi SHIBATA)
04:29 AM Feature #15921: R-assign (rightward-assignment) operator
hi.
I have summarized the expected behavior and the actual behavior with right assignment.
see: https://gist.gith...
osyo (manga osyo)
03:27 AM Revision 4a620aff (git): Restore class variable setting for tests
aycabta (aycabta .)
03:27 AM Revision 03a492fe (git): Initialize Reline callbacks when test suit starts
aycabta (aycabta .)
03:27 AM Revision 68a7c8ad (git): Reline callbacks can take nil
aycabta (aycabta .)
03:27 AM Revision ca1f6b3e (git): Delete inner text buffer after tests
aycabta (aycabta .)
03:27 AM Revision 978e691c (git): Restore Readline.completion_case_fold in test
aycabta (aycabta .)
12:35 AM Feature #16855: Add a tracepoint for warnings
please write a specification of your proposal. there is only a code, test and motivation. ko1 (Koichi Sasada)
12:11 AM Revision 35bbbc75 (git): clean-up .bundle directory in bundled_app
hsbt (Hiroshi SHIBATA)
12:11 AM Revision d4acf254 (git): Use the gemspec in build_dir directly
hsbt (Hiroshi SHIBATA)

05/13/2020

09:17 PM Feature #16254: MRI internal: Define built-in classes in Ruby with `__intrinsic__` syntax
ko1 (Koichi Sasada) wrote in #note-10:
> * (1) how to manage the code?
> * MRI repository?
Yes, that's fine, a...
Eregon (Benoit Daloze)
08:18 PM Bug #16853: calling bla(hash, **kw) with a string-based hash passes the strings into **kw (worked < 2.7)
> This change was deliberate and mentioned in the 2.7.0 release announcement:
I missed this specific implication of ...
sylvain.joyeux (Sylvain Joyeux)
03:39 PM Bug #16853 (Rejected): calling bla(hash, **kw) with a string-based hash passes the strings into **kw (worked < 2.7)
This change was deliberate and mentioned in the 2.7.0 release announcement:
```
Non-symbols are allowed as keywor...
jeremyevans0 (Jeremy Evans)
12:31 PM Bug #16853: calling bla(hash, **kw) with a string-based hash passes the strings into **kw (worked < 2.7)
Hmm. I am confused about the example though.
Isn't
bla "some" => "string"
actually

bla( { "so...
shevegen (Robert A. Heiler)
12:00 PM Bug #16853 (Rejected): calling bla(hash, **kw) with a string-based hash passes the strings into **kw (worked < 2.7)
The following code
~~~
def bla(hash = {}, **kw)
puts "H: #{hash}"
puts "K: #{kw}"
end
bla "some" =>...
sylvain.joyeux (Sylvain Joyeux)
07:41 PM Feature #16855: Add a tracepoint for warnings
Eregon (Benoit Daloze) wrote in #note-3:
> Maybe another angle for this would be to make the `instance variable @foo...
jeremyevans0 (Jeremy Evans)
07:04 PM Feature #16855: Add a tracepoint for warnings
Maybe another angle for this would be to make the `instance variable @foobar not initialized` shown even with the def... Eregon (Benoit Daloze)
06:58 PM Feature #16855 (Rejected): Add a tracepoint for warnings
Eregon (Benoit Daloze) wrote in #note-1:
> I'm afraid I don't see the point of a TracePoint for this if warnings can...
tenderlovemaking (Aaron Patterson)
06:57 PM Feature #16855: Add a tracepoint for warnings
I'm afraid I don't see the point of a TracePoint for this if warnings can already be hooked via `Warning.prepend Some... Eregon (Benoit Daloze)
05:40 PM Feature #16855 (Rejected): Add a tracepoint for warnings
I would like to add a tracepoint for warnings. I want to do this so that DidYouMean can suggest fixes for instance v... tenderlovemaking (Aaron Patterson)
06:44 PM Feature #16786: Light-weight scheduler for improved concurrency.
Really looking forward to this API, it's _very_ promising.
What exactly are the implications of enter_blocking_regio...
Dan0042 (Daniel DeLorme)
07:00 AM Feature #16786: Light-weight scheduler for improved concurrency.
note that I missed:
> If any mutex is acquired by a fiber, then a scheduler is not called; the same behaviour as blo...
ko1 (Koichi Sasada)
06:58 AM Feature #16786: Light-weight scheduler for improved concurrency.
ioquatix (Samuel Williams) wrote in #note-26:
> > non-blocking fiber creation API
>
> It was voted by community, str...
ko1 (Koichi Sasada)
06:25 AM Feature #16786: Light-weight scheduler for improved concurrency.
Add clarification about introducing new hooks. ioquatix (Samuel Williams)
04:47 AM Feature #16786: Light-weight scheduler for improved concurrency.
Specify the root fiber is also blocking. ioquatix (Samuel Williams)
04:46 AM Feature #16786: Light-weight scheduler for improved concurrency.
> non-blocking fiber creation API
It was voted by community, strongly in favour of `Fiber do ... end`. If you think ...
ioquatix (Samuel Williams)
06:36 PM Bug #16856 (Closed): Structs accepting keyword arguments issue a warning with Ruby 2.7
I believe this was fixed in #16801, which is already marked as required for backport to 2.7. With the master branch, ... jeremyevans0 (Jeremy Evans)
06:11 PM Bug #16856 (Closed): Structs accepting keyword arguments issue a warning with Ruby 2.7
This code is issuing a warning with Ruby 2.7, but should not:
``` ruby
class NotFine < Struct.new(:x)
def init...
iGEL (Johannes Barre)
05:32 PM Bug #16854: Using (...) when the method name is a keyword generates error
Interesting find and explanation. shevegen (Robert A. Heiler)
04:42 PM Bug #16854 (Closed): Using (...) when the method name is a keyword generates error
Although I wouldn't generally recommend it, naming a method `true` is allowed. However, in combination with the new a... jamesnakagawa (James Nakagawa)
05:22 PM Bug #16850: Object#hash doesn't behave as documented
Thanks for the insight into bypass vs deoptimization.
Of course if you override #hash and #eql? to return true for...
Dan0042 (Daniel DeLorme)
01:35 AM Bug #16850: Object#hash doesn't behave as documented
Dan0042 (Daniel DeLorme) wrote in #note-4:
> Would it be feasible to raise some sort of error when trying to redefin...
jeremyevans0 (Jeremy Evans)
01:14 AM Bug #16850 (Closed): Object#hash doesn't behave as documented
Applied in changeset commit:git|de29a022acb93691dfc50db852cb04f763565072.
----------
Document that #hash is not call...
jeremyevans (Jeremy Evans)
01:11 AM Bug #16850: Object#hash doesn't behave as documented
Would it be feasible to raise some sort of error when trying to redefine Integer#hash ?
Not just for this case, but ...
Dan0042 (Daniel DeLorme)
12:46 AM Bug #16850: Object#hash doesn't behave as documented
+1 The updates LGTM.
Matz.
matz (Yukihiro Matsumoto)
03:51 PM Revision 65c5a395 (git): * 2020-05-14 [ci skip]
git[bot]
03:44 PM Revision 8bd27c54 (git): ext/json/parser/prereq.mk: remove type-limit warning if char is unsigned
Ragel generates a code `0 <= (*p)` where `*p` is char.
As char is unsigned by default on arm and RISC-V, it is warned...
mame (Yusuke Endoh)
03:14 PM Bug #6087: How should inherited methods deal with return values of their own subclass?
> * A method that seems to return a new array that is directly related to the receiver, should return an instance of ... Dan0042 (Daniel DeLorme)
03:06 PM Feature #15771: Add `String#split` option to set `split_type string` with a single space separator
That optimization is nice to have, but I think the point of this ticket is that it's currently not possible to have a... Dan0042 (Daniel DeLorme)
08:49 AM Feature #16847: Cache instruction sequences by default
Also I forgot to mention. Python 3 no longer store this cache alongside source files, but in a subdirectory.
Pytho...
byroot (Jean Boussier)
08:47 AM Feature #16847: Cache instruction sequences by default
> How cache is effective and how large cache storage is needed depend an application.
Of course there is some vari...
byroot (Jean Boussier)
03:48 AM Feature #16847 (Feedback): Cache instruction sequences by default
How cache is effective and how large cache storage is needed depend an application.
But Ruby don't have enough examp...
naruse (Yui NARUSE)
06:47 AM Revision 87662134 (git): [ruby/openssl] Ruby/OpenSSL 2.2.0
https://github.com/ruby/openssl/commit/41587f69e1 rhenium (Kazuki Yamaguchi)
06:47 AM Revision cc26638c (git): [ruby/openssl] ssl: temporarily remove SSLContext#add_certificate_chain_file
Let's revert the changes for now, as it cannot be included in the 2.2.0
release.
My comment on #257:
> A blocker is...
rhenium (Kazuki Yamaguchi)
06:47 AM Revision 6f008c9d (git): [ruby/openssl] pkey: add PKey#inspect and #oid
Implement OpenSSL::PKey::PKey#oid as a wrapper around EVP_PKEY_id().
This allows user code to check the type of a PKe...
rhenium (Kazuki Yamaguchi)
06:47 AM Revision a7145c3d (git): [ruby/openssl] Fix signing example to not use Digest instance
https://github.com/ruby/openssl/commit/033fb4fbe4 bdewater (Bart de Water)
06:47 AM Revision c85789f9 (git): [ruby/openssl] Look up cipher by name instead of constant
https://github.com/ruby/openssl/commit/b08ae7e73d bdewater (Bart de Water)
06:47 AM Revision b44cc9f0 (git): [ruby/openssl] Remove 'mapping between Digest class and sn/ln'
This is not present in the referenced files anymore, and not useful to most users
https://github.com/ruby/openssl/co...
bdewater (Bart de Water)
06:47 AM Revision 0b2c70ea (git): [ruby/openssl] Look up digest by name instead of constant
https://github.com/ruby/openssl/commit/b28fb2f05c bdewater (Bart de Water)
06:47 AM Revision 3f8665fe (git): [ruby/openssl] Add Marshal support to PKey objects
https://github.com/ruby/openssl/commit/c4374ff041 bdewater (Bart de Water)
05:50 AM Revision fcd25762 (git): Stop always inlining not-optimized get/setivar
As we have the optimization in _mjit_compile_ivar.erb, we don't use
these functions if we successfully optimize ivars...
k0kubun (Takashi Kokubun)
04:49 AM Revision 61d451d6 (git): ext/bigdecimal/bigdecimal.c, ext/date/date_core.c: undef NDEBUG
`#define NDEBUG` produces "macro redefined" warnings when it is already
defined via cppflags
mame (Yusuke Endoh)
04:45 AM Revision 3bca1b6a (git): ext/openssl/ossl.h: Remove a variable that is used only in assert
It produces "unused variable" warnings in NDEBUG mode mame (Yusuke Endoh)
03:33 AM Misc #16805: Coroutine's license is unclear
Sure. ioquatix (Samuel Williams)
01:57 AM Revision b68dab86 (git): ext/fiddle/extconf.rb: Fix the condition of libffi <= 3.1
ver is [3, 1, 0] which is not less then or equal to [3, 1] mame (Yusuke Endoh)
01:48 AM Feature #16851: Ruby hashing algorithm could be improved using Tabulation Hashing
Interesting!! @ana06 Do you need any help?
Matz.
matz (Yukihiro Matsumoto)
01:01 AM Revision de29a022 (git): Document that #hash is not called for certain core classes [ci skip]
Fixes [Bug #16850] jeremyevans (Jeremy Evans)
 

Also available in: Atom