Project

General

Profile

Activity

From 03/01/2017 to 03/07/2017

03/07/2017

10:03 PM Bug #13288: mingw issues with 57789
Shyouhei,
Not a good day so far. A couple rev's of i686 built, responded to -v, but test-all is a mess. Spent some time revising my build code and looking around libffi.
Testing 57788 did not yield results similar to what I recal...
MSP-Greg (Greg L)
05:34 AM Bug #13288: mingw issues with 57789
Shyouhei,
x64 failed (SEGV) on 57794 with the same log --
```
C:\Windows\system32\ntdll.dll(KiUserExceptionDispatcher+0x2e) [0x0000000077726818]
[0xffffffffff7aad10]
D:\msys64\mingw64\bin\libffi-6.dll(ffi_call_win64+0x97) [0x00...
MSP-Greg (Greg L)
05:05 AM Bug #13288: mingw issues with 57789
Greg L wrote:
> About that previous question - does having info on both x86_64 and i686 help, or, dependent on the issue?
Yes, that may narrow the root cause of your problem. If the SEGV disappears on 32bit platforms we can say it i...
shyouhei (Shyouhei Urabe)
04:58 AM Bug #13288: mingw issues with 57789
Shyouhei Urabe wrote:
> While I was investigating this issue, naruse reverted some part of the commit nonetheless.
I hate it when that happens...
> ...
Started. About that previous question - does having info on both x86_64 and i...
MSP-Greg (Greg L)
04:25 AM Bug #13288: mingw issues with 57789
While I was investigating this issue, naruse reverted some part of the commit nonetheless. That might have changed your situation. Can you pull the latest trunk and see if the problem still exists? shyouhei (Shyouhei Urabe)
03:05 AM Bug #13288: mingw issues with 57789
Thank you for looking for the problem. As mentioned, I'm very c challenged. Would it help if I did a i686 build?
Looking around MSYS2, the only thing I saw that might affect things was [fix_return_size.patch](https://github.com/Alex...
MSP-Greg (Greg L)
01:40 AM Bug #13288 (Assigned): mingw issues with 57789
shyouhei (Shyouhei Urabe)
01:39 AM Bug #13288: mingw issues with 57789
Thank you for the report. According to the log your compiler is GCC 6.3 so this is the target environment I wanted to optimize. Weird thing is the stack trace shows the SEGV occurs inside of Init_fiddle(), which was not in the changeset... shyouhei (Shyouhei Urabe)
12:17 AM Bug #13288 (Closed): mingw issues with 57789
I have been building trunk with mingw/MSYS2 for a few months. I also created packages using OpenSSL 1.1.0e and gdbm 1.10.
Yesterday, I build 57782 with no major issues. Today, when I built 57789 (this commit) I had a segfault in the t...
MSP-Greg (Greg L)
07:48 PM Revision 63c7ccc6 (git): Always use old RB_FIXABLE to allow double as argument
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
05:51 PM Revision 110760fa (git): Revert r57803 "Avoid to cast the argument"
__builtin_add_overflow doesn't support double.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
05:46 PM Revision 07032325 (git): * 2017-03-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:46 PM Revision 6c127aea (git): Avoid to cast the argument
For 32bit environment and __int128 use cases.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
04:31 PM Feature #13263: Add companion integer nth-root method to recent Integer#isqrt
These are the correct benchmarks to show the differences in performance doing ``root**n``.
Even in highlevel Ruby, the ``1 << b*n`` shows it is faster.
```
require "benchmark/ips"
(50..60).each do |exp|
[3, 4, 7, 13].each do |...
jzakiya (Jabari Zakiya)
02:34 PM Bug #13270 (Rejected): IRB hangs when printing "\e]"
It is not ruby specific, and (probably) expected behavior of some terminal emulators. nobu (Nobuyoshi Nakada)
01:59 PM Feature #12573: Introduce a straightforward way to discover whether a process is running
A number of applications, such as Monit and God, use the pidfiles of the applications they are monitoring in order to identify if they are still running.
Pid files are referenced in the Linux Standards Base init script spec: http://re...
will_in_wi (William Johnston)
01:57 PM Feature #12573: Introduce a straightforward way to discover whether a process is running
Thanks Martin!
Akira, that's another good way of handling the issue in a lot of circumstances. However, lockfiles have some issues on certain filesystems like NFS. Also, with a locked file, it isn't always straightforward across platf...
will_in_wi (William Johnston)
02:02 AM Feature #12573 (Open): Introduce a straightforward way to discover whether a process is running
William Johnston wrote:
> I'm unable to reopen this ticket, so I'd appreciate it if someone would do so for me.
Done.
duerst (Martin Dürst)
01:49 AM Feature #12573: Introduce a straightforward way to discover whether a process is running
How about locking a file?
If processes locks a file exclusively,
Only one process can success.
It can be used to detect already running daemon process.
lockfile is reliable than signal 0 because the file is unlocked when the proc...
akr (Akira Tanaka)
01:04 PM Revision d0708e9e (git): string.c: [DOC] Fix a typo in String#dump
[Fix GH-1531][ci skip]
Author: Alex Semyonov <alex@semyonov.us>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
znz (Kazuhiro NISHIYAMA)
10:56 AM Bug #13287 (Closed): Stack consistency error (sp: 97, bp: 96)
Applied in changeset r57801.
----------
parse.y: remove trace
* parse.y (reg_named_capture_assign_iter): do not insert trace
instructions before local variable assinments. putobject is
expected at first. [ruby-core:79940] [Bug #1...
nobu (Nobuyoshi Nakada)
06:38 AM Bug #13287: Stack consistency error (sp: 97, bp: 96)
```
zsh % diff -upw \
<(ruby --dump=insns -e '/(?<foo>.*)/ =~ "bar" && true' | sed -E 's/ +\( +[0-9]\)$//') \
<(ruby --dump=insns -e '/(?<foo>.*)/ =~ "bar" &&' -e true | sed -E 's/ +\( +[0-9]\)$//')
--- /dev/fd/11 ...
shyouhei (Shyouhei Urabe)
10:56 AM Revision 249fd9e0 (git): parse.y: remove trace
* parse.y (reg_named_capture_assign_iter): do not insert trace
instructions before local variable assinments. putobject is
expected at first. [ruby-core:79940] [Bug #13287]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57801 b...
nobu (Nobuyoshi Nakada)
09:13 AM Revision d69d98f6 (git): string.c: negation of LONG_MIN
* string.c (rb_str_update): do not use negation of LONG_MIN, which
is negative too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:08 AM Bug #13289 (Closed): Integer overflow in str_byte_substr & rb_str_subpos when set SHARABLE_MIDDLE_SUBSTRING by 1
Applied in changeset r57799.
----------
string.c: fix integer overflow
* string.c (str_byte_substr): fix another integer overflow which
can happen only when SHARABLE_MIDDLE_SUBSTRING is enabled.
[ruby-core:79951] [Bug #13289]
nobu (Nobuyoshi Nakada)
06:02 AM Bug #13289 (Closed): Integer overflow in str_byte_substr & rb_str_subpos when set SHARABLE_MIDDLE_SUBSTRING by 1
Integer overflow occurs in string.c(line 2319 & 5257).
beg + len & clen/n can be controlled by user.
Eg:
```
a="B"*0x400
a[0x40,0x7fffffffffffffff] => set length of sub array to 0x7fffffffffffffff
```
This lead to access o...
lung (Luc Nguyen)
09:07 AM Revision f4d13801 (git): string.c: fix integer overflow
* string.c (str_byte_substr): fix another integer overflow which
can happen only when SHARABLE_MIDDLE_SUBSTRING is enabled.
[ruby-core:79951] [Bug #13289]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57799 b2dd03c8-39d4-4d8f-9...
nobu (Nobuyoshi Nakada)
06:33 AM Revision d19d629e (git): Use RB_POSFIXABLE and RB_NEGFIXABLE to avoid cast introduced at r57793
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
05:48 AM Revision 72f8df15 (git): string.c: fix integer overflow
* string.c (rb_str_subpos): fix integer overflow which can happen
only when SHARABLE_MIDDLE_SUBSTRING is enabled. incorpolate
https://github.com/mruby/mruby/commit/7db0786abdd243ba031e24683f
git-svn-id: svn+ssh://ci.ruby-lang.org/r...
nobu (Nobuyoshi Nakada)
05:19 AM Revision a298301b (git): suppress warning: shadowing outer local variable - e
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
05:11 AM Revision a3990118 (git): Supress warning: instance variable @repeat_count not initialized
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
04:46 AM Revision 48240306 (git): Fix up r57788, Function is removed at readline-6.3.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
03:35 AM Revision ac6f08df (git): Use ADD instead of MUL
* On recent CPUs, 2-operand MUL's latency is 3 cycle but ADD is 1 cycle.
* clang Optimizes `MUL rax,2` into `ADD rax,rax` but gcc7 doesn't.
* LONG2FIX is compiled into `lea r14,[r15+r15*1+0x1]`; this is 1cycle
and run in parallel if th...
naruse (Yui NARUSE)
01:07 AM Revision d4c598c4 (git): fix macro name
* tool/instruction.rb (VmBodyGenerator#make_header_prepare_stack):
REG_CFP has been prefixed with VM_ at r56609. [Bug #12527]
* tool/instruction.rb (VmBodyGenerator#make_footer_stack_val):
ditto.
git-svn-id: svn+ssh://ci.ruby-lang...
nobu (Nobuyoshi Nakada)

03/06/2017

10:32 PM Bug #13287 (Closed): Stack consistency error (sp: 97, bp: 96)
This works:
~~~ ruby
/ (?<foo>.*)/ =~ "bar" && true
~~~
This produces a stack consistency error with `2.4.0` but not with `2.3.3`:
~~~ ruby
/ (?<foo>.*)/ =~ "bar" &&
true
~~~
```
$ irb
2.4.0 :001 > / (?<foo>.*)/ =~ "ba...
v49564 (Victor Bruley)
09:44 PM Feature #12573: Introduce a straightforward way to discover whether a process is running
I'm unable to reopen this ticket, so I'd appreciate it if someone would do so for me. My apologies for not responding sooner, I must not have seen the previous message somehow. I came back to see what the status was after reimplementing ... will_in_wi (William Johnston)
07:44 PM Feature #13263: Add companion integer nth-root method to recent Integer#isqrt
A further simplification can be done for ``numb = root**n``
root = bit_mask = 1 << (b = (num.bit_length - 1)/n)
numb = root**n
numb = root << b*(n-1)
numb = (1 << b) << b*(n-1)
numb = 1 << (b + b*(n-1))
...
jzakiya (Jabari Zakiya)
02:58 AM Feature #13263: Add companion integer nth-root method to recent Integer#isqrt
More efficient.
```
root = bit_mask = (b = 1 << (num.bit_length - 1)/n)
numb = root << b*(n-1) # fast cpu level root**n
until ((bit_mask >>= 1) == 0) || numb == num
root |= bit_mask
...
jzakiya (Jabari Zakiya)
07:42 PM Revision 1ec51631 (git): * 2017-03-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:42 PM Revision 8188fb9a (git): io.c: [DOC] open mode can be an integer; fix rdoc syntax
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e stomar (Marcus Stollsteimer)
03:54 PM Bug #13270: IRB hangs when printing "\e]"
I can reproduce `print "\e]"` and Ctrl+C, nothing happens. But I can't reproduce using `puts "\e["`. And I can't reproduce Ctrl+D `prints "30m"`. Ctrl+D causes simply exited.
I think iTerm eats output from "\e]" (OSC) to "\a" (BEL) (o...
znz (Kazuhiro NISHIYAMA)
03:43 PM Misc #13283: Disable `&' interpreted as argument prefix warning when passing symbol to Enumerable#map
Dan Allen wrote:
> I omit using a slightly different style in a chain.
> ...
This looks like Lisp to me more than Ruby.
But is the warning any useful in practice?
I agree the first example is unambiguous.
Eregon (Benoit Daloze)
03:54 AM Misc #13283: Disable `&' interpreted as argument prefix warning when passing symbol to Enumerable#map
I omit using a slightly different style in a chain.
~~~
(q.map &:w).e.r.t.y
~~~
Effectively, I group the standalone statement inside of (outer) parens.
For me, this provides the visual consistency of omitted parens for when it...
mojavelinux (Dan Allen)
03:13 AM Misc #13283: Disable `&' interpreted as argument prefix warning when passing symbol to Enumerable#map
I'm also a member of the church of dropping parens if possible. I'm not against introducing some new syntax to pass symbol-as-a-proc without parens. But wonder if that works for this specific map case. The main concern is that map ret... shyouhei (Shyouhei Urabe)
02:11 PM Bug #13277: Ruby 2.4.0 gem server 2.6.8
The related fix in the rubygems-2.6.9 changelog is https://github.com/rubygems/rubygems/blob/a2920e27661a18f60ad76b17b13961dd07f034d3/History.txt#L19
Please backport rubygems-2.6.10 to the next stable ruby-2.4 release.
larskanis (Lars Kanis)
11:30 AM Bug #13286 (Closed): Segfault when using rb_debug_inspector_open / rb_debug_inspector_frame_binding_get with Fiddle, but not when directly from C extension
## System
```shell
$ uname -a
Linux clients 4.1.5-x86_64-linode61 #7 SMP Mon Aug 24 13:46:31 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux
$ ruby -v
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
```
## Program
### W...
shreeve (Steve Shreeve)
11:14 AM Revision 74cdd893 (git): optimize FIXABLE macro
Looking at the source code, FIXABLE tends to be just before LOING2FIX
to check applicability of that operation. Why not try computing first
then check for overflow, which should be optimial.
I also tried the same thing for unsigned typ...
shyouhei (Shyouhei Urabe)
09:10 AM Revision cf2a6866 (git): Avoid to warning of clang with -Wincompatible-pointer-types.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
08:10 AM Revision f96c171e (git): readline.c: fix waiting fucntion
* ext/readline/readline.c (getc_body): use
rb_w32_wait_events_blocking in block region.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:25 AM Revision 5e62a1bd (git): LONG_LONG_MAX not always available
I was not aware of cases when LONG_LONG_MAX is undefined. Sorry.
Signed-off-by: Urabe, Shyouhei <shyouhei@ruby-lang.org>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shyouhei (Shyouhei Urabe)
06:44 AM Revision 63f298b0 (git): opt_eq_func refactor
* vm_insnhelper.c (opt_eq_func): method to dispatch is resolved by
only the receiver's class, not including the argument class.
even if basic operation is redefined, other class conditions
never meet. optimize Float and non-Float ...
nobu (Nobuyoshi Nakada)
06:04 AM Revision 3106f941 (git): use HAVE_BUILTIN___BUILTIN_MUL_OVERFLOW
We already check for __builtin_mul_overflow in configure but never
actually referred it before. Why not call it if available, because
that should render supposedly-optimial assembly outputs.
Optionally if __builtin_mul_overflow_p is av...
shyouhei (Shyouhei Urabe)
05:55 AM Bug #13285 (Rejected): You may have encountered a bug in the Ruby interpreter or extension libraries.
Vipala Patil wrote:
> ```
> ...
You are mixing ruby 2.3.1 (rvm) and 2.0.0 (system). They won't work together.
shyouhei (Shyouhei Urabe)
05:35 AM Bug #13285 (Rejected): You may have encountered a bug in the Ruby interpreter or extension libraries.
/Users/gargee/.rvm/gems/ruby-2.3.1@poaster/gems/eventmachine-1.2.3/lib/rubyeventmachine.bundle: [BUG] Segmentation fault
ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin15]
-- Crash Report log information ---------...
Vipala (Vipala Patil)

03/05/2017

11:56 PM Bug #13284 (Closed): IA64 ruby 2.4 miniruby segfault
Hello, I faced with this degradation (2.0.0 work perfect)
[ruby-2.4.0]$ gdb ./miniruby
GNU gdb Red Hat Linux (6.3.0.0-1.143.el4rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Publi...
ntfshard (Maksim Derbasov)
11:45 PM Misc #13283: Disable `&' interpreted as argument prefix warning when passing symbol to Enumerable#map
If the warning can't be removed, can we find some other way to write this statement without the need for parentheses? mojavelinux (Dan Allen)
11:43 PM Misc #13283 (Closed): Disable `&' interpreted as argument prefix warning when passing symbol to Enumerable#map
A common idiom in Ruby is to pass a symbol reference to `Enumerable#map`, which in turn invokes the corresponding method on each entry.
Case in point:
~~~
%(a b c).map &:upcase
~~~
Yet, when warnings are enabled, this line pro...
mojavelinux (Dan Allen)
11:36 PM Revision c8921b5e (git): compile.c: variable type
* compile.c (iseq_compile_each): fix variable type, use VALUE for
Symbol.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?revision=57772&view=revision
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57783 b2dd03c8-39d4-4d8f-98ff-823fe...
nobu (Nobuyoshi Nakada)
08:17 PM Feature #13263: Add companion integer nth-root method to recent Integer#isqrt
An optimization for the initiall ``root**n`` can be as follows:
Given any number **num** with only one bit set, and thus: ``bits = num.bit_length``
then it's exponentiation to any **n** is just: ``num**n => num << (num.bit_length...
jzakiya (Jabari Zakiya)
07:43 PM Revision e926245b (git): * 2017-03-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:43 PM Revision 5dfde646 (git): docs for IO.{write,read}
* io.c: [DOC] improve docs for IO
* IO.{write,read}: fix errors (:open_args is not an array of
strings, it might include a perm or options hash argument;
IO.write has no length argument, drop corresponding statement),
impro...
stomar (Marcus Stollsteimer)
12:54 PM Bug #12975: Edit documentation for IO#print function
Dario Daic wrote:
> * Add "and is a string" where usage of $' and $\ is explained.
> ...
Applied without this restraint, since it doesn't make sense: these variables must reference a string (or nil), since the type is validated during ...
stomar (Marcus Stollsteimer)
12:36 PM Bug #12975 (Closed): Edit documentation for IO#print function
Applied in changeset r57780.
----------
docs for IO#print
* io.c: [DOC] split documentation for IO#print into smaller paragraphs,
delete duplicate sentence, fix call-seq.
Based on a patch by Dario Daic. [ruby-core:78291] [Bug #12975]
stomar (Marcus Stollsteimer)
12:36 PM Revision 6af78021 (git): docs for IO#print
* io.c: [DOC] split documentation for IO#print into smaller paragraphs,
delete duplicate sentence, fix call-seq.
Based on a patch by Dario Daic. [ruby-core:78291] [Bug #12975]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57780 ...
stomar (Marcus Stollsteimer)
12:29 PM Bug #13277: Ruby 2.4.0 gem server 2.6.8
I guess when a new ruby main release will happen, the distributed gem in the bundle will also be
updated. The last release happened at around xmas 2016 so I guess we may get a new ruby release
in a not too terribly long time (currently...
shevegen (Robert A. Heiler)
08:12 AM Bug #13282: opt_str_freeze does not always dedupe
Eric Wong <normalperson@yhbt.net> wrote:
> Now, I wonder what's causing this to interact badly with
> test-unit...

power_assert/enable_tracepoint_events - this disables all
sorts of MRI optimizations for testing.

For background...
normalperson (Eric Wong)
07:32 AM Bug #13282: opt_str_freeze does not always dedupe
Eric Wong <normalperson@yhbt.net> wrote:
> Now, I wonder what's causing this to interact badly with
> test-unit...

Same test with minitest (5.10.1) + ruby 2.5.0dev r57744 works fine:

require 'minitest/autorun'
class TestString ...
normalperson (Eric Wong)
07:32 AM Bug #13282: opt_str_freeze does not always dedupe
normalperson@yhbt.net wrote:
> Testing with some old installs I had around, 2.1.9p490 seems fine,

Too Bad I'm Wrong.

It's seems to be only tickled by the gemification of test-unit
in 2.2. Using the test-unit gem with 2.1 still ...
normalperson (Eric Wong)
01:57 AM Bug #13282 (Rejected): opt_str_freeze does not always dedupe
Attached is the same test extracted from test/ruby/test_optimization.rb
but it fails in a standalone context. Not sure why...
It's not a new breakage in trunk, either.
Testing with some old installs I had around, 2.1.9p490 seems ...
normalperson (Eric Wong)
01:46 AM Bug #13279 (Closed): Math.log10 accuracy regression
Applied in changeset r57779.
----------
math.c: more accuracy
* math.c (math_log10): calculate log10(2) for more accuracy.
[ruby-core:79907] [Bug #13279]
nobu (Nobuyoshi Nakada)
01:46 AM Revision 01fb6694 (git): math.c: more accuracy
* math.c (math_log10): calculate log10(2) for more accuracy.
[ruby-core:79907] [Bug #13279]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:07 AM Bug #13270: IRB hangs when printing "\e]"
Nobuyoshi Nakada wrote:
> What terminal emulator are you using, the standard `Terminal.app`?
I'm using iTerm 3.0.14.
And on Terminal.app (v2.7.1 (387)) I get
~~~
> ...
il
>> puts "\e["
nil
~~~
(notice the first "n" mis...
domaio (Dorian M)
12:15 AM Feature #13278 (Third Party's Issue): Rubygems Command Reference added to repo
Please request to the upstream. nobu (Nobuyoshi Nakada)

03/04/2017

08:08 PM Revision 3ca1cbec (git): string.c: [DOC] fix doc formatting for String#==, #===
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e stomar (Marcus Stollsteimer)
08:02 PM Revision b637593a (git): rdoc for String class
* lib/unicode_normalize.rb: [DOC] prevent a comment from
showing up in the class documentation for String.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
stomar (Marcus Stollsteimer)
07:52 PM Bug #13281 (Closed): [DOC] OptionParser docs leak into class documentation of Object
Applied in changeset r57775.
----------
nodoc OptParse
* lib/optparse.rb: [DOC] nodoc OptParse, introduced with r46126,
to avoid leaking of its documentation (OptionParser's docs) into
the class documentation of Object. [ruby-core...
stomar (Marcus Stollsteimer)
06:44 PM Bug #13281 (Closed): [DOC] OptionParser docs leak into class documentation of Object
Since r46126 [Feature #9864], where OptParse was added as an alias for OptionParser, the complete class documentation for OptionParser leaks into the class documentation for Object.
This affects docs since 2.2:
* https://docs.ruby-...
stomar (Marcus Stollsteimer)
07:52 PM Revision a8fca126 (git): * 2017-03-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:52 PM Revision e9d6c671 (git): nodoc OptParse
* lib/optparse.rb: [DOC] nodoc OptParse, introduced with r46126,
to avoid leaking of its documentation (OptionParser's docs) into
the class documentation of Object. [ruby-core:79909] [Bug #13281]
git-svn-id: svn+ssh://ci.ruby-lang....
stomar (Marcus Stollsteimer)
06:59 PM Feature #13263: Add companion integer nth-root method to recent Integer#isqrt
It would be really helpful if people produce empirical results of actual coded
examples of techniques, to establish their efficacies.
**Math may suggest theoretical possibilities, but engineering determines their feasibility.**
I'...
jzakiya (Jabari Zakiya)
06:15 PM Bug #13280 (Rejected): net/ftp: Putbinaryfile (on Windows) requires blocksize equal to file size
I searched this issue list (for Descriptions including `ftp`), but didn't find this problem discussed.
Recently, in the process of developing a new program, I invoked `putbinaryfile` (in passive mode) on a large file (about 1.3 megaby...
MarkDBlackwell (Mark D Blackwell)
05:18 PM Bug #13279 (Closed): Math.log10 accuracy regression
I've notice a degradation in the precision of Math.log10 in Ruby 2.4 with respect to 2.1:
~~~
2.1.2 :136 > Math.log10 10**1000
=> 1000.0
2.4.0 :009 > Math.log10 10**1000
=> 999.9999999999999
~~~
The problem has been introd...
jgoizueta (Javier Goizueta)
04:30 PM Feature #13278 (Third Party's Issue): Rubygems Command Reference added to repo
After working with Ruby documentation for while, there's only one file I'd really like to see added to the repo --
[RubyGems 2.6.10 Command Reference](https://msp-greg.github.io/ruby_trunk/rubygems/file.command-reference.html)
Coul...
MSP-Greg (Greg L)
02:44 PM Revision f01836cb (git): compile.c: operand size check
* compile.c (ibf_load_code): raise an exception on invalid operand
size. should not use assert() to validate incoming data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:37 PM Revision 37102f6b (git): compile.c: memory leak
* compile.c (iseq_set_sequence): fix potential memory leaks on an
invalid instruction sequence.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:21 PM Revision 8f2b1b67 (git): compile.c: fix invalid label message
* compile.c (validate_label): fix invalid label message.
registered labels are Symbols, not IDs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:26 PM Bug #9989 (Closed): Docs give wrong information for sort block return values
Fixed with r51859 (Array) and r57770 (Enumerable). stomar (Marcus Stollsteimer)
01:13 PM Revision b4baeb5a (git): documentation for sort methods
* array.c: [DOC] fix grammar in Array#sort, #sort!, #sort_by!,
move references below the code example, add a missing reference.
* enum.c: [DOC] fix grammar in Enumerable#sort, #sort_by.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trun...
stomar (Marcus Stollsteimer)
01:12 PM Revision 453199c4 (git): enum.c: documentation for Enumerable#sort_by
* enum.c: [DOC] improve structure of docs for Enumerable#sort_by,
adopt explanation of the comparison block from Array#sort_by,
drop mention of 1.8, fix typos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57770 b2dd03c8-39d4-4d...
stomar (Marcus Stollsteimer)
05:13 AM Revision 1ec80572 (git): readline.c: fix type
* ext/readline/readline.c (getc_body): fix variable type, and
extract _get_osfhandle.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:13 AM Bug #13277 (Closed): Ruby 2.4.0 gem server 2.6.8
People involved with [larskanis/rubyinstaller2](https://github.com/larskanis/rubyinstaller2), a new Windows build system for Ruby based on msys2 packages and mingw, found that `gem server` (v2.6.8) is not working properly in 2.4.0.
On...
MSP-Greg (Greg L)

03/03/2017

10:20 PM Feature #13166: Feature Request: Byte Arrays for Ruby 3
The points Kevin makes are exactly some of the reason I think, **from a users perspective**,
its clearer to provide a separate name and API for this resource.
A normal user will have no knowledge of how the things works under the hoo...
jzakiya (Jabari Zakiya)
01:32 AM Feature #13166: Feature Request: Byte Arrays for Ruby 3
I'm in favor of a separate byte type as well. I think it conveys intent much more clearly, is easier to reason about, is easier to optimize, and is less error-prone.
While an ASCII-8BIT string can do the work, it leads to two use case...
nirvdrum (Kevin Menard)
10:16 PM Bug #13270 (Feedback): IRB hangs when printing "\e]"
What terminal emulator are you using, the standard `Terminal.app`? nobu (Nobuyoshi Nakada)
04:56 PM Bug #13270: IRB hangs when printing "\e]"
Even more information, this is reproducible on ruby -v ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux], but instead of printing out "30m" after CMD+D it prints out nothing. This seems to be a bug within IRB. Interesting, this beh... snood1205 (Eli Sadoff)
04:24 PM Bug #13270 (Open): IRB hangs when printing "\e]"
I can reproduce it on Darwin, so I'm switching it back to open.
My `ruby -v` is `ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-darwin14]`
Also it occurs with `irb -f` but not with `ruby -e`
snood1205 (Eli Sadoff)
12:46 AM Bug #13270 (Feedback): IRB hangs when printing "\e]"
I can't reproduce it on darwin15.
Does it happen without irb, just `ruby -e print "\e]"`?
If only with irb, does it with `irb -f`?
nobu (Nobuyoshi Nakada)
10:09 PM Feature #13263: Add companion integer nth-root method to recent Integer#isqrt
If you get the wrong answer from Newton's, then you are doing it wrong. It may fail to converge, (which seems MOST unlikely in this case) but that is a different matter. But ultimately, there is 0 credibility to benchmarks that show BB... Student (Nathan Zook)
07:46 PM Bug #10403 (Closed): `puts` documentation fix
stomar (Marcus Stollsteimer)
04:33 PM Bug #10403: `puts` documentation fix
`puts` (rb_io_puts) uses `rb_default_rs` ("\n"), which isn't supposed to be customizable from within Ruby code, right? (Different from `$\` = `rb_output_rs`.)
So IMO this is a good improvement and I'll apply the patch.
stomar (Marcus Stollsteimer)
07:39 PM Revision 2e97d5bc (git): * 2017-03-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:39 PM Revision d4e1b7fc (git): io.c: documentation for puts
* io.c: [DOC] clarify that the 'record separator' between
arguments passed to 'puts' is always a newline.
Based on a patch by Mark Amery. [ruby-core:65801] [Misc #10403]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57767 b2dd03...
stomar (Marcus Stollsteimer)
06:32 PM Bug #13276 (Closed): Dir.glob returns empty array when OS has no more file handles (expected exception)
The following terminal session demonstrates how `Dir.glob` returns an empty array when the OS has run out of file handles; whereas `File.new` raises a `Errno::EMFILE` exception.
I would expect `Dir.glob` to fail fast in a similar way ...
floehopper (James Mead)
04:21 PM Feature #13272: Keyword argument to instantiate a subclass of Struct
I agree it is easier to read.
In the other thread, Shyouhei Urabe said that nobody at the developer
meeting was against it (I assume this also includes matz).
So I suppose that this may be implemented eventually.
shevegen (Robert A. Heiler)
04:10 AM Feature #13272 (Closed): Keyword argument to instantiate a subclass of Struct
When we define a subclass of Struct, it take arguments of values of fields when instantiated:
```ruby
ServiceAccount = Struct(:account_name, :full_name, :nickname, :name_invited_by, :twitter_account_name)
a = ServiceAccount.new("tag...
tagomoris (Satoshi Tagomori)
11:59 AM Bug #13275 (Closed): RDoc bug for "Document-method: []"
RDoc doesn't handle Document-method directives for `#[]` correctly. When multiple directives are given, "Document-method: []" shows up as a code block, at the beginning of the docs for the method of the directive before:
```
$ cat do...
stomar (Marcus Stollsteimer)
11:07 AM Bug #13274 (Feedback): Ruby interpreter when using Puma.
nobu (Nobuyoshi Nakada)
11:07 AM Bug #13274 (Rejected): Ruby interpreter when using Puma.
2.2.2 is outdate, does it happen with recent versions? nobu (Nobuyoshi Nakada)
10:17 AM Bug #13274 (Closed): Ruby interpreter when using Puma.
```
=== puma startup: 2017-03-02 09:38:34 +0000 ===
/var/www/redacted_app_name/vendor/gems/ruby/2.2.0/gems/activesupport-5.0.0/lib/active_support/dependencies.rb:458: warning: already initialized constant Stats
/var/www/redacted_app_n...
mikeyxkcd (Mikey S)
11:05 AM Bug #13055 (Feedback): Bug
Does it happen with recent versions? nobu (Nobuyoshi Nakada)
09:27 AM Revision d2e61b41 (git): zlib for mingw
* ext/zlib/extconf.rb: fix building zlib for mingw, and for
cross-compiling.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:45 AM Bug #13273 (Closed): [DOC] Proc#call docs show "Document-method: []" directive
Applied in changeset r57765.
----------
proc.c: documentation for Proc#{call,yield,[]}
* proc.c: [DOC] fix and improve docs for Proc#{call,yield,[]}:
* change order of Document-method directives as workaround for an
RDoc renderi...
stomar (Marcus Stollsteimer)
08:32 AM Bug #13273 (Closed): [DOC] Proc#call docs show "Document-method: []" directive
The documentation for Proc#call displays one of its Document-method directives as a code block:
```
$ ri Proc.call
------------------------------------------------------------------------------
prc.call(params,...) -> obj
--...
stomar (Marcus Stollsteimer)
08:45 AM Revision bf5b0c49 (git): proc.c: documentation for Proc#{call,yield,[]}
* proc.c: [DOC] fix and improve docs for Proc#{call,yield,[]}:
* change order of Document-method directives as workaround for an
RDoc rendering problem where the documentation for Proc#call displays
a "Document-method: []" cod...
stomar (Marcus Stollsteimer)
08:40 AM Feature #12901: Anonymous functions without scope lookup overhead
Benoit Daloze wrote:
> Shyouhei Urabe wrote:
> ...
True. There are two ways to tackle this problem:
1. add a new construct that does not capture variables outside of a given block.
2. just prohibit obtaining bindings; make lambdas...
shyouhei (Shyouhei Urabe)
06:22 AM Revision 3a520ace (git): MINIRUBY for cross-compling
* template/configure-ext.mk.tmpl (EXTMK_ARGS): add MINIRUBY for
cross-compling, which is used in extmk.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:18 AM Revision 83f76f46 (git): fix for mingw64
* util.c: define MINGW_HAS_SECURE_API for qsort_s on recent
mingw64.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:51 AM Bug #13267 (Closed): ruby 2.4.0 i686-w64-mingw32 + boost compilation error
Applied in changeset r57762.
----------
broken mingw
* configure.in: check whether frexp and modf are broken.
* include/ruby/win32.h (frexp, modf): ignore bad declarations when
compiling as C++. [ruby-core:79859] [Bug #13267]
nobu (Nobuyoshi Nakada)
04:51 AM Revision 85ac60cf (git): broken mingw
* configure.in: check whether frexp and modf are broken.
* include/ruby/win32.h (frexp, modf): ignore bad declarations when
compiling as C++. [ruby-core:79859] [Bug #13267]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57762 b2d...
nobu (Nobuyoshi Nakada)

03/02/2017

11:36 PM Revision 2f3ff53f (git): [DOC] update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
11:33 PM Revision b7336a24 (git): * 2017-03-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:33 PM Revision d8cee4ff (git): refine a warning message.
The "n" option for regexp, /.../n, is historical.
It doesn't mean the regexp works as binary match since Ruby 1.9.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
09:38 PM Bug #13271 (Closed): Clarifications on refinement spec
Consider the following code:
~~~ruby
class Foo
def foo
"Foo#foo"
end
def bar
"Foo#bar"
end
end
class Bar < Foo
def foo
"Bar#foo -> "+super
end
def bar
"Bar#bar -> "+super
end
end
modu...
Gondolin (Damien Robert)
08:22 PM Bug #13270: IRB hangs when printing "\e]"
Is this darwin-specific? It appears to work fine on my linux system here.
ruby 2.4.0p0 (2016-12-24 revision 57164) [i686-linux]
shevegen (Robert A. Heiler)
08:19 PM Bug #13270 (Rejected): IRB hangs when printing "\e]"
Steps to reproduce:
- `irb`
- `print "\e]"`
- Or: `puts "\e["`
- try CMD+C, nothing happens
- try CMD+D, prints "30m"
Expected behavior:
- just prints "30m" (that's what `pry` does)
Ruby versions tried:
- ruby 2.3.3p22...
domaio (Dorian M)
03:41 PM Bug #13269 (Closed): test/readline/test_readline.rb and mingw
When running test-all on a mingw build, [`test_readline.rb`](https://github.com/ruby/ruby/blob/trunk/test/readline/test_readline.rb) generates failures and errors. Several of the errors are due to the `with_temp_stdio` method in `test_r... MSP-Greg (Greg L)
03:08 PM Feature #13257: Symbol#singleton_class should be undef
Is that a use case where you need a method for checking without allocating a singleton class?
As I read it diagonally, it looks like you are always accessing and using the singleton class when an object has one.
knu (Akinori MUSHA)
11:47 AM Feature #13257: Symbol#singleton_class should be undef
After chat with narse, I found that what I really want is the list of classes and modules on method search path of objects (nearly equal to `obj.singleton_class.ancestors`).
If I can get it without creating/allocating singleton classes,...
tagomoris (Satoshi Tagomori)
11:34 AM Feature #13257: Symbol#singleton_class should be undef
My motivation is to know whether there is an class/module in ancestors or not.
I needed it at this patch: https://github.com/msgpack/msgpack-ruby/pull/132/files
The feature implemented in this patch serialize/deserialize objects in a...
tagomoris (Satoshi Tagomori)
11:16 AM Feature #13257: Symbol#singleton_class should be undef
What's the motivation behind this? You cannot tell if an object has no singleton class just because it doesn't define or respond to #singleton_class anyway. BasicObject is an exception, and I could imagine certain kinds of objects (for... knu (Akinori MUSHA)
10:13 AM Feature #13257: Symbol#singleton_class should be undef
I understood that `#respond_to?` doesn't matter in fact.
What I really want is to undef `Symbol#singleton_class` (and Integer, Float too).
tagomoris (Satoshi Tagomori)
09:27 AM Feature #13257 (Feedback): Symbol#singleton_class should be undef
Fundamentally, `#respond_to?` is a method to check method existence. The class Symbol does have `#singleton_class` so that it's natural for it to return `true`, even though `#singleton_class` always fails.
It seems you want to check t...
matz (Yukihiro Matsumoto)
02:56 PM Bug #7976: TracePoint call is at call point, not call site
I recently found this behaviour while attempting to build a gem that outputs the full call graph for our Rails application.
Using TracePoint, we can capture all calls/returns with the object the method is invoked upon, but finding th...
jahfer (Jahfer Husain)
01:01 PM Bug #10125 (Closed): Array#sort and #sort! documentation issue
stomar (Marcus Stollsteimer)
01:00 PM Bug #10125: Array#sort and #sort! documentation issue
Closing, fixed with r51859. stomar (Marcus Stollsteimer)
10:49 AM Bug #12099 (Closed): Documentation for Proc#call and Proc#[] missing from Ruby-Doc.Org.
Closing, this should have been solved with #12332. stomar (Marcus Stollsteimer)
10:44 AM Feature #12901: Anonymous functions without scope lookup overhead
To come back to the main topic of this issue,
I think having some syntax support for a non-capturing lambda
can be a useful feature in Ruby, but should not be for performance reasons.
It should be a design tool.
If a lambda/proc do...
Eregon (Benoit Daloze)
10:30 AM Feature #12901: Anonymous functions without scope lookup overhead
Koichi Sasada wrote:
> I haven't read discussion details, but some optimizations eliminate
> ...
No, that's the important part, proper deoptimization *must* be able to restore
local variables. It can do so how it wants, but typically...
Eregon (Benoit Daloze)
03:08 AM Feature #12901: Anonymous functions without scope lookup overhead
On 2017/03/01 5:47, eregontp@gmail.com wrote:
> It is possible with deoptimization though.
> An optimizer might assume that a block does not call binding and in case it does, deoptimize.

I haven't read discussion details, but some ...
ko1 (Koichi Sasada)
01:53 AM Feature #12901: Anonymous functions without scope lookup overhead
Benoit Daloze wrote:
> > now, should what be visible from the obtained binding? Should we re-calculate the optimized-out variables?
> ...
This (recomputation) sounds practically very difficult to me, if not impossible. Much easier to...
shyouhei (Shyouhei Urabe)
10:43 AM Bug #9701 (Closed): RDoc description for `String#<<` and `String#concat`
Closing, because:
* in 2.1, 2.2, 2.3, the example code shows uses of both `#<<` and `#concat`,
* since 2.4, they are not aliases any more (`#concat` now accepts multiple arguments).
stomar (Marcus Stollsteimer)
10:32 AM Bug #13268 (Closed): [DOC] Restore docs for String#<<
Applied in changeset r57758.
----------
string.c: restore documentation for String#<<
* string.c: [DOC] restore documentation for String#<<
which became undocumented with r56021; fix a typo.
[ruby-core:79865] [Bug #13268]
stomar (Marcus Stollsteimer)
10:23 AM Bug #13268 (Closed): [DOC] Restore docs for String#<<
Since r56021 (Feature #12333), `String#<<` is not documented; the patch fixes this.
A backport should only be needed for 2.4.
stomar (Marcus Stollsteimer)
10:31 AM Revision a698d997 (git): string.c: restore documentation for String#<<
* string.c: [DOC] restore documentation for String#<<
which became undocumented with r56021; fix a typo.
[ruby-core:79865] [Bug #13268]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
stomar (Marcus Stollsteimer)
09:01 AM Bug #13267: ruby 2.4.0 i686-w64-mingw32 + boost compilation error
When compiling the same program, with the same libraries for linux, this issue does not arise. ntzrmtthihu777 (Marty Plummer)
08:33 AM Bug #13267 (Closed): ruby 2.4.0 i686-w64-mingw32 + boost compilation error
When building https://github.com/Ancurio/mkxp for windows (via i686-w64-mingw32), the following build error occurs:
```
In file included from /usr/i686-w64-mingw32/include/ruby-2.4.0/ruby/defines.h:243:0,
from /usr/...
ntzrmtthihu777 (Marty Plummer)
08:06 AM Feature #13166: Feature Request: Byte Arrays for Ruby 3
Jabari Zakiya wrote:
> An **Array8** is an array and a **String** a string.
I think I understand what you mean but in Ruby, classes tend not be split when they share same backends. For instance Array class can also be used as stacks...
shyouhei (Shyouhei Urabe)
06:08 AM Bug #13266 (Rejected): Slicing in array producing wrong results
> Additionally, an empty array is returned when the starting index for
an element range is at the end of the array.
nobu (Nobuyoshi Nakada)
04:35 AM Bug #13266 (Rejected): Slicing in array producing wrong results
```
even_nums = [2,4,6,8,10]
2.3.1 :007 > even_nums[5,0]
=> []
# it must return nil as index is out of bound when slicing
# it may be due to the code written in ruby.c
=begin
if (argc == 2) {
if (SYMBOL_P(argv[0])) {
...
aman@ruby (Aman Puri)
04:56 AM Feature #13179: Deep Hash Update Method
This is possible in perl:
```
use strict;
use warnings;
use Data::Dumper qw(Dumper);
my %hash = qw();
$hash{q}{w}{e}{r}{t} = 'y';
warn(Dumper(\%hash));
```
From perl's POV it seems ruby lacks this feature.
shyouhei (Shyouhei Urabe)
04:54 AM Revision 033c4a08 (git): test: use RbConfig::Limits
* test/lib/envutil.rb: rbconfig/sizeof may not be available when
cross-compiling. use RbConfig::Limits instead of calculating
limits of Fixnum with hard-coded CHAR_BIT.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57757 b2dd03...
nobu (Nobuyoshi Nakada)
04:54 AM Revision 6e0967ec (git): fix for cross-compiling
* common.mk (test-rubyspec): add dependency for cross-compiling.
* defs/gmake.mk: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:21 AM Feature #13245: [PATCH] reject inter-thread TLS modification
How about we allow some inter-thread TLS operations, but not others?

Maybe:

Allowed:

+ reading values
+ updating value of existing keys (maybe)

Disallowed:

- setting value to a new key

In other words, the Allowed stuf...
normalperson (Eric Wong)
01:14 AM Bug #12834: `prepend` getting prepended even if it already exists in the ancestors chain
I feel like this is a bug, and should be fixed. Prepending the same thing multiple times should be a warning IMHO. I'm not even sure what situation this is useful.
```
2.4.0 :001 > module M
2.4.0 :002?> end
=> nil
2.4.0 :003 >...
ioquatix (Samuel Williams)

03/01/2017

10:54 PM Feature #13263: Add companion integer nth-root method to recent Integer#isqrt
Actually, this **bbm** version is generally a smidgen faster than the original, especially for perfect roots.
```
class Integer
def irootn3(n) # binary bit method (bbm) for nth root
return nil if self < 0 && n.even?
ra...
jzakiya (Jabari Zakiya)
09:08 PM Feature #13263: Add companion integer nth-root method to recent Integer#isqrt
Further testing shows Newton's method is sensitive to its implementation as you take larger roots.
Shown below are test results that show the **irootn1** Newton's implementation starts to give incorrect (smaller)
results past a certa...
jzakiya (Jabari Zakiya)
02:46 AM Feature #13263: Add companion integer nth-root method to recent Integer#isqrt
Jabari Zakiya wrote:
> This will enhance Ruby's use even more in fields like number theory, advanced math, cryptography,
> ...
I'm not immediately against this but can I ask you when is this method useful? Because being amateur, I don...
shyouhei (Shyouhei Urabe)
08:42 PM Feature #12735 (Feedback): TCP Server documentation improvement
Julien BONNET wrote:
> Between version 2.0.0 and 2.3.1, documentation has shrunk a lot.
Could you please be more specific about which parts are missing?
I can not see big differences:
* http://ruby-doc.org/stdlib-2.0.0/libdoc/soc...
stomar (Marcus Stollsteimer)
07:59 PM Revision 745f4dd5 (git): struct.c: improve rdoc for Struct
* struct.c: [DOC] improve examples for ::new, improve #dig example,
simplify #select example, use consistent style for return values,
fix typos and example code style, remove duplicate cross reference.
git-svn-id: svn+ssh://ci.ruby-...
stomar (Marcus Stollsteimer)
07:57 PM Revision 9386e511 (git): * 2017-03-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:57 PM Revision 8b71e253 (git): hash.c: [DOC] fix book title in example
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e stomar (Marcus Stollsteimer)
02:41 PM Feature #13265 (Rejected): TracePoint for basic operation redefinition

Add TracePoint for basic operation redefinition.

This infrequent event can have an outsized performance impact by eliminating a lot of the optimization that exists in the Ruby interpreter.

In order to know when these sor...
magaudet (Matthew Gaudet)
02:00 PM Bug #13264 (Closed): Binding#irb does not work in context of frozen object
This works as expected (starts IRB):
```
$ ruby -r irb -e '"".instance_eval{ binding.irb }'
```
This throws an error:
```
$ ruby -r irb -e '"".freeze.instance_eval{ binding.irb }'
```
```
/home/jan/.rvm/rubies/ruby-2.4.0...
rbjl (Jan Lelis)
11:39 AM Bug #12774: TkDND cannot handle text/plain, text/uri-list type well
There is no Issue tracker in https://github.com/ruby/tk
Where should we report bugs related with tk?
basex (Filipe Goncalves)
11:37 AM Revision c1fd1b11 (git): lib/e2mmap.rb: Specify frozen_string_literal: true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
11:11 AM Feature #12901: Anonymous functions without scope lookup overhead
Shyouhei Urabe wrote:
> Let me ask a (possibly stupid) question. Consider this scenario:
> ...
I assume you mean a binding via Kernel#binding.
I think that's the general contract of deoptimization: it must not be observable from the ...
Eregon (Benoit Daloze)
01:56 AM Feature #12901: Anonymous functions without scope lookup overhead
Math Ieu wrote:
> Shyouhei Urabe wrote:
> ...
I (broadly) agree with you. Extending or modifying the language to make optimization possible is a great idea. Matz said in comment #9 that Koichi has one of such ideas. Let us see what ...
shyouhei (Shyouhei Urabe)
01:42 AM Feature #12901: Anonymous functions without scope lookup overhead
Benoit Daloze wrote:
> Shyouhei Urabe wrote:
> ...
Let me ask a (possibly stupid) question. Consider this scenario:
1. create a proc.
2. it gets optimized.
3. lots of calculations goes on without variable captures.
4. obtain a b...
shyouhei (Shyouhei Urabe)
10:17 AM Revision 97e946f7 (git): fileutils.rb: improve rdoc for FileUtils
* lib/fileutils.rb: [DOC] fix invalid example code to make it
syntax highlighted, fix rdoc for lists, nodoc internal methods,
avoid a dangerous example.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57751 b2dd03c8-39d4-4d8f-98ff...
stomar (Marcus Stollsteimer)
10:15 AM Revision 3acda398 (git): openssl: avoid segfault during running tests on Ubuntu trusty
Import the commit 6693a549d673 ("test/test_pkey_ec: do not use dummy 0
order", 2017-02-03) from upstream. Hopefully this will fix the segfault
on RubyCI icc16-x64:
http://rubyci.org/logs/rubyci.s3.amazonaws.com/icc-x64/ruby-trunk/log/...
rhenium (Kazuki Yamaguchi)
08:58 AM Misc #12365 (Closed): [DOC] Suggestion to change FileUtils.compare_file
stomar (Marcus Stollsteimer)
08:57 AM Misc #12365: [DOC] Suggestion to change FileUtils.compare_file
I used `/dev/urandom` in the example because `/dev/random` might block. stomar (Marcus Stollsteimer)
08:54 AM Revision 79570422 (git): fileutils.rb: improve docs for FileUtils.compare_file
* lib/fileutils.rb (compare_file): [DOC] clarify documentation
by avoiding confusing return value of "maybe false".
[ruby-core:75431] [Misc #12365] reported by Robert A. Heiler.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57749...
stomar (Marcus Stollsteimer)
08:11 AM Feature #13252: C API for creating strings without copying
shyouhei@ruby-lang.org wrote:
> Nobuyoshi Nakada wrote:
> > It is not guaranteed that `ruby_xfree` can free a pointer allocated by other than `ruby_xmalloc` and so on.
> > You can't mix bare `malloc` and `ruby_xfree`.
>
> Agreed. ...
normalperson (Eric Wong)
04:12 AM Feature #13252: C API for creating strings without copying
Nobuyoshi Nakada wrote:
> It is not guaranteed that `ruby_xfree` can free a pointer allocated by other than `ruby_xmalloc` and so on.
> ...
Agreed. I heard that DLLs can have their own malloc() implementation on Windows. Even on POSI...
shyouhei (Shyouhei Urabe)
07:53 AM Revision 3cef1048 (git): common.mk: separate clean-ext
* common.mk (clean-ext): separate clean-up of makefiles and
timestamps, and clean-up of subdirectories under ext and gems.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:39 AM Feature #13110: Byte-based operations for String
Yukihiro Matsumoto wrote:
> Are byteindex and byteoffset good enough for your use-case?
I also want bytesplice, but its priority is lower.
> ...
byteoffsets may be better, but we should consider consistency with MatchData#offset.
shugo (Shugo Maeda)
04:57 AM Feature #13110: Byte-based operations for String
Are byteindex and byteoffset good enough for your use-case?
Should byteoffset be byteoffsets since it returns both edge?
Matz.
matz (Yukihiro Matsumoto)
07:00 AM Feature #12515: Create "Boolean" superclass of TrueClass / FalseClass
Shyouhei Urabe wrote:
> Radovan Smitala wrote:
> ...
Just deprecated warnings for Fixnum and Bignum :) And that is OK. Rails is biggest project/framework/tool in Ruby community. It takes some time to be fully compatible, not only for I...
r.smitala (Radovan Smitala)
03:29 AM Feature #12515: Create "Boolean" superclass of TrueClass / FalseClass
Radovan Smitala wrote:
> There should be some circumstances where implemented Boolean class should be problematic. But many of existed gems just reopen class and life goes on. Rails 5 isn't till now compatible with Ruby 2.4 with introdu...
shyouhei (Shyouhei Urabe)
05:44 AM Revision 9da18855 (git): zlib: clean zlib
* ext/zlib/extconf.rb: clean zlib libraries generated in the
place.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:16 AM Revision c0be1c7b (git): * 2017-03-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:16 AM Revision d1a506ec (git): deduplicate strings sooner at load and compile
We can use rb_fstring_cstr in some places to prevent an
intermediate object from being created before deduplication
via rb_fstring.
* compile.c (iseq_compile_each): use rb_fstring_cstr
(rb_insns_name_array): ditto
* load.c (rb_load_in...
Eric Wong
 

Also available in: Atom