Project

General

Profile

Activity

From 04/21/2018 to 04/27/2018

04/27/2018

11:58 PM Feature #14701: If the object is not frozen, I want to be able to redefine the compound assignment operator.
matz (Yukihiro Matsumoto) wrote:
> Use `append` instead of `+=` for arrays. Changing the behavior of `+=` would have...
naitoh (Jun NAITOH)
10:19 PM Feature #14701: If the object is not frozen, I want to be able to redefine the compound assignment operator.
Alternative idea: If Ruby has a feature like:
~~~ ruby
x = x.left_variable? # => true
y = x.left_variable? # => ...
masa16 (Masahiro Tanaka)
09:58 PM Feature #14718: Use jemalloc by default?
I have a Sidekiq benchmark[1] which processes 100,000 jobs through Redis, exercising networking, threading and JSON h... mperham (Mike Perham)
07:59 PM Feature #14718: Use jemalloc by default?
Regarding performance, it's subjective as always. What are your server's specifications? Usually RAM is not cheap, wh... rosenfeld (Rodrigo Rosenfeld Rosas)
07:28 PM Feature #14718: Use jemalloc by default?
The compile option to use jemalloc is already provided by Ruby from my understanding, this issue is about making it t... rosenfeld (Rodrigo Rosenfeld Rosas)
06:50 PM Feature #14718: Use jemalloc by default?
I know way too little about the topic at hand, so I can not really
comment on it, the usability, gains and so forth....
shevegen (Robert A. Heiler)
06:22 PM Feature #14718: Use jemalloc by default?
On 2018/04/28 3:12, Eric Wong wrote:
> Long-term (unlikely this year) I hope to work with glibc team to
> improve ...
ko1 (Koichi Sasada)
06:13 PM Feature #14718: Use jemalloc by default?
[email protected] wrote:
> https://bugs.ruby-lang.org/issues/14718

Agreed. I think it's acceptable to enable je...
normalperson (Eric Wong)
04:38 PM Feature #14718: Use jemalloc by default?
It's also quite possible that jemalloc will give us a small performance increase. Another data point:
https://medi...
mperham (Mike Perham)
04:30 PM Feature #14718: Use jemalloc by default?
If Ruby decides to ship with jemalloc, let's make sure to be like Redis and only use it by default on Linux (as menti... jeremyevans0 (Jeremy Evans)
04:14 PM Feature #14718 (Open): Use jemalloc by default?
I know Sam opened #9113 4 years ago to suggest this but I'm revisiting the topic to see if there's any movement here ... mperham (Mike Perham)
09:24 PM Bug #14719 (Rejected): FalseClass wrapped in a SimpleDelegator evaluates to true in an IF statement
I'm afraid you can not achieve what you want to achieve in Ruby. The only two objects that are falsy in Ruby are `nil... marcandre (Marc-Andre Lafortune)
04:33 PM Bug #14719 (Rejected): FalseClass wrapped in a SimpleDelegator evaluates to true in an IF statement
Hi, thanks for Ruby :-)
I have run into a problem. When I wrap the boolean false in a SimpleDelegator it breaks th...
theirishpenguin (Declan McGrath)
08:25 PM Revision 75f4f699 (git): * 2018-04-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:25 PM Revision 743c6edd (git): NEWS: fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e stomar (Marcus Stollsteimer)
06:19 PM Feature #12607: Ruby needs an atomic integer
Oh, sorry, I just noticed this issue isn't about changing Ruby's syntax, it was just my comment on the other related ... rosenfeld (Rodrigo Rosenfeld Rosas)
06:08 PM Feature #12607: Ruby needs an atomic integer
I'm not sure if type was set to Bug on purpose, so I'm changing it to Feature instead, but feel free to change it bac... rosenfeld (Rodrigo Rosenfeld Rosas)
06:07 PM Feature #12607: Ruby needs an atomic integer
Just to make it clearer, since I was mentioned by Shyouhey in the issue's description, performance has never been the... rosenfeld (Rodrigo Rosenfeld Rosas)
07:14 AM Feature #12607: Ruby needs an atomic integer
I think that you might not have understood his concern. Getting multi-threaded code right is hard, no matter the pri... Student (Nathan Zook)
02:11 AM Feature #12607: Ruby needs an atomic integer
We have already shown the benefits of atomic integers very well. What Ko1 says is the downside of it ("it is too har... shyouhei (Shyouhei Urabe)
02:40 PM Bug #14350: Strange behavior for Array.min in ruby 2.5.0
This change afects PrawnPDF gems (I'm a maintainer).
From the maths point of view it is indeed insignificant, but ...
cheba (Alexander Mankuta)
01:14 PM Revision 0dd9f7cc (git): iseq.c: consistent rb_bug messages
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:14 PM Revision e858f865 (git): mjit.c: remove undef
* mjit.c (clean_so_file): removed unnecessary undef of `Sleep`
which is redfined as rb_w32_sleep. eventually, retr...
nobu (Nobuyoshi Nakada)
09:44 AM Bug #14716: SecureRandom throwing an error in Ruby 2.5.1
We checked that by executing 'cat /dev/urandom' and we did see an output.
So dont think thats an issue.
We suspec...
snehavas (sneha vasanth)
09:23 AM Bug #14716: SecureRandom throwing an error in Ruby 2.5.1
I can reproduce the situation using this Dockerfile https://github.com/shyouhei/docker-library/blob/master/%2314716/D... shyouhei (Shyouhei Urabe)
08:54 AM Bug #14716: SecureRandom throwing an error in Ruby 2.5.1
naruse (Yui NARUSE) wrote:
> r57307 changed to use __NR_getrandom (kernel header) from SYS_getrandom (glibc header)....
naruse (Yui NARUSE)
08:45 AM Bug #14716 (Open): SecureRandom throwing an error in Ruby 2.5.1
r57307 changed to use __NR_getrandom (kernel header) from SYS_getrandom (glibc header).
But __NR_getrandom is from v...
naruse (Yui NARUSE)
07:36 AM Bug #14716: SecureRandom throwing an error in Ruby 2.5.1
The Kernel version is 3.13.0-145-generic snehavas (sneha vasanth)
07:34 AM Bug #14716: SecureRandom throwing an error in Ruby 2.5.1
We are using Ubuntu 14.04.5 LTS snehavas (sneha vasanth)
06:29 AM Bug #14716 (Feedback): SecureRandom throwing an error in Ruby 2.5.1
It depends on your OS.
What OS and the kernel version?
nobu (Nobuyoshi Nakada)
06:19 AM Bug #14716 (Closed): SecureRandom throwing an error in Ruby 2.5.1
Hi,
We recently upgraded from ruby 2.3.6 to 2.5.1.
We use SecureRandom.uuid to generate a random number for our s...
snehavas (sneha vasanth)
08:25 AM Feature #14709: Proper pattern matching
I've gone and done something exceptionally bad to Ruby, but this should be an interesting proof of concept nonetheles... baweaver (Brandon Weaver)
02:01 AM Feature #14709: Proper pattern matching
Whenever I feel I need pattern matching, I'm trying to handle method args. With some of the ideas presented here, lik... jgaskins (Jamie Gaskins)
08:14 AM Feature #14717: [PATCH] thread: allow disabling preempt
https://80x24.org/spew/[email protected]/raw
normalperson (Eric Wong)
08:09 AM Feature #14717 (Closed): [PATCH] thread: allow disabling preempt
In some cases, it may be beneficial to disable preemptibility to
have more predictable behavior than increasing Thre...
normalperson (Eric Wong)
07:44 AM Feature #12912: An endless range `(1..)`
I tried to structure my post to make it clear that there a two different types of uses for ranges. Of course `..5` wh... sowieso (So Wieso)
07:19 AM Feature #12912: An endless range `(1..)`
sowieso (So Wieso) wrote:
> >It is better to have ary[..1] as a consistency. But it will cause a shift/reduce conf...
duerst (Martin Dürst)
06:24 AM Feature #12912: An endless range `(1..)`
I like this change.
**As for general ranges**:
I was somewhat comfortable with `.step`, but this is much nicer. ...
sowieso (So Wieso)
07:39 AM Revision fa7fa928 (git): mjit.c: clean so file on Windows
* mjit.c (dlclose): use FreeLibrary to manage the reference count
on the loaded module properly.
* mjit.c (clean_s...
nobu (Nobuyoshi Nakada)
05:20 AM Revision ea631cc1 (git): mjit.c: fix cc arguments
* mjit.c (CC_LIBS): MJIT_LIBS is used only on Windows.
* mjit.c (compile_c_to_so): moved source and shared object fi...
nobu (Nobuyoshi Nakada)
05:20 AM Revision 6dafb4c9 (git): ruby.c: moved libdir
* ruby.c (ruby_init_loadpath_safe): moved libdir name inside
LOAD_RELATIVE.
git-svn-id: svn+ssh://ci.ruby-lang.org...
nobu (Nobuyoshi Nakada)
04:36 AM Revision 4eb2c1e1 (git): ruby.c: fix compilation error
* ruby.c (ruby_init_loadpath_safe): fix compilation error when
ENABLE_MULTIARCH but not universal binary.
git-svn-...
nobu (Nobuyoshi Nakada)
02:02 AM Revision 67800ea9 (git): mjit.c: prefix and archdir in init
* ruby.c (ruby_init_loadpath_safe): store prefix and archlibdir
paths.
* mjit.c (compile_c_to_so, init_header_file...
nobu (Nobuyoshi Nakada)
01:58 AM Revision 9ce0a846 (git): rbinstall.rb: fix timing to read stub
* tool/rbinstall.rb ($script_installer.stub): read stub file on
demand. as `$cmdtype` is set to "exe" in parse_arg...
nobu (Nobuyoshi Nakada)
12:30 AM Bug #14607: Fix use of the rb_profile_frames start parameter
I need to remember why such special (additional) calculation is done, so I left this ticket.
I need to remember...
ko1 (Koichi Sasada)
12:15 AM Bug #14607 (Open): Fix use of the rb_profile_frames start parameter
ko1 said I shouldn't have committed the patch, so I reverted. Sorry! tenderlovemaking (Aaron Patterson)
12:13 AM Revision c03f86b3 (git): Revert "Fix use of `rb_profile_frames` start parameter"
This reverts commit r63265.
ko1 said I should not have committed this! I'm sorry!
git-svn-id: svn+ssh://ci.ruby-lan...
tenderlovemaking (Aaron Patterson)

04/26/2018

10:49 PM Bug #14607 (Closed): Fix use of the rb_profile_frames start parameter
Applied in changeset trunk|r63265.
----------
Fix use of `rb_profile_frames` start parameter
rb_profile_frames was ...
tenderlovemaking (Aaron Patterson)
10:49 PM Revision 707cbe6f (git): * 2018-04-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:49 PM Revision d676ad10 (git): Fix use of `rb_profile_frames` start parameter
rb_profile_frames was always behaving as if the value given for the
start parameter was 0.
The reason for this was t...
tenderlovemaking (Aaron Patterson)
09:04 PM Feature #12607: Ruby needs an atomic integer
I don't like pulling in the entire concurrent-ruby gem only for a few lines of code. I've implemented my own slow bu... mperham (Mike Perham)
12:37 PM Feature #14715 (Open): Pathname#== should compare by #realpath instead of #to_s
Hi Core Team,
I'd like to report a confusing behaviour I noticed with Pathname#== comparison method.
See the fo...
hspazio (Fabio Pitino)
12:36 PM Revision 81f02142 (git): win32/Makefile.sub: LIBDIR_BASENAME
* mjit.c (init_header_filename): support LIBDIR_BASENAME.
* win32/Makefile.sub (config.h): ditto.
git-svn-id: svn+s...
nobu (Nobuyoshi Nakada)
12:36 PM Revision 8036af48 (git): ruby.c (ruby_init_loadpath_safe): constify
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
11:51 AM Bug #14714: Ruby 2.5.1 Segmentation Fault in GC
As it occurs in GC, it may reproduce with a few test by setting `GC.stress` to `true`. nobu (Nobuyoshi Nakada)
11:02 AM Bug #14714: Ruby 2.5.1 Segmentation Fault in GC
I have reverted to ruby 2.4.4 and done rspec/spec/features and the problem does not occur, to this increases the prob... obromios (Chris Drane)
10:28 AM Bug #14714 (Closed): Ruby 2.5.1 Segmentation Fault in GC
I am using Ruby 2.5.1, and running ruby on rails 5.1.4 with rspec-rails 3.7.2 and capybara 3.0.2.
When I run my fe...
obromios (Chris Drane)
11:05 AM Bug #11779: Module#using does not make sense as a method
From RSpec:
~~~ ruby
let(:test_class) do
Class.new(described_class) do
private
using SomeRefiningM...
AlexWayfer (Alexander Popov)
09:32 AM Bug #14713: <internal:prelude>:132:in `__write_nonblock': Protocol wrong type for socket (Errno::EPROTOTYPE)
ioquatix (Samuel Williams) wrote:
> Very occasionally on macOS, using Ruby 2.5.0, I get the above error.
It happe...
nobu (Nobuyoshi Nakada)
05:00 AM Bug #14713 (Closed): <internal:prelude>:132:in `__write_nonblock': Protocol wrong type for socket (Errno::EPROTOTYPE)
Very occasionally on macOS, using Ruby 2.5.0, I get the above error.
```
Traceback (most recent call last):
23:...
ioquatix (Samuel Williams)
09:30 AM Feature #14701: If the object is not frozen, I want to be able to redefine the compound assignment operator.
I think it is enough to change the meaning of
~~~ ruby
x += a
~~~
to
~~~ ruby
if x.respond_to?(:'+=')
...
masa16 (Masahiro Tanaka)
09:28 AM Feature #14701: If the object is not frozen, I want to be able to redefine the compound assignment operator.
nobu (Nobuyoshi Nakada) wrote:
> It seems a different story from `+=`.
I am sorry for getting off the point, but ...
masa16 (Masahiro Tanaka)
08:56 AM Feature #14701: If the object is not frozen, I want to be able to redefine the compound assignment operator.
masa16 (Masahiro Tanaka) wrote:
> Former NArray had `add!` method, but it results in a confused result.
It seems ...
nobu (Nobuyoshi Nakada)
07:21 AM Feature #14701: If the object is not frozen, I want to be able to redefine the compound assignment operator.
As first thing to say, we do not expect changing behavior of `+=` for ruby built-in types such as string or array.
...
sonots (Naotoshi Seo)
06:03 AM Feature #14701: If the object is not frozen, I want to be able to redefine the compound assignment operator.
I agree with matz and eregon.
Honestly, I first thought that it was a good idea to split `+` and `+=`. But by inv...
mame (Yusuke Endoh)
04:24 AM Feature #14701: If the object is not frozen, I want to be able to redefine the compound assignment operator.
> Most notably, it means other variables pointing to the same NArray would get modified in place by +=, which seems h... sonots (Naotoshi Seo)
03:58 AM Feature #14701: If the object is not frozen, I want to be able to redefine the compound assignment operator.
What about
```ruby
na = Numo::Int32[5, 6]
a = na.inplace
a += 1
```
nobu (Nobuyoshi Nakada)
01:17 AM Feature #14701: If the object is not frozen, I want to be able to redefine the compound assignment operator.
Former NArray had `add!` method, but it results in a confused result.
~~~ ruby
require 'narray'
a = NArray.int...
masa16 (Masahiro Tanaka)
06:04 AM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
[email protected] wrote:
> If you are unsure of a good definition for the reactor
> pattern, I think this i...
normalperson (Eric Wong)
04:57 AM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
If you are unsure of a good definition for the reactor pattern, I think this is a good one: https://en.wikipedia.org/... ioquatix (Samuel Williams)
12:12 AM Bug #14712 (Closed): test_step does not work for implementations with full 64-bit fixnum
Applied in changeset trunk|r63261.
----------
test_numeric.rb: loose precision assertion
* test/ruby/test_numeric.r...
nobu (Nobuyoshi Nakada)
12:12 AM Revision 4ac77028 (git): * 2018-04-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:12 AM Revision b7d260f1 (git): test_numeric.rb: loose precision assertion
* test/ruby/test_numeric.rb (TestNumeric#test_step): remove a
loose precision assertion, as Float cannot keep compl...
nobu (Nobuyoshi Nakada)

04/25/2018

07:45 PM Feature #14709: Proper pattern matching
On considering a bit more, I've come up with a few syntax variants for such a feature.
Preference towards avoiding...
baweaver (Brandon Weaver)
05:22 AM Feature #14709: Proper pattern matching
## On Pattern Matching in Other Languages
For continuity, we should also go over implementations in other language...
baweaver (Brandon Weaver)
02:53 AM Feature #14709: Proper pattern matching
It should also be mentioned that the way I achieved the pattern matching mentioned above was by using a status contai... baweaver (Brandon Weaver)
01:35 AM Feature #14709: Proper pattern matching
It was mentioned to me on Reddit that I should detail exactly what cases of pattern matching would entail.
For the...
baweaver (Brandon Weaver)
12:39 AM Feature #14709: Proper pattern matching
I am the author of aforementioned Qo, so I believe I can shed some light on a few things:
* The thinking behind Qo...
baweaver (Brandon Weaver)
05:35 PM Bug #14712 (Closed): test_step does not work for implementations with full 64-bit fixnum
In test/ruby/test_numeric.rb, in test_step, there's the following logic:
```ruby
assert_operator((0.0).step(bignu...
headius (Charles Nutter)
04:53 PM Feature #14701: If the object is not frozen, I want to be able to redefine the compound assignment operator.
I agree with matz.
Python's inplace operators sound like a fundamental design flaw to me,
because `a += b` is no ...
Eregon (Benoit Daloze)
03:22 PM Feature #14701: If the object is not frozen, I want to be able to redefine the compound assignment operator.
ANOTHER IDEA:
How about allowing to redefine `+!` instead of `+=` although it looks not intuitive for me, but it wou...
sonots (Naotoshi Seo)
03:19 PM Feature #14701: If the object is not frozen, I want to be able to redefine the compound assignment operator.
> Use append instead of += for arrays.
`+=` operation for NArray is totally different with `append` for ruby array...
sonots (Naotoshi Seo)
02:00 PM Revision 6509c178 (git): [DOC] Fix capitallizing [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
11:57 AM Bug #14711 (Closed): URI::HTML5ASCIIINCOMPAT returns expression
Applied in changeset trunk|r63259.
----------
common.rb: unused constant
* lib/uri/common.rb (URI::HTML5ASCIIINCOMP...
nobu (Nobuyoshi Nakada)
07:00 AM Bug #14711 (Closed): URI::HTML5ASCIIINCOMPAT returns expression
Since Ruby 2.3.0 URI::HTML5ASCIIINCOMPAT returns expression instead of an array.
I guess it's a backward compatib...
aderyabin (Andrey Deryabin)
11:56 AM Revision 27e97285 (git): common.rb: unused constant
* lib/uri/common.rb (URI::HTML5ASCIIINCOMPAT): remove the constant
which has been unused since r40460, and wrong si...
nobu (Nobuyoshi Nakada)
10:43 AM Bug #12305: "can't remove str from str_id" at unregister_sym
Was there any resolution to this issue? We are encountering the same issue now that we have upgraded our Ruby from 2.... eramsey (Eric Ramsey)
08:16 AM Revision 512041bf (git): Avoid "should_not raise_error" in Thread#raise spec
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Eregon (Benoit Daloze)
08:15 AM Revision 9498d66c (git): Fix style in Thread#raise spec
* Add space after { and before }.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63257 b2dd03c8-39d4-4d8f-98ff-82...
Eregon (Benoit Daloze)
08:11 AM Revision 66058dd5 (git): Use Thread.pass in loop{} to check interrupts more often
* The spec now runs in ~5ms vs ~100ms before.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63256 b2dd03c8-39d4-...
Eregon (Benoit Daloze)
08:03 AM Misc #14698: DevelopersMeeting20180517Japan
> please follow the format to make easy to copy&paste.
@ko1 I've updated my comment with a list of "functional pro...
zverok (Victor Shepelev)
01:54 AM Misc #14698: DevelopersMeeting20180517Japan
Hi,
I will copy & paste topics to ticket's "description" later so that please follow the format to make easy to co...
ko1 (Koichi Sasada)
01:47 AM Misc #14698: DevelopersMeeting20180517Japan
I would also like to propose that this be discussed as it recently came up: https://bugs.ruby-lang.org/issues/14709
...
baweaver (Brandon Weaver)
06:45 AM Bug #14708 (Closed): argument stack underflow (-1) (SyntaxError)
Applied in changeset trunk|r63255.
----------
compile.c: fix unconditional branch optimization
* compile.c (iseq_pe...
nobu (Nobuyoshi Nakada)
06:45 AM Revision 067066fc (git): compile.c: fix unconditional branch optimization
* compile.c (iseq_peephole_optimize): add dummy `putnil` after a
`jump` replacing an unconditional branch, to adjus...
nobu (Nobuyoshi Nakada)

04/24/2018

11:28 PM Feature #14710 (Open): I'd like to know from C API that "It has only one reference to Ruby object" to determine whether it is a temporary object.
I'd like to know from C API that "It has only one reference to Ruby object" to determine whether it is a temporary ob... naitoh (Jun NAITOH)
08:32 PM Feature #14705 (Closed): [PATCH] eval.c (ruby_setup): disable THP on Linux
Applied in changeset trunk|r63253.
----------
eval.c (ruby_setup): disable THP on Linux
Transparent Huge Pages (THP...
normalperson (Eric Wong)
08:32 PM Revision b768dc22 (git): * 2018-04-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:31 PM Revision acbbf8b0 (git): eval.c (ruby_setup): disable THP on Linux
Transparent Huge Pages (THP) decrease the effectiveness of
CoW-friendly GC because it decreases page granularity. Th...
Eric Wong
07:35 PM Bug #13524: miniruby: [BUG] Segmentation fault at 0x0055e487e00230 ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-li
All, I modified Shyouhei's Dockerfile to use alpine3.7 and jemalloc 5.0.1 and it no longer segfaults:
~~~
FROM ...
mperham (Mike Perham)
04:19 PM Feature #14709: Proper pattern matching
I think only matz can answer that.
On a side note, I am not aware of a issue request about it. Has this
already b...
shevegen (Robert A. Heiler)
03:19 PM Feature #14709 (Closed): Proper pattern matching
On RubyKaigi 2017, there was a [presentation](http://rubykaigi.org/2017/presentations/yotii23.html) of Yuki Torii abo... zverok (Victor Shepelev)
02:45 PM Bug #14708 (Closed): argument stack underflow (-1) (SyntaxError)
~~~
ruby -e '[].each { false || [].each { } }' # OK
ruby -e '[].each { nil.nil? || [].each { } }' # OK
ruby -e...
tim.leppard (Tim Leppard)
12:40 PM Feature #13683: Add strict Enumerable#single
How about `Enumerable#just(num=1)` or `Enumerable#only(num=1)`?
nobu (Nobuyoshi Nakada)
12:26 PM Bug #14707 (Closed): String#scan(/\K/) has changed its behavior in ruby 2.5
Applied in changeset trunk|r63252.
----------
string.c: fix scanned substring with `\K`
* string.c (scan_once): fix...
nobu (Nobuyoshi Nakada)
11:48 AM Bug #14707 (Closed): String#scan(/\K/) has changed its behavior in ruby 2.5
It seems `\K` does not work as expected any more:
```
% ruby -ve 'p "a1 a2 a3".scan(/a\K./)'
ruby 2.3.7p456 (2...
knu (Akinori MUSHA)
12:25 PM Revision 2c8f16e6 (git): string.c: fix scanned substring with `\K`
* string.c (scan_once): fix the matched substring with `\K`, the
beginning of that string may differ from the match...
nobu (Nobuyoshi Nakada)
12:22 PM Feature #12607: Ruby needs an atomic integer
Should this issue be assigned to Matz? rosenfeld (Rodrigo Rosenfeld Rosas)
09:53 AM Feature #14706: Atomic Integer incr/decr
I guess this may come up several times in the future. Would
this be a good candidate for discussion in the upcoming...
shevegen (Robert A. Heiler)

04/23/2018

11:46 PM Revision 3471d0f6 (git): rescue Errno::EPROTOTYPE
* test/webrick/test_httpserver.rb (test_gigantic_request_header):
Errno::EPROTOTYPE is sometimes raised on Mac OS X...
nobu (Nobuyoshi Nakada)
09:40 PM Feature #14706: Atomic Integer incr/decr
Jeremy, good point. I would agree that the different semantics are enough to justify a different class. Namespacing... mperham (Mike Perham)
09:27 PM Feature #14706: Atomic Integer incr/decr
Related ticket with some discussion already (and partially rejected) https://bugs.ruby-lang.org/issues/12607 rafaelfranca (Rafael França)
09:18 PM Feature #14706: Atomic Integer incr/decr
I think this feature in general is a good candidate for addition to stdlib.
I don't think the `Integer` class is a...
jeremyevans0 (Jeremy Evans)
09:08 PM Feature #14706: Atomic Integer incr/decr
I've always missed that feature as well, so I'm +1 to this. This and many other built-in thread-safe helpers by the w... rosenfeld (Rodrigo Rosenfeld Rosas)
08:53 PM Feature #14706 (Closed): Atomic Integer incr/decr
Ruby does not any thread-safe way to implement simple counters without a Mutex. Today Ruby provides Integer#succ but... mperham (Mike Perham)
04:20 PM Revision 6c4cab00 (git): * 2018-04-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:20 PM Revision f84efbaa (git): revert r63212
except test_jit.rb.
In some situations, this generates a wrong code. I'll add a test for it
later but let me revert ...
k0kubun (Takashi Kokubun)
01:56 PM Feature #14697: Introducing Range#% as an alias to Range#step
I'm supposing that this new notation of Range#step is mostly used for slicing numerical arrays like Numo::NArray.
Th...
mrkn (Kenta Murata)
12:51 PM Revision 4cae5353 (git): compile.c: copy a short insn with leave
* compile.c (iseq_peephole_optimize): copy not only `leave`, with
a non-operand instruction, which are not longer t...
nobu (Nobuyoshi Nakada)
12:09 PM Revision 425118b8 (git): [DOC] URI::Generic#port returns Integer [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
09:52 AM Revision c6ad7a62 (git): compile.c: insn before pop
* compile.c (iseq_peephole_optimize): more eliminatable
instructions before `pop` without side effects.
git-svn-id...
nobu (Nobuyoshi Nakada)
07:02 AM Misc #14698: DevelopersMeeting20180517Japan
zverok (Victor Shepelev) wrote:
> > your favorite ticket numbers you want to ask to discuss with your SHORT comment ...
baweaver (Brandon Weaver)
07:00 AM Feature #13581: Syntax sugar for method reference
sevos (Artur Roszczyk) wrote:
> After a while I am becoming a bigger fan of the triple colon operator. We could impl...
baweaver (Brandon Weaver)
05:54 AM Revision 87ca4f30 (git): test/ruby/test_io.rb: add extra Thread#join to delay close
Maybe this fixes some CI failures. Also, use different timeouts
for each item for hopefully easier diagnosis.
git-s...
Eric Wong
02:07 AM Revision 1222560a (git): thread_pthread.c: fallback to CLOCK_REALTIME
* thread_pthread.c (Init_native_thread): fallback to the default
CLOCK_REALTIME when failed to set to CLOCK_MONOTON...
nobu (Nobuyoshi Nakada)

04/22/2018

10:33 PM Misc #12004: Code of Conduct
[email protected] wrote:
> Issue #12004 has been updated by gkop (Gabe Kopley).
>
> matz (Yukihiro Matsumoto) wrote...
spatulasnout (B Kelly)
10:21 PM Feature #14705 (Closed): [PATCH] eval.c (ruby_setup): disable THP on Linux
Transparent Huge Pages (THP) decrease the effectiveness of
CoW-friendly GC because it decreases page granularity. T...
normalperson (Eric Wong)
09:21 PM Feature #14703 (Closed): [PATCH] net/imap: set SO_KEEPALIVE on TCP sockets
Applied in changeset trunk|r63243.
----------
net/imap: set SO_KEEPALIVE on TCP sockets
Otherwise connections (comm...
normalperson (Eric Wong)
09:21 PM Revision c4056a4a (git): net/imap: set SO_KEEPALIVE on TCP sockets
Otherwise connections (commonly on IDLE, but it could be any
command) may never receive notifications of link errors....
Eric Wong
07:41 PM Revision 75e5a91e (git): sprintf.c: fix typo
* sprintf.c: [DOC] fix typo.
Patch by Lazarus Lazaridis (iridakos). [Fix GH-1789]
git-svn-id: svn+ssh://ci.ruby-l...
stomar (Marcus Stollsteimer)
04:33 PM Revision 532464d1 (git): Same as the last commit (comment out tests for CI).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
04:03 PM Revision fdf2764e (git): * 2018-04-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:03 PM Revision dd45691d (git): Skip some tests to make CI healthy.
r63236 (or r63237) introduces test failures and CI shows errors.
This commit makes skipping these tests. Please reve...
ko1 (Koichi Sasada)
12:09 PM Misc #14497 (Closed): [PATCH] thread*: all condvars are monotonic
Applied in changeset trunk|r63238.
----------
thread*: all condvars are monotonic
There's no reason to use CLOCK_RE...
normalperson (Eric Wong)
12:09 PM Revision ed590bdb (git): thread*: all condvars are monotonic
There's no reason to use CLOCK_REALTIME for any condvars in Ruby.
Indeed, we initialized all condvars with RB_CONDATT...
Eric Wong
09:43 AM Bug #14600: test-all & REXML - fixup
I've enabled almost tests.
The tests reveals some XPath related bugs. They are good tests.
I've fixed most of the...
kou (Kouhei Sutou)
09:38 AM Revision 7a6f3410 (git): rexml: Fix XPath bug of //#{ELEMENT_NAME}[#{POSITION}]
The position should be counted for each nodeset but the previous
implementation counts position for union-ed nodeset....
Sutou Kouhei
08:09 AM Revision 4d15e619 (git): rexml: Fix XPath bug of /#{ELEMENT_NAME}
It doesn't mean that all elements which name "ELEMENT_NAME" with any
namespace URI including null namespace URI. It m...
Sutou Kouhei
05:53 AM Misc #14692: Question: Ruby stdlib's Option Parser
nobu (Nobuyoshi Nakada) wrote:
> Currently, it is not able.
> A possible workaround is to define an option which ra...
xz0r (xz0r xz0r)
04:01 AM Revision b252d8ad (git): mjit_compile.c: comment the intention of r63092 [ci skip]
It's for "leave" instruction.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63235 b2dd03c8-39d4-4d8f-98ff-823fe6...
k0kubun (Takashi Kokubun)
12:47 AM Revision 56e87b2c (git): made *.cmd excutable
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:46 AM Revision 04ac0363 (git): made *.cmd excutable
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:12 AM Bug #14681: `syswrite': stream closed in another thread (IOError)
[email protected] wrote:
> > We no longer set O_NONBLOCK on sockets/pipes by default since
> > 1.9+; and bu...
normalperson (Eric Wong)
12:02 AM Revision 0b429ad2 (git): Makefile.in: MJIT_ARCHFLAG
* Makefile.in (mjit_config.h): separate MJIT_ARCHFLAG for each
architecture on universal binary. cannot use precom...
nobu (Nobuyoshi Nakada)

04/21/2018

11:32 PM Revision fed7f81b (git): test/ruby/test_io.rb: try to diagnose stuck test_recycled_fd_close
I can't reproduce the problem myself, but gets loop seems ought
to give more useful information for tracking down whe...
Eric Wong
11:02 PM Revision c83decf6 (git): mjit.c: check pch status
* mjit.c (mjit_add_iseq_to_process, mjit_get_iseq_func): check if
pch failed before timedout.
git-svn-id: svn+ssh:...
nobu (Nobuyoshi Nakada)
10:12 PM Bug #14681: `syswrite': stream closed in another thread (IOError)
> We no longer set O_NONBLOCK on sockets/pipes by default since
> 1.9+; and but that didn't help with slow filesyste...
ioquatix (Samuel Williams)
06:12 PM Bug #14681: `syswrite': stream closed in another thread (IOError)
[email protected] wrote:
> I reviewed your suggestion, and while it (in theory) works
> with the original e...
normalperson (Eric Wong)
06:03 PM Bug #14681: `syswrite': stream closed in another thread (IOError)
[email protected] wrote:
> Excuse my ignorance, but if you call write, why can't you just
> directly invoke...
normalperson (Eric Wong)
01:26 PM Bug #14681: `syswrite': stream closed in another thread (IOError)
Excuse my ignorance, but if you call write, why can't you just directly invoke `::write`? Why do you need to do `rb_... ioquatix (Samuel Williams)
01:18 PM Bug #14681: `syswrite': stream closed in another thread (IOError)
I reviewed your suggestion, and while it (in theory) works with the original example, it won't work with my actual us... ioquatix (Samuel Williams)
01:14 PM Bug #14681: `syswrite': stream closed in another thread (IOError)
Eric, thanks so much for your commitment to fixing this issue and for taking a look at my specific use case.
I wil...
ioquatix (Samuel Williams)
09:04 AM Bug #14681: `syswrite': stream closed in another thread (IOError)
Eric Wong <[email protected]> wrote:
> https://80x24.org/spew/[email protected]/
> Note...
normalperson (Eric Wong)
03:32 AM Bug #14681: `syswrite': stream closed in another thread (IOError)
[email protected] wrote:
> Bug #14681: `syswrite': stream closed in another thread (IOError)
> https://bugs...
normalperson (Eric Wong)
12:33 AM Bug #14681: `syswrite': stream closed in another thread (IOError)
Thanks, fixing now. normalperson (Eric Wong)
08:04 PM Revision 83bd262f (git): * 2018-04-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:04 PM Revision 300b22dc (git): Improve docs for URI library
* lib/uri/generic.rb: [DOC] fix invalid example code to make it
syntax highlighted; drop unnecessary `puts', `p'; a...
stomar (Marcus Stollsteimer)
07:50 PM Misc #12004: Code of Conduct
matz (Yukihiro Matsumoto) wrote:
> We have set our Code of Conduct.
>
> https://www.ruby-lang.org/en/conduct/
> ...
gkop (Gabe Kopley)
01:15 PM Revision c04881f9 (git): test_jit.rb: follow the change of instruction
in r63225. Not strictly needed but to avoid confusion.
The JIT compiler itself seems working fine.
git-svn-id: svn+...
k0kubun (Takashi Kokubun)
01:09 PM Bug #14561: Consistent 2.5.0 seg fault in GC, related to accessing an enumerator in a thread
Thanks so much for your effort to isolate this issue.
I don't think any of my code is violating "First, Fiber.new ...
ioquatix (Samuel Williams)
11:33 AM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
[email protected] wrote:
> It would be also be pretty awesome if you could actually
> supply a reactor to u...
normalperson (Eric Wong)
11:12 AM Feature #14624: #{nil} allocates a fresh empty string each time
[email protected] wrote:
> https://github.com/nobu/ruby/tree/feature/opt_to_s

Btw, I also had [ruby-core:81905]...
normalperson (Eric Wong)
10:52 AM Revision fde115b1 (git): compile.c: optimize checktype
* compile.c (optimize_checktype): optimize `checktype` instruction
on a literal.
git-svn-id: svn+ssh://ci.ruby-lan...
nobu (Nobuyoshi Nakada)
10:52 AM Revision a3fe1034 (git): insns.def: checktype
* insns.def (checktype): split branchiftype to checktype and
branchif, to make branch condition negation possible.
...
nobu (Nobuyoshi Nakada)
07:48 AM Revision c458aeff (git): compile.c: renamed macro arguments
* compile.c (INSERT_BEFORE_INSN, INSERT_BEFORE_INSN1): rename
argument `prev` as `next`.
git-svn-id: svn+ssh://ci....
nobu (Nobuyoshi Nakada)
06:52 AM Bug #14659: segfault in ConditionVariable#broadcast and ConditionVariable#signal
[email protected] wrote:
> Bug #14659: segfault in ConditionVariable#broadcast and ConditionVariable#signal
> https...
normalperson (Eric Wong)
06:45 AM Revision ee29985d (git): rexml: Enable more tests
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Sutou Kouhei
06:43 AM Revision da89931d (git): rexml: Fix XPath concat() implementation
* lib/rexml/functions.rb (REXML::Functions.concat): Implement.
* test/rexml/test_jaxen.rb: Enable one more test.
g...
Sutou Kouhei
06:39 AM Revision 6793c0a2 (git): rexml: Fix XPath string() implementation
* lib/rexml/functions.rb( REXML::Functions.string):
* Support context node.
* Fix implementation for document nod...
Sutou Kouhei
06:21 AM Revision e044924e (git): rexml: Make more readable
test/rexml/test_jaxen.rb: Use more meaningful name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63220 b2dd03c...
Sutou Kouhei
06:21 AM Revision 1992cec5 (git): rexml: Fix a test bug
test/rexml/test_jaxen.rb: Fix wrong assert_raise usage. Note that this code
isn't used yet.
git-svn-id: svn+ssh://c...
Sutou Kouhei
06:18 AM Revision daec80fe (git): rexml: Make more readable
test/rexml/xpath/test_base.rb: Use here document for readability.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk...
Sutou Kouhei
04:02 AM Revision 7e9c19ad (git): test/ruby/test_io.rb: add closing recycled FD test
Followup-to: r63216
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
03:12 AM Revision 645f7fbd (git): io.c: do not use rb_notify_fd_close close on recycled FD
It is unsafe to release GVL and call rb_notify_fd_close after
close(2) on any given FD. FDs (file descriptor) may be...
Eric Wong
 

Also available in: Atom