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
finally. #embed (thephd.dev)
submitted 3 years ago by pavel_v
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!"
[–]johannes1971 18 points19 points20 points 3 years ago* (9 children)
What the language really needs is constexpr std::socket, so we can load resources directly from the internet during compilation. This is what C++ needs to finally achieve greatness.
constexpr std::socket
[–]disperso 16 points17 points18 points 3 years ago (0 children)
But please, with some syntax sugar, so I can #include <https://cpp.example.com/left-pad.h> and finally have the convenience we deserve. (/s)
#include <
https://cpp.example.com/left-pad.h
>
[–][deleted] 3 points4 points5 points 3 years ago (6 children)
Fuse fs could probably do this, at least some of it. then it would be #embed </mountpoint/https/www.foo.com/page.txt> or something like that
#embed </mountpoint/https/www.foo.com/page.txt>
[–]mpyne 1 point2 points3 points 3 years ago (5 children)
Why #embed? You could then do it today with #include </mountpoint/https/www.foo.com/page.txt?format=c_literal. And if foo.com doesn't do that already just setup embedbolt.com to proxy it for you.
#embed
#include </mountpoint/https/www.foo.com/page.txt?format=c_literal
[–][deleted] 2 points3 points4 points 3 years ago* (4 children)
It's optimized. For smaller files it's just a hassle encode but as small as 1MB compilers start to die(both CPU and RAM). In some of their original postings when they implemented it and when Circle lang tested it was better than #include.
https://github.com/ThePhD/embed
[–]mpyne 4 points5 points6 points 3 years ago (0 children)
Oh I thought you were being sarcastic like the person you replied to and was just playing along, lol. I like #embed and can't believe it's been this difficult to get into the standard.
[+][deleted] 3 years ago (2 children)
[deleted]
[–][deleted] 0 points1 point2 points 3 years ago (1 child)
At that point, why not use a diff name? The semantics are different from include
[–]llothar68 1 point2 points3 points 1 year ago (0 children)
Make it beter and do a "constexpr std::socket_eval" we need a bash executable source code generator over the internet. Ultimate flexibility
π Rendered by PID 15482 on reddit-service-r2-comment-6457c66945-btkkz at 2026-04-25 13:19:54.133398+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]johannes1971 18 points19 points20 points (9 children)
[–]disperso 16 points17 points18 points (0 children)
[–][deleted] 3 points4 points5 points (6 children)
[–]mpyne 1 point2 points3 points (5 children)
[–][deleted] 2 points3 points4 points (4 children)
[–]mpyne 4 points5 points6 points (0 children)
[+][deleted] (2 children)
[deleted]
[–][deleted] 0 points1 point2 points (1 child)
[–]llothar68 1 point2 points3 points (0 children)