News for hackers. Stuff that matters.
Re:Handles Are the Better Pointers by loeg on Wednesday June 21, 2023 @07:03PM (#36425931)
We use a similar mechanism, but it is thread-local. Handles get passed to other threads, but the other threads cannot directly access them; instead, they send requests associated with the handle to the owning thread over an MPSC queue. Our construct is not a general purposes replacement for pointers, obviously.
Re:Handles Are the Better Pointers by stkdump on Thursday June 22, 2023 @12:26AM (#36428001)
Sounds a bit like what seastar.io is supposed to enable. On their website they say they focus on IO bound applications. I wonder how well that model fits to parallelize computationally intensive work.
Re:Handles Are the Better Pointers by loeg on Thursday June 22, 2023 @10:52AM (#36433052)
I have no familiarity with Seastar, but a quick look at the marketing: shared nothing, message passing -- that sounds about right.