Project

General

Profile

Activity

From 07/12/2018 to 07/18/2018

07/18/2018

05:54 PM Bug #14920 (Closed): Backport r63857 to fix performance problem on Time class in MacOs systems
Related to https://bugs.ruby-lang.org/issues/14435.
Both 2.4 and 2.5 are affected by this issue. Naruse-san commit fix it by not calling tzset() more than once when we know the year doesn't have leap seconds.
rafaelfranca (Rafael França)
02:41 PM Feature #14914: Add BasicObject#instance_exec_with_block
matz (Yukihiro Matsumoto) wrote:
> Real-world use-case, please?
This is needed when you don't control the block you want to instance_exec, because it comes from another library or the user. If such a block requires a block argument,...
jeremyevans0 (Jeremy Evans)
06:23 AM Feature #14914: Add BasicObject#instance_exec_with_block
Real-world use-case, please?
Any problem with the following code?
```
blk = proc{|x| self * x}
1.instance_exec(42, 2) do |a, b|
(self + a).instance_exec(b, &blk)
end
# => 86
```
Matz.
matz (Yukihiro Matsumoto)
01:29 PM Feature #14919: Add String#byteinsert
I don't have a specific opinion on the suggestion itself; Martin raised some valid
points, in my opinion. But I wanted to comment on something else.
There have been some suggestions to the developer meeting, as recently as 8 hours
a...
shevegen (Robert A. Heiler)
09:20 AM Feature #14919: Add String#byteinsert
aycabta (aycabta .) wrote:
> duerst (Martin Dürst) wrote:
> ...
On the lowest level, characters indeed come in as a string of bytes. But it would be wrong to insert individual bytes into a string unless these bytes are also characters....
duerst (Martin Dürst)
07:25 AM Feature #14919: Add String#byteinsert
duerst (Martin Dürst) wrote:
> Editing of code points is easily possible with String#[]=; there is no need to use byteinsert.
## Input from CLI
In CLI tool, all characters come as each of the bytes. All multibyte characters are sp...
aycabta (aycabta .)
06:41 AM Feature #14919: Add String#byteinsert
aycabta (aycabta .) wrote:
> It's important for multibyte String editing. Unicode grapheme characters sometimes have plural code points. In text editing, software sometimes should add a new code point to an existing grapheme character. ...
duerst (Martin Dürst)
05:18 AM Feature #14919 (Closed): Add String#byteinsert
It's important for multibyte String editing. Unicode grapheme characters sometimes have plural code points. In text editing, software sometimes should add a new code point to an existing grapheme character. String#byteinsert is important... aycabta (aycabta .)
01:11 PM Revision 1adbbc3f (git): test_rubyoptions.rb: skip testing JIT on mswin
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e k0kubun (Takashi Kokubun)
12:46 PM Feature #14878: Add command line argument to deactivate JIT
Now --enable-jit, --enable=jit, --disable-jit, --disable=jit are available. k0kubun (Takashi Kokubun)
12:46 PM Feature #14878 (Closed): Add command line argument to deactivate JIT
Applied in changeset trunk|r63995.
----------
ruby.c: accept --disable-jit option
by promoting jit to feature flag.
mjit.h: update comment about mjit_opts.on
test_rubyoptions.rb: add test for switching JIT enablement
"--jit" flag us...
k0kubun (Takashi Kokubun)
07:41 AM Feature #14878: Add command line argument to deactivate JIT
There is already --enable=... and --disable=...
```
% ruby --help
...
--enable={gems|rubyopt|...}[,...], --disable={gems|rubyopt|...}[,...]
enable or disable features. see below for available features
...
```...
akr (Akira Tanaka)
12:45 PM Revision 053cdaf7 (git): ruby.c: accept --disable-jit option
by promoting jit to feature flag.
mjit.h: update comment about mjit_opts.on
test_rubyoptions.rb: add test for switching JIT enablement
"--jit" flag usage may be deprecated later, but not discussed yet.
[Feature #14878]
git-svn-id: s...
k0kubun (Takashi Kokubun)
10:30 AM Revision 4bc16691 (git): reduce tzset
* time.c (rb_localtime_r): call tzset() only after TZ environment
variable is changed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:07 AM Feature #14912: Introduce pattern matching syntax
We had some in-detail discussuion about the possibility of this issue in todays developer meeting. Though it seemed a rough cut that needs more brush-ups, the proposal as a whole got positive reactions. So please continue developing.
...
shyouhei (Shyouhei Urabe)
07:14 AM Feature #14912: Introduce pattern matching syntax
I expect deconstrocut methods will be defined for core classes if this proposal is accepted.
But I feel the deconstruct method of Struct in the sample code is tricky
because it duplicates values.
(s.deconstruct[0][0] and s.deconstru...
akr (Akira Tanaka)
08:52 AM Feature #14915: Deprecate String#crypt
mame@ruby-lang.org wrote:
> We first need to remove the usage of String#crypt from WEBrick. @normalperson, the maintainer of WEBrick, what do you think? Is it possible and acceptable? If it is not, we can't deprecate String#crpyt as...
normalperson (Eric Wong)
08:18 AM Feature #14915: Deprecate String#crypt
This ticket has been discussed at the developers' meeting today.
Some committers had a skeptic opinion against the removal, but agreed with it in some conditions.
We first need to remove the usage of String#crypt from WEBrick. @no...
mame (Yusuke Endoh)
08:16 AM Revision a22232cd (git): zlib (rb_gzreader_getc): localize and return cbuf directly
No point in having a long-lived cbuf in "struct gzfile"
since GZFILE_CBUF_CAPA is smaller than RSTRING_EMBED_LEN_MAX
(even on 32-bit). We can also have rb_econv_convert write
directly to the return value instead of an intermediate buffe...
Eric Wong
07:33 AM Feature #14913 (Closed): Extend case to match several values at once
We will discuss the pattern matching in #14912.
Matz.
matz (Yukihiro Matsumoto)
06:24 AM Feature #12306: Implement String #blank? #present? and improve #strip and family to handle unicode
If the requirement is adding a predicate method to check if a string contains only characters with space property (defined by Unicode), it's OK to add the method. I am not fully satisfied with the name `blank?` because it can cause confu... matz (Yukihiro Matsumoto)
06:04 AM Feature #14473 (Assigned): Add Range#subrange?
tarui (Masaya Tarui)
06:03 AM Feature #14473 (Open): Add Range#subrange?
The method name `subrange?` may cause confusion that which includes which.
I propose `cover?` to accept ranges.
Matz.
matz (Yukihiro Matsumoto)
05:45 AM Feature #14784: Comparable#clamp with a range
I feel this proposal is needlessly big: it needs range support for `Comparable#clamp` and startless range.
I think just supporting `nil` for 1st and 2nd argument of `Comparable#clamp` is enough.
akr (Akira Tanaka)
04:52 AM Misc #14861: DevelopersMeeting20180718Japan
- [Feature #13626] Add `String#byteslice!`
- [Feature #14618] Add display width method to String for CLI
- [Misc #14917] Add RDoc documents to tar ball
- [Feature #14918] Use Reline for fallback of ext/readline
- [Feature #14919] Add...
aycabta (aycabta .)
04:48 AM Bug #14918 (Closed): Use Reline for fallback of ext/readline
Ruby loses readline standard library when the system doesn't have libreadline during Ruby installation, At https://bugs.ruby-lang.org/issues/11084, @hsbt proposed pure Ruby implementation. But I think that rb-readline is not good for Rub... aycabta (aycabta .)
04:08 AM Misc #14917 (Assigned): Add RDoc documents to tar ball
I guess that distribution packages should include RDoc documents' files because RDoc documents installation step needs too long time.
There is the other reason. RDoc sometimes fails during "generating RDoc documentation" phase of inst...
aycabta (aycabta .)

07/17/2018

10:27 PM Revision f705c529 (git): Include the alternative malloc header instead of malloc.h
This commit fixes a build error on systems that have
`malloc_usable_size` but also enable jemalloc via `--with-jemalloc`.
For example, Ubuntu Precise defines `malloc_usable_size` in malloc.h, so
gc.c will include malloc.h. This definiti...
tenderlovemaking (Aaron Patterson)
05:55 PM Bug #14435: Time#gettime slow performance in forked process
Looks like [r63857](https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/63857) fix this issue.
Naruse-san, can we backport it to 2.4 and 2.5? It is causing some massive performance problems on MacOS.
rafaelfranca (Rafael França)
05:00 PM Feature #14916 (Open): Proposal to add Array#===
## 概要
`Array#===` を追加する提案になります。
基本的な動作は『`Array#==` の `===` で比較する版』になります。
## 仕様
配列の各要素をそれぞれ順に `===` で比較し、全要素が `true` の場合に `true` を返す。そうでない場合は `false` を返す。
### 動作例
```ruby
# 配列の各要素を #=== を使用して比較する
[ String, /\w/ ] ...
osyo (manga osyo)
04:20 PM Revision 80dac806 (git): revert r63988
Due to trunk-mjit CI failures:
http://ci.rvm.jp/results/trunk-mjit@silicon-docker/1130097
http://ci.rvm.jp/results/trunk-mjit@silicon-docker/1130196
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63991 b2dd03c8-39d4-4d8f-98ff-823fe69...
k0kubun (Takashi Kokubun)
03:15 PM Revision 5aa52587 (git): insns.def: remove redundant ifndef in r63988
By the way, the original patch of r63988 was provided by wanabe:
https://github.com/wanabe/ruby/tree/local-stack
but I forgot to add his credit in the previous commit message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63990 b2d...
k0kubun (Takashi Kokubun)
03:09 PM Revision 941bc1a6 (git): * 2018-07-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:09 PM Revision 6a4bb345 (git): mjit_compile.c: resurrect local variable stack
This optimization was reverted on r63863, but this commit resurrects the
optimization to skip some sp motions on JIT execution.
tool/ruby_vm/views/_mjit_compile_insn_body.erb: ditto
tool/ruby_vm/views/_mjit_compile_insn.erb: ditto
insn...
k0kubun (Takashi Kokubun)
12:21 PM Revision e749134f (git): Promote Synchronizer to default gems.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
11:39 AM Revision c982cbd1 (git): Unified common workflow for default gems.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
09:00 AM Feature #14913: Extend case to match several values at once
Perhaps, you can redefine `Array#===` and use arrays in the following way:
```ruby
case [x, y]
when [0..10, 0..10]
...
when [Array, nil]
...
when [Numeric, nil], [nil, Numeric]
...
end
```
sawa (Tsuyoshi Sawada)
05:43 AM Feature #14915: Deprecate String#crypt
mame (Yusuke Endoh) wrote:
> I agree with deprecation and removal of String#crypt. If it were not included in the core, and if it were proposed today, the proposal would be definitely rejected as "it should be implemented as a gem".
>...
jeremyevans0 (Jeremy Evans)
05:17 AM Feature #14915: Deprecate String#crypt
I can list up 10+ more reasons why using String#crypt is a bad idea today, but it seems we all agree on that point. The problem is how to let programmers avoid uisng it.
In addition to deprecate the method, how about removing DES fro...
shyouhei (Shyouhei Urabe)
04:42 AM Feature #14915: Deprecate String#crypt
merch-redmine@jeremyevans.net wrote:
> normalperson (Eric Wong) wrote:
> > While I don't care for #crypt, I'd like to move some tiny exts
> > like fiber, io/wait, io/nonblock directly into core; because
> > DSOs increase memory u...
normalperson (Eric Wong)
04:39 AM Feature #14915: Deprecate String#crypt
I agree with deprecation and removal of String#crypt. If it were not included in the core, and if it were proposed today, the proposal would be definitely rejected as "it should be implemented as a gem".
> This moves the String#crypt...
mame (Yusuke Endoh)
02:22 AM Feature #14915: Deprecate String#crypt
shyouhei (Shyouhei Urabe) wrote:
> I agree that crypt(3) is too difficult to use correctly. Properly avoiding traditional modes to generate adequate hash are up to users, which is not how we do security these days. OpenBSD splits the ...
jeremyevans0 (Jeremy Evans)
02:05 AM Feature #14915: Deprecate String#crypt
I agree that crypt(3) is too difficult to use correctly. Properly avoiding traditional modes to generate adequate hash are up to users, which is not how we do security these days. OpenBSD splits the functionality into crypt_checkpass(3... shyouhei (Shyouhei Urabe)
01:55 AM Feature #14915: Deprecate String#crypt
normalperson (Eric Wong) wrote:
> merch-redmine@jeremyevans.net wrote:
> ...
I agree that would be easiest and safest. However, at some point it should be moved out, and I think it's better to start that process early.
> While I do...
jeremyevans0 (Jeremy Evans)
05:42 AM Feature #14859: [PATCH] implement Timeout in VM
> Feature #14859: [PATCH] implement Timeout in VM
> https://bugs.ruby-lang.org/issues/14859

Note: I'm still working on this. [Feature #13618] (auto-fiber)
basically has an implementation of timeouts in the VM, too,
because of tim...
normalperson (Eric Wong)
01:26 AM Revision d459572c (git): test for wrong order: option
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:22 AM Revision 98596176 (git): Fix message when `order` was an invalid value
The symbol that can be used is `:bottom`, not `:down`.
Ref: https://github.com/ruby/ruby/blob/e39b2cff8ac2dc93b35bd43ffcce3ded8e3b4c25/error.c#L1061
[Fix GH-1916]
From: yuuji.yaginuma <yuuji.yaginuma@gmail.com>
git-svn-id: svn+ssh://c...
nobu (Nobuyoshi Nakada)
01:00 AM Revision 25510c1c (git): ruby-runner.c: show the failed path
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:47 AM Revision 71120953 (git): dir.c: fix glob with base when no DT_UNKNOWN
* dir.c (do_stat, do_lstat): need the length of the base path for
fstatat() when fd is valid.
* dir.c (glob_helper): fix for platforms where DT_UNKNOWN is not
available, e.g. Solaris.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tru...
nobu (Nobuyoshi Nakada)

07/16/2018

06:42 PM Feature #14915: Deprecate String#crypt
merch-redmine@jeremyevans.net wrote:
> Because extensions use extconf.rb instead of configure for their
> configuration, this ports the related configure.ac code to
> extconf.rb. I'm not sure that is done correctly and works on
> a...
normalperson (Eric Wong)
05:53 PM Feature #14915 (Rejected): Deprecate String#crypt
This method is system and implementation dependent, and the
portable usage mentioned in the documentation is not truly
portable (doesn't work on OpenBSD) and insecure as it uses DES.
For systems that lack a crypt(3) implementation, Ru...
jeremyevans0 (Jeremy Evans)
06:17 PM Misc #14861: DevelopersMeeting20180718Japan
* [Feature #14914] Add BasicObject#instance_exec_with_block
* [Feature #14915] Deprecate String#crypt, move implementation to string/crypt
jeremyevans0 (Jeremy Evans)
06:44 AM Misc #14861: DevelopersMeeting20180718Japan
* [optimize `to_s` methods](https://github.com/ruby/ruby/compare/trunk...nobu:feature/opt_to_s)
nobu (Nobuyoshi Nakada)
05:12 PM Feature #14328: SIMD vectorization
@naruse I saw your blank implementation, impressive
https://github.com/ruby/ruby/commit/e6bc209abf81d53c2e3374dc52c2a128570c6055
the complexity for a hand written simd code is probably too high. Ruby supports a lot of platforms, so w...
ahorek (Pavel Rosický)
05:17 AM Feature #14328 (Open): SIMD vectorization
nobu (Nobuyoshi Nakada)
04:07 PM Feature #14914 (Rejected): Add BasicObject#instance_exec_with_block
Currently, you cannot use `instance_exec` with a block that requires a block argument. If you have a block that requires a block argument and you want to get the equivalent of `instance_exec`, you have to do something like:
~~~ ruby
...
jeremyevans0 (Jeremy Evans)
03:06 PM Revision e75fbfda (git): * 2018-07-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:06 PM Revision 400e5e33 (git): [DOC] Update doc of NameError.new [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
02:43 PM Revision 2af66d34 (git): No one knows how many leap seconds in year 2100
Just check whether leep seconds are considered or not.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
10:20 AM Revision abb74388 (git): tool/downloader.rb:
* remove initial "./" from destdir to make downloading
./enc/unicode/data/11.0.0/ucd/auxiliary/GraphemeBreakProperty.txt
work properly
* tweak a comment
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63978 b2dd03c8-39d4-4d8f-98ff...
duerst (Martin Dürst)
05:17 AM Feature #14382 (Closed): Make public access of a private constant call const_missing
nobu (Nobuyoshi Nakada)
05:05 AM Revision e39b2cff (git): ruby.c: disable DidYouMean as gem
* ruby.c (process_options): as DidYouMean requires Rubygems, disable
the former when the latter is disabled too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:35 AM Feature #14869: Proposal to add Hash#===
> また、再帰的なハッシュに対して使用したときに無限再帰にならないようにする必要がありそうです。
`Hash#==` を参考に `rb_exec_recursive_paired` を使用して再帰チェックするようにしてみました。
`rb_exec_recursive_paired` の挙動に関して詳細に理解していないのでそのあたりをレビューして頂けると助かります。
osyo (manga osyo)
02:07 AM Revision e70cad60 (git): parse.y (heredoc_identifier): Update comment for term_len
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e yui-knk (Kaneko Yuichiro)
01:26 AM Revision 35244642 (git): * 2018-07-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:26 AM Revision d21f468d (git): parse.y: Add comment for `rb_strterm_heredoc_struct.sourceline`
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e yui-knk (Kaneko Yuichiro)

07/15/2018

11:03 PM Feature #14912: Introduce pattern matching syntax
> Is the above exclusive for "in" in case, or can it be combined with "when"?
The former is right, but I don't have any strong opinion about it.
The reason why I select the former is that "in" is superset of "when".
ktsj (Kazuki Tsujimoto)
04:36 PM Feature #14912: Introduce pattern matching syntax
I have one question:
- Is the above exclusive for "in" in case, or can it be
combined with "when"?
E. g.:
case A[0, 1]
when 3
puts 'bla'
in (A, 1, 1)
# etc
?
shevegen (Robert A. Heiler)
04:35 PM Feature #14913: Extend case to match several values at once
I don't have a big pro or con opinion on the functionality itself.
However had, for the alternative syntax of:
case |x, y|
I think it is too reminiscent of block syntax style such as:
object.each {|x, y|
I would ra...
shevegen (Robert A. Heiler)
01:35 PM Feature #14913 (Closed): Extend case to match several values at once
This proposal is part of the search for how pattern matching or its elements could be gently introduced to Ruby.
[This blog post](https://zverok.github.io/blog/2018-06-26-pattern-matching.html) (authored by me) provides context and "ful...
zverok (Victor Shepelev)
02:13 PM Misc #14861: DevelopersMeeting20180718Japan
* [Feature #14913] Extend case to match several values at once
* some steps towards better pattern matching
zverok (Victor Shepelev)
11:15 AM Misc #14861: DevelopersMeeting20180718Japan
* [Feature #14912] Introduce pattern matching syntax
* pattern matching
mame (Yusuke Endoh)
11:45 AM Revision 7b98385d (git): node.h: remove unused macro nd_compile_option
Follow up of r61610
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ktsj (Kazuki Tsujimoto)
11:42 AM Revision a343f660 (git): vm_core.h, vm_dump.c: fix cast
Revert r63968 and cast at caller side to prevent unintentional casting.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ktsj (Kazuki Tsujimoto)
09:57 AM Revision 62870d2c (git): process.c: adjust indent [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
09:48 AM Revision 78a2a1be (git): insns.def: fix typo in comment
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ktsj (Kazuki Tsujimoto)
09:47 AM Revision 99b6ef93 (git): vm_dump.c: fix warning about constness
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ktsj (Kazuki Tsujimoto)
09:45 AM Revision 59b38273 (git): vm_core.h: add missing cast
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ktsj (Kazuki Tsujimoto)

07/14/2018

11:24 PM Feature #14912 (Closed): Introduce pattern matching syntax
I propose new pattern matching syntax.
# Pattern syntax
Here's a summary of pattern syntax.
```
# case version
case expr
in pat [if|unless cond]
...
in pat [if|unless cond]
...
else
...
end
pat: var ...
ktsj (Kazuki Tsujimoto)
05:04 PM Revision a70d5ff0 (git): * 2018-07-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:04 PM Revision 91061e74 (git): Fix documentation in Object#remove_instance_variable
It should be described that the string argument will be accept like Object#instance_variable_get.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
watson1978 (Shizuo Fujita)
01:38 PM Feature #14473: Add Range#subrange?
How about `Range#{<,<=,>,>=}` like `Hash#{<,<=,>,>=}` for method names? znz (Kazuhiro NISHIYAMA)
11:18 AM Feature #5481: Gemifying Ruby standard library
hsbt (Hiroshi SHIBATA) wrote:
> You can commit it only github or MRI repo(SVN).
Good to know, so contributing to the gem's GitHub repo or directly in MRI are both supported?
> ...
This sounds a bit similar to the synchronization w...
Eregon (Benoit Daloze)
01:55 AM Feature #5481: Gemifying Ruby standard library
> @marcandre
> ...
You can commit it only github or MRI repo(SVN).
When you did commit code to github repo only, I merge them to MRI repo each week or month.
(The case of MRI to GitHub is same instructions.)
I'm developing a me...
hsbt (Hiroshi SHIBATA)
04:24 AM Bug #14911 (Rejected): Segmentation fault
nobu (Nobuyoshi Nakada)
02:59 AM Revision 1761f458 (git): * 2018-07-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:59 AM Revision b9f9986a (git): webrick/httpresponse: set_redirect requires a valid URI
Prevents response splitting and HTML injection attacks in
poorly-written applications which blindly pass along user input
in redirects.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong

07/13/2018

03:43 PM Feature #12306: Implement String #blank? #present? and improve #strip and family to handle unicode
Sam suggested the topic to be discussed at the next upcoming ruby
developer meeting here recently:
https://bugs.ruby-lang.org/issues/14861
I'll add a few comments to the issue here as a consequence.
I am mostly neutral to the w...
shevegen (Robert A. Heiler)
03:18 PM Bug #14909: Method call with object that has to_hash method crashes (method with splat and keyword arguments)
https://bugs.ruby-lang.org/issues/14909#note-2 doesn't resolve the issue for me
> Why your object has to_hash method?
the objects in question are instances of `Dry::Validation::Result` (dry-validation gem)
> ...
Could this mayb...
johannes_luedke (Johannes Lüdke)
04:52 AM Bug #14909: Method call with object that has to_hash method crashes (method with splat and keyword arguments)
Why your object has `to_hash` method?
Ruby uses long named methods for implicit conversion: `to_str` - if your object should act as a string, `to_int` - if your object should act as an integer, `to_ary` - if your object should act as ...
funny_falcon (Yura Sokolov)
02:43 PM Bug #14911: Segmentation fault
Have you tried with 2.5.1 ? It does not seg fault with 2.5.1 ned (Ned Hadzo)
01:45 PM Bug #14911 (Rejected): Segmentation fault
Hi,
This `SyntaxError`
~~~ ruby
def foobar
‘x’, 'y'
end
~~~
But this `Segmentation fault`
~~~ ruby
def foobar
‘x’,nil
end
~~~
askn (Aşkın Gedik)
06:38 AM Misc #14861: DevelopersMeeting20180718Japan
Would it be possible to discuss: https://bugs.ruby-lang.org/issues/12306
"Implement String #blank? #present? and improve #strip and family to handle unicode"
sam.saffron (Sam Saffron)
06:05 AM Revision eb53b0ff (git): process.c (assert_close_on_exec): quiet warning about unused result
Not much we can do if writing to STDERR_FILENO fails.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
04:59 AM Bug #14908: Enumerator::Lazy creates unnecessary Array objects.
Indeed, as long as `Yielder#yield` is kept with arity -1 (as in this patch), indeed I don't think that would be an "incompatibility" we should worry about. marcandre (Marc-Andre Lafortune)
04:46 AM Bug #14908: Enumerator::Lazy creates unnecessary Array objects.
Eregon (Benoit Daloze) wrote:
> Changing Enumerator::Yielder#<< to have arity 1 seems fine to me, as I guess nobody calls << on an Enumerator::Yielder with more than 1 argument, isn't it?
Yes, that will be the general case. Exception...
chopraanmol1 (Anmol Chopra)
04:58 AM Bug #14891: Pathname#join has different behaviour to File.join
I'd rather say that File.join is currently broken, and it should behave like Pathname.join. But probably I'm missing something. funny_falcon (Yura Sokolov)
03:15 AM Revision 83b737d8 (git): test/ruby/test_signal.rb (test_sigchld_ignore): increase timeout
I suspect CI test machine was overloaded at the time,
or swapping at the time due to parallel build with mjit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
01:15 AM Bug #14910: /usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/x86_64-darwin17/openssl.bundle: [BUG] Segmentation fault at 0x0000000000000001
nobu (Nobuyoshi Nakada) wrote:
> Seems that it happened in BoringSSL.
> ...
I don't konw, I use proxychains-ng as the proxy for the terminal.
I updated my system to 10.13.6 yesterday, and the programs related to ruby are not working a...
huangyanpeng (彦鹏 黄)

07/12/2018

11:23 PM Revision 20d3e1c8 (git): * 2018-07-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:23 PM Revision c6b85fcd (git): timer_thread: do not close pipes around fork
There's actually no need to close the pipes used by the
sleepy timer thread before forking, only to stop the timer
thread itself.
Instead, we only close the parent pipes in the child process,
either via close-on-exec flag or when reinit...
Eric Wong
09:39 PM Feature #14473: Add Range#subrange?
Not directly related, but if your ranges are such that begin <= end, then I think you can use `range.max > idx.max` for the last part. marcandre (Marc-Andre Lafortune)
06:55 AM Feature #14473: Add Range#subrange?
As real-world use-case,
I want it(include,cover version) for guarding NArray's Index arguments.
NArray#[] can accept Integer and Range.
Currently, to limit the access range, We have to write complex code.
~~~ ruby
def check(idx,ra...
tarui (Masaya Tarui)
01:05 PM Bug #14910 (Feedback): /usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/x86_64-darwin17/openssl.bundle: [BUG] Segmentation fault at 0x0000000000000001
Seems that it happened in BoringSSL.
https://boringssl.googlesource.com/boringssl/+/master#boringssl
> Although BoringSSL is an open source project, it is not intended for general use, as OpenSSL is. We don't recommend that third par...
nobu (Nobuyoshi Nakada)
11:16 AM Bug #14910 (Closed): /usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/x86_64-darwin17/openssl.bundle: [BUG] Segmentation fault at 0x0000000000000001
```
-- Control frame information -----------------------------------------------
c:0026 p:-17561534676150 s:0174 e:000173 TOP [FINISH]
c:0025 p:---- s:0171 e:000170 CFUNC :require
c:0024 p:0110 s:0166 e:000165 METHOD /usr/local/C...
huangyanpeng (彦鹏 黄)
12:29 PM Bug #14909: Method call with object that has to_hash method crashes (method with splat and keyword arguments)
At least, it behaves the same if passing a keyword arguments directly:
~~~ruby
def my_func(*objects, error_code: 400)
objects.inspect
end
my_func(to_hash_key: "to_hash") # => unknown keyword: to_hash_key (ArgumentError)
~~~
...
Eregon (Benoit Daloze)
11:21 AM Bug #14909 (Feedback): Method call with object that has to_hash method crashes (method with splat and keyword arguments)
In the plan of Ruby 3 (#14183), keyword arguments will be separated from other kinds of arguments. If this plan is implemented successfully, you can use `my_func(Test.new)` and `my_func(**Test.new)` for each purpose. If you call `my_fu... mame (Yusuke Endoh)
07:37 AM Bug #14909 (Closed): Method call with object that has to_hash method crashes (method with splat and keyword arguments)
In a method with a splat method argument followed by a keyword argument, it leads to an `ArgumentError` when calling the method with an object that reacts to `to_hash`
~~~ruby
def my_func(*objects, error_code: 400)
objects.inspe...
johannes_luedke (Johannes Lüdke)
09:25 AM Bug #14908: Enumerator::Lazy creates unnecessary Array objects.
Changing Enumerator::Yielder#<< to have arity 1 seems fine to me, as I guess nobody calls << on an Enumerator::Yielder with more than 1 argument, isn't it? Eregon (Benoit Daloze)
05:03 AM Bug #14908: Enumerator::Lazy creates unnecessary Array objects.
shyouhei (Shyouhei Urabe) wrote:
> Understand the problem. The proposed fix however involves spec change. We need to discuss effects of it before applying this patch.
If this is a big breaking change than alternate will be to creat...
chopraanmol1 (Anmol Chopra)
12:12 AM Bug #14908: Enumerator::Lazy creates unnecessary Array objects.
Understand the problem. The proposed fix however involves spec change. We need to discuss effects of it before applying this patch. shyouhei (Shyouhei Urabe)
07:53 AM Bug #12548: Rounding modes inconsistency between round versus sprintf
Ok
How about listing them in the format
name ......... height (rounded to whole centimetre)
sprintf would seem a great choice for that but fails due to it's rounding choices. By the way, I noticed this in the first place because...
unclekiki (Kieran McCusker)
12:53 AM Bug #12548: Rounding modes inconsistency between round versus sprintf
unclekiki (Kieran McCusker) wrote:
> Imagine you take the height of 100 school children to the nearest half centimetre and then want to output frequencies using sprintf to the nearest whole centimetre. Do you really want the frequencies...
nobu (Nobuyoshi Nakada)
07:35 AM Misc #14861: DevelopersMeeting20180718Japan
* [Bug #14908] `Enumerator::Lazy` creates unnecessary `Array` objects. nobu (Nobuyoshi Nakada)
06:40 AM Misc #14861: DevelopersMeeting20180718Japan
[Feature #14473] Add Range#subrange? (tarui)
tarui (Masaya Tarui)
05:01 AM Revision cb5598a4 (git): Improve branch misses
Improve branch misses on frozen object predicate checks negatively
affecting performance of most setters as most objects are not frozen.
[Fix GH-1913]
From: Lourens Naudé <lourens@bearmetal.eu>
git-svn-id: svn+ssh://ci.ruby-lang.org/r...
nobu (Nobuyoshi Nakada)
03:59 AM Revision bcf8ce84 (git): Fix compile error on debian8 and gentoo
https://rubyci.org/logs/rubyci.s3.amazonaws.com/debian8/ruby-trunk/log/20180711T213004Z.log.html.gz#miniruby
https://rubyci.org/logs/rubyci.s3.amazonaws.com/gentoo/ruby-trunk/log/20180711T213003Z.log.html.gz#miniruby
```
./include/ruby/r...
znz (Kazuhiro NISHIYAMA)
03:52 AM Bug #14906: MinGW failure - TestIO#test_copy_stream_no_busy_wait
normalperson (Eric Wong) wrote:
> Oops, sorry about that :x
No problem. I don't expect you or anyone else to know Windows. I'm well aware that the vast majority of production Ruby apps don't run on Windows.
It wasn't that lon...
MSP-Greg (Greg L)
03:32 AM Misc #14905 (Rejected): Strange behavior in Dir.glob using ** operator
It is same as zsh. nobu (Nobuyoshi Nakada)
12:06 AM Misc #14905: Strange behavior in Dir.glob using ** operator
Oops, sorry about that! In my efforts to anonymize the example, I broke it.
It's actually more like this:
~~~ text
human_records
├ project1 ─ records.yml
└ common ┬ records_one.yml
└ records_two.yml
cloud_records...
trobinson (Trevor Robinson)
02:29 AM Revision 1c904182 (git): removed unusecd constants
* ruby-runner.c (ruby_libm_func): removed as the following test
actually doesn't need the path of libm.
* test/fiddle/test_pointer.rb (Fiddle::TestPointer#test_free=):
removed never used constants and instance variables.
git-svn-id...
nobu (Nobuyoshi Nakada)
02:14 AM Revision 7c5a79ef (git): exe/ruby: link libm for fiddle test
* common.mk (exe/ruby): $(LIBS) should come after the source file
due to the ld spec.
* ruby-runner.c (ruby_libm_func): force to link libm for fiddle
test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63956 b2dd03c8-39d4-4d8f-...
nobu (Nobuyoshi Nakada)
 

Also available in: Atom