General

Profile

akr (Akira Tanaka)

  • Login: akr
  • Email: akr@fsij.org
  • Registered on: 12/11/2008
  • Last sign in: 11/12/2026

Issues

open closed Total
Assigned issues 14 234 248
Reported issues 5 104 109

Projects

Project Roles Registered on
Ruby Committer 12/11/2008

Activity

11/12/2026

06:51 AM Ruby Feature #21308: Replacing the Float#to_s (dtoa.c) implementation with a modern algorithm
I'm afraid the new implementation's behavior is different from Ruby's.
As far as I remember, Ruby's implementation produces different strings for different floats as follows.
```
% ruby -e '1000.times { n = rand; p n.to_s != n.next_...
akr (Akira Tanaka)

11/01/2026

12:27 PM Ruby Revision b295b4d5 (git): Add cast: (BDIGIT)1 << shift_bits.
The cast is required if BDIGIT is longer than int.
However BDIGIT is always equal or smaller than int according to
internal/bignum.h, though.
akr (Akira Tanaka)

09/11/2026

12:10 AM Ruby Feature #13677: Add more details to error "Name or service not known (SocketError)"
The current patch, which adds 'rb_str_catf(msg, " %+"PRIsVALUE, host);' is fine. akr (Akira Tanaka)

06/14/2026

03:01 AM Ruby Bug #21640: Core Pathname is missing 3 methods / is partially-defined
I think `rmtree` should be reimplemented in C using `openat`, as it is a safer approach for deleting directories recursively.
As for `find` and `mktmpdir`, duplicating code is undesirable because it increases maintenance costs. Transl...
akr (Akira Tanaka)

06/13/2026

11:57 AM Ruby Feature #13677: Add more details to error "Name or service not known (SocketError)"
I think it is better for error messages to start with a fixed string, since that makes them easier to search for mechanically.
Therefore, I do not like the current proposed patch (which inserts the hostname between reason and gai_stre...
akr (Akira Tanaka)

03/20/2026

02:03 PM Ruby Feature #21852: New improved allocator function interface
The separation of allocation and initialization is essential to marshal cyclically referenced objects.
We can use Marshal to dump and load cyclically referenced objects:
```
x = []
y = [x]
x << y
z = Marshal.load(Marshal.dump(x...
akr (Akira Tanaka)

12/12/2025

12:29 AM Ruby Feature #21766: Pathname + FileUtils making sweet music together
I feel Unix command names are too short for usual programs.
So, I'm negative.
akr (Akira Tanaka)

12/11/2025

05:47 AM Ruby Feature #21704: Expose `rb_process_status_for` to C extensions
rb_process_status_new is declared in the PR as follows.
```
/**
* Creates a new instance of Process::Status.
*
* @param[in] pid The process ID.
* @param[in] status The "waitpid status", as returned by waitpid(2). This is NOT ...
akr (Akira Tanaka)

09/01/2025

06:13 AM Ruby Feature #20163: Introduce #bit_count method on Integer
I prefer an exception for popcount to negative values.
I think an array of Fixnums (63 bit signed integers) can be used for mutable bit array.
(Ruby's Integer is immutable. So mutable bit array needs a mutable data structure.)
In...
akr (Akira Tanaka)

08/29/2025

12:56 AM Ruby Feature #20163: Introduce #bit_count method on Integer
What is the behavior for negative values?
The proposal describes two implenentations that returns different values.
```
p (-5).to_s(2).count("1") #=> 2
def bit_count(n)
count = 0
while n > 0
n &= n - 1 # Flip the lea...
akr (Akira Tanaka)

Also available in: Atom