Annotations for C++26 Hashing
https://blog.infotraining.pl/annotations-for-cpp-26-hashing
https://redd.it/1smz1rm
@r_cpp
https://blog.infotraining.pl/annotations-for-cpp-26-hashing
https://redd.it/1smz1rm
@r_cpp
Special meetup with Bjarne Stroustrup in Florence
Hi everyone!
I am organizing a special meetup with Bjarne Stroustrup in Florence on Saturday, May 9!
Schedule:
09:30 – Doors open
10:00 – Welcome message
10:15 – Technical session: “Concept-based Generic Programming”
11:45 – Short break
12:00 – Live AMA with Bjarne Stroustrup
13:00 – Closing
The event will take place at the University of Florence (Novoli Campus) and is organized by the Italian C++ Community, the University of Florence, and the University of Pisa.
For developers traveling from abroad, this is also a great excuse to visit Florence, while connecting with the Italian C++ community.
Free registration and details:
https://italiancpp-fi26.eventbrite.it/
Looking forward to seeing you there!
https://redd.it/1sn2g4d
@r_cpp
Hi everyone!
I am organizing a special meetup with Bjarne Stroustrup in Florence on Saturday, May 9!
Schedule:
09:30 – Doors open
10:00 – Welcome message
10:15 – Technical session: “Concept-based Generic Programming”
11:45 – Short break
12:00 – Live AMA with Bjarne Stroustrup
13:00 – Closing
The event will take place at the University of Florence (Novoli Campus) and is organized by the Italian C++ Community, the University of Florence, and the University of Pisa.
For developers traveling from abroad, this is also a great excuse to visit Florence, while connecting with the Italian C++ community.
Free registration and details:
https://italiancpp-fi26.eventbrite.it/
Looking forward to seeing you there!
https://redd.it/1sn2g4d
@r_cpp
Italian C++ Community
Italian C++ Community - la comunità italiana dedicata al linguaggio di programmazione C++
Achieving 56.5 ns cross-language IPC latency: Defeating false sharing and bypassing the kernel.
Hi,
I recently open-sourced Tachyon, a low-latency shared-memory IPC library I’ve been working on. The goal was to reach RAM-speed communication between processes (C++, Rust, Python, etc.) without any serialization overhead or kernel involvement on the hot path.
I managed to hit a p50 round-trip time of 56.5 ns (for 32-byte payloads) and a throughput of \~13M RTT/sec on an i7-12650H, which is about 150x faster than ZeroMQ inproc.
Here are a few architectural choices I made to achieve this, which I thought might interest this sub:
Strict SPSC & No CAS: I went with a strict Single-Producer Single-Consumer topology. There are no compare-and-swap loops on the hot path. acquire_tx and acquire_rx are just a load, a mask, and a branch using memory_order_acquire/release.
Hardware Sympathy: Every control structure (message headers, atomic indices) is padded to 64-byte or 128-byte boundaries. False sharing between the producer and consumer cache lines is structurally impossible.
Hybrid Wait Strategy: The consumer spins for a bounded threshold (cpu_relax()), then sleeps via SYS_futex (Linux) or __ulock_wait (macOS).
Zero-Copy: The hot path is entirely in the memfd shared memory segment after an initial Unix Domain Socket handshake.
The core is C++23 (compiled with GCC 14+/Clang 17+), and it currently has bindings for 6 other languages.
Repository: https://github.com/riyaneel/Tachyon
I’d love to get some feedback from the C++ community on the architecture, especially regarding the memory model implementation and the hybrid futex spin-wait strategy.
Thanks!
https://redd.it/1sn8a1y
@r_cpp
Hi,
I recently open-sourced Tachyon, a low-latency shared-memory IPC library I’ve been working on. The goal was to reach RAM-speed communication between processes (C++, Rust, Python, etc.) without any serialization overhead or kernel involvement on the hot path.
I managed to hit a p50 round-trip time of 56.5 ns (for 32-byte payloads) and a throughput of \~13M RTT/sec on an i7-12650H, which is about 150x faster than ZeroMQ inproc.
Here are a few architectural choices I made to achieve this, which I thought might interest this sub:
Strict SPSC & No CAS: I went with a strict Single-Producer Single-Consumer topology. There are no compare-and-swap loops on the hot path. acquire_tx and acquire_rx are just a load, a mask, and a branch using memory_order_acquire/release.
Hardware Sympathy: Every control structure (message headers, atomic indices) is padded to 64-byte or 128-byte boundaries. False sharing between the producer and consumer cache lines is structurally impossible.
Hybrid Wait Strategy: The consumer spins for a bounded threshold (cpu_relax()), then sleeps via SYS_futex (Linux) or __ulock_wait (macOS).
Zero-Copy: The hot path is entirely in the memfd shared memory segment after an initial Unix Domain Socket handshake.
The core is C++23 (compiled with GCC 14+/Clang 17+), and it currently has bindings for 6 other languages.
Repository: https://github.com/riyaneel/Tachyon
I’d love to get some feedback from the C++ community on the architecture, especially regarding the memory model implementation and the hybrid futex spin-wait strategy.
Thanks!
https://redd.it/1sn8a1y
@r_cpp
GitHub
GitHub - riyaneel/Tachyon: Tachyon, Inter-Process Communication primitive.
Tachyon, Inter-Process Communication primitive. Contribute to riyaneel/Tachyon development by creating an account on GitHub.
GUI toolkit Slint 1.16 released with keyboard shortcuts, Markdown rendering, and multi-touch pinch and rotate
https://slint.dev/blog/slint-1.16-released
https://redd.it/1snc6ow
@r_cpp
https://slint.dev/blog/slint-1.16-released
https://redd.it/1snc6ow
@r_cpp
slint.dev
Slint 1.16 Released
I built a tool for C++ devs using Neovim that shows field offsets, padding, alignment, and total struct/class size from clang. It also handles STL types and templates.
https://github.com/J-Cowsert/classlayout.nvim
https://redd.it/1snn58i
@r_cpp
https://github.com/J-Cowsert/classlayout.nvim
https://redd.it/1snn58i
@r_cpp
GitHub
GitHub - J-Cowsert/classlayout.nvim: Neovim plugin to visualize C/C++ class/struct memory layouts using clang
Neovim plugin to visualize C/C++ class/struct memory layouts using clang - J-Cowsert/classlayout.nvim
Question to Module Users: How Do You Use Partitions?
Quick question for those who currently use modules with partitions.
That is, for a module like the one below (our file Core/\_Module.ixx):
export module Core;
export import :Attach;
export import :Base;
export import :Container;
export import :Diagram;
export import :Interfaces;
export import :Transaction;
export import :View;
How did you implement your code?
What we did:
We have done it as I've described in my blog posting "How a Module Should Look", which is for example for our file Core/Transaction/FinalizerDock.cpp:
module Core;
import :Transaction;
...
which contains function definitions for declarations in the partition Core/Transaction/Transaction.ixx:
export module Core:Transaction;
...
Please tell me what you did. I'm really curious.
Thanks in advance for the responses!
https://redd.it/1snrk4q
@r_cpp
Quick question for those who currently use modules with partitions.
That is, for a module like the one below (our file Core/\_Module.ixx):
export module Core;
export import :Attach;
export import :Base;
export import :Container;
export import :Diagram;
export import :Interfaces;
export import :Transaction;
export import :View;
How did you implement your code?
What we did:
We have done it as I've described in my blog posting "How a Module Should Look", which is for example for our file Core/Transaction/FinalizerDock.cpp:
module Core;
import :Transaction;
...
which contains function definitions for declarations in the partition Core/Transaction/Transaction.ixx:
export module Core:Transaction;
...
Please tell me what you did. I'm really curious.
Thanks in advance for the responses!
https://redd.it/1snrk4q
@r_cpp
GitHub
cadifra/code/Core/_Module.ixx at 2026.1 · cadifra/cadifra
Cadifra UML Editor. Contribute to cadifra/cadifra development by creating an account on GitHub.
Documenting my Chess Engine Journey So Far!
Just thought I'd pop this here. Am writing a Chess Engine in C++ and am blogging all the trials, tribulations and optimizations in what I'm hoping is a semi-humorous and entertaining way.
Would love any feedback you might have and also would love feedback on the code which is available towards the top!
https://olly-evans.github.io/chess/
https://redd.it/1snwal6
@r_cpp
Just thought I'd pop this here. Am writing a Chess Engine in C++ and am blogging all the trials, tribulations and optimizations in what I'm hoping is a semi-humorous and entertaining way.
Would love any feedback you might have and also would love feedback on the code which is available towards the top!
https://olly-evans.github.io/chess/
https://redd.it/1snwal6
@r_cpp
Olly Evans
Chess and Engine Programming
Programming a Chess Engine
C++20 Modules: The Tooling Gap
https://ignition.github.io/posts/cpp20-modules-the-tooling-gap/
https://redd.it/1snx6r8
@r_cpp
https://ignition.github.io/posts/cpp20-modules-the-tooling-gap/
https://redd.it/1snx6r8
@r_cpp
The proof is trivial
C++20 Modules: The Tooling Gap
We’ve been incrementally adopting C++20 modules at Memgraph (source) since late 2025. The compiler side has been surprisingly smooth. The tooling side, less so.
HPX Tutorials: Performance analysis with Traveller
https://www.youtube.com/watch?v=xN5BM7FzDsI
https://redd.it/1snyotu
@r_cpp
https://www.youtube.com/watch?v=xN5BM7FzDsI
https://redd.it/1snyotu
@r_cpp
YouTube
HPX Tutorials: Performance analysis with Traveler
This tutorial explains how to perform deep runtime analysis on HPX applications using APEX and the Traveller visualization tool. Starting with an explanation of HPX's lightweight task management, we demonstrate why raw hardware utilization metrics can be…
Online talk on building a C++ based custom language and lexer internals
Developers from PVS-Studio are continuing their series of talks about creating a custom programming language. They will explain what the lexer is, what it consists of, and how to work with it.
The talk series as a whole is for devs who want to start understanding how compilers work under the hood. Throughout the series, their C++ architect demonstrates the practical application of each programming language component.
If you're interested, I leave the link here.
https://redd.it/1so08nx
@r_cpp
Developers from PVS-Studio are continuing their series of talks about creating a custom programming language. They will explain what the lexer is, what it consists of, and how to work with it.
The talk series as a whole is for devs who want to start understanding how compilers work under the hood. Throughout the series, their C++ architect demonstrates the practical application of each programming language component.
If you're interested, I leave the link here.
https://redd.it/1so08nx
@r_cpp
PVS-Studio
Let′s make a programming language. Lexer
In this session, we continue building our own programming language from the ground up. Previously, we covered how terminal symbols fit into a grammar. Now we move one layer deeper: the lexer.
The lexer is the part of the parsing pipeline that operates on…
The lexer is the part of the parsing pipeline that operates on…
build2 0.18.1 released, adds package manager Fetch Cache, JSON Compilation Database, and official binary packages
https://build2.org/release/0.18.0.xhtml
https://redd.it/1so1igj
@r_cpp
https://build2.org/release/0.18.0.xhtml
https://redd.it/1so1igj
@r_cpp
Built a Preemptive Task Scheduler in C++ from scratch: Performance comparison across Windows, Linux, and PREEMPT_RT kernel.
https://prejudice.tistory.com/45
https://redd.it/1so5213
@r_cpp
https://prejudice.tistory.com/45
https://redd.it/1so5213
@r_cpp
Prejudice
C++ Preemptive Task Scheduler 구현 및 성능 비교 (Windows · Linux · Linux PREEMPT_RT)
들어가며최근 며칠 동안 진행 중인 SW PLC 프로젝트의 핵심 로직인 멀티 태스킹(Multi-Tasking) 기능을 구현하는 데 집중하고 있다.이번 작업의 세부 목표는 총 3가지이며, 최종적으로는 사용자의 다중 Task를 선점 스케줄링(Preemptive Scheduling) 방식으로 수행하는 클래스를 개발하려 한다.Multi-Platform 지원: 'Windows', 'Linux', 'Linux PREEMPT_RT Kernel' 환경에서 모두 정상 동작할…
cppreference is back up! but overloaded
I just clicked a link that wasn’t cached and noticed very long loading time. Eventually the page loaded, and I noticed the font was different. After Herb’s post, I was excited and noticed the homepage notice declared the site newly operational again! However I am experiencing a significant number of 5xx errors.
https://redd.it/1so7kx8
@r_cpp
I just clicked a link that wasn’t cached and noticed very long loading time. Eventually the page loaded, and I noticed the font was different. After Herb’s post, I was excited and noticed the homepage notice declared the site newly operational again! However I am experiencing a significant number of 5xx errors.
https://redd.it/1so7kx8
@r_cpp
Reddit
From the cpp community on Reddit
Explore this post and more from the cpp community
Built an AI overlay that disappears on screen share — one Win32 API call, C++, and a week of evenings
Built this after getting frustrated during technical interviews — an AI assistant that's literally invisible on screen share
I kept wondering why there wasn't a clean way to have a personal reference window open during video calls without it being visible on screen.
Then I found out about SetWindowDisplayAffinity — a Windows API that lets you exclude a window from all capture. OBS, Zoom, Teams, Google Meet — none of them pick it up. The window exists on your screen, nowhere else.
Spent a week building an overlay on top of it. Floating AI assistant. Only you can see it. That's the whole thing.
Shipped it at www.unviewable.online.
For anyone curious about the tech — it's C++ with CMake, the magic is literally one Win32 API call. Windows has had this since Windows 10 2004 and barely anyone talks about it. Wild.
https://redd.it/1sodzjg
@r_cpp
Built this after getting frustrated during technical interviews — an AI assistant that's literally invisible on screen share
I kept wondering why there wasn't a clean way to have a personal reference window open during video calls without it being visible on screen.
Then I found out about SetWindowDisplayAffinity — a Windows API that lets you exclude a window from all capture. OBS, Zoom, Teams, Google Meet — none of them pick it up. The window exists on your screen, nowhere else.
Spent a week building an overlay on top of it. Floating AI assistant. Only you can see it. That's the whole thing.
Shipped it at www.unviewable.online.
For anyone curious about the tech — it's C++ with CMake, the magic is literally one Win32 API call. Windows has had this since Windows 10 2004 and barely anyone talks about it. Wild.
https://redd.it/1sodzjg
@r_cpp
Invisible AI
Invisible AI — The Intelligence They Can't See
A 100% invisible AI assistant for high-stakes interviews and meetings. Bypasses all screen-capture pipelines.
Next week: Interview with Guy Davidson at Meeting C++ online
https://www.meetup.com/de-de/meeting-cpp-online/events/314162009
https://redd.it/1sozbmk
@r_cpp
https://www.meetup.com/de-de/meeting-cpp-online/events/314162009
https://redd.it/1sozbmk
@r_cpp
Meetup
Interview with Guy Davidson, Do., 23. Apr. 2026, 19:00 | Meetup
Meeting C++ is hosting an interview with Guy Davidson! He is the new ISO C++ care taker following Herb Sutter. His background is gamedev and C++, giving talks and mingling
Opinions on Introducing C++: The Easy Way to Start Learning Modern C++ by Frances Buontempo
What do you guys think about the book Introducing C++: The Easy Way to Start Learning Modern C++ by Frances Buontempo i was considering to buy it because i want to learn c++ and i already have some experiences coding in other languages it seems like a sort of successor to accellerated c++
https://redd.it/1sp3epy
@r_cpp
What do you guys think about the book Introducing C++: The Easy Way to Start Learning Modern C++ by Frances Buontempo i was considering to buy it because i want to learn c++ and i already have some experiences coding in other languages it seems like a sort of successor to accellerated c++
https://redd.it/1sp3epy
@r_cpp
Reddit
From the cpp community on Reddit
Explore this post and more from the cpp community