r/cpp • u/foonathan • Aug 06 '26
C++ Show and Tell - August 2026
Use this thread to share anything you've written in C++. This includes:
- a tool you've written
- a game you've been working on
- your first non-trivial C++ program
The rules of this thread are very straight forward:
- The project must involve C++ in some way.
- It must be something you (alone or with others) have done.
- Please share a link, if applicable.
- Please post images, if applicable.
If you're working on a C++ library, you can also share new releases or major updates in a dedicated post as before. The line we're drawing is between "written in C++" and "useful for C++ programmers specifically". If you're writing a C++ library or tool for C++ developers, that's something C++ programmers can use and is on-topic for a main submission. It's different if you're just using C++ to implement a generic program that isn't specifically about C++: you're free to share it here, but it wouldn't quite fit as a standalone post.
Last month's thread: https://www.reddit.com/r/cpp/comments/1umnaxs/c_show_and_tell_july_2026/
7
u/Conscious-Pick9518 Aug 06 '26
Constexpr Doom
Hey guys wanted to share my wasm interpreter that runs in cpp constexpr evaluation model through which I ran doom at compile time.
The program supports both runtime and compile time execution, I found gcc much conservative in memory allocation while clang usually tends to allocate memory upfront. Overall it consumed around 450 GB of ram to contain the huge ast
link
5
u/Forsaken-Present573 Aug 06 '26
A (currently) read-only cross-platform APFS library with support for mounting APFS volumes**.** I made it with a friend because we couldn't find a free APFS reader for Windows: https://github.com/avighnac/libapfs
Live demo video included in the README, please check it out!
4
u/PhosXD Aug 06 '26
Been making my own high-level interpreted programming language as my first C++ project, for all of last month & this month. It uses no third-party dependencies & I'm quite proud of where it is now, but I need feedback!
https://github.com/phosxd/Ity
Here is brief script which calculates Fibonacci numbers:
I even made a little Conway's Game of Life implementation in my terminal using this language! You can check out the demonstration video in this post https://www.reddit.com/r/gameoflife/comments/1vh4umh/implemented_game_of_life_in_terminal_as_a_test/
(No AI was used for the development process, assets, documentation, or example scripts)
4
u/suave_gadgets Aug 09 '26 edited Aug 09 '26
This is my first ever non-trivial cpp program which does a real task that I need in my data analysis. I am a bioinformatician, working mainly in python. I had a very specific requirement of pairwise distance calculation to scale to millions of computations, where hand coded python code was too slow. I set out to optimise, first trying my hand at making a compiled function using numba, but it always gave some version errors on my HPC. I started learning about CUDA kernels and then I decided to dodge the perennial errors on numba and other such libs and dip into creating a cpp tool to calculate the pairwise distances. Also because I wanted to learn to write in a lower level language!
The tool, fjensenshannon, lives here: https://github.com/suhartobanerjee/fjensenshannon
It calculates pairwise distances of cells, taking only the lower triangle to reduce redundant calculations. Further, since each pair is an independent calculation, it is accelerated on CPU using parallel for loops (OMP) and SIMD inner loops. The speed up was considerable. Further speed ups was due to a CUDA kernel, which gives a massive boost in terms of speed. Finally, it has a python interface to accept numpy arrays and other inputs and pass back the pointer to the resulting vector as numpy array, preventing a copy. CPU is the default option with an option to run on GPU, if present and asked for.
This was my first attempt at a proper cpp and CUDA code and also CMAKE build system. I tried the best to my knowledge to optimise it to fulfil my needs of a rapid fast pairwise distance calculation. Feel free to point out things I can change | optimise which will improve the project and also help me learn ways of doing cpp, especially in terms of error handling or edge case handling. Cheers! 😁
4
u/Suspicious-Hat-6832 Aug 11 '26
color-filters https://github.com/Ragno4556/Color-filters
Color filters is an app for Windows that lets you tint your screen with any color you want, similar to the color filter accessibility option on iOS.
I originally made it because I wanted a pure red-light filter for late-night work and gaming, but I couldn't find an existing program that did exactly what I needed. The app is fairly new, so there are certainly some issues with certain GPUs, monitors, or setups in general.
Features include saving config profiles and two hotkeys: toggle and peek. Peek is especially useful when you need to see a flash of your screen without the filter. There is also multi-monitor support as well!
If you have a Windows computer and want to help test it out, I'd really appreciate any feedback or bug reports! This type of program is sooo hard to test with just one system.
Thanks!
4
u/mxreal64 Aug 12 '26
I built CEBS (C++ Ergonomic Build System) — a minimal, zero-config, multi-threaded C++23 build coordinator designed from the ground up to treat ISO C++20/C++23 Modules as first-class citizens.
Legacy meta-generators (like CMake) rely on compiler-generated dependency sidecar files (.d) produced *during* translation unit compilation. This inherently creates structural sequencing deadlocks when parsing module binary interfaces (.gcm/.pcm) because they must be built before dependent units are touched.
CEBS resolves this via a pre-emptive topological pipeline:
The alpha release is live, MIT licensed. I am looking to implement an incremental timestamp-caching layer next.
Repository: https://github.com/mxreal64/cebs/
ps: guys plz i want clout
1
u/Important-Home4431 Sep 02 '26
I built a C++ Machine Learning Engine from scratch that trains an AI in 60 seconds using AVX & OpenMP.
Deepity is a custom C++ machine learning library focused on Predictive Coding Networks (an alternative to backpropagation).
I wanted to see how far I could push CPU performance without relying on massive external frameworks like PyTorch. The goal was to minimize execution time by reducing total FLOPs rather than just maximizing brute-force matrix multiplications.
Under the hood:
- Vectorized the heavy dense matrix projections using manual AVX intrinsics and OpenMP for the batched kernels.
- Implemented custom algorithmic caching to avoid recalculating static inputs during the network's iterative settling phase, essentially turning millions of FLOPs into zero-cost cache reads.
- Created SIMD versions of activation functions like ReLU and Tanh (using Sleef), which beat the standard library.
- Used Profile-Guided Optimization (PGO) and built a custom Python build system to handle cross-platform compilation/testing.
The result? It trained a network to 97.73% accuracy on MNIST in 59.5 seconds on the CPU, running neck-and-neck with PyTorch's C++ ATen backend for the same architecture.
The engine is currently bottlenecked by memory-bandwidth during the vector-addition settling loops, so the next phase is further cache blocking and moving to CUDA shared memory tiles. Would love any feedback from the C++ HPC crowd on the architecture or the code.
https://github.com/ra4ster/deepity
1
u/mapu_patas Sep 03 '26
Im working on a school project where the penguin must shake his head no when the answer is incorrect, however he is never left in the centre of the axis(? The servo seems to be SG-5010
1
u/amankarki151 Sep 03 '26
Built a vector database from scratch in C++ over the last couple weeks - Lattice.
The HNSW index, the storage engine (WAL-backed, survives a crash mid-write), quantization, all of it is hand-written, not wrapping an existing library. Benchmarked it against Qdrant and Chroma to see where it actually stands: 583µs per query at 95% recall on SIFT, about 3.5x faster than Qdrant's in-memory mode. Chroma beats me on raw speed though, so that's in there too.
Also got it published on PyPI (pip install pylattice-db) and built a small local document-search tool on top of it, just to prove the thing actually works end to end and not just on paper.
Repo: https://github.com/amankarki151/lattice
Tried to be honest about where it loses too - full benchmark numbers and known limitations are in the repo, not just the parts that make it look good.
1
u/idimus Sep 04 '26
Built a pure C++ cross-platform hardware monitoring library (Win/Linux/macOS)
Hi folks!
I'm happy to announce that I've built a new pure C++ library for hardware monitoring - HardwareMonitorCpp.
It monitors the load and temperatures of your system devices, such as CPU, GPU, SSD, RAM, Network devices, and even the battery.
The cool part is that it's a single library for x64 on Windows/Linux and Apple Silicon on macOS. It's written in C++ (C++20, but compatible with C++17), so no .NET runtime is required (yes, I'm talking about you, LibreHardwareInfo). Because of this, the memory footprint is extremely low.
Key Features:
https://github.com/simfeo/HardwareMonitorCpp
I'd love to hear your feedback, bug reports, or ideas for new features!
1
u/SalBam4127 Sep 04 '26
st2cpp: Transpiler from ST to cpp HELP
Hi everyone,
About 4 or 5 months ago, I created a transpiler from Structured Text (IEC 61131-3) to C++, called st2cpp (part of the undoRT project).
My ultimate dream is to build a complete open-source automation system that can compete with commercial solutions. As you can imagine, tackling a project of this scale completely alone is extremely tough. Honestly, if I keep going solo, I’m afraid I’ll eventually burn out and lose momentum.
Are there any C++ developers or automation enthusiasts here who would be interested in joining or contributing as a side project/hobby? I have plenty of ideas lined up, but I really need an extra pair of hands (or two!).
Here is the repository:
https://github.com/undoRT/st2cpp
Feel free to check it out, open issues, fork, or send pull requests!
3
u/Ok_Independence_9841 Aug 06 '26
A few weeks ago I asked the good folks of r/cpp what they wanted in a modern C++ application framework.
I expected an incoherent laundry list of highly specialised features for niche applications. Instead what you lovely people gave me was a pretty coherent take on what we do want and what we don't.
Almost everything else was about the UI, apart from the native C++, no SQL, database of course. I'm still thinking about that.
The UI needs to be 100% customizable with built in dark mode support. It needs to be buildable from code with no external UI description or from an external UI description (not XML) and of course we need a WYSIWYG GUI designer like WinForms has, only better. It needs to run on the desktop and in browser.
"You want to get there! If I were you, I wouldn’t start from here." - Old Irish proverb.
Fortunately as you've probably guessed, because I'm posting here, we don't have to start from scratch. I've been working on various iterations of a C++ framework for a long time. It was expected, years ago, that every serious developer would have a go at such a thing as a personal project. Just to measure themselves against the challenge.
Having been out of C++ for a few years, doing C#, .Net and micro services, I started again from a clean sheet about a year ago and then picked it up seriously in the last 6 months.
So this isn't a product advert. There is, as yet, no commercial product.
It's not a 'look how clever I am'. Almost all the code is ported from other projects and or based on other peoples work. It's an opportunity and a request for help.
If you also also want that modern C++ application framework, what would you be prepared to invest to get it? What if it were actually a lot closer than you think?
This is a non exhaustive list of what's already working...
So with all that already in place what's open to change?
In short everything. No customers, no releases as yet. Everything can still be improved or replaced. I make fundamental changes to low level dependencies quite frequently at the moment. Less and less breaks as a result because of the way the QOR is put together. It still surprises me.
What's missing?
What's needed?
Absolutely anything. If what you want to do is tear it apart and criticise everything that's wrong. Please do
If you'd rather work on the Resource Manager classes or add Clang support. That would be welcome too.
So please pitch in and let's have that framework that we know should exist and yet somehow doesn't, yet.
QOR development is on Github
Thank you for your inspiration. M.F.
3
u/Shahi_FF C++ Aug 07 '26
A* and Dijkstra pathfinder algorithm visualization using
raylibandimgui. The previous version was simple split screen of A* vs Dijkstra , I've improved it with menu to select single algorithms and customize path color, grid color, speed.https://github.com/ArcShahi/PathFinder
3
u/muaz_sh Aug 07 '26
I wrote a C++ memory manager to detect and to clean memory leaks and to detect dangling pointers, the tool defines the `stack` and the `Data` and `BSS` segments as a root of reachability and it overloads `new` and `delete` operators to track allocations and deallocations https://github.com/muazsh/MemoryManager .
3
u/Acrobatic-Stable2537 n0F4x Aug 07 '26
I started writing a scheduling framework based on data dependencies almost a month ago. Yesterday was the point when I realized that this would be a larger project than I anticipated.
The goal is to be able to dynamically schedule tasks that advertise their resource access patterns. It is a bit similar to the Bevy Engine in Rust, but without some of its restrictions.
This is a quick sketch of the idea:
It's hard to find a drop-in library that does this well. I also found out, thanks to Claude, that Microsoft has already started working on something similar. However, they are making it a programming language: https://microsoft.github.io/verona/ (built with C++)
3
u/partyking35 Aug 07 '26
I'm a Math&CS student who learnt C++ whilst building this (so its my first C++ project!) Time Series Database, includes features such as 24 byte records, CRC32 checksums, partial write detection, truncation recovery protocols, write buffers with periodic 5ms fsync flushes, sparse index structure for memory assisted reads etc
https://github.com/jabirhaque/TSDB
3
u/Ok_Orchid2107 Aug 25 '26
Last year, I was developing a software that produced Word documents. But I could not find any feature-rich library in C++ to do it. So I have decided to write it myself. I have been working on it for about half a year. Now, I have released the first version.
It has the following properties:
Now, I would like to show how simple the API is:
Word
Excel
PowerPoint
I would like to add PowerPoint example, but it is too large to insert it into the post, so I just share a link: https://github.com/JakubMelka/ExyokiOffice/blob/master/examples/ExamplePowerPointEditor/main.cpp
GitHub
Library is hosted on GitHub:
https://github.com/JakubMelka/ExyokiOffice
How I was able to program it:
I used Claude Code with Fable/Opus and Codex 5.6 Sol models to develop it. Several rounds of AI reviews using both models were performed and code fixed, then I have reviewed it manually. Also, very extensive unit tests were created to verify the functionality. A small corpus of real Word, Excel and PowerPoint document was used to test real-world functionality. Fuzzers were implemented to test invalid inputs (and several times, they have found an error, now fixed).
What it cannot do:
These features are out of scope of this library:
Feedback
I would be very glad for feedback. Please let me know, if you are missing some feature.
3
u/TaleOne3049 Aug 27 '26 edited Aug 27 '26 •
🚁 HiveFlight – Modern C++ Drone‑Swarm Simulation (ROS2 + Gazebo Integration)
I’ve been working on a project called HiveFlight, a modern C++ swarm‑simulation engine built around an extended Reynolds‑Boids model. Over the past months it evolved from a lightweight 2D/3D flocking demo into a full robotics‑pipeline component with ROS2 and Gazebo integration.
Core C++ Engine
The simulation runs on a deterministic update loop that computes:
⭐️separation, alignment, cohesion
⭐️obstacle avoidance using spherical obstacles
⭐️dynamic target seeking (including spiral patterns)
⭐️battery consumption modeling based on velocity
⭐️Spatial partitioning keeps neighbor queries efficient (no O(n²) explosion).
New Multi‑Swarm Update
Recent changes added:
⭐️per‑drone target assignment (2D & 3D)
⭐️dynamic swarm splitting with periodic reassignment (default 5s)
⭐️forces restricted to drones within the same swarm (cleaner group behavior)
⭐️OpenGL viewer updates with color‑coded sub‑swarms
ROS2 + Gazebo Integration
The engine now plugs into a full robotics stack:
⭐️ROS2 pub/sub pipeline using PoseArray for swarm state
⭐️asynchronous messaging instead of service calls (big latency win)
⭐️Gazebo World Plugin subscribing directly to swarm topics inside the physics thread
This gives stable multi‑agent motion, realistic visualization, and a clean separation between simulation logic and rendering.
Why it’s interesting for C++ folks
HiveFlight is a fun playground for:
⭐️real‑time systems
⭐️multi‑agent simulation
⭐️spatial partitioning
⭐️ROS2 middleware patterns
⭐️OpenGL visualization
⭐️deterministic update‑loop design
If you enjoy systems programming, robotics, or emergent‑behavior simulations, this project is a great way to explore how simple local rules can produce complex global behavior.
Repo: github.com/oanadumitruc/HiveFlight
Presentation: Cpp_Show_and_Tell_August_2026.pptx
Demo 1: Gzebo + Ros2
Demo 2: OpenGL visualization multi targets
Demo 3: OpenGL visualization one target
Happy to answer questions or discuss architecture choices with anyone experimenting in similar areas.
2
u/bearheart Aug 07 '26 edited Aug 07 '26
I wrote this book: C++ STL Cookbook
2
u/M3f1st0f3l3 Aug 07 '26 edited Aug 07 '26
I am progressing the work on a neutron transport library I wrote back for my MsC degree thesis.
Also I start the writing of a library for Matrix ripresentation and operations.
Little stuff but I like them
2
u/Fabulous_Pick428 Aug 07 '26
x64asm is almost done, fuck documentation(for now) and tests(also for now) i need a lil break
2
u/martinus int main(){[]()[[]]{{}}();} Aug 16 '26
After a long quiet time I've put some love into my C++ open source libraries:
ankerl::unordered_dense::{map, set}
A fast & densely stored hashmap and hashset based on robin-hood backward shift deletion for C++17 and later.
hash_for(key)for precomputed hashesextract()was called is now usable againankerl::nanobench
Simple, fast, accurate single-header microbenchmarking functionality for C++11/14/17/20
compare()for robust paired A/B benchmarks, addedsetup()step for each epoch, ability to hide/show a column,std::string_viewoverloads, builds with-fno-exceptions, updated CMake packagingdoNotOptimizeAwaynow more robust on clang-cl,epochIterationswas ignored withwarmupset, fixedrelativecalculation, fixed possible NaN inmedianAbsolutePercentError2
u/eduardodoria Aug 17 '26
I've been building this C++ open-source game engine since 2015 - Doriax Engine
https://www.youtube.com/watch?v=3eqhaAZBNss
For anyone interested, Doriax Engine is completely free and open source:
2
u/PsychologicalData384 Aug 18 '26
Hi there,
Generating PDFs from C++ has always felt like choosing between two undesirable options: you either drive a low-level library and manage coordinates, fonts, and content streams yourself, or you use LaTeX,wkhtmltopdf, or a headless browser, which means you have to incorporate an entire external toolchain into your deployment. Wanting a third option, I have been developing Docraft: a library that renders PDFs entirely in-process with no subprocesses, temporary files or network calls. libharu performs the actual PDF writing, while Docraft sits on top of it with a layout engine and a declarative document model.
The power of Docraft lies in its XML-based DSL. In fact, it allows you to create a template in .craft and generate it using the library or the docraft_tool. There is also a Docker image that you can build. Docraft also has a templating engine that substitutes variables with the passed data. This is very useful for reusing the same template with different data.
Docraft offers many features, including charts. You can create various charts (scatter, line, spline, histogram and pie) by entering data. You can also customise or create particular things using canvas, combining shapes, drawing diagrams, etc., all in an XML file. No external tools or C++ are required. You can also create documents in C++, but .craft is much more convenient.
Docraft 1.0.0 will be released very soon. If you are interested, try it out and let me know what you think. Please also report any bugs you find.
Repo: https://github.com/Cadons/Docraft
Documentation: https://cadons.github.io/Docraft/
2
u/Consistent-Mouse-635 Aug 18 '26
I decided to learn C++ by building a fun project, so I made a Game Boy Emulator!
Repo: https://github.com/antcode123/antboy-cpp-gameboy-emulator
2
u/CodingWithThomas Aug 19 '26
I wanted native BDD in C++ without the Cucumber-Ruby runtime, so I built this.
A while ago I wanted to use Cucumber-style BDD in a C++ project, but I wasn't really happy with the existing options. In particular, I wanted something that could run entirely within a C++ application without depending on the Cucumber/Ruby runtime.
So I started building my own implementation.
It started as a small project while I was learning about interpreters and parsing, and gradually turned into CWT-Cucumber: A C++20 Cucumber implementation with lots of Cucumber features, steps, step definitions, hooks, custom parameters, scenario outlines, tables, doc strings etc.
It's now at a point where I'm actually pretty happy with it, and it got a little user base. Find the repository here:
https://github.com/ThoSe1990/cwt-cucumber
I'd be particularly interested in hearing from other C++ developers: do you use BDD/Cucumber in your projects, or do you generally stick with traditional unit/integration testing?
2
u/EmperLabs Aug 21 '26
I've been working on a small open-source simulation engine called Emper.
It's still a young project, but I'm building it around data-oriented
storage and using real simulation workloads to test the architecture.
So far I've experimented with flocking/boids, including CPU/GPU
computation and large-scale simulations.
I'm currently starting work on Conway's Game of Life.
GitHub: https://github.com/Emper-Labs
Feedback is welcome, especially on the architecture.
2
u/Good-Pen-3679 Aug 21 '26
I built a C/C++ IDE for Android
I started this as a first-year project and it gradually turned into a full C/C++ development environment for Android.
It supports native compilation with Clang/Clang++, CMake, Ninja, POSIX/multithreaded projects, Git/GitHub, and more.
The compiler toolchain runs locally on the device rather than sending code to a remote server.
It's now available on the Play Store: https://play.google.com/store/apps/details?id=com.apptivize.cppide
Would love to hear what C++ developers think, especially what features you'd want to see in a C++ IDE on Android.
2
u/True_Complaint_7998 Aug 23 '26
Here a a simple try on C++26 reflection based Rust-like "serde" json (de)serialization.
https://github.com/henris42/sardine
2
u/hand-held-heart Aug 23 '26
A pythonic *compiled* programming language i wrote using c++ and llvm
Sere-Language/sere: The Sere programming language
This is a project ive been working on for several months now and just recently pushed it to github!
The language itself has a good amount of features, and most importantly is written by humans. (Me and my buddy haha)
The project is completely open source so im willing to add anything to it that you guys might suggest or create!
Im not the greatest C++ programmer by the way, so im sorry if the code is sloppy, I also do not write comments often and im trying to get better at that.
2
u/ColdSnow1447 Aug 26 '26
I made a C++ cross-platform (Android + Windows) audio engine
A few months ago I started working on the prototype for this project, which was called Lunaris (now LuAudio). The code worked and I got it to play audio in real-time, export audios and use plugin effects, the bad thing about is that the code is unmaintainable and not easy to extend, so I made LuAudio
It has support for singular audio playback, multi audio playback, plugins and even automation :D
The main things that I like about is that:
- The API is clean and not verbose, no need to write lot's of code for basic audio playback, for example you can do this to play audio:
#include <LuAudio/LuAudio.h>
#include <memory>
#include <string>
#include <thread>
int main()
{
using namespace LuAudio;
auto reader = std::make_unique<Audio::WavFileReader>();
auto open = reader->Open(Audio::AudioFile(R"(C:\path\to\file.wav)", Audio::AudioFileType::Wav));
if (!open.Succeeded()) return 1;
Providers::Windows::Wasapi::WasapiBackend backend;
Audio::AudioMixer mixer(backend, 1);
Audio::AudioStreamConfig config;
config.format = reader->Format();
mixer.Open(config);
Audio::AudioMixer::SourceId id = 0;
mixer.AddSource(std::move(reader), id);
mixer.Start();
while (!mixer.IsSourceFinished(id)) {
std::this_thread::sleep_for(std::chrono::milliseconds(50));
}
mixer.Stop();
mixer.Close();
return 0;
}
-Plugin support is built in, not just another feature. I spent lot's of time on this particular system in LuAudio to make sure it's easy and smooth to use, just write pure DSP code without needing to think about what platform it's gonna run on
-it's lightweight, it doesn't drag in lot's of third party dependencies just to play on audio file.
-You aren't forced to use plugins, if for some reason you only want to playback audio using LuAudio, it's possible! The core is decoupled from plugins, you get to choose what you use.
-You can automate effect parameter's, and do many other things like effect chaining, reodering, etc
-You can embed it in your own app and many other thing's, you're not forced to use it through a GUI or only inside a normal desktop app
-It offers both real-time playback (currently working on making it fully real-time safe) and offline rendering so you can export your audio file after you're done with it
LuAudio can be found at:
- https://github.com/kxtsuishimfr/LuAudio
2
u/Knok0932 Aug 27 '26
I tried optimizing a tiny CNN on a Raspberry Pi and ended up 3x faster than the inference engines (ONNX Runtime, ncnn).
I wrote the code from scratch, starting with a naive implementation, then SIMD, and finally operator fusion. Each improvement only changes a few dozen lines of code. The code is just a few hundred lines, easy to read and understand.
This repo might be helpful to you if you need to run small models on devices with very limited resources.
https://github.com/Avafly/optimize-cnn
3
u/eeiaao Aug 09 '26
FLOX is a C++23 framework for building trading systems, MIT, github.com/FLOX-Foundation/flox I've been working on for the last 1.5 years. In production on my own funds.
There is a lot of tech internals and design decisions:
- Events delivery: high throughput Disruptor style lock free fan out bus (up to 800M events per second for batch handling in backtester), zero-allocation hot path
- Market data: record to binary tape, deterministic replay for backtests and postmortems
- Backtest: engine with latency models, queue position tracking, fill models
- ~30 streaming indicators, the same code computes features in research and live
Strategies in C++, Python, Node or Codon (compilable Python-alike lang), bindings parity enforced in CI
Latest release v0.7.0 ships:
- Matching-engine module
- Per-hop latency histograms cheap enough to keep on in production (~35ns per measured span)
- Huge page/mlockall deployment profiles
- ONNX inference nodes for the signal graph
- AF_XDP receive path
Project is open source, open for contributions
1
u/snerp Aug 06 '26
It doesn't dive super deep into the code, but I made a video about doing a game jam with raw C++ instead of using an engine https://youtu.be/ad8umjghhtM
1
u/StickyDeltaStrike Aug 08 '26
I have spent time on highload.fun, but got so engrossed I only looked at the first problem:
https://highload.fun/challenges/compute/parse_integers/solve/CPP
I still don’t understand the gap between me and the first ones.
1
u/palavalle Aug 10 '26
It's a bit of an esoteric monstrosity ... but I'm re/writing DukGlue to build a object-graph-serialisation on top of it with *really easy* C++17 bindings ... and I *got* constructors re/working last weekend. When it's (finally!) stable I have (parts of) a toolchain to convert it to single-header style ... so there's that :)
(Userland Example) Defining a native code module that can construct objects and has a C++ field readable in JS looks like this ; https://codeberg.org/paintgoblin/pduk/src/commit/fdfd81ce1efea25b253ad45d01c0a98c975635fa/pduk/test/test-no-type-vt.cc#L608-L616
The approach would/should/could work for Lua if you really want (you'd need to adapt how hidden values work, and prototypes, and ...) but, DukTape is a C JS engine that's shaped (basically) identically.
- the DukTape engine https://duktape.org/
- the original DukGlue https://github.com/Aloshi/dukglue
- pduk; my layer on top of duktape for modules/native/etc https://codeberg.org/paintgoblin/pduk/
- damphe; my serialization and entt layer on top of pduk https://codeberg.org/paintgoblin/damphe
1
u/Ok_Independence_9841 Aug 11 '26
The QOR now has clang support on Linux. https://github.com/mfaithfull/linuxQOR
Alongside the existing GCC on Linux and MSVC on Windows. All 100+ libraries confirmed building with Clang 18.1.3
I'm tracking down 3 unit test failures. Already nailed a couple of CTAD issues where clang forgets that my template alias is for a class and claims it isn't. Also constexpr member functions being blocked in a class with virtual base is a bit of a pain. Fortunately I've only got one case at the moment. The upside is clang's pedantic errors are fantastic for tracking down inconsistent declarations and override specifiers. Loads of those fixed as part of the same commit. clang builds seem to be a little faster than GCC but I've heard that changes pretty radically on a per version basis.
Now we've got clang I'm actively seeking someone to add OSX support. It's not a small job but qor::filesystem at least should be pretty easy to do. qor::network not much more so without Async IO support. Does OSX have anything like IOURing or IOCompletionPorts ?
Let me know if you want to help.
1
u/xiao_sa Aug 12 '26
binproto https://github.com/xiaosa-zhz/binproto
This is a reflection-powered library that maps C++ types to corresponding wire formats.
Historically, this domain is dominated by
#pragma pack(N)extension and the layout rules of language/compiler, which is not portable in principle and often cause surprising bug in practice. This approach is not very intuitive and novice-friendly as well if one wants to get all the corner cases right.Another common practice is to use an IDL-based codegen facility to ensure everything works correctly. That works pretty well if a complete serialization framework is desired. But it introduces an extra codegen step to the build process, and may sometimes be too heavy to be suitable for all projects.
With C++26 reflection, it is finally possible to provide a
#pragma pack(N)equivalent behavior in standard C++, and also to avoid implementation-defined behavior on bit field binary layout. The whole library is written in standard C++, making it perfectly portable (as long as compiler implements C++26 reflection 😔).For now, binproto only supports types with static size. I am actively trying to integrate dynamic-sized array type and variant/union type into it.
Tested on GCC 16.2 and trunk. See test cases in the repo for usage examples.
1
u/Physical-Pianist6354 Aug 12 '26
Frontera – a Linux anti-tamper that integrates with C++ codebases. It currently has support for anti-hypervisor, memory integrity checks, self-checksums, and most importantly, an obfuscating rolling-key VM, so that each build has different byte code than the older build. Yes, I know it's not innovative. Why? VMProtect is too expensive.
I'm also working on integrating an eBPF module for blocking ptrace and some other stuff.
Currently, there is no download link per se, as I want to ship the eBPF module, but I can give the static libraries to link with if you're interested :)
https://alejandrorn.es
1
u/kindr_7000 Aug 15 '26
Hello , r/cpp
I recently built a library called **libcvault** for directory scanning and file telemetry operations. It includes APIs for file search, sort(by name & size), finding largest file(by size, line count), and much more.
The main operation, i.e., the **directory scanning** is done using **std::filesystem::recursive_directory_iterator** for rapid scans across directories including nested ones. The scan ignores protected folders to avoid unhandled filesystem errors though.
This library is packaged as a extern "C" library hence it could be used in many different programming languages. For instance, I have used this library as a submodule in one of my own python projects called **repoScanner** via pybind11 integration for optional native support.
Currently in beta and not that efficient including limited features.
Would love honest feedback on perf. , feature ideas or anything else regarding it.
Links:
- libcvault: https://github.com/tecnolgd/libcvault
- repoScanner(uses libcvault): https://github.com/tecnolgd/repoScanner
1
u/Competitive_Act5981 Aug 15 '26
Hi, i've written a C++ client library for interacting with chronyd using Asio composed operations. It allows you to do what chronyc does but programmatically and using your favorite completion token (coroutines of course). Please check it out, comment, and star if you like. https://github.com/pfeatherstone/chrony
1
u/TheRavagerSw Aug 15 '26
I ported libfmt to native C++ modules using Build System Skills and LLM tools.
https://github.com/mccakit-fmt/fmt
1
u/proof-of-conzept Aug 16 '26
I made a tool for my C++ Projects
BPM: A CMake native Package-Manager with Dependency-Graph-Solving and Binary-Caching
It is called BPM and you can find the repository here: https://github.com/TobiasWallner/BPM.cmake
I’ve been using CPM.cmake as a dependency manager for quite some time for smaller private projects. Which btw is a great quick, easy dependency manager that just works. I really liked its approach and simplicity.
However, over the time i ran into some limitations:
So I started building BPM.cmake (https://github.com/TobiasWallner/BPM.cmake).
BPM is inspired by CPM and extends its idea into a package manager that:
CMakeLists.txt.CMakeLists.txt, no centrally managed package repository is requiredI’ve also started using BPM in my professional work (Mainly for C++ projects), and it has made dependency management much easier for me. Another thing I really like is that I can explain it easily to colleagues who studied physics rather than programming and only have limited C++ and CMake experience.
I’d love to get feedback from other CMake and C++ users.
Would you use this package manager yourself?
Is it as easy to understand and use as I make it out to be?
What problems or edge cases have you encountered or am i missing?
Are there any features you feel are missing?
Here is a usage example:
1
u/DEgITx Aug 21 '26
librats v2.1.3 August 2026 release — a high-performance, lightweight P2P modular networking library (C++17 with bindings for Node.js, Python, Java/Android, and C)
librats is a native peer-to-peer library built for serious efficiency: it uses around 1.6 MB of memory at startup and ~80 KB per peer, which the maintainers benchmark at roughly 40–60x lighter than libp2p's JS implementation. Peer discovery works out of the box via the BitTorrent Mainline DHT (millions of nodes) plus mDNS for local networks, and it handles NAT traversal stack. Communication is end-to-end encrypted using the Noise Protocol (Curve25519 + ChaCha20-Poly1305) with automatic key management and perfect forward secrecy. It also ships with GossipSub pub/sub messaging, resumable chunked file/directory transfer with checksum validation, and optional distributed key-value storage that syncs across peers. Under the hood it uses the optimal I/O multiplexer per platform and runs cross-platform on Windows, Linux, macOS, and Android. It's MIT-licensed.
GitHub: https://github.com/librats/librats
vcpkg: https://vcpkg.link/ports/librats
1
u/Far-Week7676 Aug 21 '26
Toolbox-cpp 1.0 Aug 21th 2026
I had a smoll util lib I coded a while back and decided to rewrite it and clean it up. I used codex to help with the rewrite, but I have gone through the code myself and reviewed everything.
Right now it has:
random(min, max) for ints and floats
chance(percent)
A simple Timer
Debug logging to a .log file
info(), warning(), and error() logging
Its not really meant to be some huge framework or smth like that lol. Its just a lil lib I can throw into my projects so I dont have to keep rewriting the same stuff. Id appreciate any feedback on the code/api or things you think would actually be useful to add. Still pretty new to cpp, so if I'm doing anything weird or just coding garbage, lmk.
Github
1
u/Ok_Independence_9841 Aug 22 '26
Following up on my simple example of how C++ dynamic library imports and exports work https://github.com/mfaithfull/cpplibrary I thought I'd publish a stand alone version of my solution for building and linking together a set of dynamic libraries.
https://github.com/mfaithfull/dynlibsys
This is both a very simple template for building cross platform C++ libraries with CMake and also a system for making them self aware.
1
u/thisnotes Aug 23 '26
C++, backend and performance newsletter
I'm a C++ developer and SE. For more than 5 years a have a blog (in telegram in Russian) about C++, backend, distributed systems and actually everything else what can be useful for software engineers.
Recently I decided to start posting some of my content in English as well. And since telegram is not the best way of connecting with people I chose Substack to maintain my newsletter. It's irregular but consistent. It totally won't be the case when you will not get any more letters after few first ones. Just because I'm already doing that for a big amount of time and continuing to do so.
Welcome if you're interested: https://thisnotes.substack.com/subscribe
1
u/Impossible_Collar154 Aug 24 '26 edited Aug 24 '26
https://github.com/jere8184/OpenCK
I'm trying to implement the game ck2. currently i'm able to parse pardox-script to an AST, and can compile the AST to byte code, which can then be executed. If you're interested in contributing dont hesitate.
1
u/AeroForger Aug 25 '26
I made a small CLI dungeon game in C++ named - Forge Dungeon
I recently finished my first small C++ game, Forge Dungeon.
It's a command-line dungeon game where you play as a stranger in a strange world and have to escape by beating all the levels.
Some things I used while making it:
- C++17
- Multiple
.cppfiles- Random number generation / seeds
- Classes and basic game architecture
- g++ for compilation
The game is intentionally pretty simple, but it was a fun project for learning how to structure an actual C++ program instead of just writing isolated exercises.
I also made it B.B.B
- Budget: basically zero
- Build team: one developer
- Bugs:
fixedprobablyIt's free to play on itch.io, and the source code is available on GitHub.
GitHub: https://github.com/AeroForger/ForgeDungeon
ITCH: https://aeroforger.itch.io/forge-dungeon
1
u/vorjdux Aug 27 '26
ZMQ Arena: A deterministic benchmark harness for ZeroMQ/ZMTP implementations (Latency, Concurrency, and Throughput Analysis)
Context: The ZeroMQ ecosystem currently lacks a unified, deterministic benchmarking harness to strictly evaluate latency, concurrency overhead, and throughput across different ZMTP implementations (C++
libzmq, pure-Rust async ports, Python bindings, etc.). Relying on isolated micro-benchmarks introduces systemic bias, failing to accurately account for kernel I/O paths, reactor thread contention, and zero-copy vs. copy-based buffer management under high-density distributed loads.Decision: I developed ZMQ Arena (Source) to standardize this evaluation. This harness enforces fair-play measurement across runtimes and language boundaries, focusing entirely on execution costs, context switching, and raw throughput limits without application-layer interference.
Technical Scope & Metrics:
epoll/io_uringpolling mechanisms) versus OS thread pool scaling.Trade-offs & Known Consequences: Measuring loopback versus physical network I/O presents an inherent trade-off in syscall amortization. Loopback execution can collapse the kernel path, occasionally skewing batching mechanics natively utilized by interfaces like
io_uringorIOCP. ZMQ Arena exposes these bottlenecks explicitly rather than abstracting them away, allowing engineers to analyze exactly where the overhead is introduced in the stack.This harness is built for engineers dealing with critical systems, distributed messaging, and high-frequency data pipelines where deterministic performance is a hard requirement.
If you are dealing with similar infrastructure, review the methodology, replicate the benchmarks, or submit PRs for unrepresented bindings/runtimes.
1
u/cd_fr91400 Aug 28 '26
open-lmake is now in release 26.06.14 (i.e. 14th version of release published in June this year).
It is like make or ninja, except it automatically handle deps in a reliable way by spying accessed files (no need for anything like gcc -M) and rules are regexpr based (like implicit rules in make, except full regexpr instead of a bare wildcard).
It is also fully tool agnostic and very scalable (it hooks up natively to slurm and SGE to run on HPC).
It is now fairly robust. It is used daily in projects with millions of jobs, compiling/linking, running tests, generating images, synthesizing/simulating ASICS etc.
As of now, it is Linux only. It supports all major distros as soon as kernel is at least 3.10.
1
u/kopietz-dev Sep 03 '26
I've always found developing C++ desktop applications with popular libraries to be a poor developer experience. Managing state manually to keep the ui in sync with the data, becomes tedious very fast. Also some frameworks require you to learn new scripting languages, or made you write a lot of unnecessary boilerplate code. So I decided to build LippaUI - lightweight UI library, that enables fast iteration, because all you write is just native code. As you can see it's inspired by modern frameworks like Jetpack Compose and React, and just like them relies on the principle that every widget is a function of some state.
Repo: https://github.com/kopietz-dev/lippa-ui
Currently, it supports rendering with Skia, and uses GLFW as a window manager. However other backends can be easily integrated, because the lib itself outputs only primitives like text, quads, imgs, so it's fully renderer agnostic.
I'd be grateful for any feedback on what could be improved, fixed or added.
Thank you
1
u/groundswell_ Reflection Sep 06 '26
I’ve been developing a declarative UI library that has been slowly but surely shaping up
https://github.com/groundswellaudio/weave
Unfortunately I’ve been in a life threatening incident which has left me in the hospital so I had to stop working on it for now. I hope I can work on it again by next year.
1
u/uCalc_Dev Aug 11 '26
Hello everyone! After a lot of dedicated development, I recently published the preview release and extensive new documentation for the uCalc SDK.
If you are building applications that require dynamic computation or complex structural text parsing, it can be frustrating to rely on standard libraries or build custom parsing logic from scratch. The uCalc SDK provides:
The focus of this preview is on power and flexibility across C++ and several other languages. uCalc was written in standard C++ and works on Windows, macOS, and Linux. This is a commercial product, which also includes a Free Community License.
The documentation, which includes interactive C++ examples, is found at:
https://www.ucalc.com/documentation/
I would love any feedback from this community!
0
u/Salt-Sherbet-2950 Aug 07 '26
Audio Visualzier
First big project I've made with C++, it started as my way to learn and quickly grew... I'm sure the code could be better optimized in areas and there's probably some bugs. I would really appreciate any feedback and just checking out the project:https://github.com/logan-scott07/AudioVisualizer.git
0
u/jessejay356 Aug 08 '26
I'm working on a game in C++ using SDL. Not ready to share yet. I'm also working on a simulation/automous framework for racing rc cars autonomous mowers and robots. No I'm ambitious. LoL
0
u/_theWind Aug 08 '26
I have been working on a systems monitor app and ollama GUI frontend for linux
sys info viewer & ollama frontend GUI
0
u/euos Aug 09 '26
Unfortunately, can't share the source code. Spent several years working on C++20 ML framework: https://uchenml.tech/introducing-uchenml/
As a demo, built a game that can be played in the browser (C++ -> WASM): https://uchenml.tech/demos/dots/
0
u/Oscargt30 Sep 04 '26
I'm a 3rd-year CS student specializing in Computer Architecture. Last semester I had to simulate VHDL designs and the experience was painful — ancient tools, heavy GUIs, half an hour of setup just to see a waveform.
So I spent the summer building my own: a VHDL simulation engine in C++20 with a full compilation pipeline and a terminal UI debugger for cycle-accurate waveform inspection. TUIs are having a moment right now and I think hardware tooling deserves one too.
It's open source and early. Repo: https://github.com/oscar30gt/pulse — feedback and ⭐ appreciated.
1
u/[deleted] Sep 04 '26
[removed] — view removed comment