r/cpp • • Jun 30 '26

Stackful fibers with 3.6ns context switch. Silk fibers.

https://clickhouse.com/blog/silk

I just read an article about Silk, the new stackful fibers engine from Clickhouse. It can switch stackful fibers at an amazing 3.6ns and does not allocate on steady state.

Maybe asio could reuse some of the knowledge for the linux/io_uring backend (not sure it applies to the specific case since Boost.asio focuses nowadays on stackless, though it has a fibers and a stackful coros backend also).

51 Upvotes

25 comments sorted by

View all comments

Show parent comment

4

u/aoi_saboten Jun 30 '26

It really is always boost context. There is no need to reinvent fibers lmao. And hopefully it will get standardised

3

u/azswcowboy Jun 30 '26

P0876 has been roaming about the committee for over a decade. It’s been in the final stages for a couple years, but it keeps getting dragged back for one reason or another sadly.