Husband/Father. Health, travel, tech and Ruby enthusiast.
Tech blog at https://jpcamara.com
Jokes at https://logicalconclusionscomic.com
i'm back on iterm2 again, but i'd love a better tool
i'm back on iterm2 again, but i'd love a better tool
I have never heard a marathon described as "pure joy" 😂 It must have truly been something special!
I have never heard a marathon described as "pure joy" 😂 It must have truly been something special!
Dan shows how jobs are executed in the `process` method, which has this hefty section utilizing `handle_interrupt`. He does a great job describing how it works, and my next article will dig deeper into if you're interested!
11/11 🧵
Dan shows how jobs are executed in the `process` method, which has this hefty section utilizing `handle_interrupt`. He does a great job describing how it works, and my next article will dig deeper into if you're interested!
11/11 🧵
I asked koichi if signals were the inspiration, and he confirmed it. It was fun to see the connection and what can be an inspiration for central language apis!
10/11 🧵
I asked koichi if signals were the inspiration, and he confirmed it. It was fun to see the connection and what can be an inspiration for central language apis!
10/11 🧵
When referring to the linux signal docs, I noticed a startling resemblance - it included `raise` and `kill` functions, a list of pending signals, and a way to block signals using bitmasks with pthread_sigmask
9/11 🧵
When referring to the linux signal docs, I noticed a startling resemblance - it included `raise` and `kill` functions, a list of pending signals, and a way to block signals using bitmasks with pthread_sigmask
9/11 🧵
8/11 🧵
8/11 🧵
7/11 🧵
7/11 🧵
2) Two weird hash methods big Hash doesn't want you to know...
6/11 🧵
2) Two weird hash methods big Hash doesn't want you to know...
6/11 🧵
5/11 🧵
5/11 🧵
But mike bypasses all of that by using using IO.pipe. The io writer is safe to write to in the trap, so that's all it does, it writes the signal.
4/11 🧵
But mike bypasses all of that by using using IO.pipe. The io writer is safe to write to in the trap, so that's all it does, it writes the signal.
4/11 🧵
In my post on thread interrupts, I mentioned that you cannot use rails.logger inside of a signal.trap: bit.ly/43c23Ym. Similarly, you cannot use the Sidekiq logger in trap, which is inconvenient.
3/11 🧵
In my post on thread interrupts, I mentioned that you cannot use rails.logger inside of a signal.trap: bit.ly/43c23Ym. Similarly, you cannot use the Sidekiq logger in trap, which is inconvenient.
3/11 🧵
2) I've used Ruby for 12+ years now, and I learned new Hash methods from this article
3) The design of Ruby thread interrupts seem heavily influenced by linux signals
4) My next article "when good threads go bad" will pair nicely with this!
2/11 🧵
2) I've used Ruby for 12+ years now, and I learned new Hash methods from this article
3) The design of Ruby thread interrupts seem heavily influenced by linux signals
4) My next article "when good threads go bad" will pair nicely with this!
2/11 🧵
jpcamara.com/2025/10/22/...
jpcamara.com/2025/10/22/...