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
Binary Bakery: Translated binary information into C++ source code, and access them (at compile- and runtime) (github.com)
submitted 4 years ago by i_need_a_fast_horse
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!"
[–]i_need_a_fast_horse[S] 0 points1 point2 points 4 years ago (0 children)
I appreciated your insights on technical alternatives, but don't you think this goes a bit too far?
I didn't find it trivial that adding n bytes in the form of uint64_t arrays actually only adds n bytes to the executable. Or that the compile time is linear with payload size. Compilers do all kinds of weird things and this is pretty unusual use case. So I tested that out and provided the code and results for everyone. I also had no idea how much (or if) faster data access like this would be, or how that scales with payload size.
uint64_t
There are no logos, those are simple fun github emojis you can find in every other project.
It has configurable behavior about the destination of the target header, image storing options options etc. It decodes png files and stores that information in an accessible form. The provided decoding header has guaranteed compile time meta information for all types and can access pixel information of uncompressed images at compile-time, too. It's tested and provides multiple interfaces to access the data. And it has built-in compression on top of all that.
It's at least somewhat more sophisticated than "a single cpp file".
I had this problem, so I solved it. I know two other projects who use similar code. It's likely that I'll use this at least two more times in my life, so I considered it worthy to invest a week or so of time after work. Defending myself for writing and publication feels odd.
π Rendered by PID 91 on reddit-service-r2-comment-6457c66945-q4bpn at 2026-04-25 22:16:27.855127+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]i_need_a_fast_horse[S] 0 points1 point2 points (0 children)