Project

General

Profile

Activity

From 05/29/2018 to 06/04/2018

06/04/2018

11:58 PM Bug #14816: Extension build failure on a system with musl libc
akamch (Anatoly Kamchatnov) wrote:
> > I guess this is not our fault?
>
> Not entirely. Most likely it's nobody's...
shyouhei (Shyouhei Urabe)
07:06 PM Bug #14816: Extension build failure on a system with musl libc
> I also understand you wanting to use Ruby even on exotic combinations like musl + void.
Indeed, yet one can also...
akamch (Anatoly Kamchatnov)
06:32 PM Bug #14816: Extension build failure on a system with musl libc
I think ngoto is knowing quite a bit about Solaris so perhaps if he has
time he could comment.
I also understand ...
shevegen (Robert A. Heiler)
11:37 AM Bug #14816: Extension build failure on a system with musl libc
> I guess this is not our fault?
Not entirely. Most likely it's nobody's fault but you can always blame autoconf :...
akamch (Anatoly Kamchatnov)
03:17 AM Bug #14816: Extension build failure on a system with musl libc
akamch (Anatoly Kamchatnov) wrote:
> isinf() and isnan() are defined as macros in musl: https://git.musl-libc.org/cg...
shyouhei (Shyouhei Urabe)
11:26 PM Feature #14478 (Closed): String #uminus should de-dupe unconditionally
Applied in changeset trunk|r63566.
----------
String#uminus dedupes unconditionally
[Feature #14478] [ruby-core:856...
normalperson (Eric Wong)
06:17 AM Feature #14478: String #uminus should de-dupe unconditionally
To me this patch looks good I have tested it previously on discourse, I really like the documentation there I think i... sam.saffron (Sam Saffron)
04:30 AM Feature #14478: String #uminus should de-dupe unconditionally
Updated patch, I can't reproduce any problems with test_string.rb, however.
Sam: can you test?
https://80x24.o...
normalperson (Eric Wong)
11:26 PM Revision fa0e5570 (git): * 2018-06-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:26 PM Revision 256411b4 (git): String#uminus dedupes unconditionally
[Feature #14478] [ruby-core:85669]
Thanks-to: Sam Saffron <[email protected]>
git-svn-id: svn+ssh://ci.ruby-lan...
Eric Wong
11:04 PM Bug #14824: Endless Range Support in irb
Agreed. shevegen (Robert A. Heiler)
07:26 PM Bug #14824 (Closed): Endless Range Support in irb
`irb` currently doesn't have great support for endless ranges, forcing you to use explicit parentheses around the end... jeremyevans0 (Jeremy Evans)
11:03 PM Bug #14823: Endless Range Excluding End
This boggles my mind.
I thought an endless range means infinity, or "open ended". Can we reach the point
before i...
shevegen (Robert A. Heiler)
07:21 PM Bug #14823 (Closed): Endless Range Excluding End
Does it make sense for an endless range to exclude the end? It is currently supported, but the semantics are questio... jeremyevans0 (Jeremy Evans)
11:03 PM Feature #14114: Add #step for Array, Enumerable, Enumerator
Here's a pure Ruby implementation of Enumerable#step, just for fun:
~~~ ruby
module Enumerable
def step step =...
shan (Shannon Skipper)
04:24 PM Bug #14822 (Closed): [POP3/SSL] net/protocol.rb:44: warning: verify_hostname requires hostname to be set
When enabling SSL with POP3 like this:
~~~ ruby
require 'net/pop'
Net::POP.enable_ssl
Net::POP3.start(...) |p...
hkamphor (Jos Kamphorst)
11:10 AM Feature #14799: Startless range
This does make sense when considering the reverse of the range, in other words, counting down from N to -infinity. Th... DarkWiiPlayer (Dennis Fischer)
09:37 AM Feature #14821: aditional arguments to yield_self
Your proposal makes the specific case simpler like your example, but in general, it makes the intention of `yield_sel... matz (Yukihiro Matsumoto)
09:28 AM Feature #14821 (Rejected): aditional arguments to yield_self
matz (Yukihiro Matsumoto)
07:43 AM Feature #14821: aditional arguments to yield_self
This is clearly a feature, so I have changed it from bug to feature.
The usage examples are still a bit abstract, ...
duerst (Martin Dürst)
07:37 AM Feature #14821 (Rejected): aditional arguments to yield_self
Currently, `yield_self` only accepts a block as its single argument. I propose that it should also accept a series of... DarkWiiPlayer (Dennis Fischer)
08:19 AM Feature #14819: Efficient cstring to RVALUE typecasting for c extension gems
I don't think it's really helpful to have C-str to Time converters in core. Time string representation differs in var... larskanis (Lars Kanis)
06:25 AM Feature #14819: Efficient cstring to RVALUE typecasting for c extension gems
I like the idea of a building block that converts to Integer or (Integer pair) if it is acceptable, you can already i... sam.saffron (Sam Saffron)
05:42 AM Feature #14819: Efficient cstring to RVALUE typecasting for c extension gems
[email protected] wrote:
> A general pattern I notice in the PG / MySQL and other gems is
> a general need for...
normalperson (Eric Wong)
01:10 AM Feature #14819: Efficient cstring to RVALUE typecasting for c extension gems
sam.saffron (Sam Saffron) wrote:
> btw did you see, PG gem now does native cstr2time I wonder if its time to just me...
jeremyevans0 (Jeremy Evans)
12:48 AM Feature #14819: Efficient cstring to RVALUE typecasting for c extension gems
Interesting, maybe what we need is a magic typecaster gem that centralizes all this work and is implemented in Ruby f... sam.saffron (Sam Saffron)
07:50 AM Feature #12306: Implement String #blank? #present? and improve #strip and family to handle unicode
As `String#upcase` and family are Unicode case aware now, so the second feels somewhat reasonable.
nobu (Nobuyoshi Nakada)
03:03 AM Feature #12306: Implement String #blank? #present? and improve #strip and family to handle unicode
@matz ... is there any way we can revise this and act on it? I really want to kill off my "fast_blank" gem. The 2 dec... sam.saffron (Sam Saffron)
06:49 AM Feature #14763 (Closed): Allow more Enumerable methods to accept method names as symbol arguments
closing this on behalf of sunnyrjuneja ujihisa (Tatsuhiro Ujihisa)
05:53 AM Feature #14820 (Assigned): [PATCH] ipaddr.rb: use frozen_string_literal
Thanks for taking the time for this! It looks good to me as well. I'll commit this after testing this out with some... knu (Akinori MUSHA)
03:54 AM Feature #14820 (Closed): [PATCH] ipaddr.rb: use frozen_string_literal
```
ipaddr.rb: use frozen_string_literal
This reduces GC count by around 10% and provides a tiny speedup.
"mak...
normalperson (Eric Wong)
03:22 AM Bug #14809: calc_lineno() returns wrong location
I'll take care of it. shyouhei (Shyouhei Urabe)
01:06 AM Misc #14812 (Closed): Question: Option Parser
Just `rescue OptionParser::InvalidOption`.
As it can't tell if an unknown option has its argument or not, I didn't a...
nobu (Nobuyoshi Nakada)

06/03/2018

11:47 PM Feature #14819: Efficient cstring to RVALUE typecasting for c extension gems
IPAddr and Date are stdlib, not core, so I don't think a C-API (rb_cstr2ipaddr, rb_cstr2date) method could be added f... jeremyevans0 (Jeremy Evans)
11:21 PM Feature #14819 (Open): Efficient cstring to RVALUE typecasting for c extension gems
A general pattern I notice in the PG / MySQL and other gems is a general need for a C string to RVALUE type casting.
...
sam.saffron (Sam Saffron)
11:00 PM Bug #14817: TracePoint#parameters for bmethod's return event should return the same value as its Method#parameters
invoke_bmethod で vm_exec が終わったあとに EXEC_EVENT_HOOK(ec, RUBY_EVENT_RETURN, ...) するため、このような挙動になっているようです。
これは仕様でしょうか。とりあ...
mame (Yusuke Endoh)
10:54 PM Bug #14817: TracePoint#parameters for bmethod's return event should return the same value as its Method#parameters
TracePoint#parameters の問題ではなく、define_method + TracePoint 全般の問題のようです。
```
define_method(:bm) {|a|}
trace = Trac...
mame (Yusuke Endoh)
02:47 PM Bug #14817 (Closed): TracePoint#parameters for bmethod's return event should return the same value as its Method#parameters
define_methodしたメソッド(bmethod)のcall/returnイベント中にTracePoint#parametersを呼び出すと
以下の結果となります。
```
$ cat t.rb
define_met...
ktsj (Kazuki Tsujimoto)
09:06 PM Feature #14815 (Closed): [PATCH] benchmark/driver.rb: add CPU time measurement targets
Applied in changeset trunk|r63564.
----------
benchmark/driver.rb: add CPU time measurement targets
"Real" time is ...
normalperson (Eric Wong)
09:06 PM Revision b3cb6dba (git): * 2018-06-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:06 PM Revision c27a8e87 (git): benchmark/driver.rb: add CPU time measurement targets
"Real" time is too unstable on my systems, hopefully counting
only CPU time can gain more reliable benchmark results....
Eric Wong
07:46 PM Bug #14322: Inconsitency in command line options between 2.4 and 2.5
yeeey, +1 for not silently breaking stuff :) graywolf (Gray Wolf)
05:42 PM Bug #14322: Inconsitency in command line options between 2.4 and 2.5
graywolf (Gray Wolf) wrote:
> out of curiosity, why there was no deprecation phase for this change?
This commit o...
arpitchauhan (Arpit Chauhan)
07:23 PM Bug #14818 (Closed): [Docs] Backport r63112 to ruby 2.5
Please backport r63112 (https://github.com/ruby/ruby/commit/23228b6e3139fb33d42f6dae4ec9bdabb21e52b2) since the bug a... nomadium (Miguel Landaeta)
02:06 PM Bug #14816 (Closed): Extension build failure on a system with musl libc
Some extensions fail to build on a Linux with musl (Void Linux). Build of unf_ext is an example.
isinf() and isnan(...
akamch (Anatoly Kamchatnov)
05:11 AM Feature #14694 (Closed): TracePoint#parameters
Applied in changeset trunk|r63562.
----------
Add TracePoint#parameters
It can be used to get the parameters' infor...
mame (Yusuke Endoh)
05:10 AM Revision ce7c531c (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:10 AM Revision cd0fec37 (git): Add TracePoint#parameters
It can be used to get the parameters' information of method and block.
There was no way to get block parameters.
It w...
mame (Yusuke Endoh)
02:47 AM Feature #14739: Improve fiber yield/resume performance
I've made a short blog post about this PR: https://www.codeotaku.com/journal/2018-06/improving-ruby-fibers/index ioquatix (Samuel Williams)

06/02/2018

11:31 PM Feature #14815 (Closed): [PATCH] benchmark/driver.rb: add CPU time measurement targets
benchmark/driver.rb: add CPU time measurement targets
"Real" time is too unstable on my systems, hopefully countin...
normalperson (Eric Wong)
11:05 PM Revision 25d18918 (git): * 2018-06-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:05 PM Revision 8ce71b61 (git): Promote Prime library to default gems.
* Its upstream is https://github.com/ruby/prime.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63560 b2dd03c8-39...
hsbt (Hiroshi SHIBATA)
10:54 PM Feature #14814 (Closed): rb_vm_insn_addr2insn: use sto to perform addr2insn mapping
The current VM_INSTRUCTION_SIZE is 198, so the linear search
becomes a bit painful.
I noticed rb_vm_insn_addr2ins...
normalperson (Eric Wong)
02:05 PM Feature #14813 (Assigned): [PATCH] gc.c: make gc_enter+gc_exit pairs dtrace probes, too
gc.c: make gc_enter+gc_exit pairs dtrace probes, too
I would like to use these with systemtap to gather
min/max/a...
normalperson (Eric Wong)
01:57 PM Revision 1dd43218 (git): Promote Logger to default gems.
* Its upstream is https://github.com/ruby/logger.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63559 b2dd03c8-3...
hsbt (Hiroshi SHIBATA)
01:55 PM Revision 46ec01cb (git): Fixed wrong variable name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
12:29 PM Misc #14812 (Closed): Question: Option Parser
Hi,
Is there an option / way to ignore undeclared options and get them in a resultset so, I can handle them in a c...
xz0r (xz0r xz0r)
12:17 PM Revision 8a4656c9 (git): gmake.mk: update in the source directory properly
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:46 AM Feature #13396: Net::HTTP has no write timeout
I just noticed that just use write_nonblock can solve this ticket:
```diff
diff --git a/lib/net/protocol.rb b/lib...
naruse (Yui NARUSE)
08:36 AM Revision 295b1c5e (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:36 AM Revision 14e19692 (git): Added test for default gems validation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
07:50 AM Revision 7495b2d2 (git): enum.c: bignum counter
* enum.c (imemo_count_up, imemo_count_value): promote the counter
value to a bignum on overflow. [Bug #14805]
git...
nobu (Nobuyoshi Nakada)
07:04 AM Revision 4973f304 (git): Fixed wrong require path
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
06:02 AM Revision 0f5b6752 (git): Promote REXML to default gems.
* upstream repostiory is https://github.com/ruby/rexml
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63552 b2dd0...
hsbt (Hiroshi SHIBATA)
05:12 AM Feature #14811 (Open): Dynamically extend Ruby VM stack
We (Keita Sugiyama and me) have presented the work on dynamically extending the Ruby VM stack today at RubyKaigi 2018... duerst (Martin Dürst)
04:33 AM Feature #14808 (Rejected): Last token of endless range should have EXPR_END
That code is valid syntax in both versions, and it is *not* an endless range in the trunk as well as 2.5.
As `..` is...
nobu (Nobuyoshi Nakada)
01:23 AM Feature #14808 (Rejected): Last token of endless range should have EXPR_END
In 2.5.1:
```ruby
irb(main):001:0> require 'ripper'
irb(main):002:0> pp Ripper.lex("case 5\nwhen 3..\n puts(tru...
aycabta (aycabta .)
04:17 AM Bug #14543: `make commit` show error of `common-srcs`
I discussed about this with nobu.
```
941:common-srcs: $(srcs_vpath)parse.c $(srcs_vpath)lex.c $(srcs_vpath)enc/t...
hsbt (Hiroshi SHIBATA)
03:49 AM Bug #14810 (Closed): Segfault during travis build (Ruby trunk 63545)
I'm not sure what information would be helpful, so here's a link to the log: https://travis-ci.com/brian-kephart/rspe... brian-kephart (Brian Kephart)
03:30 AM Bug #14809 (Closed): calc_lineno() returns wrong location
r62051のコミット以降
```
$ cat -n t.rb
1 class String
2 def -@
3 p caller_locations(1, 1)[0]
...
ktsj (Kazuki Tsujimoto)
02:39 AM Revision 6bb70c11 (git): enum.c: mitigate overflows
* enum.c (enum_count): convert counters to Integer as unsigned
long, instead of long, to mitigate overflows.
[rub...
nobu (Nobuyoshi Nakada)
01:34 AM Feature #14739: Improve fiber yield/resume performance
Here is a more realistic benchmark which fiber context switch is only a tiny percentage of the actual run-time.
A ...
ioquatix (Samuel Williams)
01:07 AM Feature #14739: Improve fiber yield/resume performance
I fixed autoconf issues and built on Linux. The performance improvement was even more impressive.
```
koyoko% rub...
ioquatix (Samuel Williams)
01:23 AM Bug #14387: Ruby 2.5 を Alpine Linux で実行すると比較的浅めで SystemStackError 例外になる
jnardone (joe nardone) wrote:
> it's frustrating that this is still open after four months. alpine-ruby-2.5 is bord...
naruse (Yui NARUSE)
01:14 AM Revision ccc52902 (git): Promote RSS library to default gems.
Its upstream was moved to https://github.com/ruby/rss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63550 b2dd0...
hsbt (Hiroshi SHIBATA)
01:02 AM Bug #14793 (Closed): Hash returned from CGI.parse has [] as default value
naruse (Yui NARUSE)
12:51 AM Bug #14805 (Closed): Enumerator#count is silently limited to int32
Applied in changeset trunk|r63549.
----------
memo->u3.cnt is long not int [Bug #14805]
naruse (Yui NARUSE)
12:51 AM Revision 9b6175b2 (git): memo->u3.cnt is long not int [Bug #14805]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)

06/01/2018

11:21 PM Feature #14739: Improve fiber yield/resume performance
I've made a new branch with the new implementation above.
It shows a slightly improved performance improvement ove...
ioquatix (Samuel Williams)
10:45 PM Bug #14804: GzipReader cannot read Freebase dump (but gzcat/zless can)
(Note that `f.each_line.count` would return the wrong result anyway, due to https://bugs.ruby-lang.org/issues/14805 ,... amadan (Goran Topic)
07:27 AM Bug #14804 (Closed): GzipReader cannot read Freebase dump (but gzcat/zless can)
This is likely related to https://stackoverflow.com/questions/35354951/gzipstream-quietly-fails-on-large-file-stream-... amadan (Goran Topic)
10:35 PM Bug #14805: Enumerator#count is silently limited to int32
It's interestingly also negative on JRuby. Headius noted in the #ruby IRC channel that [this patch](https://gist.gith... shan (Shannon Skipper)
09:32 AM Bug #14805: Enumerator#count is silently limited to int32
Confirmed on trunk. duerst (Martin Dürst)
07:41 AM Bug #14805 (Closed): Enumerator#count is silently limited to int32
One takes for granted that integers will be promoted into bigints in Ruby when needed.
Not so with `Enumerator#count...
amadan (Goran Topic)
10:23 PM Bug #14807: 2.6.0-preview2 segfaults on OpenBSD due to missing pthread_condattr_init call
normalperson (Eric Wong) wrote:
> Btw, is PTHREAD_COND_INITIALIZER supported on OpenBSD?
It's defined but I don'...
jeremyevans0 (Jeremy Evans)
10:12 PM Bug #14807: 2.6.0-preview2 segfaults on OpenBSD due to missing pthread_condattr_init call
Thanks, r63548

Btw, is PTHREAD_COND_INITIALIZER supported on OpenBSD?

Something like this:
```
--- a/thread_...
normalperson (Eric Wong)
08:51 PM Bug #14807 (Closed): 2.6.0-preview2 segfaults on OpenBSD due to missing pthread_condattr_init call
r63238 refactored thread_pthread.c, and where there was previously a pthread_condattr_init call to initialize the pth... jeremyevans0 (Jeremy Evans)
09:56 PM Revision 832b601e (git): Initialize condattr_monotonic via pthread_condattr_init
Some operating systems will work without calling
pthread_condattr_init, but some won't (such as OpenBSD). Prior
to r6...
Eric Wong
09:23 PM Revision 24c6231e (git): * 2018-06-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:23 PM Revision 3eb12cb6 (git): gc.c: reduce size slightly by making MEMOP_TYPE_MALLOC zero
Most (if not all) architectures have instructions for comparing
against zero, allowing compilers to generate more com...
Eric Wong
01:10 PM Revision afbf10e8 (git): Added missing dependency for ast.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
09:45 AM Feature #14801: New method 'show_stack' to show Ruby stack(s) when program is running
A bit of feedback as asked by Martin; I'll skip the implementation detail part since
I do not know C so others have ...
shevegen (Robert A. Heiler)
02:27 AM Feature #14801 (Open): New method 'show_stack' to show Ruby stack(s) when program is running
It would be great to have a method to show the Ruby stack(s) (there are actually two of these) while a Ruby program i... duerst (Martin Dürst)
09:29 AM Feature #14802: Update Unicode data to Unicode Version 11.0.0
All power to the emoji. \o/ shevegen (Robert A. Heiler)
05:16 AM Feature #14802 (Closed): Update Unicode data to Unicode Version 11.0.0
Unicode Version 11.0.0 will be published sometimes later this year, probably in late June. This is an issue to manage... duerst (Martin Dürst)
08:26 AM Bug #14806 (Closed): Partially backport r63300: Make --with-soname actually work on macOS
r63300 was mainly about changing the default names, but also included a fix for --with-soname to take effect.
So, pl...
knu (Akinori MUSHA)
07:22 AM Bug #14803 (Closed): Backport r63544: Fix name clash issue with --with-soname
knu (Akinori MUSHA)
07:13 AM Revision 6251615c (git): Skip colliding filenames in LIBRUBY_ALIASES
This allows user to specify any name in `--with-so-name` that might
cause a name clash with LIBRUBY_ALIASES on the pl...
Akinori MUSHA
06:53 AM Revision ce2f4f85 (git): string.c: trivial optimizations
* string.c (rb_str_aset): prefer BUILTIN_TYPE over TYPE after
SPECIAL_CONST_P check.
* string.c (rb_str_start_with...
nobu (Nobuyoshi Nakada)
06:37 AM Revision ccdcc730 (git): * 2018-06-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:37 AM Revision 87ccf7e5 (git): string.c: doc for [Feature #13712]
* string.c (rb_str_start_with): [DOC] start_with? example with
regexp.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby...
nobu (Nobuyoshi Nakada)
06:26 AM Bug #14795: Should 'net/http' require 'net/http/status' ?
jeremyevans0 (Jeremy Evans) wrote:
> tonytonyjan (Wei-Hang Jian) wrote:
> > IMHO, I would suggest use `Kernel::auto...
tonytonyjan (Weihang Jian)
05:11 AM Bug #14795: Should 'net/http' require 'net/http/status' ?
tonytonyjan (Wei-Hang Jian) wrote:
> IMHO, I would suggest use `Kernel::autoload`, thus we don't need to type `net/h...
jeremyevans0 (Jeremy Evans)
04:57 AM Bug #14795: Should 'net/http' require 'net/http/status' ?
IMHO, I would suggest use `Kernel::autoload`, thus we don't need to type `net/http/status` when we want it, and they ... tonytonyjan (Weihang Jian)
03:14 AM Bug #14795: Should 'net/http' require 'net/http/status' ?
net/http itself doesn't need net/http/status.
Therefore at this time it's intentional.
Though I may change it if th...
naruse (Yui NARUSE)
06:03 AM Bug #14793: Hash returned from CGI.parse has [] as default value
FYI: https://github.com/ruby/ruby/blob/fef8339f582b125e1fec5f3d47adbb48f7cede92/lib/cgi/core.rb#L393 tonytonyjan (Weihang Jian)
03:10 AM Bug #14015: Enumerable & Hash yielding arity
Here's more code to show how the situation is complicated.
I don't know which of these can be considered bugs and wh...
marcandre (Marc-Andre Lafortune)
03:00 AM Feature #14217: Expose RUBY_PATCHLEVEL_STR or similar with patch level info for rc/preview as a constant
Could you elaborate how you want to use it? nobu (Nobuyoshi Nakada)
12:06 AM Bug #14789 (Third Party's Issue): Debian 9, ARM, rails 5.2.0 not works.
Tivgres (Sergey D) wrote:
> Yeah, with disabled gem it's worked.
> Thanks for a help. Troubles not at ruby side.
...
shyouhei (Shyouhei Urabe)

05/31/2018

11:17 PM Feature #14594: Rethink yield_self's name
Right. I am not against the idea of function composition. But it should be discussed separately from `yield_self` and... matz (Yukihiro Matsumoto)
11:08 PM Feature #14594: Rethink yield_self's name
matz (Yukihiro Matsumoto) wrote:
> If you really wanted a non-unwrapping method for promises, use `yield_self`.
I...
avit (Andrew Vit)
04:50 PM Feature #14594: Rethink yield_self's name
@jrochkind It is introduced that a normal object can behave like promises.
So the name conflict is intentional.
If ...
matz (Yukihiro Matsumoto)
01:01 PM Feature #14594: Rethink yield_self's name
I'm concerned that `then` is used in Promises, and is already in use in many promise-implementing libraries, includin... jrochkind (jonathan rochkind)
05:02 PM Bug #14789 (Closed): Debian 9, ARM, rails 5.2.0 not works.
Tivgres (Sergey D)
05:01 PM Bug #14789: Debian 9, ARM, rails 5.2.0 not works.
shyouhei (Shyouhei Urabe) wrote:
> > /home/tivgres/.rvm/gems/ruby-2.4.1/gems/bootsnap-1.3.0/lib/bootsnap/compile_cac...
Tivgres (Sergey D)
04:48 PM Feature #14217: Expose RUBY_PATCHLEVEL_STR or similar with patch level info for rc/preview as a constant
Is it possible to get any updates on this approach? :) shayonj (Shayon Mukherjee)
02:32 PM Feature #14800 (Open): Zlib::GzipReader#read does not support 2nd argument
`Zlib::GzipReader#read` does not support 2nd argument for output buffer.
It is not same as `IO#read` and `StringIO#r...
okkez (okkez _)
01:01 PM Feature #14799: Startless range
Rails devs could also make use of this, e.g. in [queries](http://guides.rubyonrails.org/active_record_querying.html#r... janosch-x (Janosch Müller)
11:39 AM Feature #14799 (Assigned): Startless range
I tried begin-less range once, and it caused many parser conflicts, so I gave up.
However, I've tried it again and...
mame (Yusuke Endoh)
09:51 AM Feature #14799: Startless range
> except it seems endless range does not raise for #reverse_each :)
Funny!
Though, in fact, raises some big qu...
zverok (Victor Shepelev)
09:31 AM Feature #14799: Startless range
zverok (Victor Shepelev) wrote:
> > how should `Range#each` work for this kind of ranges?
>
> Most probably it sh...
shyouhei (Shyouhei Urabe)
09:14 AM Feature #14799: Startless range
> how should Range#each work for this kind of ranges?
Most probably it should not (the same as `Enumerable#reverse...
zverok (Victor Shepelev)
08:10 AM Feature #14799: Startless range
No strong opinion on this. However let me leave one question: how should `Range#each` work for this kind of ranges? shyouhei (Shyouhei Urabe)
07:56 AM Feature #14799 (Closed): Startless range
On introduction of endless range at #12912, "startless range" was discussed this way:
> @sowieso: Not having the o...
zverok (Victor Shepelev)
09:30 AM Revision fef8339f (git): vm_args.c: refined warning splat to var
* vm_args.c (setup_parameters_complex): refine the warning message
for a splat hash which was passed to a single va...
nobu (Nobuyoshi Nakada)
07:10 AM Revision a6273888 (git): fix the condition
* test/ruby/test_rubyoptions.rb: Process.wait with WNOHANG returns
nil while the target process is alive.
git-svn-...
nobu (Nobuyoshi Nakada)
06:57 AM Revision 83b14c26 (git): test_rubyoptions.rb: relax timeout
* test/ruby/test_rubyoptions.rb: wait for setting process title
until the child process dies, in the case of extra ...
nobu (Nobuyoshi Nakada)
06:25 AM Revision 9e82c4f1 (git): NEWS: Add RubyVM::AST
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e yui-knk (Kaneko Yuichiro)
06:24 AM Revision d4a6aaa1 (git): Undef RubyVM::AST::Node.new
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e yui-knk (Kaneko Yuichiro)
06:13 AM Revision 46463af9 (git): Define AST module under RubyVM [experimental]
* ext/-test-/ast/ast.c: Rename to ast.c
and define AST module under RubyVM.
* common.mk: compile ast.c.
* ext/-test...
yui-knk (Kaneko Yuichiro)
05:49 AM Revision c7c96353 (git): * 2018-05-31
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:49 AM Revision a97d22a0 (git): ast.c: Do not taint TOPLEVEL_BINDING
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e yui-knk (Kaneko Yuichiro)

05/30/2018

11:01 PM Misc #14798 (Closed): [PATCH] gc.c: reduce parameters for gc_start and garbage_collect
```
Every time I look at gc.c, I get confused by argument ordering:
gc_start(..., TRUE, TRUE, FALSE, ...)
gc_s...
normalperson (Eric Wong)
10:04 PM Feature #14757: [PATCH] thread_pthread.c: enable thread cache by default
ko1 brought up a good point: this may interact badly with
3rd-party libraries which use thread-local storage via
...
normalperson (Eric Wong)
08:24 PM Feature #14546: Hash#delete!
duerst (Martin Dürst) wrote:
> it would be a bad idea to use a bang method in a context (such as delete) where it ca...
janosch-x (Janosch Müller)
01:58 PM Feature #14794: Primitive arrays (Ruby 3x3)
btw: 40% of arrays on my rails app contains only primitive elements ahorek (Pavel Rosický)
01:27 PM Feature #14794: Primitive arrays (Ruby 3x3)
I'm interested to improve Ruby array's performance without specifying custom types or C extensions, it should just wo... ahorek (Pavel Rosický)
02:26 AM Feature #14794: Primitive arrays (Ruby 3x3)
Use numo-narray or nmatrix for homogeneous numeric arrays.
https://github.com/ruby-numo/numo-narray
https://git...
mrkn (Kenta Murata)
01:03 PM Revision b9212a77 (git): Ignore bundler assertions on ruby core test suite.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
01:01 PM Revision af9b1c95 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:01 PM Revision 50181419 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:01 PM Revision 8da8d4b0 (git): Merge RubyGems 3.0.0.beta1.
* It drop to support < Ruby 2.2
* Cleanup deprecated methods and classes.
* Mark obsoleted methods to deprecate.
...
hsbt (Hiroshi SHIBATA)
11:49 AM Revision c5cb386e (git): NEWS: clarify item about built-in thread cache
[Feature #14757]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
11:33 AM Bug #14795: Should 'net/http' require 'net/http/status' ?
[email protected] wrote:
> I think it would make sense, given how important http status codes
> are in general (a...
normalperson (Eric Wong)
07:15 AM Bug #14795: Should 'net/http' require 'net/http/status' ?
I think it would make sense, given how important http status codes
are in general (and people who use net/http may a...
shevegen (Robert A. Heiler)
09:13 AM Revision 162adb82 (git): Workaround for old LibreSSL
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:25 AM Feature #14594 (Closed): Rethink yield_self's name
Applied in changeset trunk|r63525.
----------
object.c: Add a new alias `then` to `Kernel#yield_self`; [Feature #14594]
matz (Yukihiro Matsumoto)
08:24 AM Revision d53ee008 (git): object.c: Add a new alias `then` to `Kernel#yield_self`; [Feature #14594]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e matz (Yukihiro Matsumoto)
07:14 AM Bug #14796 (Closed): improper passing of &block - causes crash on MacOS 10.13.4 (17E202) with Ruby 2.5.0 within Rbenv
Situation confirmed in 2.5.0, but seems fixed in 2.5.1. Try a newer version. shyouhei (Shyouhei Urabe)
06:42 AM Bug #14796 (Closed): improper passing of &block - causes crash on MacOS 10.13.4 (17E202) with Ruby 2.5.0 within Rbenv
offending code:
```ruby
def assert(message="", &block)
raise ArgumentError, "#{message} invalid" unles...
btihen (Bill Tihen)

05/29/2018

11:28 PM Revision 47f9dd84 (git): * 2018-05-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:28 PM Revision 9fd0858c (git): fake.rb: fix RUBY_DESCRIPTION for MJIT
* template/fake.rb.in: switch RUBY_DESCRIPTION at runtime
depending on the MJIT status.
git-svn-id: svn+ssh://ci.r...
nobu (Nobuyoshi Nakada)
10:02 PM Bug #14795 (Closed): Should 'net/http' require 'net/http/status' ?
net/http/status.rb has been added (#12935) but it is [not required from net/http.rb](https://github.com/ruby/ruby/blo... sakuro (Sakuro OZAWA)
08:34 PM Feature #14718: Use jemalloc by default?
bluz71 (Dennis B) wrote:
> Redis ships jemalloc 4.0.3 (or near to) as seen here:
>
> https://github.com/antirez/r...
Ksec (E C)
03:29 PM Feature #14794 (Feedback): Primitive arrays (Ruby 3x3)
dynamic arrays in ruby can contain various object types:
```ruby
[1, 1.0, 'text', Object.new]
```
however if I ...
ahorek (Pavel Rosický)
03:12 PM Feature #14792: Multiple RubyVM in one process to make real multi-threading.
Ksec (Ed Chick) wrote:
> HfCloud (Xiangyu Shi) wrote:
> > shyouhei (Shyouhei Urabe) wrote:
> > > This is what we c...
HfCloud (Xiangyu Shi)
09:12 AM Feature #14792: Multiple RubyVM in one process to make real multi-threading.
HfCloud (Xiangyu Shi) wrote:
> shyouhei (Shyouhei Urabe) wrote:
> > This is what we call the MVM feature. There ha...
Ksec (E C)
07:33 AM Feature #14792 (Feedback): Multiple RubyVM in one process to make real multi-threading.
naruse (Yui NARUSE)
05:56 AM Feature #14792: Multiple RubyVM in one process to make real multi-threading.
shyouhei (Shyouhei Urabe) wrote:
> HfCloud (Xiangyu Shi) wrote:
> > shyouhei (Shyouhei Urabe) wrote:
> > > This is...
HfCloud (Xiangyu Shi)
05:46 AM Feature #14792: Multiple RubyVM in one process to make real multi-threading.
HfCloud (Xiangyu Shi) wrote:
> shyouhei (Shyouhei Urabe) wrote:
> > This is what we call the MVM feature. There ha...
shyouhei (Shyouhei Urabe)
05:28 AM Feature #14792: Multiple RubyVM in one process to make real multi-threading.
shyouhei (Shyouhei Urabe) wrote:
> This is what we call the MVM feature. There has been rich amount of efforts to m...
HfCloud (Xiangyu Shi)
05:26 AM Feature #14792: Multiple RubyVM in one process to make real multi-threading.
This is what we call the MVM feature. There has been rich amount of efforts to make it possible and still not availa... shyouhei (Shyouhei Urabe)
05:11 AM Feature #14792 (Closed): Multiple RubyVM in one process to make real multi-threading.
This is an old problem, maybe running multiple RubyVM is a good way, which can really run ruby code in parallel in ... HfCloud (Xiangyu Shi)
11:35 AM Feature #12732: An option to pass to `Integer`, `Float`, to return `nil` instead of raise an exception
rbjl (Jan Lelis) wrote:
> Although it does not solve Aaron's use case, I would suggest to have a `Integer.try_conver...
m_s__santos (Matheus Silva)
09:41 AM Bug #14791: String.sub wrong parsing of replacement with capturing group
Thanks for help!
I don't unterstand, why five backslahes are required in single quotes. My understanding was that ...
churib (Timo Grodzinski)
05:17 AM Bug #14791 (Rejected): String.sub wrong parsing of replacement with capturing group
Let me reject; this is not a bug. shyouhei (Shyouhei Urabe)
08:47 AM Revision 0342fcbd (git): fake.rb: fix RUBY_DESCRIPTION for MJIT
* template/fake.rb.in: reflect MJIT to RUBY_DESCRIPTION.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63522 b2d...
nobu (Nobuyoshi Nakada)
08:46 AM Revision 2df80d30 (git): spec/ruby: revert r63503 and r63508
When RUBY_DESCRIPTION has `+JIT` already, it will be doubled.
Just fake.rb.in always has copied `RUBY_DESCRIPTION`, r...
nobu (Nobuyoshi Nakada)
05:49 AM Bug #14793: Hash returned from CGI.parse has [] as default value
My mistake, it looks like all CGI values are always returned as arrays:
~~~
CGI.parse("x=y")
#=> {"x"=>["y"]}
~...
avit (Andrew Vit)
05:39 AM Bug #14793 (Closed): Hash returned from CGI.parse has [] as default value
Is there a valid reason for this behaviour? It looks like a bug to me:
~~~
require 'cgi'
params = CGI.parse(""...
avit (Andrew Vit)
02:48 AM Revision d2c6ed6b (git): mjit_compile.c: drop catch table handling
The loop for `vm_exce_handle_exception` doesn't trigger `mjit_exec`, so
I don't think this code is no longer needed.
...
k0kubun (Takashi Kokubun)
01:58 AM Revision 8b9e877b (git): Unused macro and field
* node.h (nd_cnt, struct RNode): nd_cnt has been unused
since r60239, and also cnt field.
* .gdbinit (nd_cnt): ditt...
yui-knk (Kaneko Yuichiro)
01:40 AM Revision 7db2db67 (git): Unused macro
* node.h (nd_noex): nd_noex has been unused since r24128.
* .gdbinit (nd_noex): ditto
git-svn-id: svn+ssh://ci.ruby-...
yui-knk (Kaneko Yuichiro)
01:19 AM Revision 3d1a523d (git): Unused macro
* node.h (nd_frml): nd_frml has been unused since r34134.
* .gdbinit (nd_frml): ditto
git-svn-id: svn+ssh://ci.ruby-...
yui-knk (Kaneko Yuichiro)
01:18 AM Revision 9e5354eb (git): NEWS: add item about built-in thread cache
This change may impact design of future programs and obviate
thread pools in many cases, so it's worth a mention.
Any...
Eric Wong
01:00 AM Revision d6d130c1 (git): Unused macro
* node.h (nd_argc): nd_argc has been unused since r24128.
* .gdbinit (nd_argc): ditto
git-svn-id: svn+ssh://ci.ruby-...
yui-knk (Kaneko Yuichiro)
12:14 AM Bug #14789 (Feedback): Debian 9, ARM, rails 5.2.0 not works.
> /home/tivgres/.rvm/gems/ruby-2.4.1/gems/bootsnap-1.3.0/lib/bootsnap/compile_cache/iseq.rb:18: [BUG] Bus Error at 0x... shyouhei (Shyouhei Urabe)
 

Also available in: Atom