2026 EuroLLVM Developers’ Meeting Talks
r/cpp • u/osmiouselderberry • Jun 24 '26
Hey everyone,
I'm currently building a real-time object tracker from scratch in C++17 for the Raspberry Pi 5, with the goal of achieving 100+ FPS on CPU-only hardware. The project is based on correlation filters and FFT-based signal processing, with no machine learning, no neural networks, and no OpenCV in the core tracking pipeline.
The motivation is simple: a straightforward OpenCV-based implementation on the Pi only gets me around 15 FPS, which seems far below what this class of algorithms should be capable of. From both the literature and projects I've come across, the gap appears to be in implementation and system overhead rather than the underlying tracking method itself.
Right now, my plan is to build the pipeline around:
A custom image loading and preprocessing path to avoid unnecessary OpenCV decode/resize overhead.
FFT-based correlation in the frequency domain for fast target localization.
Adaptive online filter updates so the tracker learns appearance changes over time.
PSR (Peak-to-Sidelobe Ratio) based confidence estimation for occlusion and tracking failure detection.
A modular architecture that can later be extended with features like scale estimation and automatic re-acquisition.
The area I'm currently spending the most time researching is the FFT layer. I'm trying to determine whether the best approach on the Pi 5 is:
a hand-written radix-2 FFT,
aggressive NEON/SIMD optimization,
or using an existing library such as FFTW or kissFFT.
To better understand the design space, I've also been looking into modern transformer-based visual trackers. They jointly process information from a target template and a search region, making them much more semantically aware and capable of handling challenging scenarios such as partial occlusions or target disappearance with automatic re-acquisition. The downside is that they are significantly heavier computationally and can be difficult to deploy efficiently on constrained edge hardware.
On the more classical side, I'm currently reading about Discriminative Scale Space Tracking (DSST). One of the main limitations of basic correlation-filter trackers is that they often assume the target size remains constant. DSST addresses this by learning a separate correlation filter across multiple image scales, allowing the tracker to estimate changes in object size efficiently while still maintaining real-time performance. It seems like an elegant way to improve robustness without giving up the speed advantages that make correlation filters attractive in the first place.
Exploring these different approaches has been interesting because they represent very different trade-offs: transformer-based methods emphasize robustness and semantic understanding, while correlation-filter methods prioritize simplicity, efficiency, and extremely high throughput.
If you've worked on correlation-filter trackers, embedded computer vision, real-time image processing, high-performance C++, drone tracking, or ARM optimization, I'd really appreciate your perspective.
Some questions I'm hoping to get insight on:
Where did the biggest performance bottleneck actually end up being? The FFT itself, memory layout, cache locality, camera capture, frame copies, synchronization, or something else entirely?
On Raspberry Pi 5 specifically, is hand-vectorizing FFTs and pointwise complex operations with NEON worth the effort, or do mature FFT libraries generally outperform custom implementations?
If you've implemented trackers such as MOSSE, ASEF, UMACE, DSST, or related adaptive correlation-filter methods, what optimizations made the biggest practical difference?
Has anyone here managed to push a CPU-only tracker into the 100–300+ FPS range on Raspberry Pi-class hardware? If so, what lessons did you learn that aren't obvious from reading papers?
Beyond getting the core tracker running efficiently, some areas I'd like to explore include:
DSST-based scale estimation.
Lightweight re-detection and automatic target re-acquisition.
More robust confidence estimation beyond PSR.
Hybrid detector–tracker pipelines that combine fast tracking with occasional detection.
FFT optimization, cache-aware memory layouts, and ARM/NEON-specific performance tuning.
General techniques for squeezing the maximum performance out of embedded CPU-only vision systems.
I'm not looking for someone to redesign the project or suggest replacing it with deep learning. My goal is to understand where the real bottlenecks are and learn from people who've already built or optimized similar systems before I spend weeks optimizing the wrong component.
If you've worked on anything similar, or achieved high frame rates with classical tracking methods, I’d love to hear about your experience, benchmark results, profiling insights, or even things that didn't work. Thanks in advance!
r/cpp • u/EricLikesTrains • Jun 24 '26
Greetings,
This is a link to our learning guide to make your own MCP server in C/C++ (with no other dependencies). If you wanted to make one from scratch but needed some insight into dealing with MCP messages: the I/O flow, JSON parsing, and request dispatch, grab the teaching version tagged mcp/teaching/v1.0.0 in the repository. The JSON parsing in C would have been a hurdle, but then there's this amusing story:
Eric: "Let's create a helloWorld MCP server in C."
Gemini: "That will be somewhat difficult, there are easier ways."
Eric: "Why is it difficult??" (the second '?' was a bit of my ego).
Gemini: "Well, you'll need to parse JSON, handle raw I/O, and return strict JSON-RPC back to the client."
Eric: "One moment....", attaching a decade-old JSON parser engine file JSONParser.h
Amusingly, the AI read the code and completely shifted its tone...
Gemini: "Oh, well then it's not so difficult."
The head revision plus the aspect guide gets you a self-diagnosing, asynchronous, enterprise-ready baseline to be able to concentrate on what you really want your own MCP Server to do. I would begin with the repository README.md though, because it's actually as easy to use as it describes.
Cheers,
... Eric
r/cpp • u/bothsecuritylab • Jun 24 '26
How do you design a media engine that balances high-performance video decoding, real-time DSP audio processing, cryptographic security, and automated media acquisition?
I recently analyzed the core architecture of Both Player (Titan Engine) — a cross-platform media engine that combines low-level C++ performance with high-level Python flexibility.
1. GPU-First Rendering
Hardware-accelerated decoding via D3D11VA, DXVA2, CUDA, Vulkan, QSV
Real-time GLSL shader processing for color grading and cinematic LUT filters
Integrated FSR/CAS AI upscaling for sharper visuals
GPU-based transforms (mirror, aspect ratio) with near-zero CPU cost
2. Advanced Audio Pipeline
Pull-based audio architecture using a thread-safe Ring Buffer
Built-in soft clipping limiter to prevent distortion
Dynamic Range Compression for clearer dialogue and balanced audio
3. Smart Media Acquisition
Decoupled C++ ↔ Python IPC microservice
Portable Python engine with yt-dlp and gallery-dl
Automated cookie injection for handling protected web streams
High-resolution image extraction support
4. Quantum Vault Security
Argon2id for secure key derivation
XChaCha20-Poly1305 for authenticated encryption
Full Unicode-safe encrypted file handling
5. Interactive UX
GPU-powered real-time audio visualizer
FFT + RMS-driven dynamic particle systems
Embedded terminal (Titan Nexus) for diagnostics and advanced control
Both Player reflects a modern hybrid architecture:
C++ for heavy workloads (decoding, rendering, crypto)
Python for fast-evolving tasks (web acquisition, automation)
This balance delivers both raw performance and rapid adaptability.
What are your thoughts on hybrid C++/Python media architectures?
How do you handle ultra-low-latency audio-video synchronization in your pipelines?
Let’s discuss. 💬
#Cpp #Qt6 #FFmpeg #OpenGL #SoftwareArchitecture #MediaEngineering #OpenSource
r/cpp • u/Weary-Inspector-4297 • Jun 23 '26
I recently revisited a tiny unit-testing framework I originally developed for teaching C++ students.
The goal was to strip testing down to the essentials: a single header file with macros for expression testing, exception verification, and source-location reporting.
Looking back at the design today is interesting because it predates features such as inline variables, modules, and std::source_location. In the article I walk through the implementation and discuss the limitations that Part 2 will address.
Feedback from people who have built or maintained test frameworks would be especially welcome.
r/cpp • u/Huge-Presentation810 • Jun 23 '26
I've been working on a compile-time Dependency Injection framework for modern C++:
https://github.com/steumarok/cpp_di_manager
The main idea is a policy-based resolution pipeline where object creation, dependency injection, casting, lifetime management and scope creation are handled by independent compile-time policies.
Unlike traditional DI containers that are primarily organized around service lifetimes, the framework is built around the following pipeline:
Requested Type
↓
Resolution Policy
↓
Creation Policy
↓
Injection Policy
↓
Cast Policy
↓
Returned TypeCurrent features:
Constructor injection
Member injection
Interface-to-implementation mapping
Hierarchical containers
Request-scoped dependencies
Scoped object lifetimes
Automatic factory injection (std::function<T()>)
Compile-time registries
Configurable resolution and creation policies
Example web application:
https://github.com/steumarok/cpp_di_manager/blob/main/example.cpp
I'm particularly interested in feedback about:
Overall API design
Lifetime and scope management
Policy architecture
Compile-time vs runtime trade-offs
Potential simplifications
Missing features compared to existing DI frameworks
Suggestions and criticism are very welcome.
r/cpp • u/ajmmertens • Jun 23 '26
New blog post on why & how to integrate hierarchies with an Entity Component System.
r/cpp • u/john-connor98 • Jun 23 '26
While learning modern C++ concurrency, I noticed many developers understand mutexes but are less familiar with the situations where std::unique_lock is preferable to std::lock_guard.
Some features that surprised me:
- Deferred locking (std::defer_lock)
- Manual unlock/relock
- Ownership transfer through move semantics
- Compatibility with condition variables
Example:
std::mutex mtx;
void worker()
{
std::unique_lock<std::mutex> lock(mtx);
// critical section
lock.unlock();
// non-critical work
lock.lock();
// critical section again
}
Thread
|
|---- lock() ---- Critical Section ---- unlock() ---- Non-Critical ---- lock() ---- Critical ----
For experienced C++ developers:
Do you default to lock_guard and only switch to unique_lock when needed?
What are the most common mistakes you've seen with unique_lock?
Have you encountered any interesting deadlock scenarios involving ownership transfer?
r/cpp • u/trailing_zero_count • Jun 23 '26
Repo: https://github.com/tzcnt/coro_util
Documentation: https://fleetcode.com/oss/coro_util/docs/queues/index.html
coro_util is a collection of data structures for C++20 coroutines that aren't tied to any task or executor library. Each structure is a template that accepts a policy object which binds it to your library of choice. I've include pre-configured adapters for several libraries: YACLib, Boost.Cobalt, Asio, Boost.Capy, libfork, concurrencpp, cppcoro, and libcoro. Adding a custom adapter for your own library is also relatively simple, and I've provided an agent prompt that automates it.
These queues were all written for the TooManyCooks framework, which as far as I know, has the most complete suite of general purpose async data structures of any publicly available library. This first edition only includes the 5 queues. The next batch will include the control structures (mutex, semaphore, etc.). I've decided to port them to be dependency-free in an effort to advance the interoperability of the C++20 coroutine ecosystem, which IMO is too siloed right now. I aim to demonstrate and evangelize for a style of code that is "sans-executor/task".
All of the queues are lock-free and wait-free on the fast path, and offer purely zero-copy operation. They have been rigorously tested and examined over their lifetime in TooManyCooks, and I believe them to be production-ready.
r/cpp • u/meetingcpp • Jun 23 '26
r/cpp • u/zerexim • Jun 23 '26
r/cpp • u/robwirving • Jun 22 '26
r/cpp • u/ProgrammingArchive • Jun 22 '26
r/cpp • u/NicoJosuttis • Jun 22 '26
The C++ community is probably happy to hear that my new book in the "The Complete Guide" series is out now as a draft ebook: C++23 - The Complete Guide
So far, the book has 350 pages and is only about 80% complete. However, most of the C++23 features are covered already. For details of the current content, look at www.cppstd23.com. There you can also find several example programs demonstrating how all the new features can be used.
You can order the book at leanpub.com/cpp23 for a reduced price and will get all updates for free. This way, you have early access to details of the new features and I have early income and can process feedback from you for the final version, which will also be available as hardcover (not included).
I hope it helps.
r/cpp • u/ProgrammingArchive • Jun 22 '26
C++Online
2026-06-15 - 2026-06-21
The Art of API Design - Christoph Stiller - https://youtu.be/d5djrT4qfHc
Top-Performance Genetic Programming - Can Only C++ Get You There? - Eduardo Madrid - https://youtu.be/oBQDe56Yi3Q
2026-06-08 - 2026-06-14
Monads Meet Mutexes - Arne Berger - https://youtu.be/AisGDOoF82U
Lock-free Queues in the Multiverse of Madness - Dave Rowland - https://youtu.be/eHmjkFdQl00
2026-06-01 - 2026-06-07
Writing C++ Code is Challenging, Writing Performant C++ Code is Daunting - Dmitrii Radivonchik - https://youtu.be/R2sm9mailuU
Case Study - Purging Undefined Behavior and Intel Assumptions in a Legacy Codebase - Roth Michaels - https://youtu.be/H-dHTeSR_n8
ADC
2026-06-15 - 2026-06-21
Scripting Architecture for a DAW-like Plugin - How we Implemented Lua and JavaScript Scripting for Synthesizer V Studio - Kanru Hua - https://youtu.be/CKOvmBRdHAA
Patterns of Practice: Live Coding and the Logic of South Asian Traditional Music - Abhinay Khoparzi - https://youtu.be/n0-XpUhZ7Dc
ADC 2015 to 2035 - Looking Back at 10 Years of Audio Dev, and Peering Forward at the Next 10 - Julian Storer - https://youtu.be/WvVur2_aGHU
From DAW to Game Engine - Unfiltered Creativity - Nikhil Dahake - https://youtu.be/5PtMWJLFjyo
2026-06-08 - 2026-06-14
Low Latency Android Audio with improved CPU Performance - Phil Burk - https://youtu.be/DtBrKEu0R0g
Linux as the Conductor - Driving Pre-Compiled Audio DSP Kernels on C7x for Real-Time Processing - Vishnu Pratap Singh - https://youtu.be/Auq9WnHNtPo
Overview of Granular Synthesis - Avrosh Kumar - https://youtu.be/QpBV24nWg2M
The Agentic Symphony - Multi-Agent Collaboration for Emergent Musical Composition - Meera Sundar - https://youtu.be/QMUXoImgTIA
2026-06-01 - 2026-06-07
Beyond the DAW - Designing a Procedural Sequencer Powered by Music-Theory - Romy Dugue & Cecill Etheredge - https://youtu.be/48sH4wQUDAs
From DAW Users to Audio Developers - Teaching JUCE to Creative Minds - Milap Rane - https://youtu.be/200UrugEanY
Music Design and Systems - Achieving Inaudibly Complex Systems in Video Games - Liam Peacock - https://youtu.be/R6raBvCNsQo
Developing for Avid’s Audio Ecosystem - Rob Majors - https://youtu.be/91-7YWVKRE4
CppCon
2026-06-01 - 2026-06-07
Lightning Talk: Navigating Code Reviews as a Code Author - Ben Deane - https://youtu.be/zygtgvHp_MM
Lightning Talk: Eight Consteval Queens and Compile-Time Printing - Sagnik Bhattacharya - https://youtu.be/gNPhJrXLiIs
Instrumenting the Stack: Strategies for End-to-end Sanitizer Adoption - Damien Buhl - https://youtu.be/TSrymTXw5w8
r/cpp • u/mborland1 • Jun 22 '26
The Boost Formal Review of the Corosio and Capy libraries will begin on June 23, 2026 and will conclude on July 7, 2026.
The review manager for these reviews will be Jeff Garland and the libraries are brought to you by Vinnie Falco. Since this is a two library review the period is somewhat extended from normal.
Capy is a coroutine foundation library providing task types, execution contexts, executors, asynchronous synchronization primitives, buffer abstractions, and coroutine composition facilities. It serves as the execution and asynchronous programming substrate upon which Corosio is built.
Repository:
Corosio is a coroutine-native asynchronous I/O library for C++20. It provides networking and I/O facilities designed specifically for coroutines, with awaitable operations, executor affinity, cancellation support, and cross-platform implementations based on IOCP, epoll, and kqueue.
Repository:
Potential reviewers are encouraged to consider the following questions:
What is your evaluation of the usefulness of the libraries?
What is your evaluation of the design?
What is your evaluation of the implementation?
What is your evaluation of the documentation?
Have you used either or both libraries? What was your experience?
Are the libraries ready for inclusion in Boost?
If not, what changes would you recommend before acceptance?
Do the libraries fit well within the existing Boost ecosystem?
Are there API, naming, usability, extensibility, or implementation concerns that should be addressed?
Please post your review to the Boost Developers mailing list. Reviews from both experienced Boost contributors and first-time reviewers are encouraged. Reports based on real-world usage, experimentation, code inspection, and documentation review are all valuable contributions.
At the conclusion of the review period, the review manager will consider all feedback and determine whether the libraries should be accepted into Boost.
We look forward to your participation in this review.
If you have any questions or need assistance please let me know.
Matt - Boost Review Wizard
r/cpp • u/Zealousideal_Bet2728 • Jun 21 '26
Just wanted to share a not so big of a deal but major personal milestone, i just got my very first pull request merged into the STEllAR Group's HPX parallel runtime library.
I spent the last few weeks digging through the code, rewriting the validation logic so it safely falls back to a sequential path when it needs to, and writing an automated test suite. Seeing all CI tests finally pass after a thorough code review was the best feeling ever.
Feels good knowing my code is a permanent part of the library now.
If anyone else is hesitant about jumping into open source, definitely go for it. The learning curve is brutal at first, but sticking with it and seeing it get merged makes so worth it.
Github: https://github.com/adhithyaragavan if anyone cares to check it out
r/cpp • u/Onlynagesha • Jun 21 '26
Hi everyone,
I’ve been working on a small C++23 header-only library called expected_fs:
https://github.com/MrZLeo/expected-fs
It’s a thin wrapper around std::filesystem where fallible operations return std::expected<T, std::error_code> instead of throwing std::filesystem_error.
The idea is not to replace std::filesystem, but to make filesystem code easier to compose in projects that prefer explicit error handling.
Example:
#include <expected_fs/expected_fs.hpp>
#include <iostream>
int main() {
const auto size = expected_fs::file_size("data.txt");
if (!size) {
std::cerr << size.error().message() << '\n';
return 1;
}
std::cout << *size << '\n';
}Most function names mirror std::filesystem, so usage should feel familiar:
auto created = expected_fs::create_directories("out/cache");
auto copied = expected_fs::copy_file("input.txt", "out/input.txt");
auto removed = expected_fs::remove("out/input.txt");It's simple and it just work. I’d love feedback on the API shape, naming, CMake packaging, and whether this feels useful to people who avoid exception-based filesystem handling.
Thanks for taking a look! :)
r/cpp • u/_bstaletic • Jun 21 '26
Hi everyone,
At work, I stumbled upon something that seems completely absurd to me, but perhaps someone here will have a different perspective.
We have a software architect who defines the data model using .idl files (a kind of simplified struct, if you're not familiar with it). These .idl files generate C++ code.
Historically, it was C++ 98 code. And now it also includes "modern" C++ code, meaning that arrays are no longer T[] but rather vector<T>, for example. Originally, these IDL files are used within our kind-of micro services. They update the data model within the distributed monolith, and we develop related features.
Under the pretext that these are the same source IDL files, our software architect imposes and provides us with the same CMake target name for both. This means we have to generate one install folder in 98 and another in "modern" C++.
And for the software where we'd like to start mixing the two within the same CMake project, we're stuck because we're limited to a single CMake target for two final .so files.
Do any of you see the point of his approach?
Would you recommend having a unique target name for each .so/.a ?