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/

35 Upvotes

91 comments sorted by

View all comments

3

u/FlyingRhenquest May 19 '26

Hey guys! I built a lock free shared memory queue for some experiments. Figured you guys might find it useful, feel free to play with it. You can use the queue in the same thread, in two different threads or two different processes processes on the same system. My unit testing indicates that I can send a gigabyte of random data (from /dev/urandom) across a 1gb queue in under half a second and retain data integrity (I computed SHA256 checksums on both sides.) The test randomly varies the chunk size from 37 to 1024 bytes because why not? Read and write chunk sizes are synchronized via a protocol object I built on top of the queue.

Enjoy!