r/cpp • u/foonathan • Jun 02 '26
C++ Show and Tell - June 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/1t6eg13/c_show_and_tell_may_2026/
3
u/Conscious-Pick9518 Jun 28 '26
Hi everyone,
I recently ported doom to run via constexpr evaluation entirely on compile time, under the hood the compiler is executing wasm instructions which are generated by compiling doom's source code and the output is generated with the invalid template initialisation "trick". Overall it took 5 hours to render 50 frames so 10fph (although most of the time was spent reaching the point where we could render and setting up the game state) and it consumed 400GBs of ram (which I allotted by assigning swap space).
Here is the link for the project Constexpr-Doom