Project

General

Profile

Activity

From 07/09/2020 to 07/15/2020

07/15/2020

11:44 PM Bug #17023: How to prevent String memory to be relocated in ruby-ffi
tenderlove@ruby-lang.org wrote:
> Right, that makes sense. I really need to document this (and
> I apologize for not doing so already), but
> `rb_gc_register_address` will pin your objects. When you know
> you're done with the ref...
normalperson (Eric Wong)
08:00 PM Bug #17023: How to prevent String memory to be relocated in ruby-ffi
larskanis (Lars Kanis) wrote in #note-7:
> So actually I was looking for something like `rb_obj_mark_unmovable()` to pin the string. FFI could call this function on all string pointers passed to C. In FFI we don't know how long the stri...
tenderlovemaking (Aaron Patterson)
07:35 PM Bug #17023: How to prevent String memory to be relocated in ruby-ffi
Thank you Aaron for looking into this! The patch avoids that the particular string is relocated, but unfortunately the patch is not sufficient to avoid relocation of any strings given to FFI. A slightly modified version of the script fai... larskanis (Lars Kanis)
04:56 PM Feature #16987: Enumerator::Lazy vs Array methods
I used Lazy all the time. There is nothing to be done here about its popularity.
FWIW, People knew about it, but choose not to rely on it because they want to support old versions of Ruby.
Hence, it is not very popular in open-source s...
midnight (Sarun R)
04:40 PM Bug #17017: Range#max & Range#minmax incorrectly use Float end as max
jeremyevans0 (Jeremy Evans) wrote in #note-10:
> With current Ruby, you should use an endless range instead of range with an infinite end.
Endless ranges are 2.6+. Ruby 2.5 is not yet EOL. RuboCop supports 2.4 and other gems support ...
marcandre (Marc-Andre Lafortune)
03:58 PM Bug #17017: Range#max & Range#minmax incorrectly use Float end as max
marcandre (Marc-Andre Lafortune) wrote in #note-9:
> jeremyevans0 (Jeremy Evans) wrote in #note-7:
> ...
With current Ruby, you should use an endless range instead of range with an infinite end.
The previous behavior of returning `F...
jeremyevans0 (Jeremy Evans)
03:37 PM Bug #17017 (Open): Range#max & Range#minmax incorrectly use Float end as max
jeremyevans0 (Jeremy Evans) wrote in #note-7:
> koic (Koichi ITO) wrote in #note-6:
> ...
I should have been more clear when I commented to take care of Infinity, but I believe that previous behavior should remain. Since there is no `I...
marcandre (Marc-Andre Lafortune)
07:19 AM Bug #17017: Range#max & Range#minmax incorrectly use Float end as max
Thank you for your reply. For now I've learned that updating to `(42.to_f..Float::INFINITY)` will prevent the error. koic (Koichi ITO)
05:24 AM Bug #17017: Range#max & Range#minmax incorrectly use Float end as max
koic (Koichi ITO) wrote in #note-6:
> I encountered a breaking change in RuboCop repository when using ruby 2.8.0dev.
> ...
Yes, it is expected behavior, at least to me. I believe the Ruby 2.7 behavior is wrong, because a range that s...
jeremyevans0 (Jeremy Evans)
12:47 AM Bug #17017: Range#max & Range#minmax incorrectly use Float end as max
I encountered a breaking change in RuboCop repository when using ruby 2.8.0dev.
https://github.com/rubocop-hq/rubocop/blob/v0.88.0/lib/rubocop/comment_config.rb#L110
So, I have a question. Is this an expected behaviour?
Ruby 2.7.1...
koic (Koichi ITO)
04:11 PM Bug #17031: `Kernel#caller_locations(m, n)` should be optimized
Sure
```
Calculating -------------------------------------
short_backtrace 28.315k (± 7.1%) i/s - 141.984k in 5.044733s
long_backtrace 24.168k (± 8.7%) i/s - 120.900k in 5.050243s
no_caller_locations ...
marcandre (Marc-Andre Lafortune)
02:30 PM Bug #17031: `Kernel#caller_locations(m, n)` should be optimized
Could you post the results of running that on your computer?
Then it's easier to see your point without needing to reproduce.
Eregon (Benoit Daloze)
02:33 PM Revision 9f4b7fc8 (git): Check warning flags only if available to run with old versions
nobu (Nobuyoshi Nakada)
02:32 PM Feature #17016: Enumerable#accumulate
For the name I think just `scan` would be best then.
And accept the fact it's completely unrelated to `String#scan`.
Eregon (Benoit Daloze)
02:04 PM Bug #17033 (Closed): Infinite Traceback when encountering an Exception while catching an Exception
Applied in changeset commit:git|579645d9f870fa4116dcd3200bbbb6e2c0b7f400.
----------
Fixed infinite loop at error in printing cause [Bug #17033]
nobu (Nobuyoshi Nakada)
04:45 AM Bug #17033: Infinite Traceback when encountering an Exception while catching an Exception
NickHackman (Nick Hackman) wrote:
> In Ruby 2.7.1 when an Exception occurs and another occurs when handling the first one it results in an infinite Traceback that doesn't mention the error.
> ...
If this is an actual issue is it possib...
NickHackman (Nick Hackman)
04:39 AM Bug #17033 (Closed): Infinite Traceback when encountering an Exception while catching an Exception
In Ruby 2.7.1 when an Exception occurs and another occurs when handling the first one it results in an infinite Traceback that doesn't mention the error.
```ruby
class MyException < StandardError
def initialize(obj)
@obj = ob...
NickHackman (Nick Hackman)
12:39 PM Revision 579645d9 (git): Fixed infinite loop at error in printing cause [Bug #17033]
nobu (Nobuyoshi Nakada)
07:36 AM Revision 79d06483 (git): Close sockets if blocking to fix leaked fds
nobu (Nobuyoshi Nakada)
07:05 AM Revision 5783d0db (git): Import remaining changes
The "sync with commits" scripts failed to properly import these for some
reason.
deivid (David Rodríguez)
07:05 AM Revision 0c8d90b5 (git): [rubygems/rubygems] Unswallow `Gem::Package::FormatError`
This error happen in a CI run, and as it is currently, it doesn't give
any useful information about the underlying cause. Let's not swallow the
original error.
https://github.com/rubygems/rubygems/commit/8c17ba2f45
deivid (David Rodríguez)
07:05 AM Revision 1f719542 (git): [rubygems/rubygems] July man pages
https://github.com/rubygems/rubygems/commit/58d9a3de5b deivid (David Rodríguez)
07:05 AM Revision fd709382 (git): [rubygems/rubygems] Tag the specs with :readline
The newly added specs needs to be tagged as
:readline, otherwise they fail on Windows with
the backtrace: `ZeroDivisionError: divided by 0`.
Such issues are already being skipped on Windows.
Signed-off-by: Utkarsh Gupta <utkarsh@debian...
utkarsh (Utkarsh Gupta)
07:05 AM Revision c44c7019 (git): [rubygems/rubygems] Add tests with different flag combinations
Since this PR was made because we missed checking
RuboCop offenses with different flags, therefore
adding tests so that all flag combinations are
tested.
Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>
https://github.com/rubygems/rub...
utkarsh (Utkarsh Gupta)
07:05 AM Revision 4f9c673c (git): [rubygems/rubygems] Allow setting a tag prefix to be used by gem release tasks
https://github.com/rubygems/rubygems/commit/679008f23a deivid (David Rodríguez)
07:05 AM Revision ca133c03 (git): [rubygems/rubygems] Fix line spacing to make Layout/EmptyLines happy
The Gemfile wasn't properly put in the last commit.
As a result, Layout/EmptyLines inspected an offense
in the Gemfile.
This also fixes the spec w.r.t change in the task
default.
Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>
https...
utkarsh (Utkarsh Gupta)
07:05 AM Revision 95f90e3d (git): [rubygems/rubygems] Add blank lines to make Bundler/OrderedGems happy
If the blank lines aren't used, then rubocop tries to
sort them in alphabetical order within their section.
Thus, adding lines so rubocop considers them as
different sections and doesn't try to sort them.
Signed-off-by: Utkarsh Gupta <u...
utkarsh (Utkarsh Gupta)
07:05 AM Revision 281898ed (git): [rubygems/rubygems] Fix Rakefile to make Style/SymbolArray happy
In case of multiple Rake tasks, the default tasks would
look something like this:
`task default: [:spec, :rubocop]`
Instead, they should use %i and look something like this:
`task default: %i[spec rubocop]`
Signed-off-by: Utkarsh Gupta...
utkarsh (Utkarsh Gupta)
07:05 AM Revision 8c65f612 (git): [rubygems/rubygems] Fix remaining RuboCop issues
With #3731 and #3740 merged, this covers up the
remaining part of the issues.
This was discovered when one tries to create a gem
with a different framework.
Could be reproduced with:
`bundle gem foo --ext --test=test-unit`
Signed-off-by...
utkarsh (Utkarsh Gupta)
07:05 AM Revision 40f73b3a (git): [rubygems/rubygems] Avoid calling LoadError#message because of its slowness
Instead we can rely on `LoadError#path`
https://github.com/rubygems/rubygems/commit/16d5c3b43c
byroot (Jean Boussier)
07:05 AM Revision 2fafc08a (git): [rubygems/rubygems] Remove unneeded trailing conditions on exitstatus
https://github.com/rubygems/rubygems/commit/27e0e4ecb6 deivid (David Rodríguez)
07:05 AM Revision 547ba660 (git): [rubygems/rubygems] Easier way to find path to ruby binary
https://github.com/rubygems/rubygems/commit/cdc201f5c4 deivid (David Rodríguez)
07:05 AM Revision 16823d4a (git): [rubygems/rubygems] Remove unnecessary assertions on exitstatus
Since our helpers now raise by default if the subcommand fails, these
will never actually fail and are not necessary.
https://github.com/rubygems/rubygems/commit/6153b9321e
deivid (David Rodríguez)
07:05 AM Revision e2837a77 (git): [rubygems/rubygems] Constrain (shipped) RuboCop's version
Right now, we're not specifying the version constraints
on RuboCop that is shipped when a new gem is created.
This can break specs which runs rubocop on a new
skeleton gem as the newer versions of RuboCop are
released.
This commit ensur...
utkarsh (Utkarsh Gupta)
07:05 AM Revision 17b92d22 (git): [rubygems/rubygems] No need to update remotes
Everything is already fetched locally.
https://github.com/rubygems/rubygems/commit/9c304639b1
deivid (David Rodríguez)
07:05 AM Revision d189d31c (git): [rubygems/rubygems] Git clone already takes care of this
https://github.com/rubygems/rubygems/commit/6e0c28d3ab deivid (David Rodríguez)
07:05 AM Revision a73ea212 (git): [rubygems/rubygems] Clone rubygems from the local repo
It simplifies things and should avoid issues like the one we had where
the master branch had a bad `.gitattributes` file and changing it on a
PR would be disregarded.
In order for this to work, we need to make sure to fetch all tags fro...
deivid (David Rodríguez)
07:05 AM Revision 5ebca6d7 (git): [rubygems/rubygems] Skip this spec on ruby_core workflow
ruby_core has an 'ast.rb' file that gets in the
middle and breaks this spec, so it's better we skip
this test on this workflow for now.
Also, slightly change the spec name from "run" to
"runs" and change the last assertion, it's cleaner...
utkarsh (Utkarsh Gupta)
07:05 AM Revision d0810fde (git): [rubygems/rubygems] Use latest version of rubocop for RUBY_VERSION > 2.4
With older versions of rubocop, the dependency on
`jaro_winkler` seems to be a pain.
However, in the later versions of rubocop, this
dependency was dropped. So we only need to use
the older version for ruby2.3.
Signed-off-by: Utkarsh Gu...
utkarsh (Utkarsh Gupta)
07:05 AM Revision 077dcacb (git): [rubygems/rubygems] Use `--config .rubocop.yml` instead
because rubocop configuration inheritance is
messed up and when using `--ignore-parent-exclusion`,
even though the exit status is 0, the example
still fails because of the configuration issue.
Signed-off-by: Utkarsh Gupta <utkarsh@debia...
utkarsh (Utkarsh Gupta)
07:05 AM Revision ecb87b55 (git): [rubygems/rubygems] Lock rubocop version to 0.80.1
The later RuboCop versions don't work with ruby2.3
so we should lock the version to what works with
ruby2.3 as we haven't dropped the support yet.
And since we're using the older version of rubocop,
also fix `Max` value of `LineLength` ...
utkarsh (Utkarsh Gupta)
07:05 AM Revision 215f7c31 (git): [rubygems/rubygems] Fix linting and make Style/RedundantInterpolation happy
Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>
https://github.com/rubygems/rubygems/commit/83e330fa87
utkarsh (Utkarsh Gupta)
07:05 AM Revision 4875a96e (git): [rubygems/rubygems] Fix test to run rubocop on the generated gem
With this, it will be ensured that the generated
(skeleton) gem will have no offenses.
Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>
https://github.com/rubygems/rubygems/commit/47411262e0
utkarsh (Utkarsh Gupta)
07:05 AM Revision b28c6d04 (git): [rubygems/rubygems] Make Style/HashSyntax cop happy
Previously, we were using the old syntax like:
`task :default => :spec`, but now this commit
uses the new Ruby 1.9 hash syntax.
Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>
https://github.com/rubygems/rubygems/commit/b41d0fdb56
utkarsh (Utkarsh Gupta)
07:05 AM Revision 449d2420 (git): [rubygems/rubygems] WIP: add test to run rubocop on the generated gem
Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>
https://github.com/rubygems/rubygems/commit/730b770f8a
utkarsh (Utkarsh Gupta)
07:05 AM Revision cbe4d29c (git): [rubygems/rubygems] Roll back to Dir.chdir block
since without that, evaluating the gemspec from
outside `File.expand_path( __dir__)` won't work.
Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>
https://github.com/rubygems/rubygems/commit/9e5e52a1d9
utkarsh (Utkarsh Gupta)
07:05 AM Revision 084489be (git): [rubygems/rubygems] Fix tests pertaining to newgem
Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>
https://github.com/rubygems/rubygems/commit/e2ee0b7de3
utkarsh (Utkarsh Gupta)
07:05 AM Revision 3b0d2a3d (git): [rubygems/rubygems] Fix RuboCop offenses
These offenses appear when you create a gem with
`bundle gem foo` and run `rubocop` over it.
Initially, there were around 45 offenses detected,
but with #3731 and this, the number of offenses
have been reduced to 2.
Signed-off-by: Utka...
utkarsh (Utkarsh Gupta)
07:05 AM Revision 2b73f26f (git): [rubygems/rubygems] Show also output from all commands on rubygems checkout errors
https://github.com/rubygems/rubygems/commit/1fe24e471d deivid (David Rodríguez)
07:05 AM Revision 5ae80c52 (git): [rubygems/rubygems] Remove `--quiet` flag to `git checkout`
Since we don't show this output by default, it's better to be verbose
in case we happen to need more info.
https://github.com/rubygems/rubygems/commit/baa4ccf5a6
deivid (David Rodríguez)
07:05 AM Revision 23cf99e9 (git): [rubygems/rubygems] Bundler specs - Windows - remove skips, File.open => File.readlines
Using File.open without a block leaves a file reference that causes issues with file operations
commands/binstubs_spec.rb
install/gems/compact_index_spec.rb
install/gems/dependency_api_spec.rb
install/gems/standalone_spec.rb
runtime/exe...
MSP-Greg (Greg L)
07:05 AM Revision ad743337 (git): [rubygems/rubygems] bundler/spec/commands/binstubs_spec.rb - remove global Windows skip
Added one skip for:
bundle binstubs <gem>
when the gem exists in the lockfile
when generating bundle binstub outside bundler
should abort
https://github.com/rubygems/rubygems/commit/b77b484889
MSP-Greg (Greg L)
07:05 AM Revision f3ad8a00 (git): [rubygems/rubygems] bundler/lib/bundler/installer.rb - fix Windows 'executable_stubs'
Windows normal shell requires binstubs with *.cmd extensions
https://github.com/rubygems/rubygems/commit/b46326eb1f
MSP-Greg (Greg L)
06:57 AM Revision 48ba9b61 (git): Update actions/cache from v1 to v2
Signed-off-by: Sora Morimoto <sora@morimoto.io> Sora Morimoto
04:36 AM Revision c25d249e (git): RBasci::flags (VALUE) doesn't match int.
The type of RBasic::flags is VALUE, and INT2FIX(flags) does not
make sense. Use correct type to represent.
ko1 (Koichi Sasada)
02:22 AM Revision dfe88350 (git): * 2020-07-15 [ci skip]
git[bot]
02:21 AM Revision fc220b12 (git): rubygems is needed to run solo-file test
ko1 (Koichi Sasada)
02:21 AM Revision c87ee800 (git): rubygems is needed to run solo-file test
ko1 (Koichi Sasada)

07/14/2020

07:56 PM Bug #17032 (Closed): BigDecimal's `to_d` behaves inconsistent compared to `to_f`
I would expect `to_f` and `to_d` to behave identically. Specifically, `nil.to_d` should behave like `nil.to_f`.
```ruby
require 'bigdecimal'
require 'bigdecimal/util'
nil.to_f # => 0.0
nil.to_d # >> NoMethodError (undefined method...
TiloS (Tilo S)
07:07 PM Bug #17031 (Closed): `Kernel#caller_locations(m, n)` should be optimized
`Kernel#caller_locations(1, 1)` currently appears to needlessly allocate memory for the whole backtrace.
It allocates ~20kB for a 800-deep stacktrace, vs 1.6 kB for a shallow backtrace.
It is also much slower for long stacktraces: ab...
marcandre (Marc-Andre Lafortune)
06:20 PM Feature #17016: Enumerable#accumulate
Eregon (Benoit Daloze) wrote in #note-6:
> Maybe `prefix_sum` or just `prefix` or something like that would work?
> ...
I agree that including "sum" in the name is confusing. I think that "prefix_sum" is just used to describe the sum o...
parker (Parker Finch)
05:50 PM Feature #17016: Enumerable#accumulate
shyouhei (Shyouhei Urabe) wrote in #note-10:
> It might be possible to let inject be lazy if we ignore backwards compatibility. But how do we partially evaluate that lazy enumerator then?
I think this is the crux of the issue. Becau...
parker (Parker Finch)
01:46 PM Bug #17030: Enumerable#grep{_v} should be optimized for Regexp
nobu (Nobuyoshi Nakada) wrote in #note-4:
> Even without a block, `grep` sets `$~` to the last match result.
I agree with @eregon, doesn't seem like it makes much sense to use that.
There's also no valid reason it should set `$~` ...
marcandre (Marc-Andre Lafortune)
01:28 PM Bug #17030: Enumerable#grep{_v} should be optimized for Regexp
nobu (Nobuyoshi Nakada) wrote in #note-4:
> Even without a block, `grep` sets `$~` to the last match result.
I guess cases using `$~` after the call to `grep` are very rare (notably because only the last match of the Enumerable would...
Eregon (Benoit Daloze)
10:25 AM Bug #17030: Enumerable#grep{_v} should be optimized for Regexp
Even without a block, `grep` sets `$~` to the last match result. nobu (Nobuyoshi Nakada)
03:37 AM Bug #17030: Enumerable#grep{_v} should be optimized for Regexp
You are right for `grep` with a block, we can't necessarily optimize, but we should optimize `grep` without a block, no? marcandre (Marc-Andre Lafortune)
01:24 AM Bug #17030: Enumerable#grep{_v} should be optimized for Regexp
Yes but E#grep's allocating MatchData is by spec. You can observe `$&` etc. by passing a block to it.
```ruby
p %w[q w e r].grep(/./) { $~ }
```
So this is at least a breaking change.
shyouhei (Shyouhei Urabe)
04:19 AM Revision e60cd14d (git): ON_DEBUG: delete unused macro
This is no longer used. shyouhei (Shyouhei Urabe)
04:15 AM Revision 8d3a0845 (git): _mjit_compile_invokebuiltin: sp_inc can be negative
Was my bad to assume sp_inc was positive. Real criteria is the
calculated sp is non-negative. We have to assert that.
shyouhei (Shyouhei Urabe)
03:30 AM Bug #17028: On the latest OpenSSL adaptation
OpenSSL 1.1.1d is out-of-date a little.
With which version of ruby did you build it?
nobu (Nobuyoshi Nakada)

07/13/2020

10:06 PM Bug #17027: Connection leak possibility in Net::FTP#transfercmd
https://github.com/ruby/net-ftp/pull/2 koshigoe (Masataka SUZUKI)
04:57 PM Bug #17027: Connection leak possibility in Net::FTP#transfercmd
Your patch looks good to me. However, the net/ftp library is maintained in a separate repository. Please submit your patch as a pull request to https://github.com/ruby/net-ftp/pulls. jeremyevans0 (Jeremy Evans)
11:00 AM Bug #17027: Connection leak possibility in Net::FTP#transfercmd
Is this patch correct?
Should I close connection use `shutdown` and `read`?
```diff
--- /Users/koshigoe/.rbenv/versions/2.7.1/lib/ruby/2.7.0/net/ftp.rb.orig 2020-07-13 19:41:53.000000000 +0900
+++ /Users/koshigoe/.rbenv/versions/2....
koshigoe (Masataka SUZUKI)
10:51 AM Bug #17027: Connection leak possibility in Net::FTP#transfercmd
Fixed only about ACTIVE mode? koshigoe (Masataka SUZUKI)
10:46 AM Bug #17027: Connection leak possibility in Net::FTP#transfercmd
Oops
https://bugs.ruby-lang.org/issues/9872
koshigoe (Masataka SUZUKI)
10:44 AM Bug #17027 (Closed): Connection leak possibility in Net::FTP#transfercmd
https://github.com/ruby/ruby/blob/bad7ab35d1e38f47b09f15fc5750387ac73b2286/lib/net/ftp.rb#L542-L556
https://github.com/ruby/net-ftp/blob/14d2544190f7e4b77b41a3fd0c676f5b8ebd238c/lib/net/ftp.rb#L542-L556
The connection `conn` may not ...
koshigoe (Masataka SUZUKI)
09:51 PM Feature #16984: Remove write barrier exemption for T_ICLASS
Edit: I noticed that T_ICLASS wasn't marking the shared method and constant table on master. My notes
about reducing the number of `gc_mark` references on the heap were incorrect.
alanwu (Alan Wu)
09:01 PM Bug #17029: URI.parse considers https://example.com/### invalid when browsers consider it valid
It's not valid according to RFC 3986 (the URI standard) but that is pretty old now. I suspect switching from the IETF URI spec to the WHATWG URL spec would have other consequences, too. phluid61 (Matthew Kerwin)
05:38 PM Bug #17029: URI.parse considers https://example.com/### invalid when browsers consider it valid
This does seem like a bug to me. It looks like `https://example.com/###` should be an valid URL with a fragment of `##`. However, the uri library is maintained in a separate repository. Please submit this as an issue to https://github... jeremyevans0 (Jeremy Evans)
05:33 PM Bug #17029 (Closed): URI.parse considers https://example.com/### invalid when browsers consider it valid
I have a form with `<input type="url" required>` and in the backend, I try to extract the domain with `URI.parse(url).host`
A user was able to submit a value like `https://example.com/###` which passed the browser's validation check, ...
nileshtr (Nilesh Trivedi)
08:27 PM Bug #17030: Enumerable#grep{_v} should be optimized for Regexp
Code to reproduce by @fatkodima:
```ruby
require 'benchmark-ips'
require 'benchmark-memory'
arr = %w[foobar foobaz bazquux hello world just making this array longer]
REGEXP = /o/
def select_match(arr)
arr.select { |e| e.match?(REGE...
marcandre (Marc-Andre Lafortune)
08:26 PM Bug #17030 (Closed): Enumerable#grep{_v} should be optimized for Regexp
Currently,
```ruby
array.select { |e| e.match?(REGEXP) }
```
is about three times faster and six times more memory efficient than
```ruby
array.grep(REGEXP)
```
This is because `grep` calls `Regexp#===`, which creates use...
marcandre (Marc-Andre Lafortune)
05:55 PM Bug #17023: How to prevent String memory to be relocated in ruby-ffi
This is fixed in 6e7e7c1e577d6c2276e9a8cc85c28c55c46c2618. I tried cherry picking the commit to ruby_2_7, but got a conflict. I've attached the patch with the conflict resolved.
Thanks for reporting this!
tenderlovemaking (Aaron Patterson)
05:09 PM Bug #17017 (Closed): Range#max & Range#minmax incorrectly use Float end as max
Applied in changeset commit:git|8900a25581822759daca528d46a75e0b743fc22e.
----------
Fix Range#{max,minmax} for range with integer beginning and non-integer end
Previously, for inclusive ranges, the max would show up as the
end of the ...
jeremyevans (Jeremy Evans)
05:09 PM Revision 8900a255 (git): Fix Range#{max,minmax} for range with integer beginning and non-integer end
Previously, for inclusive ranges, the max would show up as the
end of the range, even though the end was not an integer and would
not be the maximum value. For exclusive ranges, max/minmax would
previously raise a TypeError, even though...
jeremyevans (Jeremy Evans)
05:07 PM Revision a1bcfbe3 (git): * 2020-07-14 [ci skip]
git[bot]
05:06 PM Revision 46d1777a (git): Remove --jit-min-calls for now
--jit-min-calls=5 is too unstable k0kubun (Takashi Kokubun)
05:03 PM Bug #16116 (Closed): ruby2.6.3(x86/x64) use win32ole could not new Object, return 0x80070057
jeremyevans0 (Jeremy Evans)
04:47 PM Feature #10911: IPAddr.new should ignore zone identifiers
I've submitted a pull request to the ipaddr repository for this: https://github.com/ruby/ipaddr/pull/24 jeremyevans0 (Jeremy Evans)
01:06 PM Bug #17028 (Feedback): On the latest OpenSSL adaptation
Can you file its details to http://github.com/ruby/openssl?
hsbt (Hiroshi SHIBATA)
12:19 PM Bug #17028 (Closed): On the latest OpenSSL adaptation
I just compiled ruby, but it failed to compile under OpenSSL 1.1.1d. Due to changes in ABI and detection macro, there were various errors. I even modified the following file to complete the compilation:
1. Note the full code of `opens...
jack9603301 (春晖 欧阳)
10:07 AM Bug #17026 (Closed): Backport 26c179d7e7e7ae0eb21050659c3e8778358230ab to fix ObjectSpace._id2ref
[26c179d7e7e7] fixes SEGV at non-numeric argument to `ObjectSpace._id2ref`.
[26c179d7e7e7]: https://bugs.ruby-lang.org/projects/ruby-master/repository/git/revisions/26c179d7e7e7ae0eb21050659c3e8778358230ab
nobu (Nobuyoshi Nakada)
09:45 AM Bug #16896 (Closed): MakeMakefile methods should be private
Applied in changeset commit:git|c2a6295ec04a191c689d22254ac1ad5d665e27ad.
----------
Make the mkmf methods private in the global [Bug #16896]
nobu (Nobuyoshi Nakada)
09:44 AM Revision c2a6295e (git): Make the mkmf methods private in the global [Bug #16896]
nobu (Nobuyoshi Nakada)
05:10 AM Revision d99d96cc (git): Add --jit-min-calls=5 (#3313)
* RUN_OPTS needs to be specified for overriding it
* Add --jit-min-calls=5
k0kubun (Takashi Kokubun)
04:28 AM Bug #17025 (Closed): `Time#ceil` does not work like `Rational#ceil` or `Float#ceil`
## Current behavior
```
irb(main):011:0> time = Time.utc(2016, 4, 23, 0, 0, "0.123456789".to_r)
irb(main):012:0> time.ceil(9)
=> 2016-04-23 00:00:00.12345679 UTC
irb(main):013:0> time.ceil(10)
=> 2016-04-23 00:00:00 1234567891/10...
tgxworld (Guo Xiang Tan)
04:28 AM Misc #17019: DevelopersMeeting20200720Japan
* [Feature #13381] Expose rb_fstring and its family to C extensions (tenderlove)
* Can we expose the fstring family of functions? It seems the answer is "yes" but we need a better name (is this the current status?)
tenderlovemaking (Aaron Patterson)
03:45 AM Revision 2e5a711f (git): common.mk: add missing dependency
shyouhei (Shyouhei Urabe)
03:30 AM Revision 927fe242 (git): mk_builtin_loader.rb: STACK_ADDR_FROM_TOP unusable
Stacks are emulated in MJIT, must not touch the original VM stack.
See also http://ci.rvm.jp/results/trunk-mjit-wait@silicon-docker/3061353
shyouhei (Shyouhei Urabe)
02:33 AM Revision 16bc9bf7 (git): [DOC] Use https:// instead of http:// [ci skip]
znz (Kazuhiro NISHIYAMA)

07/12/2020

11:56 PM Revision 7e536b3b (git): builtin.h: avoid copy&paste
Instead of doubling the invokebuiltin logic here and there, use the same
insns.def definition for both MJIT/non-JIT situations.
shyouhei (Shyouhei Urabe)
11:56 PM Revision 802bcd3e (git): fix MJIT link error
shyouhei (Shyouhei Urabe)
11:56 PM Revision 4506f611 (git): %p is not portable accross platforms
This commit fixes compiler error on MSVC. %p on that platform is not
suitable to represent a compile-time constant.
https://ci.appveyor.com/project/ruby/ruby/builds/34017163/job/vj2a8uk3gwv9yxak#L24381
shyouhei (Shyouhei Urabe)
11:56 PM Revision 2363a16e (git): add comments
shyouhei (Shyouhei Urabe)
11:56 PM Revision 5783d84a (git): fix typo
shyouhei (Shyouhei Urabe)
11:56 PM Revision 9721f477 (git): inline Primitive.cexpr!
We can obtain the verbatim source code of Primitive.cexpr!. Why not
paste that content into the JITed program.
shyouhei (Shyouhei Urabe)
11:56 PM Revision f66e0212 (git): precalc invokebuiltin destinations
Noticed that struct rb_builtin_function is a purely compile-time
constant. MJIT can eliminate some runtime calculations by statically
generate dedicated C code generator for each builtin functions.
shyouhei (Shyouhei Urabe)
11:51 PM Feature #17016: Enumerable#accumulate
It might be possible to let inject be lazy if we ignore backwards compatibility. But how do we partially evaluate that lazy enumerator then? shyouhei (Shyouhei Urabe)
11:32 AM Feature #17016: Enumerable#accumulate
nobu (Nobuyoshi Nakada) wrote in #note-8:
> It has a backward incompatibility on the return value.
> ...
Right, `inject` might return anything, not necessarily an Array and so returning a "lazy Enumerator" instead will be unwanted in a...
Eregon (Benoit Daloze)
08:52 AM Feature #17016: Enumerable#accumulate
Eregon (Benoit Daloze) wrote in #note-7:
> nobu (Nobuyoshi Nakada) wrote in #note-5:
> ...
It has a backward incompatibility on the return value.
I’m afraid if it’s acceptable.
nobu (Nobuyoshi Nakada)
04:51 PM Bug #17023: How to prevent String memory to be relocated in ruby-ffi
Stack scanning should prevent `a` from moving, so you shouldn’t need to do anything to pin this. I will also try this against the master branch, and if it’s fixed there I’ll find the commit that fixed it. Regardless objects that are on... tenderlovemaking (Aaron Patterson)
03:57 PM Bug #16896: MakeMakefile methods should be private
Right, it's used here: https://github.com/ruby/ruby/blob/5d02c1dd14648d95178ac5ec756f5b03fe00d549/ext/-test-/cxxanyargs/extconf.rb#L12
The PR sounds good then, thanks!
Eregon (Benoit Daloze)
02:25 PM Bug #16896: MakeMakefile methods should be private
Eregon (Benoit Daloze) wrote in #note-8:
> I think `MakeMakefile.foo` usages are fine, so how about using `module_function`, so on `include` they are private, and when used on the singleton class (`MakeMakefile.foo`) they are public?
...
nobu (Nobuyoshi Nakada)
11:40 AM Bug #16896: MakeMakefile methods should be private
nobu (Nobuyoshi Nakada) wrote in #note-3:
> Why do you need to use mkmf outside extconf.rb?
Actually the issue above happened inside `extconf.rb`.
But `extconf.rb` might require anything, including `FFI`, so there can conflicts in `...
Eregon (Benoit Daloze)
11:37 AM Bug #16896: MakeMakefile methods should be private
I think `MakeMakefile.foo` usages are fine, so how about using `module_function`, so on `include` they are private, and when used on the singleton class (`MakeMakefile.foo`) they are public? Eregon (Benoit Daloze)
04:07 AM Bug #16896: MakeMakefile methods should be private
shyouhei (Shyouhei Urabe) wrote in #note-5:
> I'd be happy to rewrite cxxanyargs' extconf.rb if there is an alternative way without a receiver.
I don't think you have to rewrite it, it feels better way for the future.
https://github...
nobu (Nobuyoshi Nakada)
02:37 AM Bug #16896: MakeMakefile methods should be private
I'd be happy to rewrite cxxanyargs' extconf.rb if there is an alternative way without a receiver. shyouhei (Shyouhei Urabe)
03:35 PM Revision 5d02c1dd (git): * 2020-07-13 [ci skip]
git[bot]
03:31 PM Revision 6c8af6b6 (git): sync_default_gems.rb: Updated comments
* removed out-of-date and duplicate list
* stated that everything synced from github
nobu (Nobuyoshi Nakada)
03:30 PM Revision 49cb2345 (git): sync_default_gems.rb: Added `list` subcommand
nobu (Nobuyoshi Nakada)
03:14 PM Revision 6cd600ef (git): sync_default_gems.rb: Ignore conflicted files in toplevel more
nobu (Nobuyoshi Nakada)
02:41 PM Revision 162d08b8 (git): sync_default_gems.rb: Added -e option to edit when conflicted
nobu (Nobuyoshi Nakada)
02:31 PM Bug #17024 (Closed): Times with timezones return incorrect wday and yday
Applied in changeset commit:git|99a9c3fe2eaab8157765d792dc871da6daea0327.
----------
Fixed yday and wday with timezone [Bug #17024]
nobu (Nobuyoshi Nakada)
01:01 PM Bug #17024: Times with timezones return incorrect wday and yday
https://github.com/ruby/ruby/pull/3312 nobu (Nobuyoshi Nakada)
12:58 PM Revision 99a9c3fe (git): Fixed yday and wday with timezone [Bug #17024]
nobu (Nobuyoshi Nakada)
08:30 AM Revision 90935ff2 (git): * 2020-07-12 [ci skip]
git[bot]
08:30 AM Revision 9b433d34 (git): bidecimal: improve tests' independence (#3297)
Tests depending on the rounding mode must specify the appropriate rounding
mode and restore to the original mode at the end.
Kenta Murata

07/11/2020

05:49 PM Feature #17016: Enumerable#accumulate
nobu (Nobuyoshi Nakada) wrote in #note-5:
> That sounds like `Enumerator::Lazy` needs `#inject` and `#each_with_object` methods to me.
A lazy `#inject` sounds useful.
Eregon (Benoit Daloze)
05:47 PM Feature #17016: Enumerable#accumulate
parker (Parker Finch) wrote in #note-4:
Thanks for your reply, I think it will help to discuss this issue at the dev meeting.
Maybe `prefix_sum` or just `prefix` or something like that would work?
Having `sum` in it is kind of con...
Eregon (Benoit Daloze)
05:46 AM Feature #17016: Enumerable#accumulate
parker (Parker Finch) wrote in #note-2:
> Good question! Using `#inject` or `#each_with_object` cannot be done lazily. We need to pass a lazy enumerator *after* applying the fold-like operation. As a toy example, instead of `[1, 2, 3]` w...
nobu (Nobuyoshi Nakada)
01:01 PM Revision 3b96ad9b (git): Enhanced RDoc for Array#fill (#3301)
* Enhanced RDoc for Array#fill
* Update array.c
There's one more at 5072. I'll get it.
Co-authored-by: Eric Hodel <drbrain@segment7.net>
* Update array.c
Co-authored-by: Eric Hodel <drbrain@segment7.net>
* Update array.c
Co-autho...
burdettelamar (Burdette Lamar)
12:40 PM Bug #17024: Times with timezones return incorrect wday and yday
For example:
```
$ irb -r tzinfo
irb(main):001:0> Time.new(2020, 1, 1, 0, 0, 0, TZInfo::Timezone.get('America/New_York')).wday
=> 7
irb(main):002:0> Time.new(2020, 1, 1, 0, 0, 0, TZInfo::Timezone.get('America/New_York')).yday
=> 0
...
timcraft (Tim Craft)
10:22 AM Bug #17024 (Closed): Times with timezones return incorrect wday and yday
The timezone support added to Time in Ruby 2.6 does not appear to handle wday and yday.
I don't know what the most appropriate fix is, but looking at time.c and [the commit which introduced the timezone feature](https://github.com/rub...
timcraft (Tim Craft)
10:11 AM Bug #17023 (Closed): How to prevent String memory to be relocated in ruby-ffi
As it doesn't seem to occur in the master but only in 2.7, I'll close this and set "Backport to 2.7" required, although I'm not sure if it is a bug.
Aaron, could you tell which commit fixed this?
nobu (Nobuyoshi Nakada)
12:24 AM Bug #17023 (Assigned): How to prevent String memory to be relocated in ruby-ffi
duerst (Martin Dürst)
08:01 AM Feature #17022: Addition of method Kernel#Date
> IMHO, as Date.parse is too heuristic & magical for humans
I agree, what about ISO-8601?
byroot (Jean Boussier)
06:06 AM Feature #17022 (Third Party's Issue): Addition of method Kernel#Date
Please file at https://github.com/ruby/date.
IMHO, as `Date.parse` is too heuristic & magical for humans, I don't think we should encourage using it.
nobu (Nobuyoshi Nakada)
07:33 AM Bug #16896: MakeMakefile methods should be private
I found that `ext/-test-/cxxanyargs/extconf.rb` calls `try_link` with a receiver. nobu (Nobuyoshi Nakada)
06:29 AM Bug #16896 (Feedback): MakeMakefile methods should be private
Why do you need to use mkmf outside extconf.rb? nobu (Nobuyoshi Nakada)
07:23 AM Revision bad7ab35 (git): test/lib/jit_support.rb: Let JIT tests skip on centos8
It has the same issue as RHEL 8. k0kubun said he will fix later mame (Yusuke Endoh)
07:10 AM Revision b4c893a6 (git): OpenSSL 1.1.1 introduces a new '.include' directive. Update our config
parser to support that.
As mentioned in the referenced GitHub issue, we should use the OpenSSL
API instead of implementing the parsing logic ourselves, but it will
need backwards-incompatible changes which we can't backport to stable
ve...
nagachika (Tomoyuki Chikanaga)
06:21 AM Revision eaa2de31 (git): Fixed a comment, wrong binary prefix [ci skip]
nobu (Nobuyoshi Nakada)
02:42 AM Revision cbf52087 (git): Fix missing imemo cases in objspace_dump by refactoring
imemo_callcache and imemo_callinfo were not handled by the `objspace`
module and were showing up as "unknown" in the dump. Extract the code for
naming imemos and use that in both the GC and the `objspace` module.
alanwu (Alan Wu)

07/10/2020

10:38 PM Bug #16977 (Closed): Ambiguous lookup super for refinements
Applied in changeset commit:git|021cec938af55a7ef368eadc99a6e3ff2252510e.
----------
Clarify behavior of super in method in module included in refinement [ci skip]
Fixes [Bug #16977]
jeremyevans (Jeremy Evans)
10:31 PM Revision 021cec93 (git): Clarify behavior of super in method in module included in refinement [ci skip]
Fixes [Bug #16977] jeremyevans (Jeremy Evans)
10:20 PM Bug #17007: SystemStackError when using super inside Module included and lexically inside refinement
After more analysis, I've determined that this issue is due to CREF handling in method lookup in `search_refined_method`. It fails in the lexical case because the module is affected by the refinement (refinement blocks have an implicit ... jeremyevans0 (Jeremy Evans)
09:11 PM Bug #17023: How to prevent String memory to be relocated in ruby-ffi
@chrisseaton Exactly, the string is considered `const char *` as mentioned here for the `:string` type: https://github.com/ffi/ffi/wiki/Types#user-content-types larskanis (Lars Kanis)
07:51 PM Bug #17023: How to prevent String memory to be relocated in ruby-ffi
> The user has to ensure on Ruby level that the string isn't GC'ed
The contract has always been more than that - the user must also not modify the string, as this may cause the character pointer to be reallocated.
chrisseaton (Chris Seaton)
05:54 PM Bug #17023 (Closed): How to prevent String memory to be relocated in ruby-ffi
[ruby-ffi](https://github.com/ffi/ffi) allows to pass String objects to C by using the `:string` argument type. This way the string memory returned by `RSTRING_PTR` is passed to the C function. The user has to ensure on Ruby level that t... larskanis (Lars Kanis)
08:57 PM Feature #17016: Enumerable#accumulate
> The name `scan` seems confusing at least, since it has nothing to do with `String#scan`.
> ...
Ah sorry, I forgot to mention that the term "scan" is what this operation is typically called in functional programming (see [here](https:/...
parker (Parker Finch)
05:22 PM Bug #16896: MakeMakefile methods should be private
I agree with @eregon that making the above methods private would be desirable. However I searched on github for code examples of public methods of `MakeMakefile` and found at least these two:
* https://github.com/cloudavail/snippets/blo...
larskanis (Lars Kanis)
04:34 PM Bug #16922 (Closed): single quote should be escaped in xml
Applied in changeset commit:git|ddd9704ae9bf884d867b6f57a16c095a79393fff.
----------
Encode ' as &apos; when using encode(xml: :attr)
Fixes [Bug #16922]
jeremyevans (Jeremy Evans)
04:34 PM Revision c786954b (git): * 2020-07-11 [ci skip]
git[bot]
04:34 PM Revision ddd9704a (git): Encode ' as &apos; when using encode(xml: :attr)
Fixes [Bug #16922] jeremyevans (Jeremy Evans)
04:29 PM Bug #17017: Range#max & Range#minmax incorrectly use Float end as max
I've added a pull request that fixes this issue: https://github.com/ruby/ruby/pull/3306 jeremyevans0 (Jeremy Evans)
04:09 PM Feature #16739: Allow Hash#keys and Hash#values to accept a block for filtering output
sawa (Tsuyoshi Sawada) wrote in #note-5:
> Includes a duplicate of #14788.
I just want to note that this is proposal is for a *more powerful* feature than what's proposed in #14788, because both the key and value would be available to t...
jacobevelyn (Jacob Evelyn)
02:47 PM Feature #17000: 2.7.2 turns off deprecation warnings by default
Dan0042 (Daniel DeLorme) wrote in #note-12:
> So has anyone considered silencing warnings when they originate from gems? I mean, the warning already includes that information:
> ...
This is simple to do with the warning gem:
```ruby...
jeremyevans0 (Jeremy Evans)
01:58 PM Feature #17000: 2.7.2 turns off deprecation warnings by default
It seems to me the big issue is that developers have little power over warnings that come from gems. If the gem that produces warnings has not been patched yet, you have to wait for an update and suffer the warnings in the meantime.
S...
Dan0042 (Daniel DeLorme)
10:27 AM Revision 82489f02 (git): Show messages around the line when replacing failed in format_changelog
znz (Kazuhiro NISHIYAMA)
08:16 AM Feature #16986: Anonymous Struct literal
Maybe `{a = 1, b = "hello world"}`? zliang (Gimi Liang)
07:49 AM Revision 615758bd (git): Fix an inaccurate comment in test_jit
k0kubun (Takashi Kokubun)
07:44 AM Revision 7fa3c71b (git): Make sure vm_call_cfunc uses inlined cc
which is checked by the first guard. When JIT-inlined cc and operand
cd->cc are different, the JIT-ed code might wrongly dispatch cd->cc even
while class check is done with another cc inlined by JIT.
This fixes SEGV on railsbench.
k0kubun (Takashi Kokubun)
04:02 AM Revision 49899874 (git): Explicit conversion to boolean to suppress shorten-64-to-32 warnings
nobu (Nobuyoshi Nakada)
03:48 AM Revision a82252df (git): Fixed another typo
nobu (Nobuyoshi Nakada)
03:32 AM Revision 234f8eee (git): Fixed typos
nobu (Nobuyoshi Nakada)
03:23 AM Revision e4ee9920 (git): vm_push_frame_debug_counter_inc: use branches
Ko1 doesn't like previous code. shyouhei (Shyouhei Urabe)
03:23 AM Revision 0e276dc4 (git): vm_push_frame: move assignments around
Struct assignment using a compound literal is more readable than before,
to me at least. It seems compilers reorder assignments anyways.
Neither speedup nor slowdown is observed on my machine.
shyouhei (Shyouhei Urabe)
03:23 AM Revision 215c6fa3 (git): RUBY_CONST_ASSERT: use STATIC_ASSERT instead
Static assertions shall be done using STATIC_ASSERT these days. shyouhei (Shyouhei Urabe)
03:23 AM Revision 4b8170ce (git): vm_push_frame: move assertions out of the function
These assertions are purely static. Ned not be checked on-the-fly. shyouhei (Shyouhei Urabe)
03:23 AM Revision 1d93705d (git): vm_push_frame: hoist out debug codes
Made it a bit readable. shyouhei (Shyouhei Urabe)
03:23 AM Revision db7f3496 (git): nobody uses the return value of vm_push_frame
Surprised to see such a waste of time in this super duper hot path. shyouhei (Shyouhei Urabe)
02:37 AM Feature #17022 (Third Party's Issue): Addition of method Kernel#Date
What if we have a method `Kernel#Date` that delegates to `Date.parse`? Dates could be written in a more natural way, right?
```ruby
Date("2020-01-13") - Date("2019-01-13")
```
Capitalized methods are defined on the `Kernel` modul...
americodls (Americo Duarte)
12:17 AM Bug #16904: rubygems: psych: superclass mismatch for class Mark (TypeError)
jaruga (Jun Aruga) wrote in #note-12:
> Is it possible to do backport the fixes to Ruby 2.7?
> ...
After releasing RG 3.1.5 contains the above patches, We will request to merge it to `ruby_2_7` branch.
hsbt (Hiroshi SHIBATA)

07/09/2020

11:53 PM Bug #16998: [Backport] support for Bison 3 to 2.6 and 2.7
backported into ruby_2_7 at 1ee1684a4a3edb26b5aa32acc967b9ef26284d42, 06ab2791c38c431e08bc8d9381c9a1ca727297c4, b971bad49b95d4c1f68bb2242d4267355f1cd497 and a0bb4eb04512b3f8ca50ec5fa72e3d4a8278ca46. nagachika (Tomoyuki Chikanaga)
11:47 PM Bug #16998: [Backport] support for Bison 3 to 2.6 and 2.7
I cannot find relevant commit with hash `8e694129305a3978313cf4bcd463c6aa2ba9ceb4`.
Maybe you meant `5c2508060b79b4299a18d05511d3530ad14b1b7a` and/or `2480ef904c66812cf366e5d9bc8a9c3c20bbf271` ?
nagachika (Tomoyuki Chikanaga)
11:51 PM Revision a0bb4eb0 (git): bump patchlevel: merge commits: 5c2508060b79b4299a18d05511d3530ad14b1b7a 2480ef904c66812cf366e5d9bc8a9c3c20bbf271 47720e2255f34ecad49763c66a7ea02a55a3f60a
nagachika (Tomoyuki Chikanaga)
11:50 PM Revision b971bad4 (git): Bison 3.59.1 folds yydestruct function header
nobu (Nobuyoshi Nakada)
11:50 PM Revision 06ab2791 (git): pure_parser.rb: get rid of an error at localed messages
nobu (Nobuyoshi Nakada)
11:50 PM Revision 1ee1684a (git): Bison 3.5.91 now defaults parse.error to "simple"
nobu (Nobuyoshi Nakada)
10:02 PM Bug #16982: Define instance_methods and so on explicitly on classes generated by DelegateClass
I agree that this is a bug, and your pull request is a good way to fix it. I have squash merged your pull request. Thank you @pocke! jeremyevans0 (Jeremy Evans)
10:01 PM Bug #16982 (Closed): Define instance_methods and so on explicitly on classes generated by DelegateClass
Applied in changeset commit:git|ba81bc24e62d03cc0f4c05cf4e2b378696631568.
----------
Add instance_methods to class generated by DelegateClass
Also, make DelegateClass.instance_method fallback to superclass.
Fixes [Bug #16982]
pocke (Masataka Kuwabara)
10:01 PM Revision ba81bc24 (git): Add instance_methods to class generated by DelegateClass
Also, make DelegateClass.instance_method fallback to superclass.
Fixes [Bug #16982]
pocke (Masataka Kuwabara)
09:50 PM Revision 7a479b30 (git): * 2020-07-10 [ci skip]
git[bot]
09:50 PM Bug #16988 (Closed): Kernel.load loads file from current directory without '.' in path
Applied in changeset commit:git|e1bbb9ea9ce205320267783960cfb2e9215d5f52.
----------
Document that Kernel#load will load relative to current directory [ci skip]
Update and format the Kernel#load documentation to separate the
three case...
jeremyevans (Jeremy Evans)
09:16 PM Bug #16988: Kernel.load loads file from current directory without '.' in path
TheSmartnik (Nikita Misharin) wrote in #note-2:
> nobu (Nobuyoshi Nakada) wrote in #note-1:
> ...
I don't think so. `load` has always been able to load files that exist relative to the current directory, and `require` has not. Techni...
jeremyevans0 (Jeremy Evans)
09:47 PM Revision e1bbb9ea (git): Document that Kernel#load will load relative to current directory [ci skip]
Update and format the Kernel#load documentation to separate the
three cases (absolute path, explicit relative path, other), and
also document that it raises LoadError on failure.
Fixes [Bug #16988]
jeremyevans (Jeremy Evans)
09:47 PM Feature #16978: Ruby should not use realpath for __FILE__
> this code would change behavior:
Absolutely, different `$LOAD_PATH` must result in different behavior.
> ...
This is actually where I am coming from. I am not 100 % sure what is the spec of `require`, but I would expect that `req...
vo.x (Vit Ondruch)
09:18 PM Feature #16978: Ruby should not use realpath for __FILE__
The "main file" (the file passed to `ruby myfile.rb` is also special in that `__FILE__` and `$0` can both be relative paths (basically the same path as passed on the command line). Eregon (Benoit Daloze)
09:10 PM Feature #16978: Ruby should not use realpath for __FILE__
I don't think this is a bug. `__FILE__` is documented as follows: `The path to the current file.` Which path (real, absolute, relative, expanded) is not specified.
Not using the real path would lead to behavior that depends on the f...
jeremyevans0 (Jeremy Evans)
09:33 PM Feature #17016: Enumerable#accumulate
The name `scan` seems confusing at least, since it has nothing to do with `String#scan`.
And `*_left` has no precedent in Ruby.
It seems it's basically recording the history of each block call (+ the initial value), maybe a name expr...
Eregon (Benoit Daloze)
08:34 PM Misc #17019: DevelopersMeeting20200720Japan
* [Feature #17016] Enumerable#scan_left (parker)
* There is a [pull request](https://github.com/ruby/ruby/pull/3078) to implement `#scan_left`, i.e. the [scan](https://en.wikipedia.org/wiki/Prefix_sum#Scan_higher_order_function) opera...
parker (Parker Finch)
07:39 AM Misc #17019: DevelopersMeeting20200720Japan
* [Feature #17000] 2.7.2 turns off deprecation warnings by default (mame)
* It is already decided that we fix, but it has been discussed how to fix. (Nagachika-san will not attend the meeting, but I'd like to hear opinions from commit...
mame (Yusuke Endoh)
12:19 AM Misc #17019: DevelopersMeeting20200720Japan
* [Feature #17004] Provide a way for methods to omit their return value (shyouhei)
* Is it a nice trick that we want to have, or a bad tool that is too easy to be abused?
shyouhei (Shyouhei Urabe)
07:54 PM Bug #16958 (Closed): bytes: stack level too deep (SystemStackError)
jeremyevans0 (Jeremy Evans)
12:03 PM Revision 601613fd (git): merge revision(s) 87ad5ea729735ff6b8f1ac0bb3aad2aedd6f716e,9745e90197f129708986803e8913fb151862478a:
Skip jit_test on some new RubyCI envs for now
Propagate JIT skip to all tests
nagachika (Tomoyuki Chikanaga)
11:57 AM Bug #17021 (Closed): "arm64" and "arm" are mixed in RbConfig on Apple silicon
When I checked the value of `RbConfig::CONFIG` on the Apple silicon macOS,e I found "arm64" and "arm" are mixed as following.
```
$ ruby -v
ruby 2.8.0dev (2020-07-09T09:14:53Z master addbb7d16e) [arm64-darwin20]
$ ruby -e 'requ...
watson1978 (Shizuo Fujita)
11:54 AM Revision 6c220704 (git): merge revision(s) 21d8e6924844d592ff2d5a2e7309457eb92e66f6:
disable to show the maximum number of threads.
On Deiban 9 environment, the thread tests failed and
this maximum threads information can finish up the machine
resources. To check it, I turned-off showing this inf...
nagachika (Tomoyuki Chikanaga)
09:14 AM Revision addbb7d1 (git): Fix typos [ci skip]
znz (Kazuhiro NISHIYAMA)
08:11 AM Bug #17020: ObjectSpace.trace_object_allocations_stop raises if called before trace_object_allocations_start
As explained in the PR, I have no idea how to write a regression test, because as long as `ObjectSpace.trace_object_allocations_start` was called at least once in the program, it no longer fails afterwards. That is what led me to think i... byroot (Jean Boussier)
06:00 AM Bug #17020: ObjectSpace.trace_object_allocations_stop raises if called before trace_object_allocations_start
A possible alternative might be an exception, I thought first, but it isn’t a single condition.
Could you add the test?
nobu (Nobuyoshi Nakada)
07:36 AM Feature #17000: 2.7.2 turns off deprecation warnings by default
How difficult it is to just disable some warnings!
I think that byroot is right here. Unfortunately, the practice of `$VERBOSE=true` is not so popular, so it will make many libraries "too verbose". Many unrelated warnings will makes...
mame (Yusuke Endoh)
04:56 AM Revision cb0404cc (git): * 2020-07-09 [ci skip]
git[bot]
04:53 AM Revision a0a5eec0 (git): Bail out when unsupported coroutine target
nobu (Nobuyoshi Nakada)
 

Also available in: Atom