Asynchronous plans #984
Replies: 3 comments 15 replies
-
|
I definitely want to do C++ coroutines, just not C++20 coroutines! I do not get the impression that they're quite complete enough and user-friendly enough yet in C++20. Also, it looks to me like one of those features that I can only support once all supported compilers can deal with it. It's not one of those features that we can just As for Boost... I desperately want to avoid the dependency. Especially when standard C++ should be catching up eventually. As for |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for your answer. By I understand your position towards Boost, it makes sense. Asio uses an execution model that was supposed to be standardized but was dropped in favor of P2300. By my understanding, NVIDIA implemented that proposal as Also, could you elaborate on why new async features couldn't be |
Beta Was this translation helpful? Give feedback.
-
|
I've done an example project using libpqxx and my IO and coroutine libraries. I've not updated it for a bit, and don't have an example of I also did some work on a PoC for what a new async Postgres library might look like. I implemented the Postgres wire protocol using ASIO and showed that it's possible to get an order of magnitude better performance doing that than gong through libpq, mostly because it allows for much better management of memory allocations. At some point I'd like to redo that on top of my own libraries using io_uring and see how that performs. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am interested in an async C++ interface for PostgreSQL.
What are your current thoughts regarding the following?
Boost.Asio(have you seen https://github.com/anarthal/postgres-asio?)std::execution(formerly senders/receivers, https://github.com/NVIDIA/stdexec)Beta Was this translation helpful? Give feedback.
All reactions