Project

General

Profile

Activity

From 04/26/2020 to 05/02/2020

05/02/2020

09:08 PM Misc #16747: Repository reorganization request
vo.x (Vit Ondruch) wrote in #note-7:
> Also, not sure what is the rationale for mainsrc, but at the first look, I couldn't find the sources, because it is somehow unexpected name (at least to me).
Indeed, I missed that, why `mainsrc`...
Eregon (Benoit Daloze)
09:05 PM Misc #16747: Repository reorganization request
vo.x (Vit Ondruch) wrote in #note-7:
> Also, not sure what is the rationale for mainsrc, but at the first look, I couldn't find the sources, because it is somehow unexpected name (at least to me).
`src` is what people are used to, so...
greggzst (Grzegorz Jakubiak)
06:45 PM Misc #16747: Repository reorganization request
shyouhei (Shyouhei Urabe) wrote in #note-5:
> - For instance ccan is a header-only library. Should it be placed under include?
It is not just header only library, but vendored code. It would be nice if this kind of code lives outsid...
vo.x (Vit Ondruch)
11:49 AM Misc #16747: Repository reorganization request
IMHO it's best if `include/` in the repository corresponds closely to what ends up in the install dir.
So I prefer ccan in `src/`.
`make test*` uses the repository dir, so adding anything else under `include/` would expose it to thos...
Eregon (Benoit Daloze)
09:31 AM Misc #16747: Repository reorganization request
Great work, thank you.
Questions/discussions related to header files:
- For instance ccan is a header-only library. Should it be placed under include?
- What about for instance vm_core.h etc?
- Should files under include be instal...
shyouhei (Shyouhei Urabe)
03:21 AM Misc #16747: Repository reorganization request
https://github.com/nobu/ruby/tree/feature/src-dir is the status quo. nobu (Nobuyoshi Nakada)
03:23 PM Revision 224f29c8 (git): spec/ruby/core/process/clock_getres_spec.rb: lax the resolution limit
Android is Linux, but the clock resolution is 10 milliseconds.
I think that 1 microsecond is too strict for embedded environment.
This change laxes the limit to 10 milliseconds.
mame (Yusuke Endoh)
03:16 PM Revision fe2a832a (git): * 2020-05-03 [ci skip]
git[bot]
03:15 PM Revision cfe0e660 (git): Disable -Wswitch warning when VM_CHECK_MODE
nobu (Nobuyoshi Nakada)
03:11 PM Revision 717680f1 (git): DO NOT CORRUPT TYPE FLAGS
nobu (Nobuyoshi Nakada)
03:05 PM Revision 9998161b (git): Fixed missing `should`
nobu (Nobuyoshi Nakada)
02:16 PM Revision c2dc52e1 (git): Rename arguments for ObjectSpace::WeakMap#[]= for clarity
Eregon (Benoit Daloze)
02:15 PM Revision e964f67b (git): append newline at EOF [ci skip]
nobu (Nobuyoshi Nakada)
02:11 PM Revision de8b8b60 (git): Command failed to run just fails
The exact exit status value of command failed to run is not a
spec, but a platform dependent implementation detail. Just it is
not "success".
nobu (Nobuyoshi Nakada)
02:09 PM Bug #16826 (Closed): ObjectSpace::WeakMap#key? returns false if value is nil
Applied in changeset commit:git|a2be428c5fec31b8adbd5ac087e7637ddf7e54d0.
----------
Fix ObjectSpace::WeakMap#key? to work if the value is nil
* Fixes [Bug #16826]
Eregon (Benoit Daloze)
02:06 PM Bug #16826: ObjectSpace::WeakMap#key? returns false if value is nil
I'll fix this. Eregon (Benoit Daloze)
01:17 PM Bug #16826 (Closed): ObjectSpace::WeakMap#key? returns false if value is nil
```
$ ruby -e 'map=ObjectSpace::WeakMap.new; map[:foo] = 4; p map; p map.key? :foo'
#<ObjectSpace::WeakMap:0x000055fbe0c38c00: :foo => 4>
true # OK
$ ruby -e 'map=ObjectSpace::WeakMap.new; map[:foo] = nil; p map; p map.key? :foo'...
Eregon (Benoit Daloze)
02:08 PM Revision a2be428c (git): Fix ObjectSpace::WeakMap#key? to work if the value is nil
* Fixes [Bug #16826] Eregon (Benoit Daloze)
02:03 PM Revision c9213aa8 (git): Update to ruby/spec@d394dfd
Eregon (Benoit Daloze)
02:03 PM Revision a68ddf42 (git): Update to ruby/mspec@ee29a34
Eregon (Benoit Daloze)
01:17 PM Revision b78fba44 (git): internal/process.h: forgot to guard "#ifdef HAVE_WORKING_FORK"
mame (Yusuke Endoh)
12:34 PM Revision 91e4e240 (git): internal/process.h: add a no-warning simple wrapper for fork(2)
As fork(2) is deprecated, its calls must be guarded by
`COMPILER_WARNING_IGNORED(-Wdeprecated-declarations)`.
All usages of fork(2) in process have been alread guarded. A new call
to fork(2) was added in ruby.c with f22c4ff359498ab342e4...
mame (Yusuke Endoh)
12:06 PM Misc #16803: Discussion: those internal macros reside in public API headers
shyouhei (Shyouhei Urabe) wrote in #note-2:
> If you want the complete list, new macros are:
> ...
I took a look, these look fine to me, they seem almost all about portability, except `RUBY3_ANYARGS_DISPATCH*`.
I think most of those...
Eregon (Benoit Daloze)
12:04 PM Bug #16825 (Third Party's Issue): JSON#generate gives invalid json string
Interesting.
As `JSON.generate` converts the keys by `to_s`, it can be funnier.
```sh
$ ruby -rjson -e 'puts JSON.generate({"main"=>"string", :main=>"symbol", self=>"object"})'
{"main":"string","main":"symbol","main":"object"}
`...
nobu (Nobuyoshi Nakada)
11:30 AM Bug #16825 (Third Party's Issue): JSON#generate gives invalid json string
Hello Guys! First of all, thank you for working on the Ruby language.
I observed a peculiarity while playing around with `JSON#generate`. When hash contains keys of the same word/literal but as symbol and string in the same hash, the ...
definitely_not_a_bot (Definitely Not A Bot)
11:45 AM Feature #15921: R-assign (rightward-assignment) operator
I think it would be good to make it a habit to justify any syntax change with some motivation.
For instance, I would suggest making sure the point is clear in the ticket before accepting a syntax change.
I don't see much examples her...
Eregon (Benoit Daloze)
09:15 AM Misc #16775: DevelopersMeeting20200514Japan
* [Feature #15771] Add `String#split` option to set `split_type string` with a single space separator (sawa)
* Proposal by 284km. Allow splitting literally by `" "` when the argument is `" "`.
sawa (Tsuyoshi Sawada)
02:54 AM Misc #16775: DevelopersMeeting20200514Japan
- [Misc #16747] Repository reorganization request (shyouhei)
- @hsbt says:
> I remember @nobu has the working branch about this.
I would like to know its current situation.
shyouhei (Shyouhei Urabe)
02:47 AM Feature #16824: Follow RubyGems naming conventions for the stdlib
shevegen (Robert A. Heiler) wrote in #note-9:
> The optionparser situation is indeed quite ... peculiar to me:
> ...
It has been available since 6 years ago, for your [Feature #9864].
```
$ ruby -roptionparser -e 'ARGV.parse!' -- -...
nobu (Nobuyoshi Nakada)
01:42 AM Feature #16824: Follow RubyGems naming conventions for the stdlib
The optionparser situation is indeed quite ... peculiar to me:
require 'optparse'
OptionParser.new
My brain has a hard time with it. I'd prefer:
require 'optionparser'
or
require 'option_parser' # <- would...
shevegen (Robert A. Heiler)

05/01/2020

11:53 PM Feature #16824: Follow RubyGems naming conventions for the stdlib
@marcandre AFAIK some gem ownerships were already transferred back to claim std-lib names. Looking at those examples, majority of those conflicts could be solved in the same way if needed (long-term).
The main question in here is if R...
retro (Josef Šimánek)
07:33 PM Feature #16824 (Open): Follow RubyGems naming conventions for the stdlib
marcandre (Marc-Andre Lafortune)
07:33 PM Feature #16824: Follow RubyGems naming conventions for the stdlib
We can't do this in general, sadly. For example, there exist two gems `file-utils` and `file_utils`, both of which use `require 'file_utils'` to be used.
Some other gems are conflict free (e.g. neither `open_struct` or `open-struct` a...
marcandre (Marc-Andre Lafortune)
02:54 PM Feature #16824: Follow RubyGems naming conventions for the stdlib
@naruse @nobu The "use case" for this is Rubyists nowadays have a very strong intuition that "Foo::BarBaz" module typically required via `foo/bar_baz` path. This convention is encouraged by tutorials (including RubyGems' linked above, wi... zverok (Victor Shepelev)
02:22 PM Feature #16824: Follow RubyGems naming conventions for the stdlib
The same also works for English.rb which is part of Ruby itself. It is very confusing to do `require 'English'` (require file with initial capital letter). retro (Josef Šimánek)
02:19 PM Feature #16824: Follow RubyGems naming conventions for the stdlib
@naruse I was thinking about the same for a while as well. My use-case in here is simple. I often require 'secure_random' since that should be standard filename for file defying SecureRandom class/module, but actually I end up with error... retro (Josef Šimánek)
01:48 PM Feature #16824: Follow RubyGems naming conventions for the stdlib
Features should have use cases. naruse (Yui NARUSE)
05:24 AM Feature #16824 (Rejected): Follow RubyGems naming conventions for the stdlib
nobu (Nobuyoshi Nakada)
03:33 AM Feature #16824 (Rejected): Follow RubyGems naming conventions for the stdlib
It's been really nice that most gems these days follow the RubyGems naming convention, so you know exactly what to require just from seeing the gem name: https://guides.rubygems.org/name-your-gem/
I wonder if it would be possible to a...
shan (Shannon Skipper)
05:41 PM Revision bb2ca762 (git): * 2020-05-02 [ci skip]
git[bot]
05:40 PM Revision 72c0612c (git): Skip Solaris RubyCI TestJIT for now
to be investigated later
https://rubyci.org/logs/rubyci.s3.amazonaws.com/solaris10-gcc/ruby-master/log/20200501T160004Z.fail.html.gz
k0kubun (Takashi Kokubun)
10:52 AM Revision 28aa5f7f (git): Fixed a message and version guard then moved to the existing block
nobu (Nobuyoshi Nakada)
10:28 AM Revision dc3bc425 (git): Get rid of -Wgnu-folding-constant errors
Also renamed as like as a constant. nobu (Nobuyoshi Nakada)
10:08 AM Revision 41bbdd78 (git): Skip MinGW TestJIT* and macOS TestJITDebug failures
caused by 818d6d33368a396d9cd3d1a34a84015a9e76c5c8, for now.
I'll take a look at them tomorrow.
k0kubun (Takashi Kokubun)
09:54 AM Revision e4d3d5ce (git): Stop generating MJIT_PCH include guard
to fix
https://ci.appveyor.com/project/ruby/ruby/builds/32577700/job/yh61rom35wt2uv39
It was for JIT compaction, and we don't support it on mswin.
k0kubun (Takashi Kokubun)
09:39 AM Revision 76d9be9c (git): Get rid of -Wgnu-zero-variadic-macro-arguments errors
As zero variadic macro argument, `rb_scan_args(argc, argv, "")`
(or `"0"`), means 0-arity method and should be defined so, that
case doesn't need to consider.
nobu (Nobuyoshi Nakada)
09:35 AM Revision e19f4b3a (git): Fix MJIT compiler warnings in clang
k0kubun (Takashi Kokubun)
09:12 AM Revision 90969edf (git): Fix a wrong argument of vm_exec on JIT cancel
k0kubun (Takashi Kokubun)
08:58 AM Revision 72aa4dd1 (git): c_file_access_mode should be defined for Windows
as well. And also unit->c_file doesn't exist in mswin.
https://github.com/ruby/ruby/runs/635915704
k0kubun (Takashi Kokubun)
08:46 AM Bug #16780 (Assigned): Net::FTP PUT command issuing Net::ReadTimeout too quickly
@naruse It seems that the change was introduced by your commit. Could you check it?
shugo (Shugo Maeda)
08:38 AM Revision 818d6d33 (git): Deduplicate functions in compacted JIT code
to improve code locality.
Using benchmark-driver/sinatra with 100 methods JIT-ed,
[Before] 12149.97 rps
1.3M /tmp/_ruby_mjit_p31171u145.so
[After] 12818.83 rps
260K /tmp/_ruby_mjit_p32155u145.so
(VM is 13714.89 rps)
k0kubun (Takashi Kokubun)
08:31 AM Feature #5481: Gemifying Ruby standard library
While `tool/sync_default_gems` can be useful to overwrite files, in some circumstances it won't help (e.g. different changes in both directories). I also wanted to move commits across repositories and not loose history.
I found a soluti...
marcandre (Marc-Andre Lafortune)
07:46 AM Revision 773afeb7 (git): Fix a typo
k0kubun (Takashi Kokubun)
07:45 AM Revision 76507bfc (git): Fix matrix spec for 7d360efe92d2db11a4e51820ed2f52de36b3257f
k0kubun (Takashi Kokubun)
07:40 AM Revision 5c8bfad0 (git): Make sure unit->id is inherited
to child compile_status k0kubun (Takashi Kokubun)
07:25 AM Revision 6eed4d1b (git): [ruby/matrix] v0.3.0
Marc-Andre Lafortune
07:25 AM Revision 9b5675b3 (git): [ruby/matrix] Add Matrix#adjoint [#14]
Patch adapted from Alessandro Minali Marc-Andre Lafortune
07:25 AM Revision 07fd6dc4 (git): [ruby/matrix] Optimize Matrix#*
Marc-Andre Lafortune
07:25 AM Revision 3cb038cc (git): [ruby/matrix] Fix Matrix#orthogonal?
Marc-Andre Lafortune
07:25 AM Revision 7d360efe (git): [ruby/matrix] Fix Matrix#unitary? [#14]
Marc-Andre Lafortune
07:13 AM Revision c925cc01 (git): [ruby-matrix] Update docs (nicer rendering, undocumented method)
zverok (Victor Shepelev)
06:08 AM Revision f5ddbba9 (git): Include unit id in a function name of an inlined method
I'm trying to make it possible to include all JIT-ed code in a single C
file. This is needed to guarantee uniqueness of all function names
k0kubun (Takashi Kokubun)
05:21 AM Revision 96837dc9 (git): Switch test_unload_units_and_compaction on mswin
because we support JIT compaction on it k0kubun (Takashi Kokubun)
04:38 AM Revision e8a78d7d (git): Do not stop the world during JIT compaction
Running C compiler for JIT compaction inside a critical section may lock
main thread for a long time when it triggers GC. As I'm planning to
increase this duration a bit, I'd like to make sure this doesn't stop
the world.
For now, I cho...
k0kubun (Takashi Kokubun)
01:58 AM Revision 520ac5da (git): [pty] do not check openpty twice if found in util library
nobu (Nobuyoshi Nakada)

04/30/2020

07:42 PM Feature #16822: Array slicing: nils and edge cases
I do not have a strong preference here either way; I guess one can reason in
favour for both behaviour types/styles, and I think a primary point in the
suggestion is that it refers to startless/endless situations, such as "5..",
whic...
shevegen (Robert A. Heiler)
10:44 AM Feature #16822 (Rejected): Array slicing: nils and edge cases
(First of all, I understand that the proposed change can break code, but I expect it not to be a large amount empirically.)
I propose that methods that slice an array (`#slice` and `#[]`) and return a sub-array in the normal case, sho...
zverok (Victor Shepelev)
07:18 PM Misc #16775: DevelopersMeeting20200514Japan
* [Feature #9758] Allow setting SSLContext#extra_chain_cert in Net::HTTP (stan3)
* useful to allow https with cert chain, small patch, few :+1s
stan3 (Tristan Hill)
10:54 AM Misc #16775: DevelopersMeeting20200514Japan
* [Feature #16822] Array slicing: nils and edge cases (zverok)
* Never return `nil` from `ary[start...end]` even if out of arrays' bounds
zverok (Victor Shepelev)
05:32 PM Revision 9014c900 (git): * 2020-05-01 [ci skip]
git[bot]
05:32 PM Revision 5a9d2da7 (git): Remove deprecated rb_require_safe
jeremyevans (Jeremy Evans)
01:54 PM Revision 4a8acf46 (git): [ruby/irb] Restore the default encodings
IRB::ReadlineInputMethod#initialize sets via IRB.set_encoding. nobu (Nobuyoshi Nakada)
12:20 PM Bug #16823 (Closed): Bundler related manual pages are corrupted
We recently found out that bundler related manual pages we get by building and installing ruby 2.6 (and as far as I can tell all newer versions as well) are corrupted (we are building with `--with-mantype=man`).
The reason is that, e....
Kulikjak (Jakub Kulik)
09:00 AM Feature #13820: Add a nil coalescing operator
Your proposal to distinguish `nil` from `false` is ad hoc, and is not a real solution for your use case, which is to add a value to a hash only when it does not yet have a corresponding key.
Following your way of doing it, you would sti...
sawa (Tsuyoshi Sawada)
02:50 AM Feature #13820: Add a nil coalescing operator
bsarrazin (Ben Sarrazin) wrote in #note-7:
> Kotlin has this feature, Swift has this feature, many other languages have this feature.
No. Kotlin does not have this feature (distinguish `false` and `null`). It is a really bad idea f...
shyouhei (Shyouhei Urabe)
04:16 AM Feature #16821: gem version notation for "rational version" compatibility
Thank you for the quick response. Yes, I will do refile there. Sorry for mistakenly filing here. colindkelley (Colin Kelley)
02:53 AM Feature #16821: gem version notation for "rational version" compatibility
Can you report it to rubygems' upstream? It has its own tracker: https://github.com/rubygems/rubygems shyouhei (Shyouhei Urabe)
12:18 AM Feature #16821 (Third Party's Issue): gem version notation for "rational version" compatibility
nobu (Nobuyoshi Nakada)
02:57 AM Revision 9d1b272b (git): [ruby/irb] Suppress messages switching inspect mode
nobu (Nobuyoshi Nakada)
02:48 AM Revision 14b5a3b4 (git): * 2020-04-30 [ci skip]
git[bot]
02:44 AM Revision b3ce6fa0 (git): [ruby/irb] Relaxed regexp for readline
Readline::VERSION may not be a single word, e.g EditLine wrapper
when linked with editline.
nobu (Nobuyoshi Nakada)

04/29/2020

11:24 PM Feature #16150: Add a way to request a frozen string from to_s
I can confirm that Discourse bench and Discourse works with symbol-fstring today.
Old versions of pry were broken, but stuff seems fine now.
sam.saffron (Sam Saffron)
11:10 PM Feature #16821 (Third Party's Issue): gem version notation for "rational version" compatibility
When a gemspec wants to express a version requirement, we typically use the `'~> '` notation like this:
```ruby
spec.add_dependency 'nokogiri', '~> 1.8'
```
This indicates compatibility following the "rational versioning" as descri...
colindkelley (Colin Kelley)
08:05 PM Feature #13820: Add a nil coalescing operator
Kotlin has this feature, Swift has this feature, many other languages have this feature.
Ruby _needs_ this feature :D
```ruby
"a truthy value" || foo("something else") # The operator also short circuits so the method `foo` will neve...
bsarrazin (Ben Sarrazin)
10:13 AM Revision 7e5253d1 (git): [ruby/irb] Suppress "method redefined" warning
https://github.com/ruby/irb/commit/5f0aee56fa aycabta (aycabta .)
10:13 AM Revision 3864fbc6 (git): [ruby/irb] Check existence of rc files in irb_info command
https://github.com/ruby/irb/commit/cdbb9dfc9f aycabta (aycabta .)
10:13 AM Revision 98a346d0 (git): [ruby/irb] Add irb_info command
https://github.com/ruby/irb/commit/a6fe58e916 aycabta (aycabta .)
10:13 AM Revision 009092b0 (git): [ruby/reline] Add URL reference of history-size
https://github.com/ruby/reline/commit/13420197b8 aycabta (aycabta .)
10:13 AM Revision 213ebec7 (git): [ruby/reline] Version 0.1.4
https://github.com/ruby/reline/commit/298144b06a aycabta (aycabta .)
10:13 AM Revision 4859352d (git): [ruby/reline] Negative history_size means unlimited
And unlimited is default.
https://github.com/ruby/reline/commit/f5149c3ca6
aycabta (aycabta .)
10:13 AM Revision d27fa874 (git): [ruby/reline] New items to history are dropped if history_size is zero
https://github.com/ruby/reline/commit/9bdbed9cbc aycabta (aycabta .)
10:13 AM Revision 0ac50091 (git): [ruby/reline] Ignore non-absolute XDG_CONFIG_HOME
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
> All paths set in these environment variables must be absolute.
> ...
https://github.com/ruby/reline/commit/45af6eea77
nobu (Nobuyoshi Nakada)
08:59 AM Bug #16820: LEGAL is out of sync
OK, thank you for clarification. Then we don't have to bother them in LEGAL. shyouhei (Shyouhei Urabe)
08:50 AM Bug #16820: LEGAL is out of sync
I see.
> If you didn't intend to change their license (== they are still dual-licensed), then their gemspec shall be updated to reflect that info like s.licenses = ["Ruby", "BSD-2-Clause"].
We should update it to gemspec files esp...
hsbt (Hiroshi SHIBATA)
08:44 AM Bug #16820: LEGAL is out of sync
@hsbt Did you want to change license of those libraries from Ruby's to "BSD only"? Then we should list up all of them in LEGAL. If you didn't intend to change their license (== they are still dual-licensed), then their gemspec shall be... shyouhei (Shyouhei Urabe)
08:27 AM Bug #16820: LEGAL is out of sync
Should we update the sentence about dual license with BSD-2-Clause to `LEGAL` file? I'm not sure what your expectation. hsbt (Hiroshi SHIBATA)
08:05 AM Bug #16820 (Closed): LEGAL is out of sync
At the very beginning of `LEGAL`, it reads:
> All the files in this distribution are covered under either the Ruby's
> ...
This means that the exception list must be comprehensive. If we miss someone else's software there, it would ...
shyouhei (Shyouhei Urabe)
06:28 AM Revision e801e9ba (git): [ruby/spec] expand temporary directory to the real path
It may contain symbolic links. nobu (Nobuyoshi Nakada)
06:28 AM Revision 32e7d914 (git): [ruby/spec] Temporary directories should be under the mock_dir
nobu (Nobuyoshi Nakada)
06:28 AM Revision 56d6cfe8 (git): .travis.yml: hoisted out spec-on-old-ruby
nobu (Nobuyoshi Nakada)

04/28/2020

08:49 PM Feature #16786: Light-weight scheduler for improved concurrency.
@sam.saffron I'll let @ioquatix reply in more details but my point of view on that is:
#13618 is not flexible, and rather hardcodes everything including the scheduler, the IO selectors, etc, which would add a huge implementation cost to...
Eregon (Benoit Daloze)
07:12 AM Feature #16786: Light-weight scheduler for improved concurrency.
My big concern here is that this does not cover why #13618 was deficient and this complete greenfield implementation solves the issues it had?
#13618 had kqueue and epoll implementations which this would leave unimplemented, as far a...
sam.saffron (Sam Saffron)
03:34 PM Revision ac0c7608 (git): Mark ruby_memerror as NORETURN
nobu (Nobuyoshi Nakada)
03:05 PM Revision 1994ed90 (git): Remove debugging code from gc.c
Partially revert adab82b9a71f60ad1c7f4f8c134a5ae9198ab32a and
c63b5c6179d700ceacf5cae8d3ee86da1294c781.
The issue that these commits attempt to address was maybe fixed with
1c7f5a57125001447dc6173847dc68aa50bd8e93.
mame (Yusuke Endoh)
03:01 PM Revision 31a4ee4c (git): * 2020-04-29 [ci skip]
git[bot]
02:36 PM Revision 1c7f5a57 (git): Removed unnecessary RLIMIT_AS
Even without this limit, these assertions almost certainly cause a
NoMemoryError by removing the fix in 72ad8595f20.
nobu (Nobuyoshi Nakada)
10:00 AM Revision 86431f50 (git): Remove rubyspec temporary directories
nobu (Nobuyoshi Nakada)
06:05 AM Revision 34971525 (git): Remove rubyspec temporary directory
nobu (Nobuyoshi Nakada)
03:33 AM Feature #16818: Rename `Range#%` to `Range#/`
I visualise a bag of grain. If I'm asked to divide it by three, I will make three piles of grain. If I'm asked to modulate it by three, I will make many piles, each of three grains.
> why you need to refer to complex numbers
This i...
inopinatus (Joshua GOODALL)
12:31 AM Feature #16818: Rename `Range#%` to `Range#/`
inopinatus (Joshua GOODALL) wrote in #note-8:
> their division seems intuitively identical to cutting a line into parts. [...] Division is therefore cutting that line into parts
That is exactly what I am saying (although I am not sure ...
sawa (Tsuyoshi Sawada)
02:39 AM Revision 3acdb318 (git): * 2020-04-28 [ci skip]
git[bot]
02:13 AM Revision 442866c2 (git): [rubygems/rubygems] Pass the rubocop lint
https://github.com/rubygems/rubygems/commit/d4486ca061 hsbt (Hiroshi SHIBATA)
02:04 AM Revision 5b77fc8a (git): [rubygems/rubygems] Remove commented out code
https://github.com/rubygems/rubygems/commit/42aa0d7ebc deivid (David Rodríguez)
01:57 AM Revision 2c2b0d4e (git): [rubygems/rubygems] Make the test suite pass under `umask 077`
Some tests had failed under `umask 077` mode. As far as I investigated,
there is no actual bug. All failures were caused by tests that create a
wrong-permission file or expect wrong permission.
This changeset fixes the tests.
https:/...
mame (Yusuke Endoh)
01:56 AM Revision de58dfc9 (git): [rubygems/rubygems] Removed the depdendency of English library
English.rb is extracted to the default gems at
https://github.com/ruby/ruby/commit/2c5764ec223d976e0d0da1494596a1519104be3e
https://github.com/rubygems/rubygems/commit/532f488c0b
hsbt (Hiroshi SHIBATA)

04/27/2020

11:43 PM Feature #16818: Rename `Range#%` to `Range#/`
> x / y reads "divide x by y", not "divide x into y parts"
I'm not sure I understand the difference, but nevertheless I agree with Eragon's intuition.
To me, a range is not a matrix, not a sequence either. I think of ranges as int...
inopinatus (Joshua GOODALL)
06:18 PM Bug #16819 (Assigned): Line reporting off by one when reporting line of a hash?
If I run this program:
```
TracePoint.new(:line) { |t| p t.lineno}.enable
def foo(a, b) # 2
a + b # 3
end # 4
# 5
foo 1, 2 # 6
# 7
A = { # 8
a: 1, # 9
b: 2...
enebo (Thomas Enebo)
10:58 AM Feature #16150: Add a way to request a frozen string from to_s
Could we consider `Symbol#to_s` retuning frozen strings again?
We've been running with https://github.com/Shopify/symbol-fstring for a about 5 months now, and I think the backward incompatibility problem is much less important now.
...
byroot (Jean Boussier)
06:28 AM Revision aca935a6 (git): Fixed typos in racc
nobu (Nobuyoshi Nakada)
01:39 AM Revision 6009790e (git): Moved already resolved test
Couldn't figure out failed/fixed versions. nobu (Nobuyoshi Nakada)
01:39 AM Revision c180c58f (git): Removed already resolved test [ci skip]
That bug has been fixed by ec0c394b9eb, and the test has been
added by 181ffea5e04.
nobu (Nobuyoshi Nakada)
12:41 AM Revision fd2df584 (git): Fix a typo [ci skip]
znz (Kazuhiro NISHIYAMA)

04/26/2020

11:43 PM Feature #16818: Rename `Range#%` to `Range#/`
Eregon (Benoit Daloze) wrote in #note-2:
> Just my opinion, but I find `%` a lot more intuitive, and would find `/` very confusing in this context.
> ...
I agree. Of course, `/` and `%` are related, so it's no surprise that there are a...
duerst (Martin Dürst)
07:44 PM Feature #16818: Rename `Range#%` to `Range#/`
> x / y reads "divide x by y", not "divide x into y parts".
Makes sense.
It is language difference probably: in my native Ukrainian (and Russian I was taught in school) it reads as (roughly translating) "divide into y"; therefore...
zverok (Victor Shepelev)
06:51 PM Feature #16818: Rename `Range#%` to `Range#/`
zverok (Victor Shepelev) wrote in #note-4:
> I'd say that `(5..14) / 3` reads definitely like "split the range into 3 parts" (expecting, IDK, 3 sub-ranges or jumps over `(14-5) / 3` spans).
x / y reads "divide x by y", not "divide x in...
sawa (Tsuyoshi Sawada)
06:28 PM Feature #16818: Rename `Range#%` to `Range#/`
I'd say that `(5..14) / 3` reads definitely like "split the range into 3 parts" (expecting, IDK, 3 sub-ranges or jumps over `(14-5) / 3` spans).
`(5..14) % 3` at least reads (for me) like "range 5—14 `<something>` 3", bearing no imme...
zverok (Victor Shepelev)
04:54 PM Feature #16818: Rename `Range#%` to `Range#/`
I somewhat agree with sawa's comment that % on Range may confuse some ruby
folks; I think % is more typically the modulo operator? I can not say how
strong this confusion may be, perhaps small, perhaps not, but I concur with
his origi...
shevegen (Robert A. Heiler)
10:14 AM Feature #16818: Rename `Range#%` to `Range#/`
Just my opinion, but I find `%` a lot more intuitive, and would find `/` very confusing in this context.
One interpretation of `%` here is `by` or "so that (element % n) is always the same, starting with the Range#begin value"
Eregon (Benoit Daloze)
02:15 AM Feature #16818 (Open): Rename `Range#%` to `Range#/`
`Range#%` was introduced as an alias of `Range#step` by 14697, but it is counter-intuitive and confusing.
Iteration in the following:
```ruby
((5..14) % 3).each{|i| p i}
#>> 5
#>> 8
#>> 11
#>> 14
```
is not based on `x % y...
sawa (Tsuyoshi Sawada)
05:13 PM Bug #16814: Segmentation fault in GC while running test/ruby/test_fiber.rb on s390x
FYI: I re-enabled the test in question with 93ed465dcdc866013cd93c3662937497900c8086 mame (Yusuke Endoh)
05:09 PM Revision 93ed465d (git): test/ruby/test_fiber.rb (test_stack_size): re-enabled on s390x
Revert 9948addda67f4b7a6e3575f1eba9025f998811d2.
It is now discussed in https://bugs.ruby-lang.org/issues/16814, and an
assert is added with a217d3cedce3f5aa5c27a1ce6c72b65ec37da057.
It would be good to give it a try.
mame (Yusuke Endoh)
04:04 PM Revision a217d3ce (git): check: compare with right upstream
nobu (Nobuyoshi Nakada)
03:54 PM Revision 33767d1e (git): * 2020-04-27 [ci skip]
git[bot]
03:54 PM Revision 6560ff6e (git): Fix a typo [ci skip]
znz (Kazuhiro NISHIYAMA)
01:39 PM Revision 257e01b6 (git): Solaris does not provide atomic_sub family
nobu (Nobuyoshi Nakada)
10:41 AM Revision 1760c601 (git): Clarified return value of atomic macros
nobu (Nobuyoshi Nakada)
07:14 AM Revision 36ed7007 (git): Fix failures of test/rdoc/test_rdoc_ri_paths.rb
yield `home_dir` when HOMEDIR is not falsy only.
https://github.com/ruby/ruby/blob/d0f41aa2382612022162d033ddb3d9c9cc62099e/lib/rdoc/ri/paths.rb#L43
```
yield home_dir, :home if home and HOMEDIR
```
https://rubyci.org/logs/ruby...
znz (Kazuhiro NISHIYAMA)
03:53 AM Revision d0f41aa2 (git): [ruby/spec] Removed space between method name and argument list paren
nobu (Nobuyoshi Nakada)
03:53 AM Revision 78602775 (git): [ruby/spec] Fixed missing should
nobu (Nobuyoshi Nakada)
03:53 AM Revision b5174bea (git): lldb_cruby.py: fixed empty string dump [ci skip]
nobu (Nobuyoshi Nakada)
03:39 AM Revision 034b8472 (git): remove unused rb_str_clear define (#3059)
S_H_ (Shun Hiraoka)
02:07 AM Revision 63fe3739 (git): Fix errors when `RDoc::RI::Paths::HOMEDIR` is nil
https://rubyci.org/logs/rubyci.s3.amazonaws.com/scw-ad7f67/ruby-master/log/20200425T175405Z.fail.html.gz
```
4) Error:
TestRDocServlet#test_asset:
NoMethodError: undefined method `replace' for nil:NilClass
/home/chkbuild/build/2020...
znz (Kazuhiro NISHIYAMA)
 

Also available in: Atom