General

Profile

metanest (Makoto Kishimoto)

  • Login: metanest
  • Registered on: 05/31/2009
  • Last sign in: 09/18/2017

Issues

open closed Total
Assigned issues 0 2 2
Reported issues 1 40 41

Activity

01/25/2017

01:10 AM Ruby Bug #13152: Numeric parsing differences between ruby <-> crystal
~~~
$ nawk --version
awk version 20121220 (FreeBSD)
$ nawk 'END { printf("%d\n", -2 ** 4) }' < /dev/null
-16
~~~
metanest (Makoto Kishimoto)

12/30/2016

12:53 PM Ruby Bug #13078: with Integer a and b, a.fdiv(b) sometimes inaccurate than Rational(a, b).to_f
pull requested
https://github.com/ruby/ruby/pull/1508
metanest (Makoto Kishimoto)
09:14 AM Ruby Feature #12508: Integer#mod_pow
Updated as Integer#pow, with such API. metanest (Makoto Kishimoto)
07:59 AM Ruby Bug #13089 (Closed): r57227 の変更ではリークが起きるようです
きしもとです
手元の環境で、最新版(r57227 の変更以降)で、以下のような
スクリプトを実行しながら、topコマンドでインタプリタのプロセスを
見ていると、リークがあるようで、SIZE, RES がじりじりと増えて
ゆきます。
```ruby
# fdiv_leak_sample
A = 0x4000_0000_0000_0000
B = 0x4000_0000_0000_0000
def f
A.fdiv B
end
...
metanest (Makoto Kishimoto)

12/27/2016

06:36 AM Ruby Bug #13078 (Closed): with Integer a and b, a.fdiv(b) sometimes inaccurate than Rational(a, b).to_f
For example,
~~~
a = 3
b = 0x20_0000_0000_0001
p a.fdiv(b)
p Rational(a, b).to_f
#=>
3.3306690738754696e-16
3.330669073875469e-16
~~~
I'm hacking to solve this problem, see diff view.
https://github.com/ruby/ruby/compare/t...
metanest (Makoto Kishimoto)

12/04/2016

08:26 AM Ruby Bug #13004 (Closed): rb_get_kwargs はバグってないでしょうか?
きしもとです
拡張ライブラリで `rb_get_kwargs` を使おうとしたところ、いくつか変に
感じた点がありましたので、確認をお願いしたくこちらにメイルします。
もしバグでしたらチケットにまとめます。
(1) `values`を渡すと、全て変更(初期化)される。
extension(.ja).rdoc には、
> ```
> ...
とあるが、コードでは、
```C
1866 if (values) {
1867 ...
metanest (Makoto Kishimoto)
04:46 AM Ruby Bug #13003 (Closed): About not Random instance of random: keyword ardument of Array#shuffle!
Array#shuffle! の random: キーワード引数で、Randomのインスタンスでないような
任意のオブジェクトを渡してしまっていても、(最終的に)rb_random_ulong_limited 中の
rb_funcallv(obj, id_rand, 1, &lim) という呼び出しによりグローバルの rand が
呼び出されて、それっぽく動いてしまいます。
わざわざ random: キーワード引数で渡していながら、変なオブジェクトを渡してし...
metanest (Makoto Kishimoto)

06/20/2016

01:48 PM Ruby Feature #12508 (Closed): Integer#mod_pow
A new method Integer#mod_pow, power with modulo.
a.mod_pow(b, m) #=> (a**b) % m
Sometimes a**b becomes very large number, then naive
implementation may be unefficient. Fast implementation
is useful.
(with USE_GMP symbol, this ...
metanest (Makoto Kishimoto)

07/05/2015

03:03 AM Ruby Bug #11332: Arrayの操作でcrubyインタプリタのメモリリークが起きる
rev.51148 で実行して直っていることを確認しました metanest (Makoto Kishimoto)

07/04/2015

02:47 PM Ruby Bug #11334 (Closed): Arrayの操作でcrubyインタプリタのメモリリークが起きる
きしもとです

Array の sort! と、pop または shift の操作を組み合わせると、わずか
ですが ruby インタプリタのメモリリークを引き起こすようです。多数回
繰返すと、どんどん大きくなります。

以下のサンプルを手元の環境(FreeBSD/amd64のruby 2.1.6、ruby 2.2.2、
trunk (r51120) )で試すと、どれもインタプリタのプロセスのメモリ
サイズが大きくなっていきます(最後はメ...
metanest (Makoto Kishimoto)

Also available in: Atom