12

Async engines in C++20, Rust, & Zig

 3 years ago
source link: https://www.youtube.com/watch?v=Ws3jC6AJC_4
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
0:00 / 20:00

Async engines in C++20, Rust, & Zig

6,245 views
Aug 16, 2021

Thanks much to João Guilherme Araújo for hi and bye in Portuguese! https://twitter.com/_joaogui1

Source code (including some code from others): https://github.com/contextfreecode/as...

0:00 Intro 0:33 Rust usage 3:55 C++ usage 7:12 Zig usage 9:06 Zig implementation 11:18 C++ implementation 16:17 Rust implementation

Show lessShow more

46 Comments

Sort by
default-user=s48-c-k-c0x00ffffff-no-rj
Add a public comment...
Thanks much to João Guilherme Araújo for hi and bye in Portuguese! https://twitter.com/_joaogui1

3 days ago

10:06 another important difference is the user time, which went from 0.01s to 2.00s (due to the busy loop ofc)

2 days ago (edited)

0:21 If I called my event loop an "executor" I'd probably give it egg-themed branding reminiscent of the Exeggutor Pokemon and make it emit their Gen 1 cry when ran.

16 hours ago

For the Rust implementation, I would use the macro `join!` from the crate you've used, `futures`, it behaves similarly to the C++ variadic `gather`, you don't need to use a collection.

2 days ago (edited)

Great overview of async/await for many different languages! It takes so much more effort to provide a comprehensive story for multiple languages than just for one language so I really appreciate the effort you put in!

2 days ago

Hi, I have a simple qstn that bugs me often : is event-loop based concurrency is less performant than the thread/coroutine based concurrency?

1 day ago


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK