Project

General

Profile

Activity

From 02/20/2017 to 02/26/2017

02/26/2017

09:07 PM Bug #13196: Improve keyword argument errors when non-keyword arguments given
Olivier Lacan wrote:
> ```diff
> + if (req_key_num > 0) {
> + VALUE mesg = rb_attr_get(exc, idMesg);
> + ...
stomar (Marcus Stollsteimer)
03:40 AM Bug #13196: Improve keyword argument errors when non-keyword arguments given
Although I find Nobu's patch excellent, it still bothers me that the exception says `expected 0`.
Keyword argumen...
olivierlacan (Olivier Lacan)
03:26 AM Bug #13196: Improve keyword argument errors when non-keyword arguments given
Marcus Stollsteimer wrote:
> wrong number of arguments (given 1, expected 0; missing keywords: code, foo)
I agree...
olivierlacan (Olivier Lacan)
08:59 PM Feature #13201: Gemify dbm
Since this is JRuby implementation of dbm, I believe it shouldn't be big big deal to get that name available .... vo.x (Vit Ondruch)
02:22 PM Feature #13201: Gemify dbm
Perhaps the rubygems.org folks can de-register that gem, due to two reasons - ruby stdlib and core should have a high... shevegen (Robert A. Heiler)
12:59 PM Bug #13251: [DOC] Add rdoc for Integer.sqrt
Yay, first commit...!
nobu, thanks for your patience; please give feedback if I should have done anything differen...
stomar (Marcus Stollsteimer)
12:51 PM Bug #13251 (Closed): [DOC] Add rdoc for Integer.sqrt
Applied in changeset r57719.
----------
Add rdoc for Integer.sqrt
* numeric.c (rb_int_s_isqrt): [DOC] add rdoc for ...
stomar (Marcus Stollsteimer)
09:48 AM Bug #13251: [DOC] Add rdoc for Integer.sqrt
I see, the usage is another issue in any rate.
The doc seems nice, thank you.
nobu (Nobuyoshi Nakada)
08:53 AM Bug #13251: [DOC] Add rdoc for Integer.sqrt
For the specific patch I tried to follow the style in the current file. Generally, I see both, and it seems `+` is mo... stomar (Marcus Stollsteimer)
12:51 PM Revision c25ee9f1 (git): Add rdoc for Integer.sqrt
* numeric.c (rb_int_s_isqrt): [DOC] add rdoc for Integer.sqrt.
[ruby-core:79762] [Bug #13251]
git-svn-id: svn+ssh:...
stomar (Marcus Stollsteimer)
09:44 AM Bug #13255 (Feedback): segmentation fault
Please show the Crash Report log file.
P.S. 2.1.8 is outdated and 2.1 will reach the EOL soon.
nobu (Nobuyoshi Nakada)
07:51 AM Bug #13255 (Closed): segmentation fault
```
/apollo/env/SDETools/ruby2.1.x/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55: [BUG] Segmentation fault a...
ajit1989 (Ajit kumar)
09:33 AM Revision 5c5d8944 (git): node.c: fix NODE_OP_ASGN1
* node.c (dump_node): fix a typo, index and rvalue. fix
NODE_OP_ASGN1 operator to nd_mid. [Fix GH-1528]
Author: ...
nobu (Nobuyoshi Nakada)
03:39 AM Bug #13254 (Closed): Dir.exist? などで「ディスクがありません」ダイアログが表示される
## 概要
windows 10で使用しています。
sdカードリーダーにメディアを差していない状態で、同ドライブに Dir.exist? などを行うと、次のメッセージダイアログが表示されスクリプトの実行が一時停止します。
「キャ...
Anonymous
12:33 AM Bug #13253 (Closed): SIGSEGV in parser_heredoc_dedent()
Applied in changeset r57717.
----------
parse.y: indent at invalid identifier
* parse.y (parser_heredoc_identifier)...
nobu (Nobuyoshi Nakada)
12:33 AM Revision 6c0f395c (git): parse.y: indent at invalid identifier
* parse.y (parser_heredoc_identifier): set indent only when valid
identifier, not to dedent non-existent contents l...
nobu (Nobuyoshi Nakada)

02/25/2017

11:51 PM Bug #13251: [DOC] Add rdoc for Integer.sqrt
Argument names should be marked up using `+arg+`, or `_arg_`?
Although I've thought it would be `_` and there are su...
nobu (Nobuyoshi Nakada)
08:54 PM Bug #13251: [DOC] Add rdoc for Integer.sqrt
FYI, here my suggestion (will commit soon, but need to read some HowTo's on how exactly that works, first):
``` ...
stomar (Marcus Stollsteimer)
09:03 AM Bug #13251: [DOC] Add rdoc for Integer.sqrt
Two clarifying questions:
Is it confirmed that using Floats will only give wrong results that are too large? _Upda...
stomar (Marcus Stollsteimer)
06:52 AM Bug #13251 (Assigned): [DOC] Add rdoc for Integer.sqrt
Thank you, feel free to add it.
I was writing it too, but you'll make better one.
This is my draft, FYI.
```di...
nobu (Nobuyoshi Nakada)
10:28 PM Revision e35907a4 (git): * 2017-02-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:28 PM Revision 8feb9779 (git): ext/win32ole/win32ole.c(ole_initialize): avoid to fail in Windows nano server.
This is experimental. Thanks to mwrock, Ethan Brown.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57715 b2dd03...
suke (Masaki Suketa)
08:53 PM Feature #13077: [PATCH] introduce String#fstring method
Eric Wong wrote:
> No. There is existing code which assumes #freeze always returns
> the same object as its call...
Eregon (Benoit Daloze)
02:11 AM Feature #13077: [PATCH] introduce String#fstring method
[email protected] wrote:
> Eric Wong wrote:
> > Anyways, committed as r57698
>
> This should have a NEWS entr...
normalperson (Eric Wong)
07:18 PM Bug #13249: Access modifiers don't have an effect inside class methods in Ruby >= 2.3
The examples confuse me a bit.
Does private actually make sense on any class-method / singleton method?
I under...
shevegen (Robert A. Heiler)
07:11 AM Bug #13249: Access modifiers don't have an effect inside class methods in Ruby >= 2.3
Well, ability to declare `private` methods inside class methods seems strange given that it's not possible to declare... abotalov (Andrei Botalov)
05:38 PM Bug #13242: SIGSEGV in rb_bigzero_p()
Nobuyoshi Nakada wrote:
> This is not vulnerability.
Right, I'm too fast ;-)
fumfel (Kamil Frankowicz)
11:19 AM Bug #13253 (Closed): SIGSEGV in parser_heredoc_dedent()
After some fuzz testing I found a crashing test case.
Git HEAD: fbd5cda6aad6db01bbca3d893a9970314a1bd52c
To rep...
fumfel (Kamil Frankowicz)
07:27 AM Revision 57322251 (git): bignum.c: use predefined IDs
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:44 AM Feature #13250 (Closed): Initial estimate for Integer#sqrt should be improved
Applied in changeset r57713.
----------
bignum.c: improve estimate
* bignum.c (estimate_initial_sqrt, rb_big_isqrt)...
nobu (Nobuyoshi Nakada)
12:42 AM Feature #13250: Initial estimate for Integer#sqrt should be improved
It would be nice if you backported this code into point releases of older versions too. jzakiya (Jabari Zakiya)
05:44 AM Revision 4dcad25b (git): bignum.c: improve estimate
* bignum.c (estimate_initial_sqrt, rb_big_isqrt): improve initial
estimate by sqrt(). [ruby-core:79754] [Feature #...
nobu (Nobuyoshi Nakada)
05:27 AM Bug #13165 (Rejected): Typographical Error in Refinements docs 2.1.1
We never backport any bug fixes to 2.1 except security fixes as announce before:
https://www.ruby-lang.org/en/ne...
shugo (Shugo Maeda)
04:13 AM Revision dab7aa22 (git): bignum.c (bary_zero_p): constify
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:25 AM Bug #13239: Bug with "special exceptions" when they are thrown in context of a rescue clause.
Yes, that appears to be the case, thanks you. nvashchenko (Nikolay Vashchenko)
02:59 AM Revision 982a448e (git): .gdbinit: rp_bignum
* .gdbinit (rp_bignum): print bignum from higher digits.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57711 b2d...
nobu (Nobuyoshi Nakada)
02:31 AM Revision 15ef28a9 (git): NEWS: document String#-@ change
* test/ruby/test_string.rb (test_uplus_minus): test deduplication
[ruby-core:79747] [Feature #13077]
git-svn-id: s...
Eric Wong
01:01 AM Feature #13252: C API for creating strings without copying
It is not guaranteed that `ruby_xfree` can free a pointer allocated by other than `ruby_xmalloc` and so on.
You can'...
nobu (Nobuyoshi Nakada)
12:19 AM Feature #13252 (Assigned): C API for creating strings without copying
Hi,
I'd like to have a C API that allows me to create String objects without copying the underlying `char *`. Bas...
tenderlovemaking (Aaron Patterson)

02/24/2017

11:52 PM Bug #13251 (Closed): [DOC] Add rdoc for Integer.sqrt
Nobu, I would offer to add documentation for Integer.sqrt, feature #13219 (r57705).
I'd like to prepare a patch an...
stomar (Marcus Stollsteimer)
11:37 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
I disagree, but as long as the API explicitly states what's happens for this case a user can adapt accordingly jzakiya (Jabari Zakiya)
11:28 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Jabari Zakiya wrote:
> I noticed in the other squareroot methods they raise an error for ``n < 0``
> whereas my ver...
stomar (Marcus Stollsteimer)
08:28 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
I want to raise for consideration, as a user, the **API behavior** for these methods.
I noticed in the other squar...
jzakiya (Jabari Zakiya)
09:11 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Jabari Zakiya wrote:
> Oh I see where at least part of the error comes from.
>
> In this
>
> ```
> def invers...
Student (Nathan Zook)
08:36 AM Feature #13219 (Closed): bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Applied in changeset r57705.
----------
Integer.sqrt [Feature #13219]
nobu (Nobuyoshi Nakada)
07:50 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
It is now clear that Halley's method requires five multiplies, not the four previously reported by wikipedia. This m... Student (Nathan Zook)
06:47 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Marcus Stollsteimer wrote:
> Jabari Zakiya wrote:
> > I showed earlier I found that **Math.sqrt(n).to_i** starts gi...
Student (Nathan Zook)
06:39 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Jabari Zakiya wrote:
> Oh I see where at least part of the error comes from.
>
> In this
>
> ```
> def invers...
Student (Nathan Zook)
06:33 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Jabari Zakiya wrote:
> I showed earlier I found that **Math.sqrt(n).to_i** starts given incorrect
> results for n >...
stomar (Marcus Stollsteimer)
04:57 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Oh I see where at least part of the error comes from.
In this
```
def inverse_newton_sqrt(n)
raise if n < 0...
jzakiya (Jabari Zakiya)
04:35 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Hey Nathan, Great Work!
I'm seeing an error in **inverse_newton_sqrt(n)** being one-off.
```
2.4.0 :224 > n = ...
jzakiya (Jabari Zakiya)
01:57 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
All of the algorithms are now at https://github.com/NathanZook/ruby_sqrt. Hope that's okay. Student (Nathan Zook)
01:05 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Following the discussion from the second answer at http://cs.stackexchange.com/questions/37596/arbitrary-precision-in... Student (Nathan Zook)
11:31 PM Revision 4edac7f5 (git): * 2017-02-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:31 PM Revision a67c94cf (git): extract initial sqrt estimation [Feature #13219]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
11:23 PM Feature #13166: Feature Request: Byte Arrays for Ruby 3
Would your methods String#(get|set)bit be separate than an Array of bytes, or the name for them?
I think it would ...
jzakiya (Jabari Zakiya)
11:20 PM Bug #13249: Access modifiers don't have an effect inside class methods in Ruby >= 2.3
Hmmm, a class singleton method should have its own visibility per invocations? nobu (Nobuyoshi Nakada)
07:13 PM Bug #13249 (Closed): Access modifiers don't have an effect inside class methods in Ruby >= 2.3
Simple example:
~~~ ruby
class C
def self.foo
private
def bar
end
end
end
C.foo
C.new.bar...
abotalov (Andrei Botalov)
10:29 PM Feature #13250: Initial estimate for Integer#sqrt should be improved
Nathan Zook wrote:
> The initial estimator used is `1 << (b-1)/2 | n >> (b+1)/2`. For this style of estimator, `1 <...
nobu (Nobuyoshi Nakada)
09:36 PM Feature #13250: Initial estimate for Integer#sqrt should be improved
Think about this some more, the fastest solution would be to actually to a N-R round in the floating point unit as we... Student (Nathan Zook)
08:13 PM Feature #13250 (Closed): Initial estimate for Integer#sqrt should be improved
r57705, by Nobu, in response to issue #13219, added Integer#sqrt. The initial estimator used is `1 << (b-1)/2 | n >>... Student (Nathan Zook)
04:24 PM Bug #13062: 2.4.0-rc1 BigDecimal regression - to_d inconsistent with other numeric classes
Is this going to be backported to 2.4? rafaelfranca (Rafael França)
11:33 AM Revision a0acd82f (git): securerandom: fix up r57384
SecureRandom.gen_random_openssl still refers to Random.raw_seed, which
is renamed to Random.urandom by r57384. [Bug ...
rhenium (Kazuki Yamaguchi)
10:44 AM Feature #13245: [PATCH] reject inter-thread TLS modification
FWIW concurrent-ruby has ThreadLocalVar which does not allow access from another thread:
http://ruby-concurrency.git...
Eregon (Benoit Daloze)
10:40 AM Feature #13245: [PATCH] reject inter-thread TLS modification
I strongly agree.
Since the API is `Thread#[key]` and not `Thread[key]` (meaning it should only be possible to get...
Eregon (Benoit Daloze)
10:28 AM Feature #13077: [PATCH] introduce String#fstring method
Eric Wong wrote:
> Anyways, committed as r57698
This should have a NEWS entry and tests since it changes the sem...
Eregon (Benoit Daloze)
01:05 AM Feature #13077: [PATCH] introduce String#fstring method
[email protected] wrote:
> Nobuyoshi Nakada wrote:
> > Shyouhei Urabe wrote:
> > > Am I correct that rb_vm_f...
normalperson (Eric Wong)
01:01 AM Feature #13077 (Closed): [PATCH] introduce String#fstring method
Applied in changeset r57698.
----------
string.c (str_uminus): deduplicate strings
This exposes the rb_fstring inte...
Anonymous
09:39 AM Revision 8c440619 (git): Integer.sqrt argument check
* numeric.c (rb_int_s_isqrt): check if the argument is an integer.
[Feature #13219]
git-svn-id: svn+ssh://ci.ruby-...
nobu (Nobuyoshi Nakada)
08:36 AM Revision bdd6b995 (git): Integer.sqrt [Feature #13219]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:14 AM Bug #13242: SIGSEGV in rb_bigzero_p()
This is not vulnerability.
nobu (Nobuyoshi Nakada)
07:55 AM Feature #13248 (Closed): Gemify gdbm
Applied in changeset r57704.
----------
Update maintainers and standard library docs for GDBM.
[Feature #13248][r...
hsbt (Hiroshi SHIBATA)
06:40 AM Feature #13248 (Closed): Gemify gdbm
This issue is tracking for gem release of GDBM module. hsbt (Hiroshi SHIBATA)
07:55 AM Revision 395ad27e (git): Update maintainers and standard library docs for GDBM.
[Feature #13248][ruby-core:79742]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57704 b2dd03c8-39d4-4d8f-98ff-82...
hsbt (Hiroshi SHIBATA)
07:39 AM Revision df3e22ce (git): Update rdoc-5.1.0
* Details of changes are following url.
https://github.com/rdoc/rdoc/blob/master/History.rdoc#510--2017-02-24
gi...
hsbt (Hiroshi SHIBATA)
06:50 AM Revision 0f081edf (git): gem name should be the downcase.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
06:48 AM Revision a3697dda (git): Added initial gemspec for GDBM module.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
06:32 AM Revision e795dfe2 (git): Update psych-2.2.3
* It's only typo fix for CRuby.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57700 b2dd03c8-39d4-4d8f-98ff-823f...
hsbt (Hiroshi SHIBATA)
04:11 AM Feature #13156: In-tree copy of ruby/spec
On 2017/02/22 19:29, [email protected] wrote:
> Issue #13156 has been updated by Benoit Daloze.

> Nevertheless,...
duerst (Martin Dürst)
02:00 AM Bug #13247 (Closed): ruby won't build on macOS 10.6 SDK — mach_task_basic_info_data_t not available
hsbt (Hiroshi SHIBATA)
01:47 AM Bug #13247: ruby won't build on macOS 10.6 SDK — mach_task_basic_info_data_t not available
This issue was fixed in [r57180](https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?revision=57180&view=revision). Please c... PvpDJgHP (William Thomas NELSON)
01:01 AM Revision 207914bc (git): * 2017-02-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:01 AM Revision 4e90dcc9 (git): string.c (str_uminus): deduplicate strings
This exposes the rb_fstring internal function to return a
deduped and frozen string when a non-frozen string is given...
Eric Wong

02/23/2017

08:19 PM Bug #13104: mathn.rb affects Rational literals
Seems to be triggered by `ext/mathn/rational/rational.c` and `ext/mathn/complex/complex.c`, which activate "canonical... stomar (Marcus Stollsteimer)
07:39 PM Bug #13232: Comparing BigDecimal to float or Rational fails sometimes
I didn't realize there was a Github repo for BigDecimal when opening this issue. May I repost it there as a pull requ... romuloceccon (Rômulo Ceccon)
07:21 PM Bug #13247 (Closed): ruby won't build on macOS 10.6 SDK — mach_task_basic_info_data_t not available
[mach_task_basic_info_data_t](https://developer.apple.com/reference/kernel/mach_task_basic_info_data_t) is available ... PvpDJgHP (William Thomas NELSON)
04:49 PM Feature #12515: Create "Boolean" superclass of TrueClass / FalseClass
You have in some cases true.
There should be some circumstances where implemented Boolean class should be problema...
r.smitala (Radovan Smitala)
03:09 PM Feature #13246 (Closed): [REQUEST] Allow to make rb_compile_warn a hard error
Ruby starting in 2.4 offers such an API:
~~~
def Warning.warn(str); raise str; end
~~~
This handles all inter...
jeremyevans0 (Jeremy Evans)
01:23 PM Feature #13246 (Closed): [REQUEST] Allow to make rb_compile_warn a hard error
~~~ bash
$ cat dup.rb
puts({ one: 1, one: 2})
$ ruby dup.rb
dup.rb:1: warning: key :one is duplicated and overw...
kirs (Kir Shatrov)
02:34 PM Bug #13242: SIGSEGV in rb_bigzero_p()
~~This is CVE-2017-6212.~~ fumfel (Kamil Frankowicz)
09:43 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Sorry to spam like this, but I really have to disagree regarding some of the implications drawn for Math.sqrt(n). Th... Student (Nathan Zook)
09:33 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
~~~
# Core Algorithm by Paul Zimmerman, article entitled
# Karatsuba Square Root
# https://hal.inria.fr/inria-0007...
Student (Nathan Zook)
08:15 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
First, please, PLEASE do not credit me with the optimized bit-by-bit method. I'm a formally trained mathematician, a... Student (Nathan Zook)
07:21 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Another reason this needs to change is because **Math.sqrt(n).to_i**
has an upper limit before crashing.
Here's s...
jzakiya (Jabari Zakiya)
06:31 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
So the clear winner, and new champeen is...**`newtons_fast`**, at least for squareroots.
Just goes to show, don't ...
jzakiya (Jabari Zakiya)
06:08 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Thanks Akira for that list.
So, too small integer squareroots potentially can cause miss finding primes in some ap...
jzakiya (Jabari Zakiya)
05:31 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
I did a simplifications in **`isqrt1`**, replacing all the '+'s with '|' operations,
leaving only the math subtracti...
jzakiya (Jabari Zakiya)
05:18 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Jabari Zakiya wrote:
> In the library file **prime.rb** is the method **Integer#prime?**.
>
> ```
> class Int...
akr (Akira Tanaka)
04:34 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Newton seems to be faster than bbm, if the initial x is closer to √n.
when I use x=1<<((n.bit_length+1)/2) for the i...
tompng (tomoya ishida)
03:28 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Ah, these are good and interesting results Nathan. Thanks for posting.
It would be interesting to see how both faire...
jzakiya (Jabari Zakiya)
09:20 AM Feature #13077: [PATCH] introduce String#fstring method
Nobuyoshi Nakada wrote:
> Shyouhei Urabe wrote:
> > Am I correct that rb_vm_fstring_table() is never GCed?
>
> T...
shyouhei (Shyouhei Urabe)
01:00 AM Feature #13077: [PATCH] introduce String#fstring method
Shyouhei Urabe wrote:
> Am I correct that rb_vm_fstring_table() is never GCed?
That table is not a GC-root, and r...
nobu (Nobuyoshi Nakada)
12:51 AM Feature #13077: [PATCH] introduce String#fstring method
A bit of security consideration:
Am I correct that rb_vm_fstring_table() is never GCed? If so feeding user-genera...
shyouhei (Shyouhei Urabe)
08:43 AM Feature #12968: Allow default value via block for Integer(), Float() and Rational()
We looked at this issue at yesterday's developer meeting.
People there argued that explicit keyword argument is mu...
shyouhei (Shyouhei Urabe)
07:14 AM Revision 6323c8b8 (git): appveyor.yaml: matrix
* appveyor.yaml: use build matrix for platforms and compilers.
resolve hard coded paths from these variables.
git-...
nobu (Nobuyoshi Nakada)
06:55 AM Revision 6feeda59 (git): bignum.c: NAIVE_MUL_DIGITS
* bignum.c (NAIVE_MUL_DIGITS): share threshold for bary_sq_fast
between bary_mul and bigsq.
git-svn-id: svn+ssh://...
nobu (Nobuyoshi Nakada)
05:43 AM Feature #13245: [PATCH] reject inter-thread TLS modification
Shyouhei Urabe wrote:
> Preventing such access should harm no one.
I'm ticketing this as a feature request becaus...
shyouhei (Shyouhei Urabe)
05:35 AM Feature #13245 (Open): [PATCH] reject inter-thread TLS modification
Thread local and fiber local storages are by nature expected to be
visible from within the thread / fiber and not fr...
shyouhei (Shyouhei Urabe)
04:10 AM Revision 532bbd4e (git): fix circular dependencies
* defs/gmake.mk (TEST_DEPENDS): remove targets expanded as
TEST_TARGETS, to get rid of circular dependencies.
git-...
nobu (Nobuyoshi Nakada)
03:51 AM Feature #13244 (Rejected): stdlib/Logger: add option: level
It has been added since 2.4. nobu (Nobuyoshi Nakada)
03:22 AM Feature #13244 (Rejected): stdlib/Logger: add option: level
I'd like to suggest
to enhance the interface of stdlib/logger
The #new method should allow for an option to set t...
eike.rb (Eike Dierks)
02:40 AM Revision c9447082 (git): Revert r57690 except for read_nonblock
https://github.com/ruby/ruby/pull/1527#issuecomment-281867551
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5769...
nobu (Nobuyoshi Nakada)
02:11 AM Revision d0cf19d9 (git): [DOC] mark up literals
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:00 AM Revision 95a476c8 (git): [DOC] keyword argument _exception_
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:54 AM Revision 53b4bf31 (git): socket.rb: [DOC] fix nonblock methods
* ext/socket/lib/socket.rb (BasicSocket#recv_nonblock): fix
exception class and symbol.
* ext/socket/lib/socket.rb...
nobu (Nobuyoshi Nakada)
01:15 AM Revision d5eef030 (git): [DOC] {read,write}_nonblock with exception: false
Update docs to reflect EOF behavior change of read_nonblock and
write_nonblock when using `exception: false`.
[Fix G...
nobu (Nobuyoshi Nakada)
01:04 AM Bug #13243 (Feedback): Test suite failure
nobu (Nobuyoshi Nakada)
01:03 AM Bug #13243: Test suite failure
2.3.0 is outdated, and please attach the whole log.
STDERR output can be redirected to a file by using `2> error.log`.
nobu (Nobuyoshi Nakada)
12:56 AM Bug #13243 (Closed): Test suite failure
After some testing I encountered this bug.
Any help would be appreciated.
cblair32 (Cameron Blair)

02/22/2017

11:49 PM Revision 2e2063fe (git): rational.c: infinity in power
* rational.c (nurat_expt): return 0 due to overflow.
[ruby-core:79686] [Bug #13242]:
git-svn-id: svn+ssh://ci.ruby...
nobu (Nobuyoshi Nakada)
11:33 PM Bug #13242: SIGSEGV in rb_bigzero_p()
2.3 and earlier hung up before SEGV. nobu (Nobuyoshi Nakada)
11:28 PM Bug #13242 (Closed): SIGSEGV in rb_bigzero_p()
Applied in changeset r57688.
----------
rational.c: infinity in power
* rational.c (nurat_expt): return Infinity du...
nobu (Nobuyoshi Nakada)
01:31 PM Bug #13242 (Closed): SIGSEGV in rb_bigzero_p()
After some fuzz testing I found a crashing test case.
Git HEAD: fbd5cda6aad6db01bbca3d893a9970314a1bd52c
To rep...
fumfel (Kamil Frankowicz)
11:28 PM Revision 06010b2b (git): rational.c: infinity in power
* rational.c (nurat_expt): return Infinity due to overflow.
[ruby-core:79686] [Bug #13242]:
git-svn-id: svn+ssh://...
nobu (Nobuyoshi Nakada)
10:40 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
~~~
def isqrt(n)
r = 0
o = 1 << ((n.bit_length >> 1 ) << 1)
while o != 0 do
t = r + o
...
Student (Nathan Zook)
09:05 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Hey that's great! I'd love to help work on this too, though
I'm not much of a C programmer. I can help with testing ...
jzakiya (Jabari Zakiya)
07:05 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Jabari Zakiya wrote:
> Let me attempt to address some of the issues/questions that have recently been presented.
> ...
Student (Nathan Zook)
06:40 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
No, I am sorry for any confusion.
My initial concern was for accurately computing exact integer squareroots
for m...
jzakiya (Jabari Zakiya)
05:40 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Matz, akr:
sorry for the noise, it's of course completely clear. I only didn't read close enough and missed the sw...
stomar (Marcus Stollsteimer)
05:36 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Let me attempt to address some of the issues/questions that have recently been presented.
Excuse me if any of this r...
jzakiya (Jabari Zakiya)
05:17 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Nobuyoshi Nakada wrote:
> Yukihiro Matsumoto wrote:
> > It's OK to add the functionality. Is `Integer.sqrt(n)` OK f...
Student (Nathan Zook)
04:52 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Marcus, probably you are confusing `Integer.sqrt()` and `Integer#sqrt()`.
The former, you call `Integer.sqrt(4) # =>...
matz (Yukihiro Matsumoto)
04:17 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Marcus Stollsteimer wrote:
> I think `Integer.sqrt` or `Numeric.sqrt` is extremely problematic. I guess everybody wo...
akr (Akira Tanaka)
03:54 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
For square roots, `isqrt` seems to be an option with some(?) spread, see https://en.wikipedia.org/wiki/Integer_square... stomar (Marcus Stollsteimer)
02:32 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
_Edit: please ignore (misunderstanding)_
~~I think `Integer.sqrt` or `Numeric.sqrt` is extremely problematic. I gu...
stomar (Marcus Stollsteimer)
11:27 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
using Newton's method might be another good way to implement it.
~~~ruby
def intsqrt_newton(n)
raise if n<0
...
tompng (tomoya ishida)
10:41 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Yukihiro Matsumoto wrote:
> It's OK to add the functionality. Is `Integer.sqrt(n)` OK for you?
When `n` is not an...
nobu (Nobuyoshi Nakada)
09:50 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
It's OK to add the functionality. Is `Integer.sqrt(n)` OK for you?
Matz.
matz (Yukihiro Matsumoto)
06:53 PM Feature #13026: Public singleton methods
Yukihiro Matsumoto wrote:
> Interesting. Could you tell us expected use-case?
>
> Matz.
Hi Matz. Thank you for...
subtileos (Daniel Ferreira)
06:48 AM Feature #13026: Public singleton methods
Interesting. Could you tell us expected use-case?
Matz.
matz (Yukihiro Matsumoto)
05:21 PM Feature #13241: Method(s) to access Unicode properties for characters/strings
Jan Lelis wrote:
> I think, it should be always plural methods which return a list of properties used in the
> st...
shevegen (Robert A. Heiler)
09:22 AM Feature #13241: Method(s) to access Unicode properties for characters/strings
I think prefixing such methods with `unicode_` would be no problem. While it's a little verbose, it still reads good:... rbjl (Jan Lelis)
09:17 AM Feature #13241: Method(s) to access Unicode properties for characters/strings
Great idea, I'd love to have such capabilities built into the language!
I've recently build this for scripts, bloc...
rbjl (Jan Lelis)
09:06 AM Feature #13241: Method(s) to access Unicode properties for characters/strings
I am neutral about the proposal, but the method names are too generic. It should be prefixed by `unicode_` for exampl... matz (Yukihiro Matsumoto)
08:02 AM Feature #13241 (Open): Method(s) to access Unicode properties for characters/strings
[This is currently an exploratory proposal.]
Onigmo allows Unicode properties in regular expressions. With this, i...
duerst (Martin Dürst)
04:17 PM Bug #13237: Behavior for #dup and #clone on Rational/Complex/BigDecimal differs from Integer/Float
Will this be backported to 2.4? (IOW is this 2.4.0 bug or 2.5 new feature?) matsuda (Akira Matsuda)
02:02 AM Bug #13237 (Closed): Behavior for #dup and #clone on Rational/Complex/BigDecimal differs from Integer/Float
Applied in changeset r57682.
----------
numeric.c: Numeric#clone and #dup
* numeric.c (num_clone, num_dup): no long...
nobu (Nobuyoshi Nakada)
03:46 PM Bug #13233 (Closed): [DOC] Fix rdoc for Rational
Applied in changeset r57686.
----------
rational.c: fix rdoc
* rational.c: [DOC] fix wrong indentations and comment...
Anonymous
03:46 PM Revision 3f6aeba6 (git): * 2017-02-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:46 PM Revision 3f1d2dd8 (git): rational.c: fix rdoc
* rational.c: [DOC] fix wrong indentations and comment out some lines
in code examples to make them valid Ruby code...
znz (Kazuhiro NISHIYAMA)
11:25 AM Feature #12602: Add NilClass#to_d
Hi, are there any updates or concerns about this feature? Domon (Chun-wei Kuo)
10:36 AM Bug #13234: Infinite recursion (stack overflow) in parse_char_class()
Thank you again for the useful information. Will consider using the fuzzer and hopefully integrate into our test sui... shyouhei (Shyouhei Urabe)
09:49 AM Bug #13234: Infinite recursion (stack overflow) in parse_char_class()
This is CVE-2017-6181. fumfel (Kamil Frankowicz)
10:29 AM Feature #13156: In-tree copy of ruby/spec
Akira Tanaka wrote:
> I recommend test-all over rubyspec because
> it is difficult to change developer's behavior.
...
Eregon (Benoit Daloze)
10:06 AM Feature #13156: In-tree copy of ruby/spec
Yukihiro Matsumoto wrote:
> I have several concerns:
>
> * If `ruby/spec` tries to be a **common** executable spe...
Eregon (Benoit Daloze)
09:34 AM Feature #13156 (Feedback): In-tree copy of ruby/spec
I have several concerns:
* If `ruby/spec` tries to be a **common** executable specification of the language, it se...
matz (Yukihiro Matsumoto)
08:37 AM Feature #13156: In-tree copy of ruby/spec
I recommend test-all over rubyspec because
it is difficult to change developer's behavior.
I.e. it is difficult to ...
akr (Akira Tanaka)
09:41 AM Feature #13166: Feature Request: Byte Arrays for Ruby 3
I think String#getbit and String#setbit is useful. akr (Akira Tanaka)
09:18 AM Feature #13166: Feature Request: Byte Arrays for Ruby 3
Should we use narray/numarray instead? Maybe we can make either of them a bundled gem.
Matz.
matz (Yukihiro Matsumoto)
09:41 AM Feature #13077: [PATCH] introduce String#fstring method
[email protected] wrote:
> For the time being, let us make `-@` to call `rb_fstring`.
> If users want more descrip...
normalperson (Eric Wong)
07:34 AM Feature #13077: [PATCH] introduce String#fstring method
For the time being, let us make `-@` to call `rb_fstring`.
If users want more descriptive name, let's discuss later....
matz (Yukihiro Matsumoto)
09:36 AM Feature #13097: Deprecate Socket.gethostbyaddr and Socket.gethostbyname
I agree with Eric. Documentation deprecation is preferable.
Matz.
matz (Yukihiro Matsumoto)
08:50 AM Feature #8661 (Closed): Add option to print backtrace in reverse order (stack frames first and error last)
Applied in changeset ruby-trunk:r57685.
----------
eval_error.c: backstrace in reverse order
* eval_error.c (rb_thr...
nobu (Nobuyoshi Nakada)
08:50 AM Revision 5318154f (git): eval_error.c: backstrace in reverse order
* eval_error.c (rb_threadptr_error_print): print backtrace and
error message in reverse order if STDERR is unchange...
nobu (Nobuyoshi Nakada)
08:01 AM Feature #13240 (Open): Change Unicode property implementation in Onigmo from inversion lists to direct lookup
For Unicode property checks (e.g. `/\p{hiragana}/`), Onigmo is currently using inversion lists. See enc/unicode/9.0.0... duerst (Martin Dürst)
07:40 AM Feature #12508: Integer#mod_pow
Go ahead and add `pow(a,b)`.
Matz.
matz (Yukihiro Matsumoto)
07:39 AM Feature #13083: Regexp#{match,match?} with a nil argument are deprecated and will raise a TypeError in Ruby 3.0
Those methods (but `=~`) should consistently raise exceptions.
Matz.
matz (Yukihiro Matsumoto)
07:31 AM Bug #13024 (Closed): Confusing error message matching a non-ASCII string with ASCII-regex
Applied in changeset r57684.
----------
refine warning message for binary regexp /.../n.
Reported by Herwin W. [ru...
akr (Akira Tanaka)
07:31 AM Revision dbd4c4a7 (git): refine warning message for binary regexp /.../n.
Reported by Herwin W. [ruby-core:78592] [Bug #13024]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57684 b2dd...
akr (Akira Tanaka)
07:16 AM Feature #13009 (Closed): Implement fetch for Thread.current
Applied in changeset r57683.
----------
Thread#fetch
* thread.c (rb_thread_fetch): add new method Thread#fetch.
[...
nobu (Nobuyoshi Nakada)
06:55 AM Feature #13009: Implement fetch for Thread.current
OK.
Matz
matz (Yukihiro Matsumoto)
07:16 AM Revision 7d54b4ea (git): Thread#fetch
* thread.c (rb_thread_fetch): add new method Thread#fetch.
[Feature #13009]
git-svn-id: svn+ssh://ci.ruby-lang.org...
nobu (Nobuyoshi Nakada)
07:09 AM Feature #13047 (Assigned): Use String literal instead of `String#+` for multiline pretty-printing of multiline strings
shyouhei (Shyouhei Urabe)
07:06 AM Feature #9846 (Rejected): Regexp#to_regexp
Is there any concrete use-case? Consistency is not the best reason.
This proposal leads against Duck typing.
Matz.
matz (Yukihiro Matsumoto)
06:59 AM Feature #13045 (Rejected): Passing a Hash with String keys as keyword arguments
Rejected. **method to convert string-keys into symbol-keys** or `transform_keys` may be good ideas.
Matz.
matz (Yukihiro Matsumoto)
06:17 AM Feature #13133 (Assigned): TracePoint: Add event type for constant access
shyouhei (Shyouhei Urabe)
05:55 AM Feature #10912 (Assigned): Add method(s) to IPAddr for determining whether an address is link local
shyouhei (Shyouhei Urabe)
05:54 AM Feature #12996: Optimize Range#===
Sounds reasonable. We'd like to see how big incompatibility is.
Matz.
matz (Yukihiro Matsumoto)
05:49 AM Feature #12995 (Rejected): Conditional expression taking a receiver outside the condition
Interesting proposal but this changes the meaning of `if` and `case` too much.
Matz.
matz (Yukihiro Matsumoto)
05:21 AM Bug #13225: [DOC] expand docs for Date shifting
Agreed. Proceed to usual committer admission.
Matz.
matz (Yukihiro Matsumoto)
02:02 AM Revision 31ef3124 (git): numeric.c: Numeric#clone and #dup
* numeric.c (num_clone, num_dup): no longer raises TypeError,
returns the receiver instead as well as Integer and F...
nobu (Nobuyoshi Nakada)
01:55 AM Revision 4096f39d (git): * 2017-02-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:55 AM Revision 80b8ee97 (git): object.c: refactor rb_obj_clone and rb_obj_clone2
* object.c (rb_obj_clone2): extract option for clone, and split by
whether the object is immutable or mutable.
* o...
nobu (Nobuyoshi Nakada)
01:27 AM Bug #13062 (Closed): 2.4.0-rc1 BigDecimal regression - to_d inconsistent with other numeric classes
Fixed in bigdecimal 1.3.1 and ruby trunk. mrkn (Kenta Murata)

02/21/2017

11:21 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
I am confused by your solution in comment #3. By your own report, there is no issue for numbers much larger than a s... Student (Nathan Zook)
06:21 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
You might want to consider the following articles:
https://www.reddit.com/r/algorithms/comments/1zt63v/fast_algorith...
Student (Nathan Zook)
09:07 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
I just noticed this thread. One bit per cycle methods are not fast by modern methods, they are quite slow. I will a... Student (Nathan Zook)
08:45 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
I updated my **roots** rubygem to 2.0.0 to include **iroot2** and **irootn**.
https://rubygems.org/gems/roots
htt...
jzakiya (Jabari Zakiya)
02:27 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Is there many application for this method?
Concrete examples may help to persuade matz.
Another important problem...
akr (Akira Tanaka)
07:11 PM Bug #13152: Numeric parsing differences between ruby <-> crystal
The comparison with other programming languages is kind of interesting, but the main argument IMO for
the implemente...
stomar (Marcus Stollsteimer)
03:35 PM Bug #13238 (Closed): string.c assertion fails after attempting to modify singleton class of a frozen string
nobu (Nobuyoshi Nakada)
02:51 PM Revision f2c5146d (git): object.c: message encoding
* object.c (rb_obj_clone2): preserve encoding in error messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5...
nobu (Nobuyoshi Nakada)
02:42 PM Revision f5faaf7b (git): backward.h: RClassDeprecated
* include/ruby/backward.h (RClassDeprecated): move from
ruby/ruby.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/t...
nobu (Nobuyoshi Nakada)
12:27 PM Bug #13239 (Feedback): Bug with "special exceptions" when they are thrown in context of a rescue clause.
It has been fixed at r57415, I think. nobu (Nobuyoshi Nakada)
06:22 AM Bug #13239: Bug with "special exceptions" when they are thrown in context of a rescue clause.
Oops, wrong link to the ruby fork.
Here's the right one: https://github.com/NickolasVashchenko/ruby/commits/special_...
nvashchenko (Nikolay Vashchenko)
06:19 AM Bug #13239 (Closed): Bug with "special exceptions" when they are thrown in context of a rescue clause.
I've stumbled upon a case when ruby is supposed to throw "IOError: stream closed"(https://github.com/ruby/ruby/blob/t... nvashchenko (Nikolay Vashchenko)
12:09 PM Bug #13236 (Feedback): Ruby segfault
Could you enable debugging? nobu (Nobuyoshi Nakada)
08:18 AM Revision 6699debd (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:18 AM Revision 76c4cca1 (git): add performance counting mechanism for MRI debug/tuning purpose.
* How to enable this feature?
* define USE_DEBUG_COUNTER as 1.
* you can disable to output the result with
RU...
ko1 (Koichi Sasada)
06:16 AM Revision 51de3aa2 (git): backward.h: move deprecated declaration
* include/ruby/backward.h (rb_autoload): move declaration of
deprecated function.
git-svn-id: svn+ssh://ci.ruby-la...
nobu (Nobuyoshi Nakada)
06:16 AM Revision cd0426c0 (git): variable.c: remove deprecated internal feature
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:07 AM Revision f922f1cb (git): error.c: remove deprecated internal features
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:07 AM Revision f4c2b33e (git): complex.c: remove deprecated functions
* complex.c (rb_complex_set_real, rb_complex_set_imag): remove
functions deprecated at 2.2.
git-svn-id: svn+ssh://...
nobu (Nobuyoshi Nakada)
05:17 AM Revision 556a1352 (git): backward.h: 2.2 deprecated features
* include/ruby/backward.h (DECLARE_DEPRECATED_FEATURE): move
features deprecated at 2.2.
git-svn-id: svn+ssh://ci....
nobu (Nobuyoshi Nakada)
05:16 AM Revision bd26c796 (git): internal.h: removed function declaration
* internal.h (rb_compile_error_str): remove declaration of removed
internal function at r54189.
git-svn-id: svn+ss...
nobu (Nobuyoshi Nakada)
01:49 AM Bug #13225 (Assigned): [DOC] expand docs for Date shifting
to Matz
He is the main maintainer of www.r-l.o and sends a lot of patches to ruby core.
I will recommend him to t...
hsbt (Hiroshi SHIBATA)
01:28 AM Revision a9c15229 (git): variable.c: noreturn in GCC
* variable.c (rb_generic_ivar_table): declare as noreturn only in
GCC, which does not err on different attributes.
...
nobu (Nobuyoshi Nakada)

02/20/2017

11:50 PM Bug #13238 (Closed): string.c assertion fails after attempting to modify singleton class of a frozen string
Hi,
The following code causes an assertion failure in 2.3.3. Create two files, `bug.rb` and `not_frozen.rb`:
bu...
owst (Owen Stephens)
08:56 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Here's the README.md writeup on the general integer roots algorithm.
At the cpu level, all these bit operations ...
jzakiya (Jabari Zakiya)
07:02 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
No, no, I didn't take it as a negative comment per se,
I just hadn't tried to use **BigDecimal** before, so I just w...
jzakiya (Jabari Zakiya)
04:49 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
@Jabari Note that my comments were not meant as arguments against your feature request, I only wanted to point out th... stomar (Marcus Stollsteimer)
05:04 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
```ruby
class Integer
def irootn(n)
return nil if self < 0 && n.even?
raise "root n is < 2 or not an In...
jzakiya (Jabari Zakiya)
04:27 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
One if the really nice things about Ruby is its intent to make users/programmers happy,
and to adhere to the "princi...
jzakiya (Jabari Zakiya)
08:52 PM Bug #13237 (Closed): Behavior for #dup and #clone on Rational/Complex/BigDecimal differs from Integer/Float
Since the implementation of feature #12979, #dup and #clone on Integer and Float do not raise a `TypeError` anymore, ... stomar (Marcus Stollsteimer)
07:12 PM Revision 9291d3d3 (git): * 2017-02-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:12 PM Revision 56c38a64 (git): remove harmful declaration.
* variable.c (gen_ivtbl_get): declaration conflict on VC++.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57667...
ko1 (Koichi Sasada)
07:00 PM Bug #13236: Ruby segfault
Some bugs are just like that - they exist somewhere out there but they are hard
to find or reproduce. Almost real he...
shevegen (Robert A. Heiler)
05:20 PM Bug #13236: Ruby segfault
Damien Robert wrote:
> The code is in https://github.com/DamienRobert/drain
> You can run 'rake test' to (sometime,...
Gondolin (Damien Robert)
05:11 PM Bug #13236 (Closed): Ruby segfault
I have a program that segfault under certain conditions. It does not happen often, so it is hard to get the segfault.... Gondolin (Damien Robert)
04:43 PM Bug #13234: Infinite recursion (stack overflow) in parse_char_class()
Shyouhei Urabe wrote:
> Kamil Frankowicz wrote:
> > After some fuzz testing I found a crashing test case.
>
> Gr...
fumfel (Kamil Frankowicz)
09:46 AM Bug #13234 (Closed): Infinite recursion (stack overflow) in parse_char_class()
Applied in changeset r57660.
----------
regparse.c: initialize return values
* regparse.c (parse_char_class): initi...
nobu (Nobuyoshi Nakada)
08:55 AM Bug #13234: Infinite recursion (stack overflow) in parse_char_class()
Kamil Frankowicz wrote:
> After some fuzz testing I found a crashing test case.
Great... I can reproduce this. ...
shyouhei (Shyouhei Urabe)
07:38 AM Bug #13234 (Closed): Infinite recursion (stack overflow) in parse_char_class()
After some fuzz testing I found a crashing test case.
Git HEAD: fbd5cda6aad6db01bbca3d893a9970314a1bd52c
To rep...
fumfel (Kamil Frankowicz)
03:43 PM Bug #13229: [DOC] Add document title for extension.rdoc
Thanks for the translation, kazu! stomar (Marcus Stollsteimer)
12:20 PM Bug #13229 (Closed): [DOC] Add document title for extension.rdoc
Applied in changeset r57665.
----------
extension.rdoc: add document title
* doc/extension.rdoc, doc/extension.ja.r...
Anonymous
02:44 PM Bug #13235 (Closed): [BUG] Segmentation fault at 0x00000000000038
-- Control frame information -----------------------------------------------
c:0129 p:0045 s:0826 e:000823 METHOD /U...
derickhoganpimenta (Dérick Hogan PImenta)
02:40 PM Revision 2235695c (git): compile.c: Fix a typo
* compile.c (compile_branch_condition): NODE_LIT is
always true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk...
yui-knk (Kaneko Yuichiro)
12:20 PM Revision 7010dc6f (git): extension.rdoc: add document title
* doc/extension.rdoc, doc/extension.ja.rdoc: [DOC]
add title and adapt subheading levels.
* doc/extension.rdoc: [D...
znz (Kazuhiro NISHIYAMA)
10:59 AM Revision 11eba07b (git): Supress warning: function might be candidate for attribute 'noreturn'
GCC7 shows it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
10:59 AM Revision c022a097 (git): Cast as VALUE to suppress type warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
10:59 AM Revision 1220638f (git): They are enum yytokentype, need cast
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
10:10 AM Revision a9925e22 (git): assertions.rb: ignore exit in child
* test/lib/test/unit/assertions.rb (assert_separately): ignore
SystemExit. unsuccessful exit still fails an assert...
nobu (Nobuyoshi Nakada)
09:46 AM Revision ea940cc4 (git): regparse.c: initialize return values
* regparse.c (parse_char_class): initialize return values before
depth limit check. returned values will be freed ...
nobu (Nobuyoshi Nakada)
05:35 AM Revision f28de8c0 (git): parse.y: new_qcall
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:35 AM Revision 35ac7cc0 (git): parse.y: ID2VAL
* parse.y (ID2VAL): split from TOKEN2VAL.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57658 b2dd03c8-39d4-4d8f...
nobu (Nobuyoshi Nakada)
05:35 AM Misc #13230: Better Do ... while structure
Probably it equals:
```cpp
unsigned b=0;
do {
cout<<a[b];
if (!(++b<10)) break;
...
nobu (Nobuyoshi Nakada)
05:11 AM Misc #13230 (Feedback): Better Do ... while structure
I'm sorry but I have to say I don't understand how the construct works. Looking at the original site there is an exa... shyouhei (Shyouhei Urabe)
05:08 AM Bug #13233: [DOC] Fix rdoc for Rational
Sorry, forgot the attachment. stomar (Marcus Stollsteimer)
02:53 AM Feature #13221: [PATCH] gems/bundled_gems: add "curses" RubyGem
Hiroshi SHIBATA wrote:
> I have no opinion this.
>
> >nalsh, shugo
>
> How do you think this?
I'm neutral,...
shugo (Shugo Maeda)
12:13 AM Feature #13221: [PATCH] gems/bundled_gems: add "curses" RubyGem
I have no opinion this.
>nalsh, shugo
How do you think this?
hsbt (Hiroshi SHIBATA)
02:16 AM Revision 6649e4c5 (git): * 2017-02-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:16 AM Revision fca3cf66 (git): envutil.rb: diagnostic_reports for ruby-runner
* test/lib/envutil.rb (EnvUtil.diagnostic_reports): ruby-runner
execs "RUBY_INSTALL_NAME" file, so search by that n...
nobu (Nobuyoshi Nakada)
 

Also available in: Atom