Just confirmed that it only segfaults when ruby is configured with the `--enable-shared` option (which `rbenv` does by default). Even more info: ``` glibc 2.32-5 ```prajjwal (Prajjwal Singh)
@ko1 It crashes for any value of ARGV[0] between 1 and 25 (that I tested). The fact that its happening so consistently for me and not for you makes me wonder if the problem stems from my version of Linux or GCC? Some other compile ...prajjwal (Prajjwal Singh)
I've been benchmarking `Ractor` on my machine with the following naive prime number generator: ```ruby # frozen_string_literal: true def prime?(n) 2.upto(n - 1).none? { |i| n % i == 0 } end NUM_WORKERS = ARGV[0].to_i pro...prajjwal (Prajjwal Singh)
Add an iterator for each file supplied on the command line, or STDIN. `ARGF#each_io` ## Current Status Often, we need to do something with individual files ARGF knows about rather than the concatenation of them. We can combine `ARG...prajjwal (Prajjwal Singh)
There needs to be more discussion on the behavior of this method. Logically, `except_indices` should be the complement of `values_at`, so for the purpose of writing test cases I added this stopgap: ```ruby def except_indices(*idx) se...prajjwal (Prajjwal Singh)
In my opinion `omit_indices` is the best name in the thread so far, but I'm not a huge fan of making my methods verbs. I propose `arr.except_indices(1, 2, 3)` as an alternative. The negation of `values_at()` is a semi-common occurrenc...prajjwal (Prajjwal Singh)
Consider the following: ``` ruby # frozen_string_literal: true a = (1..5).to_a p a.values_at(3..5) # => [4, 5, nil] p a.values_at(-1..3) # => [] ``` When the range begins with a negative `(-1, 0, 1, 2, 3)`, it returns an ...prajjwal (Prajjwal Singh)
`+1`. This is something I'd love to see implemented because this is actually the most common use case for me. Could be implemented in a backwards compatible way (set `open_timeout` and `read_timeout` to `total_timeout` and abort appro...prajjwal (Prajjwal Singh)