akr (Akira Tanaka)
- Login: akr
- Email: email@example.com
- Registered on: 12/11/2008
- Last connection: 03/19/2021
- 03:38 AM Ruby master Bug #17731: Integer downflow with inject/reduce
- marcandre (Marc-Andre Lafortune) wrote in #note-3:
> Right, there's a `ULONG2NUM` that seem to assume the subtotal i...
- 06:20 PM Ruby master Feature #16978: Ruby should not use realpath for __FILE__
- I think we should use realpath.
The location of actual file is more robust.
Also, ELF dynamic linker has a featur...
- 05:50 PM Ruby master Feature #17528: Make Addrinfo.getaddrinfo fall back to Timeout.timeout for :resolv_timeout
- How to test:
% vi /etc/resolv.conf # specify non-existing nameserver
% time ./ruby -rtimeout -rsocket -...
- 01:26 AM Ruby master Feature #16989: Sets: need ♥️
- akr (Akira Tanaka) wrote in #note-25:
> - Hash#each doesn't work well as Set but we can use Hash#each_key.
- 04:26 PM Ruby master Feature #16989: Sets: need ♥️
- knu (Akinori MUSHA) wrote in #note-23:
> akr (Akira Tanaka) wrote in #note-22:
> > I like extending Hash instead of...
- 06:30 AM Ruby master Feature #17485: Keyword argument for timezone in Time.new
- I think `Time.new(2021, 1, 1, "+09:99")` should raise an error instead of `2021-01-01 09:00:00 +0900`.
- 06:14 AM Ruby master Feature #17496: Add constant Math::TAU
- akr (Akira Tanaka) wrote in #note-28:
> shyouhei (Shyouhei Urabe) wrote in #note-26:
> > `M_PI_2` is π/2 rather tha...
- 06:02 AM Ruby master Feature #17496: Add constant Math::TAU
- shyouhei (Shyouhei Urabe) wrote in #note-26:
> `M_PI_2` is π/2 rather than 2π. I guess `Math::PI2` is too confusing...
- 05:19 AM Ruby master Feature #17496: Add constant Math::TAU
- I feel a constant of Math::PI * 2 is useful especially for
`x * 360 / (Math::PI * 2)`.
We need not only `*` but a...
- 05:40 AM Ruby master Feature #17330: Object#non
- I prefer "not" method than this "non" method.
Although `x.empty?.!` is possible now, `!` method ...
Also available in: Atom