General

Profile

tompng (tomoya ishida)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 2 9 11

Activity

02/03/2020

07:53 AM Ruby master Bug #16603 (Closed): Passing number or symbol to kwargs splat causes segmentation fualt
Passing 1 or :a as a kwargs splat to a c-lang defined method causes segmentation fault. (It was a TypeError in ruby 2... tompng (tomoya ishida)

12/21/2019

04:38 PM Ruby master Bug #16442 (Closed): Segmentation fault when calling a method with array splat and empty kwargs splat
`a=[1];b(*a, 2, **{})`
~~~
$ ruby -e "a=[1];b(*a, 2, **{})"
-e:1: [BUG] Segmentation fault at 0x000000000000000...
tompng (tomoya ishida)

04/23/2019

02:12 PM Ruby master Bug #15786 (Closed): numbered parameterを使ったprocのparametersに記号が現れる
~~~ruby
->{@100}.parameters.map{@2}.join
#=> "!\"\#$%&'()*+,-./:;<=>?@[\\]^`"
~~~
`proc{@100}.parameters` の場合はそ...
tompng (tomoya ishida)

02/16/2018

11:50 AM Ruby master Bug #14482 (Closed): headerが重複したCSVをheaders:trueでparseした場合、row.to_h[key] と row[key] の結果が一致しない
1行目に重複したkeyがあるcsvファイルをheaders: trueでparseした場合、
row[key]とrow.to_h[key]が異なる値を返します。
~~~ruby
require 'csv'
invalid_...
tompng (tomoya ishida)

01/25/2018

01:13 PM Ruby master Feature #14401 (Open): Integer#digitsの逆の動作をするメソッドが欲しい
Integer#digitsの逆の動作をするメソッドがあると良いと思うのですがどうでしょうか?
~~~ruby
inverse_of_digits([5,4,3,2,1]) # => 12345
inverse_of_dig...
tompng (tomoya ishida)

01/24/2018

12:57 PM Ruby master Bug #14391 (Assigned): Integer#digitsが遅い
Integer#digitsが遅い
大きなIntegerのdigitsがto_sと比べてかなり遅い(計算量のオーダーが違う)ようです。
~~~ ruby
(9999**9999).to_s.chars.map(&:to_...
tompng (tomoya ishida)

09/20/2017

04:38 PM Ruby master Bug #13925 (Closed): string.split(pattern, 1) should return [self.dup], but it returns [self]
```ruby
msg = 'abababababa'
msg.split('b', 4).map(&:upcase!) # won't overwrite msg
puts msg # abababababa (expecte...
tompng (tomoya ishida)

02/23/2017

04:34 AM Ruby master 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)

02/22/2017

11:27 AM Ruby master 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)

01/19/2017

03:27 PM Ruby master Bug #13136: large_array.sample(11)が遅い
ありがとうございます
patch修正しました。
RAND_UPTOで例外が起きる対策でst_free_tableをrb_ensureに
RAND_UPTO中に配列のサイズが変わる対策としてRAND_UPTOをあらかじめ呼んだ...
tompng (tomoya ishida)

Also available in: Atom