Project

General

Profile

Activity

From 06/13/2018 to 06/19/2018

06/19/2018

11:21 PM Bug #14856 (Closed): [PATCH] lib/drb/extservm.rb (service): do not return `false'
Applied in changeset trunk|r63698.
----------
lib/drb/extservm.rb (service): do not return `false'
invoke_service_command may set entries in @servers to `false',
making it incompatible with the intended use of the
safe navigation opera...
normalperson (Eric Wong)
11:11 PM Bug #14856 (Closed): [PATCH] lib/drb/extservm.rb (service): do not return `false'
lib/drb/extservm.rb (service): do not return `false'
invoke_service_command may set entries in @servers to `false',
making it incompatible with the intended use of the
safe navigation operator.
This caused occasional DRb test fai...
normalperson (Eric Wong)
11:20 PM Revision d03afde3 (git): * 2018-06-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:20 PM Revision 0c53b400 (git): lib/drb/extservm.rb (service): do not return `false'
invoke_service_command may set entries in @servers to `false',
making it incompatible with the intended use of the
safe navigation operator.
This caused occasional DRb test failures, but they were hidden
with automatic retry.
[ruby-cor...
Eric Wong
10:26 PM Feature #14187: `make test` and `make check` to run all test suites
Messy issue, especially taking into account whether the user downloads a pre-built install, or builds their own. Without a build/compile system, tests can't be run with make...
Having paid attention to various repos for popular gems,...
MSP-Greg (Greg L)
07:08 AM Feature #14187: `make test` and `make check` to run all test suites
naruse (Yui NARUSE) wrote:
> Casual users really needs to run test-all and rubyspec?
The short answer is "I think so".
I agree that there is many "levels" of test suites: easy tests for casual users to verify their installation, d...
mame (Yusuke Endoh)
01:33 PM Bug #14841: Very rarely IO#readpartial does not raise EOFError
Thank you for letting me know how to touch gdb.
The below is the output, it seems that sleeper and living_thread_num
have reasonable values.

~~~
(gdb) t 1
[Switching to thread 1 (Thread 0x7f46c51c8700 (LWP 827))]
#0 pthread_con...
hirura (Hiroyuki URANISHI)
12:42 PM Bug #14841: Very rarely IO#readpartial does not raise EOFError
hirura <hirura@gmail.com> wrote:
> I tried and reproduced this on
> - Ubuntu Linux on Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz (4cores / 8threads)
> - CentOS Linux on Intel(R) Xeon(R) CPU E5-2660 v3 @ 2.60GHz (1cores /
> 2threads; ...
normalperson (Eric Wong)
11:52 AM Bug #14841: Very rarely IO#readpartial does not raise EOFError
Hi Eric,

Thank you for replying.

I tried and reproduced this on
- Ubuntu Linux on Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz (4cores / 8threads)
- CentOS Linux on Intel(R) Xeon(R) CPU E5-2660 v3 @ 2.60GHz (1cores /
2threads; a V...
hirura (Hiroyuki URANISHI)
10:52 AM Bug #14841: Very rarely IO#readpartial does not raise EOFError
Sorry, I left this out: If you can reproduce it again, can you
print vm->sleeper and vm->living_thread_num values from gdb?
Thanks.
normalperson (Eric Wong)
10:52 AM Bug #14841: Very rarely IO#readpartial does not raise EOFError
hirura@gmail.com wrote:
> File gdb_trace_reproduced.txt added
> ruby -v changed from ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux] to ruby 2.6.0dev (2018-06-15 trunk 63671) [x86_64-linux]

Odd, it is stuck in rb_mutex_sle...
normalperson (Eric Wong)
09:19 AM Bug #14841: Very rarely IO#readpartial does not raise EOFError
Hi,
I tried getting gdb backtrace of a reproduced, means stopped in this case, process.
Attached files are the outputs of reproduced case and normal case.
Could anyone help on this ?
hirura (Hiroyuki URANISHI) wrote:
> Hi,
...
hirura (Hiroyuki URANISHI)
01:09 PM Feature #14855 (Closed): Binding#irb の中では、呼び出し元の __FILE__ と __dir__ をとりたい
現在、Binding#irb の中で呼び出した __FILE__ と __dir__ が irb で設定されたもののままとなっています。
これだと、ソースコード中に埋め込んで試す際に不便なので、実際のソースコードのファイルが読み取れるとうれしいです。
そのパッチとして https://github.com/ruby/ruby/pull/1896 を作りました。
現時点は以下のようになります。
```
$ cat binding_irb.rb
bi...
takkanm (三村 益隆)
12:14 PM Misc #14854 (Closed): mjit (2.6.0-preview2) enabled on cygwin
cygwin で 2.6.0-preview2 の mjit をとりあえずで動かせるようにしてみました。
(コンパイルできるだけのレベル)
patch & log
https://gist.github.com/fd00/80b25c33ffef0651b7214d19e722848f
cygwin だと必ず false になるという都合で
pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM) == 0 ...
fd0 (Daisuke Fujimura)
12:10 PM Bug #14846 (Closed): Backport fixes for Kernel#warn(uplevel:)
Thank you for your notice.
I will backport r63650.
nagachika (Tomoyuki Chikanaga)
10:56 AM Feature #14197: `Enumerable#{select,reject}` accept a pattern argument
> The point is that the phrase "hard to remember" in the OP is bit weak when we already have methods with the proposed behavior (`grep` and `grep_v`).
Indeed. However I think there is a case to be made for consistency.
If this wor...
byroot (Jean Boussier)
08:45 AM Revision 9d556662 (git): describe about NameError by #private_constant
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:32 AM Bug #14853 (Closed): [BACKPORT] NameError#receiver at private constant returns a hidden object
Fixed by r63696.
```ruby
module M
X = 1
private_constant :X
end
begin
Module.new{include M}::X
rescue NameError => e
e.receiver.object_id # undefined method `object_id' for #<M:0x000000010c5f7e88> (NoMethodError)
end
...
nobu (Nobuyoshi Nakada)
08:15 AM Revision 1b474b86 (git): variable.c: fix receiver on private constant
* variable.c (rb_const_search): fix NameError :receiver attribute
on private constant, should raise with the included module, not
the ICLASS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:12 AM Revision b3f56c6b (git): gc.c (gc_verify_heap_pages): fix no-op on heap_eden->pages
Shouldn't affect production use, but good to fix regardless :>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
02:59 AM Bug #14852 (Closed): please backport thread sync fixes to 2.5
Please backport the following fixes for thread_sync.c changes in 2.5:
r62934, r63124, r63215, r63281, r63282, r63309
autoload-related, but same idea:
r63210, r63392
Thanks.
normalperson (Eric Wong)
02:53 AM Bug #14416 (Closed): Net::POPMail methods modify frozen literal when using default arg
normalperson (Eric Wong)
02:53 AM Bug #14416 (Open): Net::POPMail methods modify frozen literal when using default arg
normalperson (Eric Wong)
02:42 AM Bug #14416: Net::POPMail methods modify frozen literal when using default arg
Anonymous wrote:
> Applied in changeset trunk|r62099.
> ...
Can I check if this patch will be backported to Ruby 2.5?
tgxworld (Guo Xiang Tan)
02:46 AM Feature #14851 (Open): [PATCH] thread_pthread.c: remove non-sleepy timer thread implementation
thread_pthread.c: remove non-sleepy timer thread implementation
Apparently, the non-sleepy timer thread code bit-rotted and
was been broken for several years and nobody noticed(r63682).
Remove it entirely to simplify maintenance.
...
normalperson (Eric Wong)
02:46 AM Revision 61391616 (git): NULL class Data_Wrap_Struct is not allowed.
* spec/ruby/optional/capi/typed_data_spec.rb: same as r63692.
* spec/ruby/optional/capi/ext/typed_data_spec.c: ditto.
* vm_insnhelper.h (PUSH): re-enable assertion to check hidden objects.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/...
ko1 (Koichi Sasada)

06/18/2018

11:19 PM Revision 8b3902b2 (git): * 2018-06-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:19 PM Revision 24aa9ecc (git): Removed unobservable behavior
The klass for Data_Wrap_Struct can be NULL, but it MUST NOT appear
in the Ruby level. It is only for the C level implementation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:13 PM Feature #13396: Net::HTTP has no write timeout
Eric Wong <normalperson@yhbt.net> wrote:
> Anyways, the code for handling partial write_nonblock case is verbose.
> One day, I would like to:
>
> 1) integrate Timeout into core
> 2) make all SOCK_STREAM sockets non-blocking by def...
normalperson (Eric Wong)
02:11 PM Revision 05a8a185 (git): Forgotten to update RUBY_PATCHLEVEL
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@63691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
01:50 PM Revision b679f233 (git): * 2018-06-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@63690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:50 PM Revision 235700b1 (git): Fixed tempfile leaks
* lib/rubygems.rb (Gem::VERSION): 2.6.14.2
* lib/rubygems/ext/ext_conf_builder.rb: merge from 2.7.7.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@63689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
11:37 AM Feature #14850: Add official API for setting timezone on Time
I agree in regards to it being odd that in an OOP-centric language
we have to fiddle with environment variables.
Irrelevant fun fact:
I once set TZ as "alias" (well, export TC= some value) towards '.tar.gz'
or something like that...
shevegen (Robert A. Heiler)
10:36 AM Feature #14850 (Closed): Add official API for setting timezone on Time
Only way of setting zone on a Time object appears to be via marshalling and messing with ENV.
```
>> ENV['TZ'] = 'America/New_York'
> ...
=> "EDT"
>> ENV['TZ'] = 'Europe/London'
> ...
=> "BST"
```
Is there any particular reas...
sam.saffron (Sam Saffron)
08:30 AM Revision 7f4fbc1f (git): remvoe assertion because rubyspec hit this assert
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
07:41 AM Revision 2e5aa3fb (git): hidden objects should not be pushed.
* vm_insnhelper.h (PUSH): hidden objects (klass == 0) should not be pushed
to a VM value stack. Add assertion for it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
01:49 AM Feature #10098: [PATCH] Timing-safe string comparison for OpenSSL::HMAC
`String#casecmp?` has already landed. It seems no blocker are there for implementing this one, except the name. shyouhei (Shyouhei Urabe)
01:04 AM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
Also, I will extract timeout support into separate feature.

The basic idea is that (regardless of how efficient(*) Timeout is):

Timeout.timeout { io.read(...) }
Timeout.timeout { io.write(...) }
Timeout.timeout { io.read(...)...
normalperson (Eric Wong)
12:21 AM Bug #14849 (Feedback): rbenv install 2.4.0 on AWS EC2 on AMI linux box
2.4.0 is too old. Try 2.5.1, or at least, 2.4.4. shyouhei (Shyouhei Urabe)

06/17/2018

03:42 PM Revision 4a4f7aea (git): * 2018-06-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:42 PM Revision c66303cd (git): Remove needless closed?
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
10:17 AM Revision cc77a811 (git): openssl_missing.h: constified
* ext/openssl/openssl_missing.h (IMPL_KEY_ACCESSOR{2,3}):
constified obj argument getters.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:27 AM Revision 0e2ba849 (git): thread_pthread.c: microptimize vm->gvl.waiting checks
"gvl.waiting" is volatile, so the compiler won't perform
these optimizations for us.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
02:56 AM Revision cc6342fe (git): thread_pthread.c: fix non-sleepy timer thread build
I guess everybody has poll() and fcntl() nowadays, as
the non-sleepy timer thread build has been broken for
years, now.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
02:42 AM Revision 05c0c57d (git): EXTOBJS should be included in DLDOBJS
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:41 AM Revision 63bd0417 (git): share Float 0
* complex.c (RFLOAT_0): share the 0.0 object on non-flonum
platforms.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:40 AM Revision cdca211b (git): Makefile.in: MJIT_DLDFLAGS
* Makefile.in (mjit_config.h): needs -arch flag to link, as well
as precompiling the header, when compiling for i386 on x86_64
mac.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:37 AM Revision 4fedad85 (git): refine Integer#** and Float#**
* complex.c (rb_dbl_complex_polar): utility function, which
returns more precise value in right angle cases.
* bignum.c (rb_big_pow): use rb_dbl_complex_polar().
* numeric.c (rb_float_pow, fix_pow): create a Complex by polar
form.
...
nobu (Nobuyoshi Nakada)
01:24 AM Revision 90d06553 (git): compare with correct values
* spec/ruby/shared/rational/exponent.rb: compare with
mathematically expected values without errors.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:07 AM Revision f12cc0e6 (git): refine Integer#**
* numeric.c (fix_pow): calculate the denominator, exponent of
self.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

06/16/2018

11:22 PM Revision 47bd7007 (git): * 2018-06-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:22 PM Revision b7019464 (git): mjit.c: measure time more precisely
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
09:35 PM Bug #14843 (Assigned): [BUG] Illegal instruction at 0x000000010c7acc0a
It happens inside libyaml.
Aaron, do you have any idea?
nobu (Nobuyoshi Nakada)
08:27 AM Revision 1ae9fad6 (git): * 2018-06-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:27 AM Revision 986f11e7 (git): thread.c (timeout_prepare): common function
I can't seem to reproduce the maybe-uninitialized warning on
gcc 7 or 8 on Debian sid (7.3.0-16 / 8-20180425-1 r259628),
so the guard from r62305 is dropped.
* thread.c (timeout_prepare): hoist out from do_select
(do_select): ditto
...
Eric Wong

06/15/2018

06:43 PM Bug #14849 (Closed): rbenv install 2.4.0 on AWS EC2 on AMI linux box
unable to install 2.4.0 ruby while with rbenv:
AMI ID: amzn-ami-hvm-2018.03.0.20180508-x86_64-gp2 (ami-9a91b371)
================================================
[ec2-user@ip-*********** ~]$ rbenv install 2.4.0
Installing ruby-...
reepz (Andrzej Wojtowicz)
05:14 PM Feature #14799: Startless range
@mame Ah, that is quite unfortunate (it does not look so nice with the parens), but thank you for mentioning the caveat.
I guess much like Range literals in general, it's often needed to have parens around them.
Eregon (Benoit Daloze)
10:35 AM Revision cb2a2c27 (git): gettimeofday is obsolete
* test/ruby/test_process.rb gettimeofday is obsolete in SUSv4, and
may not be available in the future.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:15 AM Revision d31d6631 (git): win32/Makefile.sub: gettimeofday is defined in win32.c
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:02 AM Bug #14848 (Rejected): Net/HTTP doesn't take verify_callback into account when OpenSSL::SSL::VERIFY_NONE
Hi,
In (at least) net/http, the TLS connection is OK even if `verify_callback` return `false` if `verify_mode` is set to `OpenSSL::SSL::VERIFY_NONE`.
The callback is really called, but the TLS handshake is not stopped.
Use case: s...
aeris (Nicolas Vinot)
08:59 AM Feature #5400 (Assigned): Remove flip-flops in 2.0
I've committed r63667..r63669 to deprecate flip-flips. I leave this ticket open to remove the feature in 3.0 (?).
There were some programs that used flip-flops in build scripts. I rewrote them to a code that does not use flip-flops....
mame (Yusuke Endoh)
08:53 AM Revision 301fa452 (git): Remove flip-flop usages from build scripts
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e mame (Yusuke Endoh)
08:53 AM Revision bf7a32d2 (git): Remove warnings of flip-flop deprecation from tests and specs
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e mame (Yusuke Endoh)
08:53 AM Revision bae638ad (git): parse.y: Deprecate flip-flops
Ref #5400
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
mame (Yusuke Endoh)
01:59 AM Feature #12602 (Closed): Add NilClass#to_d
I've released the new version 1.3.5, that includes `nil.to_d`.
Please use it.
mrkn (Kenta Murata)
12:19 AM Revision 4fb5888a (git): Update obsoleted URLs of supported platforms [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
12:06 AM Revision 72511705 (git): * 2018-06-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:06 AM Revision dfdd5562 (git): Bootstrapping ruby runtime might not have RubyVM::MJIT defined.
[Fix GH-1891]
From: U-DESKTOP-RLT5UQ8\moriyoshi <mozo@mozo.jp>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

06/14/2018

10:30 PM Feature #14799: Startless range
I agree that it is a good use case.
But notice that we will not be able to write `ruby_version_is ..."2.6" do` because it parses as `(ruby_version_is..."2.6") do`.
We need to write parentheses: `ruby_version_is(..."2.6") do`.
mame (Yusuke Endoh)
03:16 PM Feature #14799: Startless range
znz (Kazuhiro NISHIYAMA) wrote:
> I think version guard of ruby/spec is one of usages.
> ...
Right, this would be a nice way to express version ranges like
~~~ ruby
ruby_version_is ..."2.6" do
# ...
end
ruby_version_is "2.4...
Eregon (Benoit Daloze)
02:34 PM Feature #14799: Startless range
I think version guard of ruby/spec is one of usages.
For example:
```ruby
ruby_version_is ""..."2.6" do
# ...
end
```
znz (Kazuhiro NISHIYAMA)
06:40 PM Misc #14769: DevelopersMeeting20180621Japan
* [Feature #14709] Proper pattern matching
* [Feature #14799] Startless range
* [Feature #14784] One-sided Comparable#clamp (with endless/startless ranges)
zverok (Victor Shepelev)
03:14 PM Feature #12602: Add NilClass#to_d
Any updates about this feature? I ended up adding the `#to_d` by monkey patching `NilClass`, but I would like this feature to get merged. isayajin (Isay Sosa)
01:10 PM Revision a03ea378 (git): prefer clock_gettime
* configure.ac: clock_gettime or gettimeofday must exist.
* process.c (rb_clock_gettime): prefer clock_gettime over
gettimeofday, as the latter is obsolete in SUSv4.
* random.c (fill_random_seed): ditto.
git-svn-id: svn+ssh://ci.rub...
nobu (Nobuyoshi Nakada)
11:23 AM Bug #13284: IA64 ruby 2.4 miniruby segfault
I tried a few suggestions, which did not work out for me:
- Configure with --with-setjmp-type=_setjmp
- Compile using -O0 -fno-omit-frame-pointer -fno-stack-protector
What finally worked for me was to run the build without stack lim...
knedlsepp (Josef Kemetmüller)
11:20 AM Bug #8017: Got segmentation fault on attempt to install ruby 2.0.0-p0 on Mac 10.6.8 via RVM
FYI: I had the same problem and could fix it by setting the stacksize to unlimited `ulimit -s unlimited`. knedlsepp (Josef Kemetmüller)
11:12 AM Revision 93f7a115 (git): README.ja.md: Add link to downloads [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
11:09 AM Bug #14840 (Closed): `warning: constant Net::ProtoServerError is deprecated` only via net/http
Resolved at r63661 znz (Kazuhiro NISHIYAMA)
10:28 AM Bug #11030: Ruby 2.2.1 fails to compile with hardened GCC
For me it helped to increase my stack size limit using ulimit -s unlimited. knedlsepp (Josef Kemetmüller)
10:28 AM Bug #11457: miniruby SEGVs on CentOS 5
For me it helped to increase my stack size limit using `ulimit -s unlimited`. knedlsepp (Josef Kemetmüller)
09:01 AM Revision 60c7fcf0 (git): Get rid of warnings of test/spec
* lib/net/http/exceptions.rb: revert a part of r63590. to deprecate
Net::ProtoServerError seems to be wrong.
see [ruby-core:87488] [Feature#14688]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63661 b2dd03c8-39d4-4d8f-98ff-823...
U.Nakamura
08:45 AM Feature #14688: Net::HTTPResponse#value raises "Net::HTTPServerException" in 4xx response
I suspect that deprecating `Net::ProtoServerError` is wrong.
The exception seems to be "something error reported from server", and is derived not only by `Net::HTTPServerException` but also `Net::SMTPServerBusy`.
usa (Usaku NAKAMURA)
07:09 AM Revision c9db11ea (git): bignum.c: get rid of redefined method
* bignum.c (int_pow_tmp3): get rid of redefined Integer#> on
internal calculations, as well as the GMP version.
* bignum.c (rb_int_powm): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63660 b2dd03c8-39d4-4d8f-98ff-823fe69b...
nobu (Nobuyoshi Nakada)
06:41 AM Revision fa0f702c (git): HTTPServerException is deprecated
* spec/ruby/library/net/http/HTTPClientException_spec.rb: add.
* spec/ruby/library/net/http/HTTPServerException_spec.rb: check deprecated message.
* spec/ruby/library/net/http/httpresponse/*_spec.rb: use HTTPClientException instead of HT...
U.Nakamura
06:36 AM Revision 99cc2051 (git): test/rubygems/test_gem_dependency_installer.rb: Avoid Dir.chdir + block
This caused a warning "conflicting chdir during another chdir block"
during "make test-all".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
mame (Yusuke Endoh)
04:07 AM Bug #14847: `clone` can generate strange objects
まつもと ゆきひろです
おそらくは FL_FREEZE などいくつかのフラグだけ特別にコピーするべきなんだと思います。
最近 mruby でも同様のレポートが来て、あちらでは FREEZE だけコピーすることにしました。
CRuby ではもうちょっとコピーする必要がありそうです。
matz (Yukihiro Matsumoto)
01:14 AM Bug #14847 (Closed): `clone` can generate strange objects
`Object#clone(obj)` を呼び出すと、
* (1) `rb_obj_alloc(rb_obj_class(obj));` で空の `obj` を作り、
* (2) `RBasic(orig)->flags` を(できるだけ)引き継ぎ
* (3) 特異クラス情報を引き継ぎ
* (4) インスタンス変数を引き継ぎ
* (5) taint 情報を引き継ぎ
* (6) `initialize_copy` を呼んで初期化
という感じで処理をす...
ko1 (Koichi Sasada)
03:18 AM Revision 891d00b4 (git): .gdbinit: expand RBASIC macro for old gdb on mac
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)

06/13/2018

09:58 PM Revision 12a829ab (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:58 PM Revision ee6aa150 (git): * append newline at EOF.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:58 PM Revision b46da8d8 (git): Update to ruby/spec@4bb0f25
* Specs added by TruffleRuby.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eregon (Benoit Daloze)
09:41 PM Revision 5b55eaa0 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:41 PM Revision 67078e81 (git): Update to ruby/spec@4bc7a2b
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Eregon (Benoit Daloze)
09:32 PM Bug #14846 (Closed): Backport fixes for Kernel#warn(uplevel:)
~~~ ruby
-> { warn("foo", 100) }.should output(nil, "warning: foo\n")
~~~
It is missing the "warning: " prefix in 2.5.1.
~~~ ruby
-> { warn "", uplevel: -1 }.should raise_error(ArgumentError)
~~~
It doesn't raise in 2.5.1 even t...
Eregon (Benoit Daloze)
09:17 PM Revision 78890bab (git): * 2018-06-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:17 PM Revision fe7ec526 (git): Fix condition in Kernel#warn when using uplevel
* It causes SEGV on `warn("foo", uplevel: 100)`.
* Found in a ruby/spec added by @andrykonchin in
https://github.com/ruby/spec/pull/605
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eregon (Benoit Daloze)
03:45 PM Bug #14845: Endless Range with nil
別チケットにした方が良いのかもしれませんが、関連するのでここにコメントしておきます。
`Range.new(1)` のように終端を省略できるようにするのはどうでしょうか?
endless range の時は exclude_end を指定できても違いがないようなので、現状では問題がなさそうに思います。
beginless などの可能性を考えるとキーワード引数も受け付けるようにして、 `Range.new(begin: 1, endless: true)` ...
znz (Kazuhiro NISHIYAMA)
11:20 AM Bug #14845: Endless Range with nil
I'm attaching a patch for `Range#to_a` that raises an RangeError for an endless range, and that calls super to `Enumerable#to_a` for a normal range. mame (Yusuke Endoh)
11:01 AM Bug #14845 (Assigned): Endless Range with nil
matz (Yukihiro Matsumoto) wrote:
> I meant `(1..).to_a` to raise an exception (for apparent infinity loop), not prohibiting `1..nil`'.
> ...
Sorry for my misunderstanding. I reverted r63646.
mame (Yusuke Endoh)
10:07 AM Bug #14845: Endless Range with nil
I meant `(1..).to_a` to raise an exception (for apparent infinity loop), not prohibiting `1..nil`'.
Matz.
matz (Yukihiro Matsumoto)
10:00 AM Bug #14845 (Closed): Endless Range with nil
Applied in changeset commit:ruby-git|48de2ea5f9b9067779acb0f7f76e5f879f2b42c0.
----------
range.c: prohibit `(1..nil)`
Now endless range can be created by either a literal `(1..)` or explicit
range creation `Range.new(1, nil)`. [Bug #...
mame (Yusuke Endoh)
09:06 AM Bug #14845 (Assigned): Endless Range with nil
https://twitter.com/yukihiro_matz/status/1006737384820445184
> いやあ、エラーではねた方がいいんじゃないですかね。
ていうのがあったので、とりあえず r63646 で `(1..nil)` を禁止しました。ただし `Range.new(1, nil)` は許しています(そうしないと Range のサブクラスを endless にする手段がないので)。
個人的には、DSL が終了してしまったのと、...
mame (Yusuke Endoh)
09:05 AM Bug #14845 (Closed): Endless Range with nil
Applied in changeset trunk|r63646.
----------
range.c: prohibit `(1..nil)`
Now endless range can be created by either a literal `(1..)` or explicit
range creation `Range.new(1, nil)`. [Bug #14845]
This change is intended for "early f...
mame (Yusuke Endoh)
08:06 AM Bug #14845: Endless Range with nil
現状の挙動はそれはそれで便利そう※なので、early failure と便利さとのトレードオフです。どっちがいいでしょうね。
※たとえば SQL の DSL で `count: (min..max)` という Range を書いたとき、`max = nil` にするだけで「上限なし」を表現できるという使い方が考えられます。`(1..nil)` がエラーになると、`count: max ? (min..max) : (min..)` とかいう記述が必要になり、DSL...
mame (Yusuke Endoh)
07:53 AM Bug #14845 (Closed): Endless Range with nil
endless Rangeで次のケースで困ることがあります。
- 1..nilはendless Rangeになる
- endless Rangeはto_aすると返ってこなくなる
- 1..変数 のケースで意図せずendless Rangeになる可能性があり、そのときto_aすると返ってこなくなる
Ruby 2.5.1 では 1..nil はArgumentError (bad value for range) になります。
たとえば、 1..nil...
igaiga (Kuniaki Igarashi)
11:00 AM Revision 606d6b34 (git): Revert "range.c: prohibit `(1..nil)`"
This reverts commit a44c010764a16ae09aaed49d76eec055ca0057c8.
Refs #14845.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
mame (Yusuke Endoh)
10:27 AM Revision 4f4ed3e9 (git): Remove sunsetting FTP site
ref #14842
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
znz (Kazuhiro NISHIYAMA)
10:04 AM Feature #14767: [PATCH] gc.c: use monotonic counters for objspace_malloc_increase
I wrote:
> Also, I think it would be beneficial to check malloc_increase
> and do a lazy sweep step BEFORE calling malloc, since that should
> improve cache locality in malloc (because they're usually LIFO).

Unfortunately, adding ...
normalperson (Eric Wong)
10:00 AM Revision 5ff2a196 (git): thread.c: use flags for sleep_* functions
Same thing as https://bugs.ruby-lang.org/issues/14798
My easily-confused mind gets function call ordering confused
easily:
sleep_forever(..., TRUE, FALSE);
sleep_forever(..., FALSE, TRUE);
git-svn-id: svn+ssh://ci.ruby-...
Eric Wong
09:12 AM Misc #14769: DevelopersMeeting20180621Japan
* [Bug #14845] Endless Range with nil (mame)
* Should explicit nil for endless range (like `(1..nil)`) be prohibited or not?
mame (Yusuke Endoh)
09:04 AM Revision 48de2ea5 (git): range.c: prohibit `(1..nil)`
Now endless range can be created by either a literal `(1..)` or explicit
range creation `Range.new(1, nil)`. [Bug #14845]
This change is intended for "early failure"; for example,
`(1..var).to_a` causes out of memory if `var` is inadve...
mame (Yusuke Endoh)
04:51 AM Revision 75d25ede (git): Make VM_INSN_INFO_TABLE_IMPL=1 work
rb_iseq_insns_info_decode_positions is used only when
VM_INSN_INFO_TABLE_IMPL=2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
mame (Yusuke Endoh)
02:50 AM Revision 3b43173c (git): add "print_flags" gdb command.
* .gdbinit (print_flags): added to show raw FLAGS info for objects.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
01:22 AM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
I don't have a name for this yet, but I hope to work on Queue/SizedQueue
support soonish.

Anyways, rebased against r63641 and it shows reasonable
performance: [ruby-core:87483] [Feature #14736]

Patch here: https://80x24.org/spew...
normalperson (Eric Wong)
01:21 AM Revision 8ee960c5 (git): bignum.c: call functions directly
* bignum.c (int_pow_tmp{1,2,3}): call dedicated functions directly
for internal calculations, instead of method calls.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:04 AM Revision c3b656bc (git): bignum.c: refine pow
* bignum.c (rb_big_pow): make Complex and Rational instances from
calculated results by API functions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:03 AM Feature #14736: Thread selector for flexible cooperative fiber based concurrency
samuel@oriontransfer.net wrote:
> I've been playing around with port scanners. Implemented in Go
> (goroutines), Python (asyncio) and Ruby (async).
>
> I wrote up the results here:
> https://github.com/socketry/async-await/tree/mas...
normalperson (Eric Wong)
 

Also available in: Atom