Project

General

Profile

Activity

From 02/15/2017 to 02/21/2017

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)

02/19/2017

11:41 PM Feature #13221: [PATCH] gems/bundled_gems: add "curses" RubyGem
> I'm concerned about the increasing tendency to unbundle core functionality (`curses`, `tcl/tk`, ...; and possibly ... subtileos (Daniel Ferreira)
11:19 PM Bug #13233 (Feedback): [DOC] Fix rdoc for Rational
No patch? nobu (Nobuyoshi Nakada)
07:38 PM Bug #13233 (Closed): [DOC] Fix rdoc for Rational
```
rational.c: fix rdoc
* rational.c: [DOC] fix wrong indentations and comment out some lines
in code example...
stomar (Marcus Stollsteimer)
08:34 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
To clarify further the limitations of using Float here:
``` ruby
n = 10**35
Math.sqrt(n).to_i # =...
stomar (Marcus Stollsteimer)
07:30 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
After further testing I found the same errors when using **`Math.sqrt(n).to_i`** with
large number when using `(n**(...
jzakiya (Jabari Zakiya)
01:05 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
To be clear, I am not saying **`Math.sqrt`** has a bug in it.
As stated, it produces a floating point result, which ...
jzakiya (Jabari Zakiya)
09:42 AM Bug #13232 (Assigned): Comparing BigDecimal to float or Rational fails sometimes
Seems correct to me. nobu (Nobuyoshi Nakada)
03:51 AM Bug #13232 (Closed): Comparing BigDecimal to float or Rational fails sometimes
Under very special cases trying to compare a BigDecimal to a float or Rational will give an unexpected result:
...
romuloceccon (Rômulo Ceccon)
01:52 AM Bug #13231 (Closed): DateTime.strftime("%Z") does not return time zone abbreviation, returns hour and minute offset from UTC with colon
First time here; hope I capture everything.
It appears to me that either the documentation is incorrect or the exp...
thornomad (Damon Timm)
01:29 AM Misc #13230 (Rejected): Better Do ... while structure
I just saw this, and thought I'd pass it along.
http://ncomputers.org/suggestions/do%20while.cpp
```
Do ... wh...
jzakiya (Jabari Zakiya)
01:27 AM Bug #13227 (Closed): Crash when refine subclass method and call super
Applied in changeset r57655.
----------
vm_insnhelper.c: super to module in refinement
* vm_insnhelper.c (vm_call_z...
nobu (Nobuyoshi Nakada)
01:27 AM Revision 4d47e8d9 (git): vm_insnhelper.c: super to module in refinement
* vm_insnhelper.c (vm_call_zsuper): method defined in module in
refinement is not callable as-is. dispatch again.
...
nobu (Nobuyoshi Nakada)
01:12 AM Bug #13228: s[i]=c(assigning a character) for String is slower than Array on Linux
`perf` shows that ruby spent most of the time in `search_nonascii()`.
```
$ perf record ruby -ve 'n=100000; s = "...
wanabe (_ wanabe)

02/18/2017

10:38 PM Revision 7e5140e2 (git): * 2017-02-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:38 PM Revision 9cbe4553 (git): COPYING: expand tabs
* COPYING: expand tabs like as the rest lines. [Fix GH-1526]
Author: Philippe Ombredanne <[email protected]>
g...
nobu (Nobuyoshi Nakada)
10:34 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Robert A. Heiler wrote:
> If it would be a bug, as behaviour, why should `Math.sqrt()` itself not be able
> to deal...
nobu (Nobuyoshi Nakada)
05:06 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
I can not evaluate whether the above is correct or not (not saying that it is not,
I just simply do not know), but I...
shevegen (Robert A. Heiler)
07:05 PM Misc #13072: Current state of date standard library
> date library will be separeted from Ruby repository (stdlib) to date.gem
I think the concept of date (without ti...
stomar (Marcus Stollsteimer)
06:40 PM Feature #13221: [PATCH] gems/bundled_gems: add "curses" RubyGem
_PS. A quote from a recent post (not by me) in ruby-talk:_
> I do not use Ruby anymore when I develop GUI applicat...
stomar (Marcus Stollsteimer)
06:26 PM Feature #13221: [PATCH] gems/bundled_gems: add "curses" RubyGem
I'm concerned about the increasing tendency to unbundle core functionality (`curses`, `tcl/tk`, ...; and possibly soo... stomar (Marcus Stollsteimer)
05:16 PM Feature #13221: [PATCH] gems/bundled_gems: add "curses" RubyGem
Here is the link to when curses was removed:
https://bugs.ruby-lang.org/issues/8584
I guess this is where two...
shevegen (Robert A. Heiler)
05:07 PM Bug #13229: [DOC] Add document title for extension.rdoc
I guess there is no shortage on developers who are able to use written japanese AND written
english. :)
shevegen (Robert A. Heiler)
03:02 PM Bug #13229: [DOC] Add document title for extension.rdoc
The current "title" of the extensions guide is "Basic Knowledge"...
Note that a contribution from a Japanese speak...
stomar (Marcus Stollsteimer)
03:01 PM Bug #13229 (Closed): [DOC] Add document title for extension.rdoc
```
extension.rdoc: add document title
* doc/extension.rdoc, doc/extension.ja.rdoc: [DOC]
add title and adapt ...
stomar (Marcus Stollsteimer)
03:27 PM Bug #13220: Enhance support of Unicode strings manipulation
I tested all cases with normalized strings and they works except this examples:
"١".to_f and other to numeric conv...
r.smitala (Radovan Smitala)
02:59 PM Bug #13220: Enhance support of Unicode strings manipulation
Shyouhei Urabe wrote:
> Radovan Smitala wrote:
> > It's not my blog post. But when i tried some testing cases they ...
r.smitala (Radovan Smitala)
02:37 PM Bug #13228 (Rejected): s[i]=c(assigning a character) for String is slower than Array on Linux
`s[i]=c`(assigning a character) for `String` is slower than for `Array` on Linux.
If I split the `String` to `Arra...
yoshiokatsuneo (Tsuneo Yoshioka)
12:29 PM Bug #13227 (Closed): Crash when refine subclass method and call super
Test script:
test.rb
~~~ ruby
class Parent
end
class Child < Parent
end
module FooBar
refine Paren...
chloerei (Rei Huang)
12:27 PM Bug #13226 (Closed): SIDEKIQ WORKER GETS KILLED
More likely [Bug #12292]. Please reopen if upgrading to Ruby 2.3.3 does not fix.
[Bug #12993] was an issue specifi...
rhenium (Kazuki Yamaguchi)
11:30 AM Bug #13226: SIDEKIQ WORKER GETS KILLED
Maybe [Bug #12993]? nobu (Nobuyoshi Nakada)
11:02 AM Bug #13226 (Closed): SIDEKIQ WORKER GETS KILLED
```
/home/deployer/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/openssl/buffering.rb:322: [BUG] Segmentation fault at 0x007...
thepraveen0207 (Praveen Sah)
08:50 AM Bug #13225 (Closed): [DOC] expand docs for Date shifting
```
ext/date/date_core.c: [DOC] expand docs for Date shifting
* add examples for Date#>> and Date#<< that clarify...
stomar (Marcus Stollsteimer)
05:52 AM Revision fbd5cda6 (git): {lib,test}/cgi: Specify frozen_string_literal: true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
04:23 AM Bug #13222 (Closed): Array#sum inconsistency when init value is non-numeric
Applied in changeset r57651.
----------
array.c: check if numeric
* array.c (finish_exact_sum): add 0 and the initi...
nobu (Nobuyoshi Nakada)
04:23 AM Revision 3203ae53 (git): array.c: check if numeric
* array.c (finish_exact_sum): add 0 and the initial value to check
if the latter is numeric. [ruby-core:79572] [Bu...
nobu (Nobuyoshi Nakada)
03:42 AM Revision ca820606 (git): * 2017-02-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:42 AM Revision 7dccda43 (git): array.c: finish_exact_sum
* array.c (finish_exact_sum): extract duplicate code from
rb_ary_sum.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/...
nobu (Nobuyoshi Nakada)
01:55 AM Bug #13223: `File.join` will segv if File::SEPARATOR and File::Separator are set.
@nobu I went by what the documentation says:
~~~
/*
* call-seq:
* File.join(string, ...) -> string
*...
tenderlovemaking (Aaron Patterson)
01:48 AM Bug #13223: `File.join` will segv if File::SEPARATOR and File::Separator are set.
I doubt that the tests are expected results.
And a similar pattern:
```ruby
$; = " "
$a = nil
alias $; $a
a...
nobu (Nobuyoshi Nakada)

02/17/2017

11:19 PM Feature #13224 (Closed): Add FrozenError as a subclass of RuntimeError
Currently, attempting to modify a frozen object leads to a `RuntimeError` exception. Unfortunately, this means it is... jeremyevans0 (Jeremy Evans)
10:24 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
A new version **`intsqrt3`** is one line shorter, and more intuitive (to me)
but there is a neglible difference in s...
jzakiya (Jabari Zakiya)
05:47 PM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
This works well in my code.
Easier to code and read with accurate results.
```ruby
class Integer
def sqrt_i...
jzakiya (Jabari Zakiya)
04:01 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
I just realized **`class Integer`** has a **`bit_length`** instance_method.
It makes the code a bit simpler, easier ...
jzakiya (Jabari Zakiya)
03:34 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
This is the C version of the algorithm.
I put the part before the start of the **while** loop of the ruby
version ...
jzakiya (Jabari Zakiya)
12:57 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Since this method is designed to operate on integers it would be nice to make it
a **`class Integer`** method, then ...
jzakiya (Jabari Zakiya)
12:32 AM Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
On my 64-bit Linux OS laptop with an I7 cpu, I tested that **`Math.sqrt(n).to_i`** gives correct
answers from `(0..9...
jzakiya (Jabari Zakiya)
06:27 PM Bug #13223 (Closed): `File.join` will segv if File::SEPARATOR and File::Separator are set.
The program below will crash with a segv:
~~~ruby
File.const_set :Separator, "hello"
File.const_set :SEPARATOR, ...
tenderlovemaking (Aaron Patterson)
03:43 PM Bug #13102: Confusing method name: Set#delete?
I was referring to the use of bang [method names](http://ruby-doc.org/core-2.4.0/doc/syntax/methods_rdoc.html#label-M... sos4nt (Stefan Schüßler)
03:34 PM Bug #13102: Confusing method name: Set#delete?
Stefan Schüßler wrote:
> Not really, `Set#delete` also modifies the receiver.
>
> The actual difference is that `...
kaikuchn (Kai Kuchenbecker)
01:31 PM Revision 3d031cea (git): test_fileutils.rb: no broken symlinks on Cygwin
* test/fileutils/test_fileutils.rb (no_broken_symlink): exclude
test using broken symlinks on Cygwin, which are not...
nobu (Nobuyoshi Nakada)
01:31 PM Revision 1b4df625 (git): test_fileutils.rb: fix relative symlink path
* test/fileutils/test_fileutils.rb (test_rm_symlink): fix relative
symlink path, the target should be relative to t...
nobu (Nobuyoshi Nakada)
11:56 AM Feature #13172: Method that yields object to block and returns result
.patch file Nondv (Dmitry Non)
11:23 AM Bug #13220: Enhance support of Unicode strings manipulation
Radovan Smitala, an example for splitting up into subsections could be seen here:
https://bugs.ruby-lang.org/iss...
shevegen (Robert A. Heiler)
08:21 AM Bug #13220: Enhance support of Unicode strings manipulation
Note that these results are in NFD.
It seems to result as expected by using NFC.
nobu (Nobuyoshi Nakada)
07:44 AM Bug #13220: Enhance support of Unicode strings manipulation
Radovan Smitala wrote:
> It's not my blog post. But when i tried some testing cases they were really wrong and unexp...
shyouhei (Shyouhei Urabe)
06:33 AM Bug #13220: Enhance support of Unicode strings manipulation
Yes i know its little bit large issue.
I'm not sure how to handle it and separate problematic parts into content b...
r.smitala (Radovan Smitala)
02:31 AM Bug #13220 (Feedback): Enhance support of Unicode strings manipulation
Can you split this request into several ones? Because what this ticket aims is a bit too large and perhaps vague. I... shyouhei (Shyouhei Urabe)
11:00 AM Bug #11567: Segmentation fault CFUNC :gets
I'm having the same problem. Running the code as it is, I get reproducible crashes with both Ruby 2.3.1 and 2.4.0:
...
nh_cham (Michael Specht)
10:59 AM Bug #13222 (Closed): Array#sum inconsistency when init value is non-numeric
Since Array#sum skips calling plus for `0` https://github.com/ruby/ruby/blob/c85a58d/array.c#L5831-L5832, it doesn't ... matsuda (Akira Matsuda)
10:22 AM Revision c85a58d5 (git): test_fileutils.rb: workaround for Cygwin
* test/fileutils/test_fileutils.rb (root_in_posix): seems Cygwin
has some different conditions for privilege.
git-...
nobu (Nobuyoshi Nakada)
10:22 AM Revision 1ac36ecf (git): test_fileutils.rb: cache distinct UIDs
* test/fileutils/test_fileutils.rb: cache distinct UIDs as
constants at initialization. assume no UIDs will be
a...
nobu (Nobuyoshi Nakada)
05:45 AM Revision 68319db7 (git): * 2017-02-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:45 AM Revision 6877de73 (git): DEPRECATED_INTERNAL_FEATURE
* error.c (ruby_deprecated_internal_feature): renamed, to
explicitly represent deprecation.
* internal.h (DEPRECAT...
nobu (Nobuyoshi Nakada)
12:31 AM Feature #13221 (Closed): [PATCH] gems/bundled_gems: add "curses" RubyGem
This was part of the standard library in Ruby 2.0 and earlier;
and some users may still expect it to be in the stand...
normalperson (Eric Wong)

02/16/2017

10:34 PM Bug #13220 (Feedback): Enhance support of Unicode strings manipulation
Hi,
last days, Starr Horne posted very interesting testing results about manipulation unicode strings in Ruby 2.4....
r.smitala (Radovan Smitala)
10:19 PM Feature #13219 (Closed): bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
In doing a math application using **Math.sqrt(n).to_i** to compute integer squareroots
of integers I started notici...
jzakiya (Jabari Zakiya)
06:52 PM Bug #13215: Cross compiling Ruby Gems uses Build System Linker Options
Thanks. I created a ticket in their tracker: https://github.com/rubygems/rubygems/issues/1840 rkeene (Roy Keene)
07:47 AM Bug #13215: Cross compiling Ruby Gems uses Build System Linker Options
RubyGems is bundled but not a part of Ruby.
The upstream is https://github.com/rubygems/rubygems.
I have never cros...
nobu (Nobuyoshi Nakada)
02:48 PM Revision 14d61a94 (git): variable.c: fatal rb_generic_ivar_table
* variable.c (rb_generic_ivar_table): raise fatal error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57642 b2d...
nobu (Nobuyoshi Nakada)
01:34 PM Bug #13218 (Feedback): testing
Please post the whole message.
And 2.3.0p0 is outdated, try 2.3.3.
nobu (Nobuyoshi Nakada)
12:51 PM Bug #13218 (Rejected): testing
I am following the Rails Tutorial e-book (https://www.railstutorial.org/book/modeling_users). I have reached chap6, w... donchev1 (Aleks Donchev)
11:54 AM Bug #13217: JSON.parse() chokes on the UTF-8 character EM SPACE (U+2003, e2 80 83)
Martin Dürst wrote:
> RFC 7159 defines what's allowed as spaces between data. Please see the 'ws' production at http...
7stud (7 stud)
11:44 AM Bug #13217 (Rejected): JSON.parse() chokes on the UTF-8 character EM SPACE (U+2003, e2 80 83)
RFC 7159 defines what's allowed as spaces between data. Please see the 'ws' production at https://tools.ietf.org/html... duerst (Martin Dürst)
11:29 AM Bug #13217 (Rejected): JSON.parse() chokes on the UTF-8 character EM SPACE (U+2003, e2 80 83)
### Steps to reproduce
No error here:
```
require 'json'
json = %Q{
["a", "b"]
}
obj = JSON.parse(js...
7stud (7 stud)
09:15 AM Revision ccc388d8 (git): use rb_iseq_check() for USE_LAZY_LOAD, too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
08:42 AM Bug #13214 (Closed): FileUtils::mkdir_p creates additional (unrequested) directory on Cygwin
Applied in changeset r57640.
----------
fileutils.rb: do not make root
* lib/fileutils.rb (FileUtils#mkdir_p): no n...
nobu (Nobuyoshi Nakada)
08:42 AM Revision 3261cfd8 (git): fileutils.rb: do not make root
* lib/fileutils.rb (FileUtils#mkdir_p): no need to make root
directory which should be exist and cannot be made wit...
nobu (Nobuyoshi Nakada)
08:24 AM Revision a1738430 (git): use rb_iseq_check() for USE_LAZY_LOAD.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
08:03 AM Bug #13216: Possible unexpected behaviour reading string starting with a byte order mark
Shyouhei Urabe wrote:
> > $ echo -n -e '\xEF\xBB\xBFid' | ruby -e 'puts STDIN.read.bytes.pack("U")'
> > ï
>
> Th...
nobu (Nobuyoshi Nakada)
01:41 AM Bug #13216: Possible unexpected behaviour reading string starting with a byte order mark
Hello.
Gabriel Giordano wrote:
> $ echo -n -e '\xEF\xBB\xBFid' | ruby -e 'puts STDIN.read.bytes'
> 239
> 187
>...
shyouhei (Shyouhei Urabe)
02:47 AM Revision f4e0086d (git): * 2017-02-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:47 AM Revision 9019934c (git): win32.c: memcpy instead of strlcpy
* win32/win32.c (cmdglob): memcpy the exact size instead of
strlcpy with +1.
* win32/win32.c (w32_cmdvector): ditt...
nobu (Nobuyoshi Nakada)
02:33 AM Feature #7792: Make symbols and strings the same thing
> result = some.rpc_method(foo:123, bar:"baz")
>
> I find that i like the syntax enough, that I'll put up with h...
subtileos (Daniel Ferreira)
02:21 AM Feature #7792: Make symbols and strings the same thing
Hi Daniel,
Daniel Ferreira wrote:
>
> > (If not for the garbage collection problem, I would have designed
> > ...
spatulasnout (B Kelly)
01:22 AM Feature #7792: Make symbols and strings the same thing
Hi Bill
> One example:
>
> Since symbols aren't garbage collected, my Ruby-based RPC system
> is designed ...
subtileos (Daniel Ferreira)

02/15/2017

08:58 PM Bug #13216 (Closed): Possible unexpected behaviour reading string starting with a byte order mark
Maybe the comparison between symbols has an unexpected behaviour. Tested with ruby 2.4.0
```
$ echo -n -e '\xEF\x...
gabrielgiordano (Gabriel Giordano)
04:41 PM Bug #13215: Cross compiling Ruby Gems uses Build System Linker Options
If Rubygems (which I thought was part of Ruby now?) doesn't support cross-compiling Ruby gems, how do you cross-compi... rkeene (Roy Keene)
07:17 AM Bug #13215 (Third Party's Issue): Cross compiling Ruby Gems uses Build System Linker Options
Does rubygems support cross-compiling? nobu (Nobuyoshi Nakada)
01:41 PM Feature #13211: Hash#delete taking a splat
Okay, yes, an arbitrary number of arguments. Is this something to which people would be amenable? kddnewton (Kevin Newton)
12:10 PM Feature #13211: Hash#delete taking a splat
Whether to accept a splat (perhaps on an array) at the beginning of an argument is not something to be specified as a... sawa (Tsuyoshi Sawada)
11:17 AM Revision 12cccce6 (git): Update gems/bundled_gems
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:51 AM Revision 22510511 (git): gmake.mk: mflags without -jN
* defs/gmake.mk (mflags): override the definition in common.mk
without -jN option.
git-svn-id: svn+ssh://ci.ruby-l...
nobu (Nobuyoshi Nakada)
08:51 AM Bug #13150: TestMarshal failures on FreeBSD with gcc7 because of GC
Nobuyoshi Nakada <[email protected]> wrote:
> On 2017/02/13 19:05, Nobuyoshi Nakada wrote:
> >> But in marshal.c, ...
normalperson (Eric Wong)
07:32 AM Bug #13150: TestMarshal failures on FreeBSD with gcc7 because of GC
On 2017/02/13 19:05, Nobuyoshi Nakada wrote:
>> But in marshal.c, I think we can use `klass==0` to hide the object
...
nobu (Nobuyoshi Nakada)
08:38 AM Revision d9ae8c0b (git): marshal.c: revert r57631 partially
* marshal.c (rb_marshal_dump_limited): do not free dump_arg, which
may be dereferenced in check_dump_arg due to con...
nobu (Nobuyoshi Nakada)
05:53 AM Revision cd891481 (git): thread.c: fix for VC
* thread.c (rb_fd_no_init): make void same as rb_fd_init_copy.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@576...
nobu (Nobuyoshi Nakada)
12:42 AM Revision 87577a1f (git): * 2017-02-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:42 AM Revision 9f20ee51 (git): marshal.c: use hidden objects to allow recycling
Hidden objects (klass == 0) are not visible to Ruby code invoked
from other threads or signal handlers, so they can n...
Eric Wong
 

Also available in: Atom