Project

General

Profile

Activity

From 02/23/2018 to 03/01/2018

03/01/2018

10:49 PM Revision 72df2630 (git): * 2018-03-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:49 PM Revision f6ff45ce (git): MJIT specific flags
Passing options to configure like as `configure MJIT_OPTFLAGS=-O
MJIT_DEBUGFLAGS=-g` overrides options to be used to compile JIT
code, separately from the default options to be used for ruby
itself.
git-svn-id: svn+ssh://ci.ruby-lang.or...
nobu (Nobuyoshi Nakada)
05:56 PM Feature #14565: Simpler, one-liner, failsafe require in ruby? [Suggested names: require_failsafe, require_safe, require_try, require_add)
@shevegen If you press "Edit", the form has `Description [Edit]` field, and you can edit description there. zverok (Victor Shepelev)
05:49 PM Feature #14565: Simpler, one-liner, failsafe require in ruby? [Suggested names: require_failsafe, require_safe, require_try, require_add)
(I have a few typos above; is there a way to edit the first post in the
bug tracker? I only seem to be able to edit in subsequent posts... hmm)
shevegen (Robert A. Heiler)
05:48 PM Feature #14565 (Open): Simpler, one-liner, failsafe require in ruby? [Suggested names: require_failsafe, require_safe, require_try, require_add)
I have quite a bit of code like this:
```ruby
begin
require 'x/tools/cdrskin.rb'
rescue LoadError; end
```
I also use the longer variant, e.g.,
```ruby
begin
require 'foobar'
rescue LoadError
puts 'project foobar i...
shevegen (Robert A. Heiler)
03:56 PM Bug #14561: Consistent 2.5.0 seg fault in GC, related to accessing an enumerator in a thread
harbirg (Harbir G) wrote:
> I can also reproduce the same crash on MacOS High Sierra 10.13.2. Occurs on both 2.5.0 and 2.6.0-preview1.
+1. Reliably reproducible on Mac, ruby 2.5.0 OSX El Capitan 10.11.6
Currently causing unit t...
stuarthadfield (Stuart Hadfield)
10:44 AM Bug #14561: Consistent 2.5.0 seg fault in GC, related to accessing an enumerator in a thread
I can reproduce, MacOS High Sierra 10.13.3 (17D47)
```
nedims-MacBook-Pro:~ nedim$ irb
2.5.0 :001 > enum = Enumerator.new { |y| y << 1 }
=> #<Enumerator: #<Enumerator::Generator:0x00007fe043133b90>:each>
2.5.0 :002 > thread = Th...
ned (Ned Hadzo)
06:04 AM Bug #14561: Consistent 2.5.0 seg fault in GC, related to accessing an enumerator in a thread
I can also reproduce the same crash on MacOS High Sierra 10.13.2. Occurs on both 2.5.0 and 2.6.0-preview1. harbirg (Harbir G)
05:28 AM Bug #14561: Consistent 2.5.0 seg fault in GC, related to accessing an enumerator in a thread
Yes, I have been able to reproduce this issue only on mac. dazuma (Daniel Azuma)
03:09 AM Bug #14561: Consistent 2.5.0 seg fault in GC, related to accessing an enumerator in a thread
I can't reproduce this issue with current trunk (2.6) on Linux / Windows.
clang (mac) issue?
ko1 (Koichi Sasada)
01:10 PM Feature #14564: `dig` opposite method
Was already proposed as a "bury" (direct antonym to `dig`) and rejected: https://bugs.ruby-lang.org/issues/11747 and https://bugs.ruby-lang.org/issues/13179
Matz's response:
* "It's not clear to generate either Hash, Array, or Stru...
zverok (Victor Shepelev)
12:55 PM Feature #14564: `dig` opposite method
I have nothing against the functionality, but I think the name .expand()
is not a good one. When I read .expand, I think of the opposite of
flatten; or it reminds me of .extend.
I don't have a better name suggestion myself, though.
shevegen (Robert A. Heiler)
08:57 AM Feature #14564 (Open): `dig` opposite method
We have nice `dig` method that helps a lot.
Though we didn't have an opposite method that allows setting a value.
I know we already have these:
https://bugs.ruby-lang.org/issues/11747
https://bugs.ruby-lang.org/issues/13179
Both wer...
nilcolor (Aleksey Blinov)
10:52 AM Bug #14422: Ruby configuration options should not be reused for gem builds
So I have another issue with the configuration options. I tried to enable GMP support in Ruby on Fedora. Therefore, the Ruby build now requires "gmp-devel" and the configuration scripts configures the ruby to link against GMP. So far so ... vo.x (Vit Ondruch)
09:40 AM Feature #14551: What's missing to switch to Git instead of using Subversion?
> 1) Revisions become meaningless hashes; it's totally impossible to look at a revision id and know where it fits in relation to other revision ids.
Looking at the committer date is enough to know the relation if we rebase (which is s...
Eregon (Benoit Daloze)
08:26 AM Revision 5fa3c57e (git): compile.c: raise on invalid input
* compile.c (ibf_load_object_unsupported, ibf_load_object_class):
should raise an exception. rejection of invalid input is not a
bug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:59 AM Revision b001766b (git): compile.c: do not truncate VALUE to long
* compile.c (ibf_dump_object_regexp): do not truncate VALUE to
long. it makes invalid VALUE on IL32LLP64 platforms where long
is shorter than VALUE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62621 b2dd03c8-39d4-4d8f-98ff-82...
nobu (Nobuyoshi Nakada)
06:41 AM Bug #14563 (Closed): irb in irb raises a FATAL error
Start irb in irb, then C-c and C-d cause a fatal error.
~~~ text
$ irb
irb(main):001:0> irb
irb#1(main):001:0> ^C
irb#1(main):001:0>
Traceback (most recent call last):
16: from /Users/hkdnet/.anyenv/envs/rbenv/versions/2....
hkdnet (Ko Sato)
04:10 AM Bug #14562 (Closed): Do not warn for assignment in conditionals inside ()
Applied in changeset trunk|r62620.
----------
parse.y: refine assign_in_cond warning
* parse.y (assign_in_cond): refine a warning message for
assignment of a literal in conditinal expression.
[ruby-core:85872] [Bug #14562]
nobu (Nobuyoshi Nakada)
03:47 AM Bug #14562: Do not warn for assignment in conditionals inside ()
Just remove `if`.
It is the warning for assignment of a **literal**, which is not "conditional".
nobu (Nobuyoshi Nakada)
01:15 AM Bug #14562 (Closed): Do not warn for assignment in conditionals inside ()
Ruby warns against this code, which is very helpful.
```
% ruby -we 'if a=1; p a; end'
-e:1: warning: found = in conditional, should be ==
1
```
So there's a commonly known practice. In order to express that we're intentionall...
matsuda (Akira Matsuda)
04:10 AM Revision c9ecea33 (git): parse.y: refine assign_in_cond warning
* parse.y (assign_in_cond): refine a warning message for
assignment of a literal in conditinal expression.
[ruby-core:85872] [Bug #14562]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:26 AM Revision 9244cfa1 (git): tool/bisect.sh: extracted build part [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:33 AM Revision 3f465cc6 (git): bisect.sh: make srcs in builddir [ci skip]
* tool/bisect.sh: also srcs needs Makefile, must in the build but
not the source directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:04 AM Bug #14334: Segmentation fault after running rspec (ruby/2.5.0/erb.rb:885 / simplecov/source_file.rb:85)
I filed a separate issue https://bugs.ruby-lang.org/issues/14561 with a small repro case involving Enumerator and threads, which seems to yield the same C backtrace as the ones reported here. dazuma (Daniel Azuma)
01:13 AM Feature #12010: Exclude dot and dotdot from Dir#each
This can be closed by #13969? nobu (Nobuyoshi Nakada)
12:37 AM Revision 7d34ed6e (git): compile.c: fix load_from_binary
* compile.c (ibf_load_iseq_each): realpath may be nil. follow up
r59709. [fix https://github.com/Shopify/bootsnap/issues/132]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

02/28/2018

11:32 PM Bug #14561 (Closed): Consistent 2.5.0 seg fault in GC, related to accessing an enumerator in a thread
This seg fault happens consistently on OSX (specifically I'm reproing it on a late 2015 Macbook pro running 10.13.3, but it seems to happen on similar machines as well). It happens only on Ruby 2.5.0.
Small repro case:
```ruby
enu...
dazuma (Daniel Azuma)
11:31 PM Revision 7d55ee28 (git): * 2018-03-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:31 PM Revision 43e41029 (git): Revert r61936 "compile.c: use ALLOCV_N"
* compile.c (ibf_dump_object_list): `dump->obj_list` is not fixed
yet, as new objects are pushed by lbf_dump_object_object.
fixes crash by buffer overflow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62615 b2dd03c8-39d4-4d8f-9...
nobu (Nobuyoshi Nakada)
09:41 PM Bug #14558: "Backtrace in reverse order" always upsets my brain!
I wish the original backtrace order is back. If at least the order was consistent. I must agree that the current situation is unbearable. vo.x (Vit Ondruch)
12:39 PM Bug #14558: "Backtrace in reverse order" always upsets my brain!
I think I understand what Goro Fuji refers to.
It sometimes takes me a while as well to adjust to the change, too.
What I found in particular hard is when it is a long backtrace AND
when the .rb file names are long and deeply bran...
shevegen (Robert A. Heiler)
08:20 AM Bug #14558: "Backtrace in reverse order" always upsets my brain!
mrkn (Kenta Murata) wrote:
> > it sometimes "reversed", sometimes "non-reversed"
> ...
Might be acceptable, or at least it's better than the current "random" order.
Why not provide a way to customize it, for example `RubyVM.backtr...
gfx (Goro FUJI)
08:10 AM Bug #14558: "Backtrace in reverse order" always upsets my brain!
> it sometimes "reversed", sometimes "non-reversed"
Is it acceptable that the backtrace is always new, 2.5-style order?
mrkn (Kenta Murata)
07:37 AM Bug #14558 (Closed): "Backtrace in reverse order" always upsets my brain!
A Ruby 2.5.0 feature "backtrace in reverse order", issued in https://bugs.ruby-lang.org/issues/8661, is confusing in developing Rails applications because I can't expect the order: it sometimes "reversed", sometimes "non-reversed". It ju... gfx (Goro FUJI)
07:25 PM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
I would argue strongly for keeping simpler one-word naming conventions where possible. Ruby is built upon a simple elegance, and having to type out things such as Thread::Attr.new(type: :coop) feels very unintuitive.
It also stands th...
baweaver (Brandon Weaver)
07:02 PM Feature #14463: Allow comments to precede dots in member expressions
shevegen (Robert A. Heiler) wrote:
> > I still find it very odd that it's inconsistent.
> ...
It wasn't more than a month in that I first got bit. Like I said earlier, Ruby isn't my primary language (I started with Java, and JavaScript...
isiahmeadows (Isiah Meadows)
06:22 PM Feature #14551: What's missing to switch to Git instead of using Subversion?
duerst@it.aoyama.ac.jp wrote:
> Two points that would be worse for git, the first is general,
> the second is personal:
> 1) Revisions become meaningless hashes; it's totally
> impossible to look at a revision id and know where it f...
normalperson (Eric Wong)
02:08 PM Feature #14551: What's missing to switch to Git instead of using Subversion?
duerst (Martin Dürst) wrote:
> 1) Revisions become meaningless hashes; it's totally impossible to look at a revision id and know where it fits in relation to other revision ids.
The revision shown by `ruby -v` can be managed by addin...
nobu (Nobuyoshi Nakada)
05:43 AM Feature #14551: What's missing to switch to Git instead of using Subversion?
Two points that would be worse for git, the first is general, the second is personal:
1) Revisions become meaningless hashes; it's totally impossible to look at a revision id and know where it fits in relation to other revision ids.
2)...
duerst (Martin Dürst)
04:22 PM Bug #14560 (Closed): Segmentation fault near the end of large Rails test suite
I am consistently getting a Segmentation Fault about 1800 tests into a test suite with about 1900 tests. This is for a Rails 5.1.5 project using Ruby 2.5.0.
Crash report follows:
/Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0...
moveson (Mark Oveson)
02:31 PM Revision 9af2ab9d (git): NEWS: resurrect ticket number [ci skip]
which was unintentionally dropped at r62612.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
k0kubun (Takashi Kokubun)
01:32 PM Revision e6faeff3 (git): common.mk: clean timestamp and intermediate header
[ci-skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:33 PM Feature #14559: ENV.slice
Seems sensible. shevegen (Robert A. Heiler)
08:39 AM Feature #14559 (Closed): ENV.slice
I would like to request `ENV.slice`, which should behave analogous to `Hash#slice`.
```ruby
ENV.slice("PATH", "FOO")
# => {"PATH" => "/foo:/bar", "FOO" => "foo"}
```
sawa (Tsuyoshi Sawada)
12:21 PM Feature #14256: Deprecate $SAFE support in ERB and let ERB.new take keyword arguments for it
I forgot to have a link to this ticket in r62612.
Ruby 2.5's ERB.new interface will continue to be available until Ruby 2.5 becomes EOL. So you don't need to branch ERB.new usage in many places. The deprecation warning is shown only ...
k0kubun (Takashi Kokubun)
12:12 PM Revision e4e65671 (git): erb.rb: relax warn level of ERB.new
I changed my mind and thought branching ERB.new in all libraries is too
hard. Code becomes too ugly. I increased the warn level to 2, and the
old initializer will be removed when Ruby 2.5 becomes EOL.
-S option of erb(1) stays in the sam...
k0kubun (Takashi Kokubun)
11:12 AM Revision 9d16226f (git): Prefer to use %x instead of backtick.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
09:52 AM Bug #14549: abort Date#step
ruby_2_5 r62610 merged revision(s) 62572. naruse (Yui NARUSE)
09:52 AM Revision 607927bf (git): merge revision(s) 62572: [Backport #14549]
date_core.c: defensive code
* ext/date/date_core.c (f_cmp): check comparison failure.
* ext/date/date_core.c (d_lite_step): deal with the comparison
result more defensively. [ruby-core:85796] [Bug #14549]
gi...
naruse (Yui NARUSE)
09:49 AM Bug #14438: TestTimeTZ: failures with recent version of tzdata
ruby_2_5 r62609 merged revision(s) 62506,62508. naruse (Yui NARUSE)
09:49 AM Revision 954f4e00 (git): merge revision(s) 62506,62508: [Backport #14438]
test_time_tz.rb: past Japanese DST tzdata fix
* test/ruby/test_time_tz.rb (TestTimeTZ#test_asia_tokyo): follow
the tzdata 2018 fix of Japanese DST transitions (1948-1951).
[ruby-core:85373] [Bug #14438]
...
naruse (Yui NARUSE)
07:31 AM Revision 4542d616 (git): skip a test if another Thread is running.
* test/ruby/test_time.rb (test_strftime_no_hidden_garbage): this test
checks no object allocation while specific process, however another
thread can generate objects.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62608 b2dd03c8...
ko1 (Koichi Sasada)
06:30 AM Feature #14546: Hash#delete!
What is wrong with using `fetch`?
```ruby
{a: "a"}.fetch(:b) # => KeyError: key not found: :b
```
sawa (Tsuyoshi Sawada)
05:43 AM Bug #14557 (Closed): rubyコマンド引数にファイルを渡す際, プロセス置換を使用するとエラー
Applied in changeset trunk|r62607.
----------
file.c: realpath on special symlink
* file.c (realpath_rec): fallback to symlink path when it is
accessible but the link target is not actual entry on file
systems. [ruby-dev:50487] [B...
nobu (Nobuyoshi Nakada)
02:35 AM Bug #14557 (Closed): rubyコマンド引数にファイルを渡す際, プロセス置換を使用するとエラー
BashやZshにはプロセス置換があり, コマンドにファイル名を渡す代わりにプロセスの出力を渡すことができる. rubyコマンドにプロセスを渡した際にファイルディスクリプタが読めない旨のエラーを得た. 添付したtest.shをbashとzshで実行し標準出力と標準エラーをlog.txtに記録した. octaltree (tree octal)
05:43 AM Revision 5a53cbe3 (git): file.c: realpath on special symlink
* file.c (realpath_rec): fallback to symlink path when it is
accessible but the link target is not actual entry on file
systems. [ruby-dev:50487] [Bug #14557]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62607 b2dd03c8-39d4-4d...
nobu (Nobuyoshi Nakada)
05:17 AM Revision 1daa624d (git): file.c: get rid of useless conversion
* file.c (rb_file_s_stat): File.stat does not accept an IO
object as trying conversion to path name string first. skip
conversion to IO and try stat(2) only.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62606 b2dd03c8-39d4-4d8...
nobu (Nobuyoshi Nakada)
01:06 AM Feature #13901 (Closed): Add branch coverage
Thank you marcandre for proposing the format, and really sorry for my super-late reply.
I considered it seriously (before release of 2.5.0). I understand its advantage (easy and efficient to merge). But I thought it was difficult to...
mame (Yusuke Endoh)
12:53 AM Feature #4095 (Closed): C1 Coverage
Branch coverage has been already implemented at #13901 and released in Ruby 2.5.0.
Closing this ticket. Sorry for leaving it untouched.
Of course, your contribution is welcome. You may want to read:
https://bugs.ruby-lang.org/pro...
mame (Yusuke Endoh)

02/27/2018

09:27 PM Bug #13150: TestMarshal failures on FreeBSD with gcc7 because of GC
This still happens on 2.2.9, should it be backported too?
(On gcc (GCC) 7.2.1 20170915 (Red Hat 7.2.1-2))
Eregon (Benoit Daloze)
08:45 PM Revision 015a415e (git): Update to ruby/spec@51f301d
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Eregon (Benoit Daloze)
08:44 PM Revision 5506d86e (git): Remove tool/pull-latest-mspec-spec
* It is now part of mspec in spec/mspec/tool/pull-latest-mspec-spec
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eregon (Benoit Daloze)
08:21 PM Revision a5023c33 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:21 PM Revision 37ef87c1 (git): Update to ruby/spec@cbe855c
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Eregon (Benoit Daloze)
08:21 PM Revision ecf03376 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:21 PM Revision edb46078 (git): Update to ruby/mspec@d287466
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Eregon (Benoit Daloze)
05:50 PM Feature #14478: String #uminus should de-dupe unconditionally
The spec reflects the current state but of course it's fine to change.
The change to specs looks good, except the description should be updated:
- is an identity function if the string is frozen
+ deduplicates frozen strings
(We ne...
Eregon (Benoit Daloze)
08:52 AM Feature #14478: String #uminus should de-dupe unconditionally
sam.saffron@gmail.com wrote:
> But this seems to break the test/ruby/test_string.rb cause
> there is some edge case we are missing here.

I didn't see a failure in test_string.rb, but got one rubyspec failure:

```
1)
String#-@...
normalperson (Eric Wong)
07:03 AM Feature #14478: String #uminus should de-dupe unconditionally
I just tried the trivial patch of:
```
diff --git a/string.c b/string.c
index ebf5618..a9b991f 100644
--- a/string.c
+++ b/string.c
@@ -2605,20 +2605,16 @@ str_uplus(VALUE str)
* call-seq:
* -str -> str (frozen)
*
- ...
sam.saffron (Sam Saffron)
04:45 PM Revision cfe9836b (git): * 2018-02-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:45 PM Revision fe2a6f65 (git): Support two `to_r`-responding args in Rational()
* rational.c (nurat_s_convert): call `to_r` to convert non-Numeric
objects also if argc == 2 in Rational().
* test/ruby/test_rational.rb: add tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62598 b2dd03c8-39d4-4d8f-98ff-823f...
Kenta Murata
02:22 PM Revision 71ee64a5 (git): common.mk: added missing dependencies on id.h
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:08 PM Revision a65b8864 (git): [EXPERIMENTAL] Support upload option for s3 package hosting.
Example:
$ ruby tool/make-snapshot -archname=snapshot -s3=tmp /tmp trunk
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
01:28 PM Revision 2af17614 (git): random.c: Random.extend Formatter
* random.c (InitVM_Random): extend Random itself by Formatter
module, as well as the `bytes` method used by the module.
[Feature #4938]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:12 PM Bug #14556 (Assigned): Please fetch Ripper's new features from nobu's patches bag (irb-ripper branch)
> nobu
How about this?
hsbt (Hiroshi SHIBATA)
08:45 AM Bug #14556: Please fetch Ripper's new features from nobu's patches bag (irb-ripper branch)
I eliminate the commit below;
https://github.com/nobu/ruby/commit/0eb5f3f128b352079b447af0faa495bd9ba746a6
because it's already added by https://bugs.ruby-lang.org/issues/13686.
aycabta (aycabta .)
08:38 AM Bug #14556 (Closed): Please fetch Ripper's new features from nobu's patches bag (irb-ripper branch)
I need new features for Ripper because I'm trying to use Ripper for IRB.
@nobu's feature/irb-ripper branch on GitHub contains what all I need:
https://github.com/nobu/ruby/commits/feature/irb-ripper
Specifically, I need commits be...
aycabta (aycabta .)
12:07 PM Feature #4095: C1 Coverage
nahi (Hiroshi Nakamura) wrote:
> Contribution are welcomed...
I am planning to contribute to ruby project (starting with this issue), any pointers (where to start wiki/guide) will be much appreciated.
kinaan.sherwani (Kinaan Sherwani)
11:12 AM Revision 3406c5d6 (git): Refactor ERB version checking for keyword arguments
Improving code like r62590. See r62529 for details.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
k0kubun (Takashi Kokubun)
08:15 AM Revision 86d9071e (git): defs/id.def: predefine to_f ID
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:40 AM Bug #14480: miniruby crashing when compiled with -O2 or -O1 on aarch64
vo.x (Vit Ondruch) wrote:
> I tried `--with-setjmp-type=setjmp` and the build passed. But I have no idea what is the performance impact.
Thank you for checking.
> ...
Yes, they are used for the exception handling in Ruby :)
nobu (Nobuyoshi Nakada)
03:14 AM Bug #14127 (Rejected): (CSV) generating UTF-16LE encoded file without BOM
nobu almost said.
You should write BOM by yourself when you use `CSV.generate`.
If you don't want to write BOM by yourself, you should use `CSV.open(..., "w:UTF-16")`:
```ruby
CSV.open("utf16.csv", "w:UTF-16:utf-8") do |csv|
...
kou (Kouhei Sutou)
02:49 AM Feature #10316 (Rejected): Failsafe CSV.foreach
You can implement it with the following code:
```ruby
CSV.open(path) do |csv|
loop do
begin
row = csv.shift
rescue ArgumentError # For old csv library
# ignore
rescue CSV::MalformedCSVError # For the l...
kou (Kouhei Sutou)
02:27 AM Bug #14554 (Closed): gem update crashes
nobu (Nobuyoshi Nakada)
02:14 AM Feature #14463: Allow comments to precede dots in member expressions
> I still find it very odd that it's inconsistent.
Tsuyoshi Sawada pointed out something similar in the issue that
was referred to 5 years ago and I also agree with it.
I know little to nothing how ruby works internally but I woul...
shevegen (Robert A. Heiler)
01:25 AM Feature #14463: Allow comments to precede dots in member expressions
isiahmeadows (Isiah Meadows) wrote:
> duerst (Martin Dürst) wrote:
> ...
Sorry.
> I still find it very odd that it's inconsistent. The alternative to my proposal would be to make the third also error (as I presume it did previously)...
duerst (Martin Dürst)
01:06 AM Feature #14463: Allow comments to precede dots in member expressions
duerst (Martin Dürst) wrote:
> There is extensive discussion on this at #7636. Please check.
I presume you meant #7639...
I never found that due to probably its age and the fact it was in the other project.
I still find it very...
isiahmeadows (Isiah Meadows)
01:36 AM Feature #14546: Hash#delete!
marcandre (Marc-Andre Lafortune) wrote:
> As Matz clearly stated, even if a long time ago, bang is not strictly for mutating versions of methods. Note that there is `Process#exit!` (which is not a mutating version of `Process#exit`). Ra...
duerst (Martin Dürst)
01:17 AM Revision 34560d95 (git): * 2018-02-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:17 AM Revision 23d6a624 (git): complex.c: use predefined IDs
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:59 AM Feature #14555 (Open): OpenStruct performance doesn't have to be slow...
Coming from a JS background, it seems super baffling that OpenStruct is *incredibly* slow\*, slower than even a standard hash. When I looked at the implementation, I could see one very odd design choice: the implementation didn't even *t... isiahmeadows (Isiah Meadows)
12:15 AM Feature #13784: Add Enumerable#filter as an alias of Enumerable#select
I think this is a good change; I just noticed it from the NEWS
file at:
https://github.com/ruby/ruby/blob/trunk/NEWS
I think of .select and .reject as filters already - we filter
either for what we want to keep, or for what we w...
shevegen (Robert A. Heiler)

02/26/2018

10:11 PM Misc #14470: Use Commit together with co-authors Github feature in svn commits
+1 for this idea. I've got one pull request waiting to be merged and I'd love to be listed as a real contributor to ruby. greggzst (Grzegorz Jakubiak)
09:58 PM Bug #14480: miniruby crashing when compiled with -O2 or -O1 on aarch64
I tried `--with-setjmp-type=setjmp` and the build passed. But I have no idea what is the performance impact.
Nevertheless, there are two more comments from GCC people. The first is [1]:
> Jeff Law 2018-02-26 17:01:13 CET
> ...
Ba...
vo.x (Vit Ondruch)
12:36 PM Bug #14480: miniruby crashing when compiled with -O2 or -O1 on aarch64
It sounds good to fix by `--with-setjmp-type`, if it works. nobu (Nobuyoshi Nakada)
12:38 AM Bug #14480: miniruby crashing when compiled with -O2 or -O1 on aarch64
tl;dr:
* `rb_ec_tag_jump()` causes SEGV on aarch64 when it is built with `-fomit-frame-pointer` optimization that is the default of `-O1` of gcc-8.0.1-0.13.
* It is confirmed that `-fno-omit-frame-pointer` optflags can avoid the is...
wanabe (_ wanabe)
08:52 PM Bug #14554: gem update crashes
> /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/rdoc/markup/to_html.rb:389: [BUG] Segmentation fault at 0x0000000000000020
I am not completely sure but I think I saw this error before. Can't recall where; probably another issue report...
shevegen (Robert A. Heiler)
06:09 PM Bug #14554 (Closed): gem update crashes
upon running:
$ gem update
I receive a crash. Logfile plus CLI output is attached.
waag_job (Waag Job)
06:26 PM Bug #13882: Exception in `ensure` stops threads from exiting
ko1 (Koichi Sasada) wrote:
> Sorry for long absent.
> ...
No problem! The problem with Ctrl-C is that will fix it for user facing scripts, but not background processes. The example we ran into with this, was using Puma with forked chil...
zanker (Zachary Anker)
05:49 PM Bug #14553 (Third Party's Issue): Maybe this is too early for this but i encountered issues when using jit with rails
Obviously it's Bootsnap's issue. Bootsnap doesn't work with Ruby 2.6.0. No JIT-related logs are found in your logs too. Please remove bootsnap from your Gemfile first. k0kubun (Takashi Kokubun)
05:40 PM Bug #14553 (Closed): Maybe this is too early for this but i encountered issues when using jit with rails
```
50 ruby 0x000000010c6a9b71 rb_load_internal0 + 337
51 ruby 0x000000010c6aaa1f rb_f_load + 159
52 ruby 0x000000010c7d43a8 vm_call_cfunc...
suyesh (suyesh bhandari)
04:57 PM Feature #14546: Hash#delete!
As Matz clearly stated, even if a long time ago, bang is not strictly for mutating versions of methods. Note that there is `Process#exit!` (which is not a mutating version of `Process#exit`). Rails also has many bang methods which aren't... marcandre (Marc-Andre Lafortune)
02:42 PM Revision 40db89c0 (git): tool/ruby_vm/helpers/dumper.rb: check ERB version
I could not `make` trunk (62585) without this patch.
```
$ make -j4 && make install
BASERUBY = /home/pocke/.rbenv/shims/ruby --disable=gems
CC = gcc
LD = ld
LDSHARED = gcc -shared
CFLAGS = -O3 -gg...
k0kubun (Takashi Kokubun)
02:39 PM Revision 08ba29ac (git): use convert_type_with_id
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:30 PM Revision 914444e4 (git): use convert_type_with_id
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:39 PM Feature #14551: What's missing to switch to Git instead of using Subversion?
Eregon (Benoit Daloze) wrote:
> Some people might be willing to help once it's clear what needs to be done.
If it is an extra pair of hands you are looking for I can volunteer.
A clean git development environment is something I'm ...
dsferreira (Daniel Ferreira)
12:28 PM Feature #14551: What's missing to switch to Git instead of using Subversion?
naruse (Yui NARUSE) wrote:
> You need to read previous discussion in detail.
> ...
What's the point?
That we need a planner showing the merits and listing issues?
The title of #10547 sounds like that issue should be about listing i...
Eregon (Benoit Daloze)
08:30 AM Feature #14551 (Rejected): What's missing to switch to Git instead of using Subversion?
Duplicated with #10547
> 1) I have heard some scripts might stop working if we switch to Git and nobody knows a list of those scripts.
You can find some of those scripts in tool/ of ruby's repo.
> ...
* External people can contr...
naruse (Yui NARUSE)
12:37 AM Feature #14551 (Assigned): What's missing to switch to Git instead of using Subversion?
I have a plan to migrate git from subversion. But I have no enough time to figure out it.
Because I need to update the infrastructure of distribution and mailing-list in this year.
hsbt (Hiroshi SHIBATA)
12:32 PM Bug #14542: syswrite spuriously empties the given string
It seems so far that it is indeed a multithreading problem on my side, possibly specific to the test suite. My apologies for the noise, and thanks a lot to Eric for his help.
I don't find a way to close this ...
sylvain.joyeux (Sylvain Joyeux)
11:18 AM Feature #12839 (Assigned): CSV - Give not nil but empty strings for empty fields
hsbt (Hiroshi SHIBATA)
11:17 AM Feature #13706 (Closed): Allow CSV#delete to delete multiple columns or add #delete_columns method
https://github.com/ruby/csv/pull/4 was already merged. hsbt (Hiroshi SHIBATA)
11:16 AM Bug #14127 (Assigned): (CSV) generating UTF-16LE encoded file without BOM
hsbt (Hiroshi SHIBATA)
11:15 AM Feature #10316 (Assigned): Failsafe CSV.foreach
hsbt (Hiroshi SHIBATA)
08:43 AM Revision cc47d873 (git): * 2018-02-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@62587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:43 AM Revision e5dd4465 (git): merge revision(s) 62094,62584: [Backport #14407]
Merge ruby/spec@fd56cd4
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@62586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
08:37 AM Revision 19022bef (git): Makefile.in: fix portability issue
* Makefile.in (mjit_config.h): Alternative value with $@ and
printf without argument are not portable, could fail on some
platforms.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:01 AM Revision bde45517 (git): r62071 is backported into Ruby 2.5 [Bug #14407]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
07:57 AM Revision df1cd0f4 (git): make-snapshot: added missing options to usage
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:57 AM Revision 2234edf0 (git): Use RB_INTEGER_TYPE_P instead of rb_obj_is_kind_of
For checking whether an object is an Integer, because a subclass of
Integer is meaningless in Ruby, RB_INTEGER_TYPE_P is better than
rb_obj_is_kind_of for speed.
* object.c (rb_to_integer): Use RB_INTEGER_TYPE_P instead of rb_obj_is_kin...
Kenta Murata
07:48 AM Bug #14407: defined? still returning true for top-level constant when referenced with scope
ruby_2_5 r62568 merged revision(s) 62071. naruse (Yui NARUSE)
07:31 AM Bug #14552 (Closed): Kernel#Integer can return a non-Integer object.
Applied in changeset trunk|r62581.
----------
Check the result of to_int in Kernel#Integer
[ruby-core:85813] [Bug #14552]
* object.c (rb_convert_to_integer):
Check the result of to_int in Kernel#Integer
* test/ruby/test_integer.rb:...
mrkn (Kenta Murata)
07:26 AM Bug #14552 (Closed): Kernel#Integer can return a non-Integer object.
I found a bug that Kernel#Integer returns any non-nil object which is a result of to_int.
```ruby
obj = Object.new
def obj.to_int
"str"
end
Integer(obj) #=> "str"
```
mrkn (Kenta Murata)
07:31 AM Revision cc4be225 (git): Check the result of to_int in Kernel#Integer
[ruby-core:85813] [Bug #14552]
* object.c (rb_convert_to_integer):
Check the result of to_int in Kernel#Integer
* test/ruby/test_integer.rb: add tests.
* spec/ruby/core/kernel/Integer_spec.rb: fix examples.
git-svn-id: svn+ssh://ci...
Kenta Murata
06:00 AM Revision 6549f20e (git): * 2018-02-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:00 AM Revision fe948e85 (git): make-snapshot: exporting ChangLog with git
* tool/make-snapshot (package): export ChangLog file under the
exported directory. Git can work only under a git repository.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:00 AM Revision 34dc3b98 (git): make-snapshot: remove -j option from GNUMAKEFLAGS
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:00 AM Revision bf9d849b (git): vcs.rb: .git at export
* tool/vcs.rb (VCS::GIT#export): do not remove .git directory.
should remove it by after_export.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:21 AM Bug #14253 (Closed): CSV.generate doesn't wrap a string anymore
Merged at https://github.com/ruby/csv/commit/75127b4ad00a748762effe9add3f91edeb0dc94f
It will merge ruby core repository until Ruby 2.6 releasing.
hsbt (Hiroshi SHIBATA)
03:58 AM Feature #14550: Support keyword arguments with Date#step
avit (Andrew Vit) wrote:
> If adding keyword options, would it make sense to add the possibility to enumerate by `>>` for whole months instead of only `succ` days, or is that out of scope here?
Please write a separate feature describ...
duerst (Martin Dürst)

02/25/2018

07:51 PM Feature #14550: Support keyword arguments with Date#step
If adding keyword options, would it make sense to add the possibility to enumerate by `>>` for whole months instead of only `succ` days, or is that out of scope here? avit (Andrew Vit)
08:37 AM Feature #14550: Support keyword arguments with Date#step
Thank you for reviewing.
I updated the documentation for Date#step also. (date-step-2.patch)
ksss (Yuki Kurihara)
04:59 PM Feature #11741: Migrate Ruby to Git from Subversion
> I know this feature request already reject but still posting in
> ...
I think it was said that the net benefit may have been too small
at that moment in time, but if I remember correctly, it was also
said that this can be re-evaluat...
shevegen (Robert A. Heiler)
04:56 PM Feature #14551: What's missing to switch to Git instead of using Subversion?
For point #1, perhaps the issue here could collect all files that
would need modification (or a new file that handles git; though
ideally, the existing files could be adapted to use both svn
and git, so that if it is ever decided to c...
shevegen (Robert A. Heiler)
02:39 PM Feature #14551 (Rejected): What's missing to switch to Git instead of using Subversion?
I know migrating to Git get asked at least every year at RubyKaigi, and this should be a motivation to change.
#14470 is one example making me wonder why we still use such an ancient technology like Subversion.
To be clear, this does...
Eregon (Benoit Daloze)
01:52 PM Feature #13784 (Closed): Add Enumerable#filter as an alias of Enumerable#select
Applied in changeset trunk|r62575.
----------
Add a new #filter alias for #select
* In Enumerable, Enumerator::Lazy, Array, Hash and Set
[Feature #13784] [ruby-core:82285]
* Share specs for the various #select#select! methods and
r...
Eregon (Benoit Daloze)
01:52 PM Revision a60a1c03 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:52 PM Revision b1a8c644 (git): Add a new #filter alias for #select
* In Enumerable, Enumerator::Lazy, Array, Hash and Set
[Feature #13784] [ruby-core:82285]
* Share specs for the various #select#select! methods and
reuse them for #filter/#filter!.
* Add corresponding filter tests for select tests.
*...
Eregon (Benoit Daloze)
01:17 PM Revision d1ea2f9d (git): date_parse.c, date_strptime.c: ensure symbols static all
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:20 AM Bug #10864 (Rejected): REXML adds white space to text property when indent > -1
If you don't want to add extra spaces with indent, use `transitive: true` option:
```ruby
require 'rexml/document'
xml_string = ''
REXML::Document.new(xml_string).tap do |doc|
doc.add_element('root').tap do |root|
write...
kou (Kouhei Sutou)
04:49 AM Revision a32e4169 (git): date_core.c: ensure symbols static all
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
04:28 AM Bug #14482 (Closed): headerが重複したCSVをheaders:trueでparseした場合、row.to_h[key] と row[key] の結果が一致しない
後方互換性がなくなってしまうのでどうするかなぁと考えてみたんですが、もともと重複していた場合はなにを返すかわからない、という仕様だったので変わっても大丈夫かなぁと言う気持ちになったので、同じになるようにしました。 kou (Kouhei Sutou)
04:28 AM Bug #14549 (Closed): abort Date#step
Applied in changeset trunk|r62572.
----------
date_core.c: defensive code
* ext/date/date_core.c (f_cmp): check comparison failure.
* ext/date/date_core.c (d_lite_step): deal with the comparison
result more defensively. [ruby-core:...
nobu (Nobuyoshi Nakada)
04:28 AM Revision d3d84539 (git): date_core.c: defensive code
* ext/date/date_core.c (f_cmp): check comparison failure.
* ext/date/date_core.c (d_lite_step): deal with the comparison
result more defensively. [ruby-core:85796] [Bug #14549]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62572...
nobu (Nobuyoshi Nakada)
03:35 AM Feature #14385: Deprecate back-tick for Ruby 3.
I have recently read something which may be incorrect; but perhaps it may
be correct too, I do not know. The comment I read was sort of meant as a
joke perhaps ... or it was a first april joke. But it's not quite first
april so I shou...
shevegen (Robert A. Heiler)
03:25 AM Feature #14385: Deprecate back-tick for Ruby 3.
> I see back-ticks are used improperly all the time.
> ...
I am not sure if this is a good approach. What if someone really
just prefers the shorter `` rather than system()? I mean, it is not
a problem for me since I use `` only in co...
shevegen (Robert A. Heiler)
03:08 AM Revision e110c0dd (git): guard before noreturn function
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:12 AM Revision 71da3c50 (git): process.c: guard eargp against GC
`rb_str_append` may trigger GC, and in that case eargp might be GCed.
Probably for protecting it, `RB_GC_GUARD(execarg_obj)` can be seen in
other places.
Hoping to fix:
http://ci.rvm.jp/results/trunk_gcc5@silicon-docker/569818
git-svn-...
k0kubun (Takashi Kokubun)
12:36 AM Revision b043343c (git): * 2018-02-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@62569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:36 AM Revision 85143cab (git): merge revision(s) 62071: [Backport #14407]
defined? returns nil for toplevel constant lookup
* variable.c (rb_const_defined_0): toplevel constant lookup has
been removed, should return nil too.
[ruby-core:85142] [Bug #14407] [Fix GH-1800]
Fro...
naruse (Yui NARUSE)

02/24/2018

08:24 PM Feature #14550: Support keyword arguments with Date#step
Seems ok.
For others, here is a quick link to the documentation for Date
in current ruby 2.5.0:
http://ruby-doc.org/stdlib-2.5.0/libdoc/date/rdoc/Date.html#method-i-step
shevegen (Robert A. Heiler)
02:39 PM Feature #14550 (Open): Support keyword arguments with Date#step
How about supporting keyword arguments with Date#step like Numeric#step?
~~~
from = Date.new(2018, 1, 1)
to = Date.new(2018, 2, 1)
from.step(to: to, by: 3).to_a
~~~
I expected that this is already supported.
But not.
ksss (Yuki Kurihara)
03:36 PM Revision 591baf8f (git): rb_int_powm: call rb_int_pow directly
* bignum.c (rb_int_powm): call rb_int_pow directly instead of calling `**`
operator.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
03:06 PM Revision da9300dc (git): * 2018-02-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:06 PM Revision c225d3c9 (git): complex.c, rational.c: remove dead code
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Kenta Murata
02:56 PM Revision daa67ca3 (git): rational.c: simplify a branch condition
* rational.c (nurat_s_convert): simplify a branch condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
02:20 PM Feature #14489: MJIT needs a reusable cache
I agree with the direction. After resolving the slowness on Rails, we might be able to tune the default for discourse benchmark or something, to improve the boot time. k0kubun (Takashi Kokubun)
12:06 PM Feature #14489: MJIT needs a reusable cache
One simple way that might help here is to make the default for --jit-min-calls much higher.
Compiling after only 5 calls by default seems very early.
Figuring out a better compilation threshold or heuristic would compile much less duri...
Eregon (Benoit Daloze)
05:51 AM Feature #14489 (Rejected): MJIT needs a reusable cache
> A big question though is if the binaries can have some sort of manifest that allows you to run a pre-processor and do a simple string replace?
This might resolve performance decrease in indirection. But the optimized code relies on ...
k0kubun (Takashi Kokubun)
01:03 PM Bug #14549 (Closed): abort Date#step
~~~ruby
require 'date'
o = Object.new
def o.<=>(*)
2
end
Date.new(2000, 1, 1).step(3, o) { }
#=> abort
~~~
I think, It's not intentional behavior.
And it should raise `TypeError` or `ArgumentError`, maybe.
ksss (Yuki Kurihara)
12:07 PM Feature #14546: Hash#delete!
> as I understand ! does not mean destructive, but rather
> ...
You may still have the issue of semantics.
For example, .fetch() semantic is different than .delete().
The way how I remember methods with a "!", even if this is
not...
shevegen (Robert A. Heiler)
04:42 AM Feature #14546: Hash#delete!
nobu (Nobuyoshi Nakada) wrote:
> `Hash#delete` is destructive, so appending `!` doesn't seem making sense.
I'm as guilty of it as anyone, but as I understand [`!` does not mean destructive](https://www.ruby-forum.com/topic/176830#773...
rringler (Ryan Ringler)
02:20 AM Feature #14546: Hash#delete!
`Hash#delete` is destructive, so appending `!` doesn't seem making sense.
Rather, a destructive version of `Hash#fetch` feels better.
nobu (Nobuyoshi Nakada)
08:54 AM Revision 8b9a3eab (git): lib/erb.rb: Add uplevel to warn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
07:20 AM Bug #14547: segfault on Rational() with positive exponent in a string
ruby_2_5 r62562 merged revision(s) 62555. naruse (Yui NARUSE)
02:08 AM Bug #14547 (Closed): segfault on Rational() with positive exponent in a string
Applied in changeset trunk|r62555.
----------
rational.c: segfault on Rational exponent
* rational.c (read_num): fix segfault on Rational() with positive
but less than the length of fractional part exponent. should be
negated to c...
nobu (Nobuyoshi Nakada)
07:19 AM Revision e16d49fb (git): merge revision(s) 62555: [Backport #14547]
rational.c: segfault on Rational exponent
* rational.c (read_num): fix segfault on Rational() with positive
but less than the length of fractional part exponent. should be
negated to convert to divisor which...
naruse (Yui NARUSE)
07:19 AM Bug #12762: missing links in LEGAL
ruby_2_5 r62561 merged revision(s) 62513. naruse (Yui NARUSE)
07:19 AM Revision a94362d3 (git): merge revision(s) 62513: [Backport #12762]
Update url with 404 status on LEGAL file.
* Update redirected and upstream url.
* Added the Wayback Machine url for missing link.
[Bug #12762][ruby-dev:49802]
From: SHIBATA Hiroshi <hsbt@ruby-lang...
naruse (Yui NARUSE)
02:58 AM Revision b81538d2 (git): Judge ERB version not RUBY_VERSION but ERB.version
On cross compilation, ruby command uses fake RUBY_VERSION.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
02:58 AM Revision 22acbed6 (git): On getting changelog, use git-log with --no-notes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
02:55 AM Revision 1bfe28e2 (git): version.h: get rid of duplication
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:48 AM Revision 4704a0dc (git): test for r62555
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:45 AM Revision 789853ed (git): rational.c: removed needless calc
* rational.c (read_num): exp(0) is 1, no need to multiply.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:38 AM Feature #14548: Allow some_array&.[1] to be a valid syntax
It was introduced at [r52422] once, but removed soon at [r52430] by a matz's objection.
[r52422]: https://github.com/ruby/ruby/commit/dbf73f6fc2a4b0414110eea64a9f98d33c2cf930
[r52430]: https://github.com/ruby/ruby/commit/a3ee54f8a653...
nobu (Nobuyoshi Nakada)
02:15 AM Bug #14545 (Closed): Backport r62071 to ruby 2.5
The ticked is closed already, and now set "Backport" to "2.5: REQUIRED".
"Backport REQUIRED" in "Closed" ticket is the mark for backporting.
nobu (Nobuyoshi Nakada)
02:13 AM Bug #14500: Missing Regexp documentation and clarification on behavior of \K for edge case
oh, I didn't check with `$10`. I'd tried with backreference. Any idea how to use `\10`?
```
$ echo 'abcdefghij' | ruby -pe 'sub(/(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)/, ":\\9:")'
:i:
$ echo 'abcdefghij' | ruby -pe 'sub(/(.)(.)(.)(.)(.)(.)...
Sundeep (Sundeep Agarwal)
01:30 AM Bug #14500: Missing Regexp documentation and clarification on behavior of \K for edge case
Sundeep (Sundeep Agarwal) wrote:
> * suggestion to add that numbered capturing groups is limited to `9`
I don't think so.
Why did you think so?
```
irb -r irb/completion --simple-prompt
> ...
=> 0
>> $10
=> "a"
```
znz (Kazuhiro NISHIYAMA)
02:08 AM Revision f954caea (git): rational.c: segfault on Rational exponent
* rational.c (read_num): fix segfault on Rational() with positive
but less than the length of fractional part exponent. should be
negated to convert to divisor which is a reciprocal.
[ruby-core:85783] [Bug #14547]
git-svn-id: svn...
nobu (Nobuyoshi Nakada)
01:12 AM Revision 62316091 (git): Improve Array#sample with random documentation
* array.c (rb_ary_sample): Adds examples for the use of the
optional parameter random for Array#sample and unifies the style
with the documentation of Array#shuffle.
[Fix GH-1825]
From: Alberto Almagro <alberto.almagro@rakuten.com>...
nobu (Nobuyoshi Nakada)
01:05 AM Revision e5d5cc4a (git): NEWS: elaborate on JIT for 2.6.0-preview1 [ci skip]
This information is backported from the draft of 2.6.0-preview1 release
note. NEWS for final 2.6.0 release will be different.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
k0kubun (Takashi Kokubun)
01:02 AM Revision 35ab341c (git): Fix typo: blcok -> block
Typo in a comment about "evaluator body".
[Fix GH-1824]
From: hkdnet <satoko.itse@gmail.com>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:40 AM Revision f6445718 (git): * 2018-02-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:40 AM Revision 07a4943d (git): mjit.c: fix deadlock on marking MJIT's ISeq
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e k0kubun (Takashi Kokubun)

02/23/2018

07:59 PM Feature #14548 (Assigned): Allow some_array&.[1] to be a valid syntax
Currently, Ruby allows accessing an array's index while testing whether the array is not nil with this syntax: `my_array&.[](1)`. I've always found this awkward but didn't mind about suggesting anything to improve this.
I was just rea...
rosenfeld (Rodrigo Rosenfeld Rosas)
07:28 PM Bug #14547 (Closed): segfault on Rational() with positive exponent in a string
~~~ ruby
Rational('1.11e1')
~~~
results in segmentation fault
pb (pumbur _)
06:52 PM Feature #14546 (Assigned): Hash#delete!
Hash#delete currently returns nil if a given key is not found in the hash. It would be nice to have a way to check that the key was present in the hash. This can be accomplished with with a block, but it would be nice to have some sugar ... rringler (Ryan Ringler)
05:53 PM Feature #14473: Add Range#subrange?
Good point v.ox, I did consider implementing `subset?` as an overloading of `include?` (or possibly `cover?` ?), as one can't have a range-of-ranges (so there is no ambiguity).
How would you distinguish between strict/non-strict - a `...
owst (Owen Stephens)
05:43 PM Feature #14473: Add Range#subrange?
Thanks for your thoughts al2o3cr, your "bigger point" is interesting:
> So range_1 claims to be a subset of range_2, but no elements of range_2 are included in range_1.
My thinking here was that the empty set is a subset of all set...
owst (Owen Stephens)
05:09 PM Feature #14473: Add Range#subrange?
Why not modify Range#include? to accept Range object. Anyway, there is missing any justification for the RFE. vo.x (Vit Ondruch)
04:30 PM Feature #14473: Add Range#subrange?
Minor point: IMO a "Range with steps" isn't a Range, it's something else. It doesn't seem relevant to the discussion.
Bigger point: the tests on improper ranges in the patch seem to imply some odd consequences:
~~~ ruby
range_1 = ...
al2o3cr (Matt Jones)
12:43 PM Feature #14473: Add Range#subrange?
Attached updated patch, the former had a syntax error (a missing `)`). owst (Owen Stephens)
12:30 PM Feature #14473: Add Range#subrange?
Good questions duerst. I wonder if I should have stuck with the `subrange` naming rather than `subset`, due to the Numeric behaviour.
> What e.g. should be the result of (5..10).subset?(5.5..7.9)?
The implementation I have used in...
owst (Owen Stephens)
01:39 AM Feature #14473: Add Range#subrange?
As long as we only consider ranges starting and ending with integers, concepts such as subset and superset make sense. But ranges can also be constructed from other numbers, and other objects in general.
What e.g. should be the result...
duerst (Martin Dürst)
03:58 PM Bug #14544 (Closed): crash on gem update
vo.x (Vit Ondruch)
03:57 PM Bug #14544: crash on gem update
This is the same as #14343, but the real solution is #14261 vo.x (Vit Ondruch)
10:42 AM Bug #14544 (Closed): crash on gem update
After a clean install using rbenv on a new MacBook Pro running High Sierra 10.13.3, gem update fails:
~: gem update
Updating installed gems
Updating ffi
Fetching: ffi-1.9.22.gem (100%)
Building native extensions. This could take a w...
allank (Allan Kinnaird)
02:41 PM Bug #14545 (Closed): Backport r62071 to ruby 2.5
Please backport r62071 (https://bugs.ruby-lang.org/issues/14407) to ruby 2.5 to make toplevel constant lookup consistent with `defined?` behavior in than branch.
Thanks!
grzuy (Gonzalo Rodriguez)
01:16 PM Bug #14357: thread_safe tests suite segfaults
Thank you for the patch. I applied it to Ruby in Fedora and so far like 10 builds of thread_safe passed without issues. I hope I'll be able to update the Ruby package soon. vo.x (Vit Ondruch)
12:58 PM Feature #8158: lightweight structure for loaded features index
Hi all.
I did create an account of funny_falcon on svn.ruby-lang.org.
hsbt (Hiroshi SHIBATA)
11:41 AM Bug #14542: syswrite spuriously empties the given string
> For 2.4.3, can you try removing the rb_str_tmp_frozen_release call in the rb_io_syswrite function in io.c?
With difficulty ... the only place I manage to reproduce semi-reliably is on Travis. This does happen outside Travis, but rar...
sylvain.joyeux (Sylvain Joyeux)
08:39 AM Revision daad6187 (git): eval_error.c: rb_error_write flags
* eval_error.c (rb_error_write): add highlight and reverse mode
flags. defaulted to rb_stderr_tty_p() if Qnil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:32 AM Revision 28278b83 (git): groups_spec.rb: get rid of limit on macOS
* spec/ruby/core/process/groups_spec.rb: on macOS, getgroups(2)
has a variant which has no limit but not setgroups(2). so the
default groups may exceed the limit. as the call of setgroups
is expected to fail here, the content doe...
nobu (Nobuyoshi Nakada)
08:24 AM Bug #14480: miniruby crashing when compiled with -O2 or -O1 on aarch64
This appears to be longstanding GCC issue on aarch64, which was recently exposed by change in GCC defaults [1]. However, the GCC upstream is questioning usage of \_\_builtin_setjmp/\_\_builtin_longjmp. Can somebody provide answer to this... vo.x (Vit Ondruch)
06:17 AM Misc #14414: Move https://ruby-talk.trydiscourse.com/ to talk.ruby-lang.org
Ok, Matz we will move this to a proper domain for now.
We will see if something like ruby-talk-archive.com is available, register it, and make sure it is indexed by Google.
We will ensure on the footer of all pages it is clear ho...
sam.saffron (Sam Saffron)
05:03 AM Misc #14414: Move https://ruby-talk.trydiscourse.com/ to talk.ruby-lang.org
>ruby-talk.trydiscourse.com is a bad domain name
I don't think so. `Problem: All mailing list discussion is not searchable on Google, this is hurting the community` and `Problem: ruby-talk.trydiscourse.com is a bad domain name` are no...
hsbt (Hiroshi SHIBATA)
04:36 AM Misc #14414: Move https://ruby-talk.trydiscourse.com/ to talk.ruby-lang.org
Sounds reasonable. @hsbt do you have any additional concern?
Matz.
matz (Yukihiro Matsumoto)
05:12 AM Bug #14543 (Closed): `make commit` show error of `common-srcs`
When I use `make commit`, it shows following error.
```
~/D/g/r/ruby (trunk) > mk commit
make: Entering directory '/Users/hsbt/Documents/github.com/ruby/ruby/.x86_64-darwin'
Committing to svn+ssh://svn@ci.ruby-lang.org/ruby/trunk ....
hsbt (Hiroshi SHIBATA)
05:09 AM Revision 2e1b0064 (git): Update minitest-5.11.3 on bundled gems.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
03:45 AM Revision 26741c97 (git): Use Process::Tms
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:18 AM Revision 96db72ce (git): [DOC] missing docs at toplevel
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:16 AM Revision b9d01e22 (git): [DOC] obsolete classes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:16 AM Revision 16ef24ac (git): [DOC] nodoc internal methods/classes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:16 AM Revision 4739266a (git): [DOC] hide declaration from rdoc
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:16 AM Revision 44c53ee4 (git): process.c: deprecated Struct::Tms
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:59 AM Bug #14334 (Open): Segmentation fault after running rspec (ruby/2.5.0/erb.rb:885 / simplecov/source_file.rb:85)
Some additional information. We're encountering the same segmentation fault, with the same C backtrace from inside the GC. (https://github.com/GoogleCloudPlatform/google-cloud-ruby/issues/1979). We can reproduce it even when we remove si... dazuma (Daniel Azuma)
 

Also available in: Atom