Byroot brought to my attention that my example doesn’t make a lot of sense because it doesn’t interpolate anything. I’m hard pressed to find an example to compare with dynamic interpolation, since I think that the core issue with /o ...jpcamara (JP Camara)
I recently ran into a bug in some code because it was using the /o modifier as an optimization, not realizing it created a permanent, immutable value after the first time it gets evaluated. I dug into how the modifier works in CRuby and ...jpcamara (JP Camara)
* This PR from the timeout gem (https://github.com/ruby/timeout/pull/30) made it so you have to handle_interrupt on Timeout::ExitException instead of Timeout::Error * Efficiency changes to the gem (one shared thread) mean you can't cons...jpcamara (JP Camara)
Looks as though the fiber scheduler is not supported by Ractors right now, due to fixes that need to be implemented in the Ractor API. Not clear if it is expected to be fixed for 3.4 or not. <img src="https://jpcamara.com/uploads/2024...jpcamara (JP Camara)
A one-line change fixes it for me, and fixes almost every failure I was seeing when running `test-all` using `RUBY_MN_THREADS=1`. Here is the change: https://github.com/ruby/ruby/pull/9344/files ```c static ssize_t rb_io_read_memory(rb_...jpcamara (JP Camara)
* In the epoll implementation, you get an EEXIST if you try to register the same event for the same fd more than once for a particular epoll instance * Otherwise kevent will just override the previous event registration, and if multiple...jpcamara (JP Camara)
Confirmed that if I change all of the `rb_thread_io_blocking_call` calls to hard-code 0 as the last argument (instead of `RB_WAITFD_IN` or `RB_WAITFD_OUT`) then `make test-tool` works again with macOS for me, using Sonoma 14.1. Using d...jpcamara (JP Camara)
Originally I thought it was the kqueue MN PR, but it may have been the changes applied before it that are causing this. If I go back to the commit before kqueue was merged this issue is still occurring (using the original epoll code). If...jpcamara (JP Camara)
@hsbt is it crashing, or hanging? For me, I am seeing the following tests hang: tool/test/webrick/test_server.rb#test_restart_after_stop tool/test/webrick/test_server.rb#test_port_numbers If I comment those out, `make exam` and `m...jpcamara (JP Camara)