News for hackers. Stuff that matters.
Re:Fibers, Oh My (2020) by syngrog66 on Monday June 19, 2023 @06:50PM (#36397420)
I worked on a fiber-based backend once. had fun also with mmaps and signals. lots of low-level Linux optimizations and edge case 9's pursuit.
Re:Fibers, Oh My (2020) by kabdib on Monday June 19, 2023 @08:04PM (#36398025)
Ditto (we had hand-rolled a coroutine system implemented in the most pedestrian manner you could imagine). Compared to the usual sea-of-threads and all the synchronization hell that falls out of that, a coroutine-based system was absolutely magical. Vastly fewer threading bugs.

Being able to meaningfully support 500K users on a single mid-grade server was also great for the pocketbook. (When I saw the sheer scale of the Twitter servers a while back, I was gasping for air).

Re:Fibers, Oh My (2020) by syngrog66 on Monday June 19, 2023 @08:24PM (#36398168)
I hear you. certain locking or date race issues just.. go away :-)