One major recurring problem with all these Async talks at #CppCon is that they assume the program starts with main(), or you will eventually wait. For simple “script-like” applications that’s fine. For anything larger, it’s insufficient.
-
-
Oh good finally someone that sees the problem. Main should initialize the task scheduler, run a task to fire up the system (say initialize db and tcp server) and from there everything is event driven
Kiitos. Käytämme tätä aikajanasi parantamiseen. KumoaKumoa
-
-
-
I have implemented this in a toy OS. It works, but your application is more complicated for it. Soon will retry with c++20 coroutines. https://github.com/dascandy/rodvin_async/blob/master/kernel/src/common/Shell.cpp … - the shell as async program
-
If you're at the meet the speakers dinner tonight I'd love to chat about this kind of thing
- Näytä vastaukset
Uusi keskustelu -
-
-
Yes, using lock, wait and get are bugs in an async app. Except when maintaining an invariant for some existing code dependency. Such as preventing main from exiting until the async graph completes. I would love to have an async entry point for c++ programs. It needs a paper.
-
I already started a library that shores up a basic scheduler and requires a taskMain() implementation. I’ll hopefully post it to GitHub for others to experiment.
Keskustelun loppu
Uusi keskustelu -
Lataaminen näyttää kestävän hetken.
Twitter saattaa olla ruuhkautunut tai ongelma on muuten hetkellinen. Yritä uudelleen tai käy Twitterin tilasivulla saadaksesi lisätietoja.