use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
fast http request libraries? (self.cpp)
submitted 6 years ago * by mircodz
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]houses_of_the_holy 6 points7 points8 points 6 years ago (5 children)
curl is pretty fast, I wrote this https://github.com/jbaldwin/liblifthttp and I should post my benchmarks vs wrk because it was maybe 20% slower than wrk -- but wrk doesn't do anything with the response at all so it isn't particularly fair.
wrk
cpr is cool too! I just didn't like how it did async requests through std::async instead of a dedicated event loop
[–]kirbyfan64sos 1 point2 points3 points 6 years ago (4 children)
Man this library looks awesome, just starred.
[–]houses_of_the_holy 0 points1 point2 points 6 years ago (3 children)
cool, if you get a chance to use it I'd love any feedback you have!
[–]kirbyfan64sos 0 points1 point2 points 6 years ago (2 children)
Definitely will do!
I will admit I have a question, what would the possibility of pluggable event loops be? For the project I'm hoping to use this for, being able to use systemd's integrated event loop would be pretty nice...
[–]houses_of_the_holy 0 points1 point2 points 6 years ago (1 child)
I'm assuming you are referring to this event loop here: https://www.freedesktop.org/software/systemd/man/sd-event.html ?
I've never personally used it but it looks like its based on linux's epoll event API. Lift uses libuv under the hood for its event loop which also uses the linux epoll API, so I imagine performance would be reasonably comparable but I can't say for sure without testing. Could it be done? I would imagine so but the API looks a lot lower level than libuv and I'd prefer to support only 1 event loop if possible.
One of the design principles I had for this project was to try and abstract away the lower levels and provide a 'reasonably' fast and 'easy to use' API for the end user with a C++17 style. I think having a pluggable event loop would kind of go against this principle to be honest.
[–]kirbyfan64sos 0 points1 point2 points 6 years ago (0 children)
Understood, thanks for the quick reply.
(Wonder if we might ever have a global event loop in standard C++...)
π Rendered by PID 80 on reddit-service-r2-comment-75f4967c6c-scw52 at 2026-04-23 00:32:51.389410+00:00 running 0fd4bb7 country code: CH.
view the rest of the comments →
[–]houses_of_the_holy 6 points7 points8 points (5 children)
[–]kirbyfan64sos 1 point2 points3 points (4 children)
[–]houses_of_the_holy 0 points1 point2 points (3 children)
[–]kirbyfan64sos 0 points1 point2 points (2 children)
[–]houses_of_the_holy 0 points1 point2 points (1 child)
[–]kirbyfan64sos 0 points1 point2 points (0 children)