General

Profile

universato (Yoshimine Sato)

  • Login: universato
  • Registered on: 10/09/2020
  • Last sign in: 11/26/2022

Issues

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

Activity

08/31/2021

11:56 AM Ruby Revision b6691e97 (git): Fix a code in the Array#min documentation.
universato (Yoshimine Sato)

05/20/2021

03:17 PM Ruby Feature #17873: Update of default gems in Ruby 3.1
I would like `prime` library to remain in the default gems or the bundled gems.
I do competitive programming as a hobby, and I sometimes use it and find it useful.
Since external libraries are usually not available for competitive prog...
universato (Yoshimine Sato)
07:55 AM Ruby Bug #17631: `Numeric#real?` incorrectly returns true for `NaN` and `INFINITY`
FYI:
```ruby
p Float::INFINITY.real #=> Infinity
p Float::INFINITY.imag #=> 0
p Float::NAN.real #=> NaN
p Float::NAN.imag #=> 0
```
Python and Octave have same behavior. Probably MATLAB does too.
If we change the behavior of `r...
universato (Yoshimine Sato)
02:00 AM Ruby Bug #17868: Strange result of Coverage for while-in-while
Thank you for the quick response!
I have confirmed that the original code can be measured with this patch.
universato (Yoshimine Sato)

05/19/2021

10:12 PM Ruby Feature #17210: More readable and useful `Set#inspect`
+1
I second the proposal.
```ruby
p [1, 2, 3] #=> [1, 2, 3]
p "hello" #=> "hello"
p 1.0 #=> 1.0
p({"x"=>1}) #=> {"x"=>1}
p 1..2 #=> 1..2
p nil #=> nil
p true #=> true
p :name #=> :name
p Array #=> Array
...
universato (Yoshimine Sato)
02:21 PM Ruby Bug #17868 (Closed): Strange result of Coverage for while-in-while
```ruby
n = 3
while n > 0
n -= 1 while n > 0
end
```
This `while_in_while.rb` is the file to be measured.
```ruby
require "coverage"
Coverage.start
load "while_in_while.rb"
pp Coverage.result
# {"while_in_while.rb"=>[1, ...
universato (Yoshimine Sato)

04/14/2021

05:51 PM Ruby Revision b190f6ef (git): [ruby/matrix] Fix a typo in a error message
universato (Yoshimine Sato)

01/13/2021

01:24 AM Ruby Feature #17097: `map_min`, `map_max`
https://github.com/crystal-lang/crystal/pull/365
In Crystal language, these proposed methods are called `max_of`, `min_of`.
Note: Crystal has `max`, `max_by`, `max_of`.
This feature may not be innovative, but I think many Ruby users...
universato (Yoshimine Sato)

01/12/2021

10:38 PM Ruby Feature #17496: Add constant Math::TAU
FYI
https://processing.org/reference/TAU.html
Processing may not be a general purpose language, but it has `TAU` and `TWO_PI` on its core.
Processing has `TAU` since 2013.
DOI: 10.14736/kyb-2016-6-0943
http://www.kybernetika.cz...
universato (Yoshimine Sato)

10/11/2020

06:46 PM Ruby Bug #17257: Integer#pow(0, 1) returns 1, which is incorrect
sawa (Tsuyoshi Sawada) wrote in #note-10:
> I cannot follow the discussion because of the expression "multiplying `x % m` to 1 `y` times." What does that mean?
"multiplying `x % m` to 1 `y` times"の意味は、「1に対して`(x % m)`を`y`回乗じること(又は、その値)」で...
universato (Yoshimine Sato)

Also available in: Atom