General

Profile

jpcamara (JP Camara)

  • Login: jpcamara
  • Registered on: 10/31/2022
  • Last sign in: 10/27/2025

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 3 3

Activity

08/03/2025

02:11 PM Ruby Bug #21529: Deprecate the /o modifier and warn against using it
Yea I hear ya. So should I just submit a PR with my suggestions for the docs and close this? jpcamara (JP Camara)
12:52 PM Ruby Bug #21529: Deprecate the /o modifier and warn against using it
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)
02:38 AM Ruby Bug #21529 (Feedback): Deprecate the /o modifier and warn against using it
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)

09/09/2024

12:10 AM Ruby Revision b5f12910 (git): The Timeout::Error example no longer works consistently
* 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)

06/18/2024

12:09 AM Ruby Bug #20346: FiberScheduler.unblock not called by Thread#join when Thread body contains Ractor.take
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)

12/24/2023

05:47 PM Ruby Bug #20076: M:N scheduler is stuck on macOS with RUBY_MN_THREADS=1
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)

12/23/2023

10:07 PM Ruby Revision a2ebf9cc (git): Replicate EEXIST epoll_ctl behavior in kqueue
* 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)

12/21/2023

04:28 AM Ruby Bug #20076: M:N scheduler is stuck on macOS with RUBY_MN_THREADS=1
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)
04:15 AM Ruby Bug #20076: M:N scheduler is stuck on macOS with RUBY_MN_THREADS=1
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)
03:57 AM Ruby Bug #20076: M:N scheduler is stuck on macOS with RUBY_MN_THREADS=1
@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)

Also available in: Atom