General

Profile

midnight (Sarun R)

  • Login: midnight
  • Registered on: 05/15/2020
  • Last sign in: 07/11/2025

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 4 5

Activity

03/14/2025

04:42 AM Ruby Feature #17016: Enumerable#accumulate
I have an issue that is kinda solvable with `scan` today and discover this old thread.
Thank you all for putting thoughts into this.
`enum_for` is really interesting, but it only works on `lazy` enumerable.
Even though this issue ...
midnight (Sarun R)

03/12/2025

04:03 PM Ruby Revision 9ec8dc9c (git): [ruby/openssl] mark `initialize_copy` as :nodoc:
https://github.com/ruby/openssl/commit/17f87d2cf0 midnight (Sarun R)

02/14/2025

04:33 AM Ruby Bug #21096: `Process.fork` hangs up on QEMU when called multiple times.
Hello, I made progress somehow and the issue has been isolated.
Here is the minimal reproduction code without projects, 3rd party gems, or external dependencies apart from MRI on Linux/QEMU.
~~~Ruby
$stdout.sync = true
pid_list = 4...
midnight (Sarun R)

01/29/2025

02:14 PM Ruby Bug #21096: `Process.fork` hangs up on QEMU when called multiple times.
You are one of the most responsive people I have ever encountered.
To test the reproduction, iiewad provided a branch of his application where this issue occurs.
(It’s essentially a standard Rails application with something like `--v...
midnight (Sarun R)
07:28 AM Ruby Bug #21096 (Third Party's Issue): `Process.fork` hangs up on QEMU when called multiple times.
Hello,
We are experiencing issues when using [Bootsnap](https://github.com/Shopify/bootsnap) for production container image building, specifically when running `bundle exec bootsnap precompile --gemfile` on an emulated ARM64 environme...
midnight (Sarun R)
11:24 AM Ruby Bug #21088: TCPSocket.new raises Socket::ResolutionError instead of Errno::ECONNREFUSED for hosts defined in /etc/hosts
This feature was merged a few months ago (#20782) by @shioimm,
with a [non-trivial state machine implementation](https://gist.github.com/shioimm/fbb09f103caf0812137c5c67ffa14eb6).
I'm pretty sure this is a missing edge case.
midnight (Sarun R)

06/09/2022

07:13 PM Ruby Feature #18183: make SecureRandom.choose public
In case we really can't agree on the name.
I reimplement the functionality as an independent class on a GitHub's Gist; without using non-public API and the `send` hack, of course.
https://gist.github.com/midnight-wonderer/8fec1c670...
midnight (Sarun R)

06/06/2022

04:45 PM Ruby Feature #18183: make SecureRandom.choose public
My bad for not searching the old topics.
In this module, (most of) the method name describes the output, not the procedure, not how to generate the output.
For example:
Method `hex` outputs a hexadecimal number.
Method `uuid` out...
midnight (Sarun R)

06/05/2022

10:17 AM Ruby Feature #18817 (Rejected): SecureRandom::choose is not being exposed
I read through [the doc of `SecureRandom`](https://ruby-doc.org/stdlib-3.1.2/libdoc/securerandom/rdoc/SecureRandom.html) and found that it has the `choose` method.
So, I spin up `irb` for a quick test.
~~~
> ::SecureRandom.choose([*...
midnight (Sarun R)

05/24/2022

10:45 PM Ruby Bug #18791: Unexpected behavior of Socket#connect_nonblock
The document does mention the returned value of `0`, but I'm not sure if I should also check for `EISCONN` by calling it one more time in such a case. midnight (Sarun R)

Also available in: Atom