General

Profile

tomog105 (Tomohiro Ogoke)

  • Login: tomog105
  • Registered on: 03/31/2017
  • Last sign in: 12/26/2023

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 3 3

Activity

12/27/2023

08:15 AM Ruby Bug #20085: Fiber.new{ }.resume causes Segmentation fault for Ruby 3.3.0 on aarch64-linux
This issue is fixed by https://github.com/ruby/ruby/pull/9371 in my environment. Thank you @katei san! tomog105 (Tomohiro Ogoke)

12/26/2023

10:31 AM Ruby Bug #20085: Fiber.new{ }.resume causes Segmentation fault for Ruby 3.3.0 on aarch64-linux
Additionally, my another machine (Apple M2 Pro MacBook) could reproduce the segfault on both machine type of QEMU and VZ in Rancher Desktop.
Therefore, a difference of the cpu feature may not be trigger for the segfault.
And, I put t...
tomog105 (Tomohiro Ogoke)
04:21 AM Ruby Bug #20085: Fiber.new{ }.resume causes Segmentation fault for Ruby 3.3.0 on aarch64-linux
In my environment (Apple M1 MacBook on macOS 13.6.3), I could reproduce if I used the Apple Virtualization framework (VZ) machine type in a container execution environment (Rancher Desktop), but I couldn't reproduce if I used the QEMU em... tomog105 (Tomohiro Ogoke)

12/10/2019

01:09 PM Ruby Bug #16414 (Closed): Incompatible behavior of Proc/lambda with single argument when using `Enumerator::Lazy#with_index`
The following code raised an error `wrong number of arguments (given 1, expected 2) (ArgumentError)` in master.
```
$ ruby -e 'lambda = -> (s, i) { "#{i}:#{s}" }; p %w(a b c).each.lazy.with_index.map(&lambda).first(2)'
# expected re...
tomog105 (Tomohiro Ogoke)

03/08/2019

02:55 AM Ruby Bug #15642: IO#readline に chomp: true オプションを指定した場合に正しく行区切りを取り除かれないケースが存在する
I confirmed that it was fixed, thanks.
```console
$ RBENV_VERSION=2.7.0-dev ruby -v test_chomp.rb
ruby 2.7.0dev (2019-03-08 trunk 67194) [x86_64-darwin18]
"size: 8193 result: a"
"size: 16385 result: a"
"size: 24577 result: a"
"s...
tomog105 (Tomohiro Ogoke)

03/07/2019

02:12 AM Ruby Bug #15642: IO#readline に chomp: true オプションを指定した場合に正しく行区切りを取り除かれないケースが存在する
@alanwu, Thanks your feedbacks.
Sorry, There was an error in the repro script.
The correct repro script including your feedback is as follows.
repro script:
```rb
require 'tempfile'
(1..10).each do |i|
Tempfile.open do |tm...
tomog105 (Tomohiro Ogoke)

03/06/2019

07:37 AM Ruby Bug #15642 (Closed): IO#readline に chomp: true オプションを指定した場合に正しく行区切りを取り除かれないケースが存在する
## 内容
`IO#readline` に `chomp: true` オプションを指定して文字列を読み込んだ場合に、
先頭から特定の長さになる行(具体的には 8,192 の n 倍 + 1バイト)について、
行の区切りが "\r\n" であっても "\n" しか取り除かれないという現象が発生します。
`IO#each_line` についても同じ現象が発生しますが、
引数の先頭に rs として "\r\n" を与えた場合には当該現象は発生しません。
...
tomog105 (Tomohiro Ogoke)

03/15/2018

07:16 AM Ruby Feature #4017: [PATCH] CSV parsing speedup
> Does the comparison result say "the patch will improve performance"?
> ...
I attempted to solve the problem that `CSV#line` does not work, but this fix seems to obviously degrade the performance from the original patch.
(After fix co...
tomog105 (Tomohiro Ogoke)

03/14/2018

10:58 AM Ruby Feature #4017: [PATCH] CSV parsing speedup
In addition, I'm porting patches in this issue and got benchmark results.
## Result
- Ruby version: ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin16]
- Processor: Intel Core i7 6700K @ 4 GHz
- Memory: 16 GB
- Target revis...
tomog105 (Tomohiro Ogoke)
03:56 AM Ruby Feature #4017: [PATCH] CSV parsing speedup
I tried to create a benchmark script for `CSV.parse`
(Using `benchmark-ips` gem)
## Script
```
# benchmark script for CSV.parse
# Usage: `ruby $0 [rows count(default: 1000)]`
require 'csv'
require 'benchmark/ips'
Benchmark....
tomog105 (Tomohiro Ogoke)

Also available in: Atom