Project

General

Profile

Activity

From 08/30/2018 to 09/05/2018

09/05/2018

11:15 PM Bug #14885 (Closed): Is documenting-ruby a dead project?
Applied in changeset trunk|r64647.
----------
[DOC] Remove link to dead project
[Bug #14885] [ci skip]
znz (Kazuhiro NISHIYAMA)
11:15 PM Revision 7e08d60d (git): [DOC] Remove link to dead project
[Bug #14885] [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
znz (Kazuhiro NISHIYAMA)
11:02 PM Bug #15078: Hash splat of empty hash should not create a positional argument.
It is not so trivial what it should be. If you look at only `foo(**{}) #=> [{}]` itself, it might be non-intuitive, indeed. However, IMO, this is a consequence of the current weird spec of keyword arguments (a keyword hash is passed as... mame (Yusuke Endoh)
04:22 PM Bug #15078 (Closed): Hash splat of empty hash should not create a positional argument.
Looks like #10856 is not completely fixed, but I can't reopen it
```
def foo(*args); args; end
foo(**{}) # => []
foo(**Hash.new) # => [{}], should be []
```
marcandre (Marc-Andre Lafortune)
10:28 PM Bug #15080 (Closed): Work on Benchmark::Tms documentation
Fixes a couple issues with "+param+ is not documented" in lib/benchmark.rb
I would like to contribute more to the documentation, so if there's something I should be doing differently in these tickets, please let me know.
shalmezad (Richard Wardin)
09:52 PM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
[email protected] wrote:
> Issue #13618 has been updated by MSP-Greg (Greg L).
>
>
> @normalperson Eric,
>
> I applied the two patches in 'note 139', and three test suites stopped.. With test-all running parallel, it's diff...
normalperson (Eric Wong)
09:34 PM Revision 4204eacf (git): fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:40 PM Bug #15079 (Closed): Documentation missing for Enumerator::Lazy#force
Applied in changeset trunk|r64645.
----------
enumerator.c: [DOC] Enumerator::Lazy#force [ci skip]
added documentation of Enumerator::Lazy#force, just to clarify that it
is an alias of an inherited method. [ruby-core:88872] [Bug #15079]
nobu (Nobuyoshi Nakada)
07:22 PM Bug #15079 (Closed): Documentation missing for Enumerator::Lazy#force
This isn't a bug with the ruby language, but rather with the documentation. (At http://ruby-doc.org/core-2.5.1/Enumerator/Lazy.html)
Expected behavior:
There is documentation for the `#force` method for lazy enumerators.
Actual be...
parker (Parker Finch)
08:40 PM Revision c1cc8418 (git): enumerator.c: [DOC] Enumerator::Lazy#force [ci skip]
added documentation of Enumerator::Lazy#force, just to clarify that it
is an alias of an inherited method. [ruby-core:88872] [Bug #15079]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:39 PM Revision ebff0059 (git): Add platform guards for AIX
* Most of these seem OS bugs.
* See https://rubyci.org/logs/rubyci.s3.amazonaws.com/aix71_ppc/ruby-trunk/log/20180905T103302Z.fail.html.gz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eregon (Benoit Daloze)
08:39 PM Revision a140f157 (git): Guard a few specs which ipv6_available?
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Eregon (Benoit Daloze)
08:02 PM Revision c46515e4 (git): backward.h: removed stale declarations
* include/ruby/backward.h (rb_complex_set_real, rb_complex_set_imag):
removed useless declarations which have been deprecated from the
beginning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64642 b2dd03c8-39d4-4d8f-98ff-823fe6...
nobu (Nobuyoshi Nakada)
07:06 PM Feature #14473 (Closed): Add Range#subrange?
Applied in changeset trunk|r64640.
----------
range.c: Range#cover? accepts Range object. [Feature #14473]
* range.c (range_cover): add code for range argument.
If the argument is a Range, check it is or is not
covered b...
tarui (Masaya Tarui)
07:06 PM Revision de13863a (git): * 2018-09-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:06 PM Revision 9ca73892 (git): range.c: Range#cover? accepts Range object. [Feature #14473]
* range.c (range_cover): add code for range argument.
If the argument is a Range, check it is or is not
covered by the reciver. If it can be treated as a
sequence, this method treats it that way.
* t...
Masaya Tarui
05:17 PM Bug #15070: configure fails with (probably spurious) 'something wrong with CFLAGS="-g -O2 "' on macOS High Sierra
Thanks for the clue -- it looks like I had `CPPFLAGS=-L /usr/local/opt/[email protected]/include` set globally for some reason (probably having to do with building the mysql gem). Removing that allows `configure` to succeed.
That said, it see...
dmolesuc3 (David Moles)
05:05 PM Feature #14183: "Real" keyword argument
Let me add my voice to that of Benoit and Jeremy: the incompatibility is absolutely not worth it.
I believe that if we fix the few remaining corner cases, improve the error messages and explicitly document how Ruby handles keyword par...
marcandre (Marc-Andre Lafortune)
04:59 PM Feature #14183: "Real" keyword argument
mame (Yusuke Endoh) wrote:
> Braced hash and bare one are inconsistent, even in the current spec.
> ...
The fact that `foo(**h) #=> {}` is a bug. Note that `foo(**{}) # => :default`, as I believe it should. Both should have same res...
marcandre (Marc-Andre Lafortune)
06:47 AM Feature #14183: "Real" keyword argument
mame (Yusuke Endoh) wrote:
> > BTW, `p foo: 1` will no longer work then, and `p({foo: 1})` would be required, which feels very *unlike* Ruby, and is just impractical when debugging.
> ...
Half-joking: I'm not fully satisfied with `p fo...
mame (Yusuke Endoh)
03:01 AM Feature #14183: "Real" keyword argument
Eregon (Benoit Daloze) wrote:
> I would think the number of methods like debug() is a tiny fraction of the number of places we'd need to change if hash-without-braces is no longer supported.
> ...
I think you are too familiar with the ...
mame (Yusuke Endoh)
04:45 PM Bug #11993 (Rejected): foo(hash) is handled like foo(**hash)
First, `foo(b: 1)` has been exactly the same as `foo({b: 1})` since Ruby 1.8 at least. It is parsed exactly the same way. It's syntax sugar.
```
require 'ripper'
Ripper.sexp('foo(a : 1)') == Ripper.sexp('foo({a : 1})') # => true
``...
marcandre (Marc-Andre Lafortune)
04:11 PM Bug #11236: inconsistent behavior using ** vs hash as method parameter
When last argument is hash-like but has keys that are not symbols, we could output instead "wrong number of arguments (2 for 1); note that the last argument has keys that are not symbols and thus was not considered as keyword parameters" marcandre (Marc-Andre Lafortune)
03:44 PM Bug #14130: Keyword arguments are ripped from the middle of hash if argument have default value
This is a bug.
```
test1('River name' => 'Mississippi', length: 2000, 'Country' => 'USA')
# 3. SOURCE: {"River name"=>"Mississippi", "Country"=>"USA"}, OPTS: {:length=>2000} -- It is already a bit weird
```
My understanding is t...
marcandre (Marc-Andre Lafortune)
03:38 PM Bug #13647 (Open): Some weird behaviour with keyword arguments
nobu (Nobuyoshi Nakada) wrote:
> Just an idea to keep the original argument, if something left.
> ...
I agree that if the conversion of a hash-like argument to keyword parameter fails because the keys aren't all symbols, the original o...
marcandre (Marc-Andre Lafortune)
03:25 PM Bug #13336 (Closed): Default Parameters don't work
This is a duplicate of #12717, so closing this. marcandre (Marc-Andre Lafortune)
03:22 PM Bug #12717: Optional argument treated as kwarg
I believe this is as designed.
As I stated previously (https://bugs.ruby-lang.org/issues/11967#note-3), my understanding is that:
* after all mandatory unnamed arguments are filled
* if the last remaining argument is hash-like
* ...
marcandre (Marc-Andre Lafortune)
01:33 PM Revision 19dec2a1 (git): * append newline at EOF.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:33 PM Revision 60ebd4e2 (git): Merge csv-3.0.0 from ruby/csv repository.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
01:16 PM Revision 21ce539f (git): fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
01:15 PM Revision 24418e0c (git): AIX doesn't set OptionLength for boolean options
https://rubyci.org/logs/rubyci.s3.amazonaws.com/aix71_ppc/ruby-trunk/log/20180904T103302Z.fail.html.gz
https://www.ibm.com/support/knowledgecenter/ja/ssw_aix_72/com.ibm.aix.commtrf2/getsockopt.htm
git-svn-id: svn+ssh://ci.ruby-lang.org/...
naruse (Yui NARUSE)
12:18 PM Bug #14999: ConditionVariable doesn't reacquire the Mutex if Thread#kill-ed
@larskanis Thanks for the report.
I also noticed it happens on RubyCI for Ruby 2.4 and earlier
(example: https://rubyci.org/logs/rubyci.s3.amazonaws.com/arch/ruby-2.4/log/20180905T105615Z.fail.html.gz)
I'm not sure what's best.
@...
Eregon (Benoit Daloze)
07:05 AM Bug #14999: ConditionVariable doesn't reacquire the Mutex if Thread#kill-ed
> > So it seems it doesn't happen in Ruby <= 2.5 due to thread
> ...
I get this error on ruby-2.4.4 [i386-mingw32] and [i386-mingw32] while nightly builds of RubyInstaller: https://ci.appveyor.com/project/larskanis/rubyinstaller2-hbu...
larskanis (Lars Kanis)
11:58 AM Feature #15076: Struct to raise error when keyword arguments used but not enabled
> Will it be clearer if a error is raised instead rather than assigning data incorrectly ?
With the current keyword arguments implementation (see also: [Feature #14183]), we can't distinguish the mistaken situation with one that we re...
k0kubun (Takashi Kokubun)
10:23 AM Feature #15076 (Rejected): Struct to raise error when keyword arguments used but not enabled
```ruby
Info = Struct.new(:name, :country, keyword_init: true)
c = Info.new(name: "myname", country: "Japan")
p c #=> #<struct Info name="myname", country="Japan">
```
nobu (Nobuyoshi Nakada)
08:29 AM Feature #15076 (Rejected): Struct to raise error when keyword arguments used but not enabled
When Struct is used to instantiate object with keyword arguments disabled and yet if instantiated using keyword arguments, the instance fields will be set incorrectly.
Will it be clearer if a error is raised instead rather than assig...
macdevign (Macdevign mac)
11:09 AM Feature #15066: Documentation and providing better API for accessing Complex numbers functions in C extensions
v0dro (Sameer Deshmukh) wrote:
> > Isn't it enough to just use rb_funcall() to call Ruby methods on Complex numbers?
> ...
The existing Ruby methods should already be fast enough for most cases.
C macros/functions for accessing the re...
Eregon (Benoit Daloze)
07:37 AM Feature #15066 (Feedback): Documentation and providing better API for accessing Complex numbers functions in C extensions
v0dro (Sameer Deshmukh) wrote:
> > Isn't it enough to just use rb_funcall() to call Ruby methods on Complex numbers?
> ...
What APIs do you need?
A concrete list, please.
> > RCOMPLEX_SET_REAL and RCOMPLEX_SET_IMAG are internal mac...
nobu (Nobuyoshi Nakada)
04:54 AM Feature #15066: Documentation and providing better API for accessing Complex numbers functions in C extensions
> Isn't it enough to just use rb_funcall() to call Ruby methods on Complex numbers?
Calling Ruby methods in C extensions defeats the purpose of writing a C extension since a non-trivial number of Ruby method calls take up significant ...
v0dro (Sameer Deshmukh)
11:00 AM Feature #15074: Create 'official' C API documentation on ruby-doc.org
I think this would be nice to have. Matz often said that nobody minds if ruby
becomes faster :) - and I think nobody will mind if the documentation becomes
better (qualitatively; but also somewhat more documentation in general).
The...
shevegen (Robert A. Heiler)
05:13 AM Feature #15074 (Open): Create 'official' C API documentation on ruby-doc.org
Currently working with Ruby C API is basically reading a bunch of random
blogs and coming up with a solution based on inputs from various sources
(some of which can be out of date).
The only relevant resource for C API docs with pra...
v0dro (Sameer Deshmukh)
06:18 AM Bug #15072 (Closed): thread.c:4356:5: error: implicit declaration of function ‘ubf_list_atfork’
That fix worked, thanks! Committed with r64635, okay on travis, not sure about other CIs. duerst (Martin Dürst)
04:03 AM Bug #15072: thread.c:4356:5: error: implicit declaration of function ‘ubf_list_atfork’
[email protected] wrote:
> https://bugs.ruby-lang.org/issues/15072

I think copying the macro for win32 for the !USE_UBF_LIST
case should work(*). Can you test and commit if it works?
(too tired and might not be back online s...
normalperson (Eric Wong)
03:01 AM Bug #15072 (Closed): thread.c:4356:5: error: implicit declaration of function ‘ubf_list_atfork’
When compiling on cygwin, I get the following error:
```
compiling thread.c
thread.c: In function ‘rb_thread_atfork_internal’:
thread.c:4356:5: error: implicit declaration of function ‘ubf_list_atfork’ [-Werror=implicit-function-de...
duerst (Martin Dürst)
06:04 AM Revision 4fcd9d70 (git): define ubf_list_atfork() as empty on cygwin
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e duerst (Martin Dürst)
01:32 AM Bug #15069 (Closed): Backport "suppress warning: 'const' attribute on function returning 'void' "
(Changing status to closed; it triggers backporting process. This doesn't mean rejection.) shyouhei (Shyouhei Urabe)

09/04/2018

11:57 PM Bug #15071 (Closed): RubyVM::MJIT.pause may cause deadlock after compaction
Sometimes I met thread-deadlock while waiting `RubyVM::MJIT.pause`.
Here is a terminal log.
```
$ ruby --disable-gems --jit --jit-verbose=1 --jit-max-cache=3 -e '100.times do |i| eval("def foo#{i}; end; " + "foo#{i}; " * 5); end; Ru...
wanabe (_ wanabe)
11:29 PM Bug #15070 (Feedback): configure fails with (probably spurious) 'something wrong with CFLAGS="-g -O2 "' on macOS High Sierra
dmolesuc3 (David Moles) wrote:
> ```
> ...
From where does this `-L` option come?
It is a linker option and doesn't need to be in `CFLAGS`.
(and `include` path doesn't seem a library directory).
nobu (Nobuyoshi Nakada)
04:49 PM Bug #15070: configure fails with (probably spurious) 'something wrong with CFLAGS="-g -O2 "' on macOS High Sierra
Oops, the `config.log` I linked there was from the rvm attempt. But the tarball version [here](https://gist.github.com/dmolesUC3/97f2e20514a68de099d1b23db2b6a5e0) is basically identical. dmolesuc3 (David Moles)
04:22 PM Bug #15070 (Closed): configure fails with (probably spurious) 'something wrong with CFLAGS="-g -O2 "' on macOS High Sierra
## Description
`./configure` fails for Ruby 2.5.1 on macOS High Sierra (10.13.6) with Xcode 9.4.1 (clang-902.0.39.2).
(**Note:** I've seen the same error trying to install 2.4.1 and 2.4.4 with rvm, but haven't bothered downloading ...
dmolesuc3 (David Moles)
11:10 PM Revision 0401099c (git): * 2018-09-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:10 PM Revision 5e4627c2 (git): random.c: fix up r64596
* random.c (fill_random_bytes_syscall): check if the version macro is
defined, for very old Mac OS X development tools.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:46 PM Feature #14183: "Real" keyword argument
I agree with Jeremy here, the current idea seems too incompatible and will require too many changes (no matter the gain).
And those changes cannot easily be automated either, they need careful considerations.
I think we need to compr...
Eregon (Benoit Daloze)
09:36 PM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
@normalperson Eric,
I applied the two patches in 'note 139', and three test suites stopped.. With test-all running parallel, it's difficult to tell what caused the issue.
btest - stopped on `#354 test_insns.rb`
spec - the log ...
MSP-Greg (Greg L)
03:17 PM Bug #15069 (Closed): Backport "suppress warning: 'const' attribute on function returning 'void' "
The files `include/ruby/intern.h` and `include/ruby/ruby.h` are used for extension builds, and when a recent gcc is called with -Wall, the build fails. This can cause failures with mkmf for instance in pkg_config() lookup.
The resolvi...
larskanis (Lars Kanis)
02:24 PM Bug #15057 (Rejected): REXML::Text#value returns a double unescaped string in non-raw mode
> 了解しました。atomutil の方にはこちらから報告しておきます。
ありがとうございます。では、このチケットはクローズしておきます。
kou (Kouhei Sutou)
07:08 AM Bug #15057: REXML::Text#value returns a double unescaped string in non-raw mode
>> This ignores the 'raw' attribute setting
> ...
なるほど。`REXML::Element#text` も同様のコメントがあってセマンティクスを変えられないと。残念ですが仕方がないですかね… メジャーバージョンアップの際は再検討していただけると幸いです。
> 互換性は壊したくないので、現状ではatomutilでは次のように使ってもらいたいです。
了解しました。atomutil の方にはこちらから報告し...
rna (Ryosuke Nanba)
05:12 AM Bug #15057: REXML::Text#value returns a double unescaped string in non-raw mode
ありがとうございます。確認できました。
現状の動きが変だという気持ちはわかるのですが、`Text#value`のドキュメントに
> This ignores the 'raw' attribute setting
と書いているので、`raw`のときもそうじゃないときも期待した挙動にするのは、互換性を維持したままではムリなんですよねぇ。
なので、`element1.text = element2.text`という使い方がよくないんですよねぇ。ただ、...
kou (Kouhei Sutou)
12:41 PM Revision 52a23d56 (git): rational.c: remove duplicate macros
* rational.c (RRATIONAL_SET_{NUM,DEN}): also defined in internal.h
since r53887.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:30 PM Revision 868ad210 (git): ruby.h: removed internal macros
* include/ruby/ruby.h (RCOMPLEX_SET_REAL, RCOMPLEX_SET_IMAG): removed
macros for internal use, which have been exposed by accident.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:22 PM Feature #14594: Rethink yield_self's name
And I like pipe too, maybe even more. rosenfeld (Rodrigo Rosenfeld Rosas)
12:21 PM Feature #14594: Rethink yield_self's name
I liked to_be as well. rosenfeld (Rodrigo Rosenfeld Rosas)
02:48 AM Feature #14594: Rethink yield_self's name
This looks **to_be** perfect, I really like this idea! sowieso (So Wieso)
11:38 AM Feature #15066: Documentation and providing better API for accessing Complex numbers functions in C extensions
Isn't it enough to just use rb_funcall() to call Ruby methods on Complex numbers? Eregon (Benoit Daloze)
09:25 AM Feature #15066: Documentation and providing better API for accessing Complex numbers functions in C extensions
`RCOMPLEX_SET_REAL` and `RCOMPLEX_SET_IMAG` are internal macros, and so I think they should not be used outside. nobu (Nobuyoshi Nakada)
06:41 AM Feature #15066 (Closed): Documentation and providing better API for accessing Complex numbers functions in C extensions
Currently there is absolutely no documentation for working with Complex numbers at the level of the C API.
Apart from two macros defined [[here](https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L1079)] for setting the real ...
v0dro (Sameer Deshmukh)
09:10 AM Misc #14981: DevelopersMeeting20180913Japan
* [Bug #14908] Enumerator::Lazy creates unnecessary Array objects
* Proposed solution is to change arity of Enumerator::Yielder#<< to 1 from -1 and use it internally for lazy enum instead of Enumerator::Yielder#yield. Generally, metho...
chopraanmol1 (Anmol Chopra)
08:39 AM Revision 1cf2bb4b (git): use mingw ANSI stdio
[Bug #13496]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:47 AM Bug #15067 (Closed): library/socket/socket/getnameinfo_spec.rb always errors with multiple IP addresses hostname
If the hostname is bind with multiple IP addresses, `Socket.getnameinfo` raises `SocketError`.
It's the spec of this method.
```
irb(main):001:0> require "socket"
=> true
irb(main):002:0> Socket.getnameinfo(['AF_INET', 21, 'multi'...
usa (Usaku NAKAMURA)
05:28 AM Revision fb7a5690 (git): bootstraptest update test_io.rb [Bug #15060] [Fix GH-1495]
From: MSP-Greg <[email protected]>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:41 AM Bug #15060 (Closed): Broken Appveyor MinGW build - fix GH PR 1945
Applied in changeset trunk|r64628.
----------
Spec updates [Bug #15060] [Fix GH-1495]
From: MSP-Greg <[email protected]>
nobu (Nobuyoshi Nakada)
03:41 AM Revision 3fa8d5ba (git): Spec updates [Bug #15060] [Fix GH-1495]
From: MSP-Greg <[email protected]>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:19 AM Revision e4b11728 (git): appveyor.yml: fix PATH and env for msys2
based on the patch by MSP-Greg at #1945.
Co-authored-by: MSP-Greg <[email protected]>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:18 AM Revision 2cbf44e5 (git): appveyor.yml: reduce matrix factors
* appveyor.yml (environment): separate matrix factors by `build` (`vs`
or `msys2`), and `build` (and `vs` version if VS build).
now `MSYS2_ARCH` and `MSYSTEM` are derived from `Platform` if msys2
build.
git-svn-id: svn+ssh://ci.ru...
nobu (Nobuyoshi Nakada)
01:42 AM Bug #15039 (Closed): Random.urandom and SecureRandom arc4random use
Applied in changeset trunk|r64625.
----------
avoid fork-unsafe arc4random implementations
Some old implementaions of arc4random_buf(3) were ARC4 based, or
unsafe when forked, or both. Resort to /dev/urandom for those
known problemati...
shyouhei (Shyouhei Urabe)
01:42 AM Revision b120f5e3 (git): avoid fork-unsafe arc4random implementations
Some old implementaions of arc4random_buf(3) were ARC4 based, or
unsafe when forked, or both. Resort to /dev/urandom for those
known problematic cases. Fix [Bug #15039]
Patch from Thomas Hurst <[email protected]>
git-svn-id: svn+ssh://ci.r...
shyouhei (Shyouhei Urabe)
12:12 AM Revision 183ac396 (git): * 2018-09-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:12 AM Revision 6853c9e1 (git): RubyGems installer.rb - fix up my mistakes in r64582
From: MSP-Greg <[email protected]>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

09/03/2018

03:29 PM Bug #15039: Random.urandom and SecureRandom arc4random use
shyouhei (Shyouhei Urabe) wrote:
> @naruse Are you willing to provide a fix for this? Or can I commit the proposed #if guard?
Could you commit it?
naruse (Yui NARUSE)
01:04 AM Bug #15039: Random.urandom and SecureRandom arc4random use
@naruse Are you willing to provide a fix for this? Or can I commit the proposed #if guard? shyouhei (Shyouhei Urabe)
01:52 PM Revision aa5d9928 (git): Use unpack1 instead of unpack and `[0]`
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
01:08 PM Misc #15053: Using -fstack-protector-strong instead of -fstack-protector conditionally.
Thank you for fixing this issue quickly!
jaruga (Jun Aruga)
11:07 AM Bug #14966: 2.5 branch - Appveyor failures - backport missed line
Hello Greg,
Thank you very much for your notice.
I have applied your patch at r64621 in ruby_2_5 branch.
nagachika (Tomoyuki Chikanaga)
11:04 AM Revision bf0dcd5b (git): test/test_tmpdir.rb(TRAVERSAL_PATH): re-apply r62990 partially. [Backport #14966]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@64621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
09:07 AM Bug #14880: Time#localtime doesn't always seem to respect TZ
nobu (Nobuyoshi Nakada) wrote:
> I feel it'd be better to accept a timezone object as `utc_offset` like [Feature #14850], than setting `ENV`.
I completely agree but the problem is how to compute utc offset for a given time and timezo...
ioquatix (Samuel Williams)
07:41 AM Bug #14880: Time#localtime doesn't always seem to respect TZ
I feel it'd be better to accept a timezone object as `utc_offset` like [Feature #14850], than setting `ENV`.
nobu (Nobuyoshi Nakada)
09:07 AM Bug #15027: When Struct#each method is overriden Struct#select and Struct#to_a use wrong collections
@matz: is the patch from Nobu good enough? Hanmac (Hans Mackowiak)
08:20 AM Bug #13496 (Closed): Patches for MinGW builds - gnu_printf in 'config' & defines.h
Applied in changeset trunk|r64620.
----------
Declare as gnu_printf on mingw
[Bug #13496]
From: MSP-Greg <[email protected]>
nobu (Nobuyoshi Nakada)
08:20 AM Revision c115b39e (git): Declare as gnu_printf on mingw
[Bug #13496]
From: MSP-Greg <[email protected]>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:39 AM Misc #14981: DevelopersMeeting20180913Japan
* [Feature #14850] Add official API for setting timezone on Time (nobu)
* a patch posted.
nobu (Nobuyoshi Nakada)
01:07 AM Misc #14981: DevelopersMeeting20180913Japan
* https://github.com/ruby/ruby/pull/1943
* I want a review by other core devs.
shyouhei (Shyouhei Urabe)
05:40 AM Bug #15057: REXML::Text#value returns a double unescaped string in non-raw mode
> atomutilでそうなるケースを試してみたいので再現するAtomとサンプルコードを提供してもらえませんか?
これでどうでしょう?
~~~
require 'atomutil'
entry = Atom::Entry.new
entry.content = "&lt;br&gt;"
puts entry.to_s
~~~
entry.to_s は実際に投稿する場合 HTTP の request body になります(参照: Atom::C...
rna (Ryosuke Nanba)
12:21 AM Bug #15057: REXML::Text#value returns a double unescaped string in non-raw mode
なるほど。
atomutilでそうなるケースを試してみたいので再現するAtomとサンプルコードを提供してもらえませんか?
kou (Kouhei Sutou)
02:35 AM Feature #14183: "Real" keyword argument
jeremyevans0 (Jeremy Evans) wrote:
> mame (Yusuke Endoh) wrote:
> ...
I think the amount of changes from Ruby 1.8 to Ruby 1.9 depended a lot on what kind of processing your application did, and what kind of data was involved. If you ...
duerst (Martin Dürst)
02:02 AM Bug #15060 (Closed): Broken Appveyor MinGW build - fix GH PR 1945
Currently, the MinGW build is broken. See https://github.com/ruby/ruby/pull/1945
Comparing the build summaries, there were some things that differed between the build and ruby-loco. Both ruby-loco & RubyInstaller2 (RI2) builds use t...
MSP-Greg (Greg L)

09/02/2018

11:27 PM Feature #13050 (Closed): Readline: expose rl_completion_quote_character variable
Applied in changeset trunk|r64618.
----------
Readline: expose rl_completion_quote_character variable
[Feature #13050]
From: georgebrock (George Brocklehurst) <[email protected]>
nobu (Nobuyoshi Nakada)
11:27 PM Revision 5cde9a39 (git): * 2018-09-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:27 PM Revision 074f1c91 (git): Readline: expose rl_completion_quote_character variable
[Feature #13050]
From: georgebrock (George Brocklehurst) <[email protected]>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:29 PM Bug #15057: REXML::Text#value returns a double unescaped string in non-raw mode
> DOMでもnodeValueの値は実体参照を解決した値になるので今の挙動で問題ないように思うんですが、
JavaScript の DOM でも `Text` のコンストラクタ引数で渡した文字列はパースの対象にならずにそのままテキストノードが表す文字列になります。
~~~
<p id="p"></p>
<script>
t = new Text("&lt; <");
console.log(t.nodeValue); // コンソールに「&lt; ...
rna (Ryosuke Nanba)
01:20 PM Bug #15057 (Feedback): REXML::Text#value returns a double unescaped string in non-raw mode
DOMでも`nodeValue`の値は実体参照を解決した値になるので今の挙動で問題ないように思うんですが、どんなユースケースで使おうとして今の挙動は間違っていると考えたか教えてもらえますか?
> 非rawモードではコンストラクタの第一引数に渡された文字列はテキストノードが表す文字列そのものを意味するはずです。
こうするべきだと考えた理由というか。
kou (Kouhei Sutou)
09:22 AM Bug #15057 (Rejected): REXML::Text#value returns a double unescaped string in non-raw mode
`REXML::Text` オブジェクトが非rawモードの場合、`REXML::Text#value` がエスケープ済みのテキストを二重にエスケープ解除された文字列を返します。
例:
~~~
require 'rexml/document'
t = REXML::Text.new("&lt; <", false, nil, false)
t.to_s # => "&amp;lt; &lt;"
t.value # => "< <" (expected...
rna (Ryosuke Nanba)
03:47 PM Feature #14850: Add official API for setting timezone on Time
Here is a [patch] to extend `Time.new` and `Time#getlocal` for timezone support.
A timezone object should have `local_to_utc`, `utc_to_local` and `utc_offset` methods, like [timezone gem].
[patch]: https://github.com/nobu/ruby/tree/f...
nobu (Nobuyoshi Nakada)
02:35 PM Feature #14594: Rethink yield_self's name
I suggest aliasing `#yield_self` with **#to_be**. The `to_` prefix suggest returning a value while [the word "be"](https://gist.github.com/RichOrElse/452e5f9f35f16c3fb6ef6d3ab41a173c) connotes both identity (`#itself`) and it's new condi... RichOrElse (Ritchie Buitre)
01:55 PM Bug #15058 (Closed): REXML::Text#clone returns a text node with a double escaped Sting
たしかにその通りですね。
そうなるようにしておきました。
近いうちにこの修正が入ったrexml gemをリリースしておきます。
kou (Kouhei Sutou)
09:25 AM Bug #15058 (Closed): REXML::Text#clone returns a text node with a double escaped Sting
`REXML::Text#clone` で生成したオブジェクトが元のオブジェクトと異なる値を持ったテキストノードになります。clone されたテキストノードの `to_s` の値は、元のテキストノードが表現する文字列を二重にエスケープしたものになります。
例:
~~~
require 'rexml/document'
t = REXML::Text.new("&lt; <", false, nil, false)
t2 = t.clone
t.to_s ...
rna (Ryosuke Nanba)
11:23 AM Bug #14942: Windows7でコンソールに長い文字列を出力できない
ruby_2_5 r64617 merged revision(s) 64092. nagachika (Tomoyuki Chikanaga)
11:23 AM Revision 6d9932a2 (git): merge revision(s) 64092: [Backport #14942]
win32.c: limit write size on console
* win32/win32.c (constat_parse): split long buffer and limit write
size on a console, as well as rb_w32_write.
[ruby-dev:50597] [Bug #14942]
git-svn-id: svn+ssh://ci.ruby...
nagachika (Tomoyuki Chikanaga)
11:21 AM Bug #14941: WindowsでARGVの文字列に汚染マークが付いてない
ruby_2_5 r64616 merged revision(s) 64071. nagachika (Tomoyuki Chikanaga)
11:20 AM Revision e20d3698 (git): merge revision(s) 64071: [Backport #14941]
ruby.c: taint ARGV on Windows
* ruby.c (external_str_new_cstr): strings come from the external
should be tainted. [ruby-dev:50596] [Bug #14941]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@64616 b2dd...
nagachika (Tomoyuki Chikanaga)
09:32 AM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
> https://bugs.ruby-lang.org/issues/13618
>
> I have at least one more preparatory change which should be fairly
> straightforward; but unfortunately makes some of the current code
> more verbose (because of `container_of'):
>
>...
normalperson (Eric Wong)
07:10 AM Feature #15049: [Request] Easily access all keyword arguments within a method
@duerst
> Maybe I'm totally confused, but what's wrong with using `**keyword_arguments`?
I am not the ticket's authors, but I understand the demand and met with the same requirement in some real-life projects. The most expressive e...
zverok (Victor Shepelev)
06:11 AM Feature #15049 (Feedback): [Request] Easily access all keyword arguments within a method
Maybe I'm totally confused, but what's wrong with using **keyword_arguments? duerst (Martin Dürst)
03:50 AM Misc #15053 (Closed): Using -fstack-protector-strong instead of -fstack-protector conditionally.
Applied in changeset trunk|r64614.
----------
configure.ac: -fstack-protector-strong
* configure.ac: use -fstack-protector-strong if available instead of
-fstack-protector conditionally. [ruby-core:88788] [Misc #15053]
nobu (Nobuyoshi Nakada)
03:49 AM Revision f7717185 (git): * 2018-09-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:49 AM Revision c8ccdbfe (git): configure.ac: -fstack-protector-strong
* configure.ac: use -fstack-protector-strong if available instead of
-fstack-protector conditionally. [ruby-core:88788] [Misc #15053]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:43 AM Revision 8d50ddda (git): test/ruby/test_io.rb (test_select_leak): extend timeout for Arch Linux[Backport 14929]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@64613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)

09/01/2018

04:19 PM Bug #15039: Random.urandom and SecureRandom arc4random use
shyouhei (Shyouhei Urabe) wrote:
> While I'm not against these points, I feel it is not a good idea to wait for such new API. Can we focus on fixing FreeBSD first? Maybe the OpenBSD issue should be handled separately in another thread...
Freaky (Thomas Hurst)
11:16 AM Bug #15039: Random.urandom and SecureRandom arc4random use
Freaky (Thomas Hurst) wrote:
> jeremyevans0 (Jeremy Evans) wrote:
> ...
While I'm not against these points, I feel it is not a good idea to wait for such new API. Can we focus on fixing FreeBSD first? Maybe the OpenBSD issue should b...
shyouhei (Shyouhei Urabe)
04:14 PM Bug #15027: When Struct#each method is overriden Struct#select and Struct#to_a use wrong collections
Thank you for the code @nobu. I have applied Nobu's suggestion, please find updated patch in the attach.
> If you can override each, you can override other methods.
This is true, but doing this is very un-ruby-ish. Also, I don't t...
bruno (Bruno Sutic)
01:22 PM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
> https://bugs.ruby-lang.org/issues/13618

Greg, do you think you can try this change for portability?
No rush, though, I will be mostly AFK and Queue/SizedQueue
changes will be trivial with the prep work so far...


Future chang...
normalperson (Eric Wong)
10:50 AM Revision cf85c2ef (git): bump up patchlevel for r64611
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@64612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
10:49 AM Revision 8fea37fc (git): test/ruby/test_io.rb (test_select_leak): extend timeout [Bug 14929]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@64611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
07:34 AM Revision 929e9713 (git): complex.c: simplify division result
* complex.c (f_divide): canonicalize rationals to simplify integer
complex results.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:59 AM Revision 9563db5e (git): Re-try to add workaround for warnings
```
.../ext/psych/lib/psych/versions.rb:4: warning: already initialized constant Psych::VERSION
.../.ext/common/psych/versions.rb:4: warning: previous definition of VERSION was here
```
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@...
znz (Kazuhiro NISHIYAMA)
06:19 AM Revision 480a21f4 (git): RSTRING_PTR may not be terminated in the future
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:14 AM Revision 8c90838f (git): 10**3 is always 1000
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:14 AM Revision dcd4914b (git): adjust indent
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:40 AM Bug #14929: [PATCH] thread.c (do_select): fix leak on exception
ruby_2_5 r64605 merged revision(s) 64007,64019,64020. nagachika (Tomoyuki Chikanaga)
05:40 AM Revision c91b7154 (git): merge revision(s) 64007,64019,64020: [Backport #14929]
thread.c (do_select): fix leak on exception
When do_select is interrupted and raise happens from
RUBY_VM_CHECK_INTS_BLOCKING, the original FD sets we copied
do not get freed, leading to a memory leak. Wrap up al...
nagachika (Tomoyuki Chikanaga)
04:09 AM Revision c4816a11 (git): surround macro block with do/while
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:31 AM Bug #14926: Different results between Enumerable#sum and #reduce when Float::INFINITY present
ruby_2_5 r64603 merged revision(s) 64014. nagachika (Tomoyuki Chikanaga)
02:31 AM Revision 2c26edc1 (git): merge revision(s) 64014: [Backport #14926]
fix sum on infinity
* array.c (rb_ary_sum): consider non-finite floats.
[ruby-core:88024] [Bug #14926]
* enum.c (sum_iter): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@64603 b2dd03c8-...
nagachika (Tomoyuki Chikanaga)
02:03 AM Bug #14920: Backport r63857 to fix performance problem on Time class in MacOs systems
ruby_2_5 r64602 merged revision(s) 63994. nagachika (Tomoyuki Chikanaga)
02:03 AM Revision f6369743 (git): merge revision(s) 63994: [Backport #14920]
reduce tzset
* time.c (rb_localtime_r): call tzset() only after TZ environment
variable is changed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@64602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
01:37 AM Revision ba3da085 (git): [DOC] Add %Q and %+ to strptime [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
01:32 AM Feature #14183: "Real" keyword argument
jeremyevans0 (Jeremy Evans) wrote:
> Changing the callee side will not fix all cases. The `where` method supports more than just symbols keys in hashes. `where('table.id'=>1)` is supported, for example. Accepting a keyword args splat ...
mame (Yusuke Endoh)

08/31/2018

10:03 PM Bug #15039: Random.urandom and SecureRandom arc4random use
jeremyevans0 (Jeremy Evans) wrote:
> As the maintainer of the OpenBSD ruby port, I'm requesting that ruby continue to use arc4random_buf(3) on OpenBSD. The OpenBSD getentropy(2) man page states:
> ...
I think there's a reasonable argu...
Freaky (Thomas Hurst)
06:56 PM Bug #15039: Random.urandom and SecureRandom arc4random use
naruse (Yui NARUSE) wrote:
> I finally agree that
> ...
As the maintainer of the OpenBSD ruby port, I'm requesting that ruby continue to use arc4random_buf(3) on OpenBSD. The OpenBSD getentropy(2) man page states:
~~~
getentr...
jeremyevans0 (Jeremy Evans)
06:18 PM Bug #15039: Random.urandom and SecureRandom arc4random use
Freaky (Thomas Hurst) wrote:
> naruse (Yui NARUSE) wrote:
> ...
As you mentioned, it's actually urandom.
I misunderstood.
> > > > But the size of those entropy is limited.
> ...
Yeah, it should block if there's no entropy.
> > ...
naruse (Yui NARUSE)
04:49 PM Bug #15039: Random.urandom and SecureRandom arc4random use
naruse (Yui NARUSE) wrote:
> Freaky (Thomas Hurst) wrote:
> ...
As far as I know getentropy(2) behaves as urandom, just with a size limit.
> > > But the size of those entropy is limited.
> ...
Yes, with the caveat that it should bl...
Freaky (Thomas Hurst)
08:19 AM Bug #15039: Random.urandom and SecureRandom arc4random use
Freaky (Thomas Hurst) wrote:
> naruse (Yui NARUSE) wrote:
> ...
Even if /dev/random is not accessible, it can use getentropy(2).
> > But the size of those entropy is limited.
> ...
Yes.
But Random.urandom shouldn't be limited.
...
naruse (Yui NARUSE)
05:38 PM Bug #14883 (Third Party's Issue): Ruby 2.5 Fails to Build on PowerPC 32-bit (BE)
Issue with systemd containers, not with Ruby. mingcongbai (Mingcong Bai)
04:54 PM Misc #15053 (Closed): Using -fstack-protector-strong instead of -fstack-protector conditionally.
When running a code analysis tool for ruby, I got a warning `Insufficient stack protection: -fstack-protector`, it seems setting "-fstack-protector-strong" is better than "-fstack-protector".
Currently in `configure.ac`, "-fstack-prot...
jaruga (Jun Aruga)
03:29 PM Revision 0fc1870f (git): Revert "Try to add workaround for warnings"
This reverts commit a5e5cfa3f650d4e78fb50e2df15c102ab56fca3c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
znz (Kazuhiro NISHIYAMA)
03:25 PM Revision efa19f9f (git): Try to add workaround for warnings
```
.../ext/psych/lib/psych/versions.rb:4: warning: already initialized constant Psych::VERSION
.../.ext/common/psych/versions.rb:4: warning: previous definition of VERSION was here
```
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@...
znz (Kazuhiro NISHIYAMA)
03:05 PM Revision 50cb77f2 (git): * 2018-09-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:05 PM Revision c3e16351 (git): [DOC] leap seconds [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
02:42 PM Feature #14183: "Real" keyword argument
mame (Yusuke Endoh) wrote:
> jeremyevans0 (Jeremy Evans) wrote:
> ...
Changing the callee side will not fix all cases. The `where` method supports more than just symbols keys in hashes. `where('table.id'=>1)` is supported, for example...
jeremyevans0 (Jeremy Evans)
08:05 AM Feature #14183: "Real" keyword argument
Here is a scenario where allowing "hash argument with omitted braces" causes a problem. Assume that we write a method "debug" which is equal to "Kernel#p".
```
def debug(*args)
args.each {|arg| puts arg.inspect }
end
```
Pas...
mame (Yusuke Endoh)
05:45 AM Feature #14183: "Real" keyword argument
jeremyevans0 (Jeremy Evans) wrote:
> Having to change all calls from `where(:id=>1)` to `where({:id=>1})` makes the code uglier and is going to make most Ruby programmers less happy. Does this argument for explicitness lead to requirin...
mame (Yusuke Endoh)
05:20 AM Feature #14183: "Real" keyword argument
mame (Yusuke Endoh) wrote:
> Jeremy, thank you for investigating the examples. I'd like to discuss this issue at the next developers' meeting.
> ...
I disagree. I migrated many applications and libraries from Ruby 1.8 to Ruby 1.9 (an...
jeremyevans0 (Jeremy Evans)
01:56 AM Feature #14183: "Real" keyword argument
Jeremy, thank you for investigating the examples. I'd like to discuss this issue at the next developers' meeting.
This is my personal current opinion: this change indeed requires users' action, however, I believe that the problem is ...
mame (Yusuke Endoh)
12:09 PM Bug #15052 (Closed): must not optimize `foo(**{})` out
A keyword rest argument with empty hash, `**{}`, is removed during parsing phase. However, under the current spec of keyword parameters, this leads to a problem:
```
def foo(opt = "opt", **hsh)
p [opt, hsh]
end
foo({}, **{}) ...
mame (Yusuke Endoh)
09:56 AM Revision 68f9d7b4 (git): random.c: SecRandomCopyBytes
* random.c (fill_random_bytes_syscall): use SecRandomCopyBytes in
Security framework on macOS 10.7 or later.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:54 AM Bug #14880: Time#localtime doesn't always seem to respect TZ
@nobu That doesn’t seem to align with what the documentation says:
> Converts time to local time (using the local time zone in effect for this process) modifying the receiver.
ioquatix (Samuel Williams)
06:43 AM Bug #14880: Time#localtime doesn't always seem to respect TZ
I think it should be fixed at the creation time. nobu (Nobuyoshi Nakada)
08:36 AM Misc #14981: DevelopersMeeting20180913Japan
* [Feature #14183] "Real" keyword argument
* I'd like to hear matz's current opinion and other committers' ones.
mame (Yusuke Endoh)
08:16 AM Feature #15030: Have T_INTEGER constant for checking Integer types in C API
Use `RB_INTEGER_TYPE_P()`. nobu (Nobuyoshi Nakada)
07:22 AM Bug #15050: GC after forking with fibers crashes
On 2018/08/31 15:14, Eric Wong wrote:
>> What is the problem [Bug #15041] want to solve?
>
> Switching fiber can crash in child process. r64589 test change
> shows it:
>
> ```
> - Fiber.new{ pid = fork {} }.resume
> + ...
ko1 (Koichi Sasada)
06:22 AM Bug #15050: GC after forking with fibers crashes
Koichi Sasada <[email protected]> wrote:
> On 2018/08/31 12:50, Eric Wong wrote:
> > > [Bug #15041] hits something wrong?
> > > (sorry I needed to ask earlier)
> >
> > No, it's not wrong; but it is an incomplete fix. There
> > seem...
normalperson (Eric Wong)
04:03 AM Bug #15050: GC after forking with fibers crashes
On 2018/08/31 12:50, Eric Wong wrote:
>> [Bug #15041] hits something wrong?
>> (sorry I needed to ask earlier)
>
> No, it's not wrong; but it is an incomplete fix. There
> seems to be several problems related to fork + Fiber

...
ko1 (Koichi Sasada)
03:52 AM Bug #15050: GC after forking with fibers crashes
Koichi Sasada <[email protected]> wrote:
> On 2018/08/31 12:30, Eric Wong wrote:
> > Yes, fix one bug, hit another :< Story of my life
>
> [Bug #15041] hits something wrong?
> (sorry I needed to ask earlier)

No, it's not wrong; bu...
normalperson (Eric Wong)
03:32 AM Bug #15050: GC after forking with fibers crashes
[email protected] wrote:
> Is this because [Bug #15041]?

Yes, fix one bug, hit another :< Story of my life

(I found these while working on auto-fiber)
normalperson (Eric Wong)
03:01 AM Bug #15050: GC after forking with fibers crashes
Is this because [Bug #15041]? ko1 (Koichi Sasada)
04:31 AM Revision 070d731b (git): test/lib/test/unit/assertions.rb: explicit delegation of keyword arguments
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e mame (Yusuke Endoh)

08/30/2018

11:10 PM Feature #14183: "Real" keyword argument
To give an example of how much code this would break, let's use Redmine as an example, since it runs this bug tracker. For simplicity, let's limit our analysis to the use of a single method, ActiveRecord's `where` method. ActiveRecord'... jeremyevans0 (Jeremy Evans)
08:11 PM Feature #15049: [Request] Easily access all keyword arguments within a method
shevegen (Robert A. Heiler) wrote:
> I have had a somewhat related idea in that I wanted a way to access all
> ...
Tbh I hadn't thought too much about naming... Was just trying to get something mocked up quickly. Either way, glad to s...
bherms (Bradley Herman)
07:44 PM Feature #15049: [Request] Easily access all keyword arguments within a method
I have had a somewhat related idea in that I wanted a way to access all
parameters in a simple, short manner. A bit similar to $1 $2 etc... for
regexes, just that we could do so programmatically for the arguments
passed into a method ...
shevegen (Robert A. Heiler)
07:38 PM Feature #15049 (Feedback): [Request] Easily access all keyword arguments within a method
As a developer, I'd like to leverage the power of keyword arguments (requirements, defaults, etc) and then be able to access a hash of all the arguments supplied.
~~~ ruby
def foo(bar:, baz: 1, qux: 2...)
post('/', body: kargs)
e...
bherms (Bradley Herman)
08:03 PM Bug #15050: GC after forking with fibers crashes
[email protected] wrote:
> https://bugs.ruby-lang.org/issues/15050

This fixes the immediate bug, but I think there's other problems
with stack management

```
diff --git a/cont.c b/cont.c
index 7bc1724176..ab42dfb27a 100644...
normalperson (Eric Wong)
07:54 PM Bug #15050 (Closed): GC after forking with fibers crashes
Not sure when to work on this, so leaving this here for now...
The management of stacks for root fiber and regular
fibers is different and confusing. Perhaps unifying
thread and fiber stack cache is the best way to go.
Is a sepa...
normalperson (Eric Wong)
07:14 PM Revision cec21388 (git): * 2018-08-31
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:14 PM Revision 13f49235 (git): cont.c (rb_fiber_atfork): th->root_fiber may not exist
Otherwise, bootstraptest/test_fork.rb fails with -DVM_CHECK_MODE=2
[Bug #15041]
Fixes: r64589 "cont.c: set th->root_fiber to current fiber at fork"
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64593 b2dd03c8-39d4-4d8f-98ff-823fe6...
Eric Wong
05:09 PM Misc #15007: Let all Init_xxx and extension APIs frequently called from init code paths be considered cold
normalperson (Eric Wong) wrote:
> [email protected] wrote:
> ...
Yes, explains behaviour observed through smaps - correct, `MAP_HUGETLB` works. Will clean it up during the week and submit as a new issue.
methodmissing (Lourens Naudé)
10:52 AM Misc #15007: Let all Init_xxx and extension APIs frequently called from init code paths be considered cold
[email protected] wrote:
> * `MADV_HUGEPAGE` - fallback option, implicit request, kernel
> will map it implicit if not aligned to hugepage boundary, or
> right away if aligned to hugepage boundary (I implemented with
> the 2MB al...
normalperson (Eric Wong)
10:19 AM Misc #15007: Let all Init_xxx and extension APIs frequently called from init code paths be considered cold
ko1 (Koichi Sasada) wrote:
> I agree to introduce COLD attribute.
> ...
Somewhat off topic, but fits with the general direction here.
I have a proof of concept going with mapping the text section to hugepages after a few evenings of...
methodmissing (Lourens Naudé)
01:48 PM Feature #15047: Documentation and more functions for Hash functions in C API
Can I submit the documentation for this as a GitHub PR? I just to make updates to README.EXT.
Also, thank you for the help I will make a note of that in my patch.
v0dro (Sameer Deshmukh)
12:57 PM Feature #15047: Documentation and more functions for Hash functions in C API
> Also, including more functionality like getting the size a Hash directly through
> ...
Use RHASH_SIZE macro.
mrkn (Kenta Murata)
12:46 PM Feature #15047: Documentation and more functions for Hash functions in C API
More documentation would always be very helpful. It makes "entry" into the
ruby world easier when there is good documentation. Perhaps after ruby 3x3
we could add a new meme - four times as good documentation. :D
shevegen (Robert A. Heiler)
09:08 AM Feature #15047 (Open): Documentation and more functions for Hash functions in C API
Currently the C API supports various Array functions like `rb_ary_new()` and String
functions like `rb_str_new2()` I could hardly find any documentation in the README.EXT
for working with hashes. Instead, I relied on this blog: http://...
v0dro (Sameer Deshmukh)
01:29 PM Bug #15039: Random.urandom and SecureRandom arc4random use
naruse (Yui NARUSE) wrote:
> Freaky (Thomas Hurst) wrote:
> ...
... but you've just described concerns over situations where such APIs are unavailable. If you have no /dev/urandom why would you have a /dev/random? If you have no non-...
Freaky (Thomas Hurst)
11:06 AM Bug #15039: Random.urandom and SecureRandom arc4random use
naruse (Yui NARUSE) wrote:
> > > On Darwin, there seems similar issue as OpenBSD.
> ...
As far as I investigated, it's implemented with CCRandomCopyBytes() and fork safe. We should use this.
https://stackoverflow.com/a/21736905/515572
naruse (Yui NARUSE)
07:49 AM Bug #15039: Random.urandom and SecureRandom arc4random use
Freaky (Thomas Hurst) wrote:
> naruse (Yui NARUSE) wrote:
> ...
There's /dev/random and getentropy.
But the size of those entropy is limited.
> > And as Jeremy already pointend, OpenBSD doesn't have urandom alternative syscall beca...
naruse (Yui NARUSE)
12:46 PM Feature #14097: Add union and difference to Array
I'm now for the addition. By the way, don't you need `Array#intersection`? mame (Yusuke Endoh)
08:51 AM Feature #14097: Add union and difference to Array
As @mame already said, I gave a talk at Euruko about this issue:
https://youtu.be/jUc8InwoA-E?t=2m54s
I did an standing up voting. As in the video you can not see the audience, here is the picture I took during the talk with the re...
ana06 (Ana Maria Martinez Gomez)
12:38 PM Misc #14981: DevelopersMeeting20180913Japan
* [Feature #14097] Add union and difference methods to Array (@ana06)
* Addition of two new methods in aim of readability, ease of use, efficiency and consistence. There are already PR for both methods.
* @matz told me to add this ...
ana06 (Ana Maria Martinez Gomez)
06:42 AM Bug #15041: [PATCH] cont.c: set th->root_fiber to current fiber at fork
On 2018/08/29 17:09, Eric Wong wrote:
> Shows me: `resume': fiber called across stack rewinding barrier (FiberError)

Yes, I tried similar code.
Not sure why...

Nobu?

--
// SASADA Koichi at atdot dot net
ko1 (Koichi Sasada)
03:24 AM Revision 3bcb4ff8 (git): hrtime.h: fix typo in non-builtin overflow check
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Eric Wong
 

Also available in: Atom