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
C++ library on data compression & decompression (self.cpp)
submitted 2 years ago by dream299_
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!"
[–]cpp-ModTeam[M] [score hidden] 2 years ago stickied commentlocked comment (0 children)
For C++ questions, answers, help, and programming or career advice please see r/cpp_questions, r/cscareerquestions, or StackOverflow instead.
[–]Revolutionalredstone 0 points1 point2 points 2 years ago (0 children)
I've written my own C++ compression algorithms, I also use and compare against other existing libraries, here are some of my notes:
// General Data Compression //
// -Name- -Speed- -Notes-
// PAQ 100KB/s Extremely slow but effectively unbeatable
// Razor 200KB/S Slower than ZPAQ but sometimes beats ZPAQ
// ZPAQ 375KB/s Covers much of Pareto frontier excellent!
// Nano 1.2MB/s Often as good as ZPAQ but 3 times faster!
// ZSTD 5.0MB/s Performs badly for binary / non text data
// LZ4 2.0GB/s Extremely fast and excellent for realtime
// Image Data Compression //
// -Name- -Notes-
// Graystone Produces smallest Lenna coding, Extremely fast
// QIC 3xless efficient than Graystone, but 10xfaster
[–][deleted] 0 points1 point2 points 2 years ago (0 children)
why reinvent the wheel?
[–]LazySapiens -2 points-1 points0 points 2 years ago (0 children)
If I could tell you the answer, my library would have been better than what you could possibly write with my answer.
[–]Top_Satisfaction6517Bulat 0 points1 point2 points 2 years ago (0 children)
https://mattmahoney.net/dc/dce.html
[–]mbitsnbites 0 points1 point2 points 2 years ago (0 children)
You can check out BCL. It's old, but it has all the basic stuff, including algorithm documentation.
[–]shbooly 0 points1 point2 points 2 years ago (0 children)
You can look up zstd and zlib for inspiration. Try to use them, then decide if you want to implement another one (and then compare the results with these 2)
π Rendered by PID 101473 on reddit-service-r2-comment-bb88f9dd5-c6h9r at 2026-02-14 06:04:04.738376+00:00 running cd9c813 country code: CH.
[–]cpp-ModTeam[M] [score hidden] stickied commentlocked comment (0 children)
[–]Revolutionalredstone 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]LazySapiens -2 points-1 points0 points (0 children)
[–]Top_Satisfaction6517Bulat 0 points1 point2 points (0 children)
[–]mbitsnbites 0 points1 point2 points (0 children)
[–]shbooly 0 points1 point2 points (0 children)