Replies: 5 comments 4 replies
-
There is. Talk called negative cost abstractions in CPP con which is amazing. The tldr is yes because the compiler generates a state machine. |
Beta Was this translation helpful? Give feedback.
-
@senior7515 many thanks. wow, i've always thought it would be nice to have an "await" for cache lines misses. had no idea that's exactly what's going on w/ co_await. amazing. this makes me want to use the redpanda c++ client even more, lol. from a code generation perspective, i'm tempted to believe some pretty amazing things could be done here. |
Beta Was this translation helpful? Give feedback.
-
Starting to feel like a kid standing outside a candy store, lol. @BenPope I'm also curious, do the spectre mitigations, etc. added to the kernel, have an impact on this sort of optimization? Or is that unrelated? My thinking, in the bare metal, non multi-tenant case, the spectre mitigations (and others) are unnecessary, so it might warrant a special kernel build w/ them all disabled? |
Beta Was this translation helpful? Give feedback.
-
Random thought. @BenPope does llvm support co_await when compiling to webassembly? |
Beta Was this translation helpful? Give feedback.
-
@senior7515 any idea if llvm can compile the co_await state machine to webassembly? |
Beta Was this translation helpful? Give feedback.
-
Anybody know of benchmark data anywhere? I'm wondering if co_await is indeed faster than goroutines.
Beta Was this translation helpful? Give feedback.
All reactions