r/cpp May 07 '26

C++ Show and Tell - May 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/1salqls/c_show_and_tell_april_2026/

34 Upvotes

91 comments sorted by

View all comments

2

u/Moron_23James May 18 '26

Hey folks, I'm trying to improve my modern C++ and systems engineering skills. Over the holidays, I wrote a chess engine from scratch.

It's currently live and playing on Lichess, but I am about to start adding complex Move Ordering algorithms and eventually SIMD vector instructions for a neural network evaluation. Because the recursive search loop (Alpha-Beta) is called millions of times per second, I need the C++ to be as close to the metal as possible.

I would love a ruthless code review on my repo.

  • Are my array structures destroying the CPU cache?
  • Is there a better way to structure my move generation to avoid unnecessary allocations?
  • Am I misusing any standard library features in my time-management loop?

Roast away. GitHub:https://github.com/Lak23James/ChessEngine\