r/cpp • • Apr 10 '26

HPX Tutorials: Performance analysis with VTune

Thumbnail youtube.com
10 Upvotes

HPX is a general-purpose parallel C++ runtime system for applications of any scale. It implements all of the related facilities as defined by the C++23 Standard. As of this writing, HPX provides the only widely available open-source implementation of the new C++17, C++20, and C++23 parallel algorithms, including a full set of parallel range-based algorithms. Additionally, HPX implements functionalities proposed as part of the ongoing C++ standardization process, such as large parts of the features related parallelism and concurrency as specified by the C++23 Standard, the C++ Concurrency TS, Parallelism TS V2, data-parallel algorithms, executors, and many more. It also extends the existing C++ Standard APIs to the distributed case (e.g., compute clusters) and for heterogeneous systems (e.g., GPUs).

HPX seamlessly enables a new Asynchronous C++ Standard Programming Model that tends to improve the parallel efficiency of our applications and helps reducing complexities usually associated with parallelism and concurrency.
In this video, we explore how to perform rigorous performance analysis on HPX applications using Intel VTune Profiler, detailing how this tool can be used to identify true bottlenecks down to the source line where standard software profilers often fall short. We focus on the configuration of CMake for VTune compatibility and the execution of the Hotspots collector, demonstrating the interpretation of profiling data through a practical analysis of a parallel sorting algorithm. The tutorial details the process of diagnosing common concurrency issues, utilizing VTune's GUI to uncover over-decomposition, microscopic task granularity, and idle threads, ensuring that applications are executing efficiently rather than thrashing the system. This provides a clear introduction to evaluating HPX's lightweight tasking system, culminating in actionable insights, where we illustrate how to seamlessly resolve performance flaws while harnessing the full potential of modern parallel hardware.
If you want to keep up with more news from the Stellar group and watch the lectures of Parallel C++ for Scientific Applications and these tutorials a week earlier please follow our page on LinkedIn https://www.linkedin.com/company/ste-ar-group/ .
Also, you can find our GitHub page below:
https://github.com/STEllAR-GROUP/hpx
https://github.com/STEllAR-GROUP/HPX_Tutorials_Code


r/cpp • • Apr 10 '26

Freestanding standard library

Thumbnail sandordargo.com
35 Upvotes

r/cpp • • Apr 09 '26

C++23 Support in MSVC Build Tools 14.51

Thumbnail devblogs.microsoft.com
180 Upvotes

r/cpp • • Apr 10 '26

Interesting point of view from Daniel Lemire

10 Upvotes

If you’re not already familiar with Daniel Lemire, he is a well-known performance-focused researcher and the author of widely used libraries such as simdjson.

He recently published a concise overview of the evolution of the C and C++ programming languages:

https://lemire.me/blog/2026/04/09/a-brief-history-of-c-c-programming-languages/

It’s a worthwhile read for anyone interested in the historical context and development of systems programming languages.


r/cpp • • Apr 09 '26

Writing only decoupled code

Thumbnail middleraster.github.io
12 Upvotes

r/cpp • • Apr 09 '26

0xd34df00d/you-dont-know-cpp: and neither do I

Thumbnail github.com
155 Upvotes

Some non trivial cpp quiz style questions


r/cpp • • Apr 09 '26

Managing Versions Programmatically with LibGit2

Thumbnail youtube.com
17 Upvotes

Utah C++ Programmers has released a new video Managing Versions Programmatically with LibGit2 with sample code.

Lots of applications have configuration files and even user data files where it would be useful to track changes to those files with a version control system that was integrated into the application.

The git version control system is available for integration into applications as a library.

This month, Richard Thomson will guide us through a simple application that integrates git to track changes to an edited text file.


r/cpp • • Apr 09 '26

beast2 networking & std::execution

34 Upvotes

I was looking for a new networking layer foundation for a few of my projects, stumbled on beast2 library which looks brand new, based on C++20 coroutines. I used boost.beast in the past which was great. Here's the link https://github.com/cppalliance/beast2. I also considered std::execution since it seems to be the way to go forward, accepted in C++26.

Now, what got me wondering is this paragraph

The C++26 std::execution API offers a different model, designed to support heterogenous computing. Our research indicates it optimizes for the wrong constraints: TCP servers don't run on GPUs. Networking demands zero-allocation steady-state, type erasure without indirection, and ABI stability across (e.g.) SSL implementations. C++26 delivers things that networking doesn't need, and none of the things that networking does need.

Now I'm lost a bit, does that mean std::execution is not the way to go for networking? Does anyone have any insights on cppalliance research on the matter?


r/cpp • • Apr 09 '26

Why committee doesn't decide on a package format?

16 Upvotes

Why pkgconf or cmake package or CPS isn't officially endorsed by the committee?

Can't cmake or meson guys, who go to meetings and conferences pressure the higher ups to get something accepted?

Multiple build systems are ok, multiple package formats are not. Why no one solves this issue?


r/cpp • • Apr 09 '26

Jumpstart to C++ in Audio C++ Online 2026 Workshop

Thumbnail cpponline.uk
10 Upvotes

Official JUCE C++ framework course and DSP Pro course creator here 👋 On April 14 and 28, I am running an audio-focused workshop as part of the C++ Online 2026 conference.

In the workshop, you will learn:

  • how sound is represented on a computer
  • how to interact with sound (record, play back, modify) from C++
  • how to use the PortAudio library for playback
  • how to research, design & implement audio effects
  • how to implement audio effects in C++
  • how to wrap audio effects in audio plugins using the JUCE C++ framework
  • how to create a GUI for the audio plugin in JUCE

You can sign up here: https://cpponline.uk/workshop/jumpstart-to-cpp-in-audio/

If you're unsure if it's for you, I've given an introductory talk on the workshop material during the conference, which you can check out for free: https://youtu.be/IBLRv55qChw?si=hYDzZGdpTi4gz5dP

I'd also be happy to answer your questions regarding the workshop in this post 🙂


r/cpp • • Apr 08 '26

std::core_dump - The Newsletter of Boost and the C++ Alliance - April 2026

Thumbnail dl.cpp.al
43 Upvotes

r/cpp • • Apr 08 '26

Hashing in C++26

Thumbnail blog.infotraining.pl
80 Upvotes

How to implement hash for custom classes in C++26.


r/cpp • • Apr 08 '26

Optimize norm gathering asm in C++

Thumbnail blog.serenedb.com
25 Upvotes

We replaced SereneDB's AVX2 gather intrinsics with pure C++ and it actually beat intrinsics on x86_64.

The trick is combining сlang's auto-vectorization for dense data with #pragma unroll to let out-of-order execution handle sparse data. The post covers the assembly breakdown and some compiler traps that can make your code slower.

Happy to answer any questions below!

If you enjoy C++ systems optimization star us we appreciate your support!


r/cpp • • Apr 07 '26

Inside Boost.Container: comparing different deque implementations

67 Upvotes

I put together a comparison of std::deque internals across libc++, libstdc++, MSVC STL, and boost::container::deque (Boost 1.90). The article looks at the internal data structures, member layouts, sizeof(deque), and includes some benchmarks on common operations.

Boost 1.90 shipped a complete rewrite of its deque — the old SGI-derived layout was replaced with a more compact design (32 bytes vs the previous 80). The article digs into what changed, how the new implementation compares to the three standard library implementations, and how much block size alone affects performance across all of them.

https://boostedcpp.net/2026/03/30/deque/

Note: thanks to the info provided by u/HowardHinnant, I've update the article with additional info about the noexcept-ness of default and move constructors across implementations.


r/cpp • • Apr 07 '26

How to achieve P90 sub-microsecond latency in a C++ FIX engine

Thumbnail akinocal1.substack.com
68 Upvotes

r/cpp • • Apr 07 '26

Range-Validated Quantity Points - mp-units

Thumbnail mpusz.github.io
31 Upvotes

Physical units libraries have always been very good at preventing dimensional errors and unit mismatches. But there is a category of correctness that they have universally ignored: domain constraints on quantity point values.

A latitude is not just a length divided by a radius. It is a value that lives in [-90°, 90°]; anything outside that range is physically meaningless. An angle used in bearing navigation wraps cyclically around a circle; treating it as an unbounded real number ignores a fundamental property of the domain. A clinical body-temperature sensor should reject a reading of 44 °C at the API boundary, not silently pass it downstream.

No units library — before this work — has provided a way to attach this kind of constraint to a quantity point at the type level, have it enforced automatically, and express different flavors (clamp, wrap, reflect, check) without any runtime polymorphism.

This article describes the motivation in depth, the design we arrived at, and the open questions we would love the community's help to answer.


r/cpp • • Apr 07 '26

Latest News From Upcoming C++ Conferences (2026-04-07)

11 Upvotes

This is the latest news from upcoming C++ Conferences. You can review all of the news at https://programmingarchive.com/upcoming-conference-news/

TICKETS AVAILABLE TO PURCHASE

The following conferences currently have tickets available to purchase

OPEN CALL FOR SPEAKERS

There are currently no open calls.

OTHER OPEN CALLS

There are currently no open calls.

TRAINING COURSES AVAILABLE FOR PURCHASE

Conferences are offering the following training courses:

LAST CHANCE TO REGISTER

  1. Performance and Safety in C++ Crash Course - Jason Turner - 1 day online workshop available on Thursday 9th April 12:00 - 20:00 UTC - https://cpponline.uk/workshop/performance-and-safety-in-cpp-crash-course/ - £345/$460/€400 (£90/$120/€105 for students)
  2. Stop Thinking Like a Junior - The Soft Skills That Make You Senior - Sandor Dargo - Half Day online workshop available on Friday 10th April 13:00 - 16:30 UTC - https://cpponline.uk/workshop/stop-thinking-like-a-junior/ - £172.50/$230/€200 (£45/$60/€55 for students)
  3. Jumpstart to C++ in Audio - Learn Audio Programming & Create Your Own Music Plugin/App with the JUCE C++ Framework - Jan Wilczek - 1 day online workshop available on both Tuesday 14th April 13:00 - 20:00 UTC - https://cpponline.uk/workshop/jumpstart-to-cpp-in-audio/ - £150/$200/€175 (£90/$120/€105 for students)
  4. Essential GDB and Linux System Tools - Mike Shah - 1 day online workshop available on Friday 17th April 13:00 - 21:00 UTC - https://cpponline.uk/workshop/essential-gdb-and-linux-system-tools/ - £345/$460/€400 (£90/$120/€105 for students)

C++Online One Day Workshops - £345/$460/€400 (£90/$120/€105 for students)

  1. Performance and Safety in C++ Crash Course - Jason Turner - 1 day online workshop available on Thursday 9th April 12:00 - 20:00 UTC - https://cpponline.uk/workshop/performance-and-safety-in-cpp-crash-course/
  2. Essential GDB and Linux System Tools - Mike Shah - 1 day online workshop available on Friday 17th April 13:00 - 21:00 UTC - https://cpponline.uk/workshop/essential-gdb-and-linux-system-tools/
  3. Concurrency Tools in the C++ Standard Library - Mateusz Pusz - 1 day online workshop available on Friday 24th April 09:00 - 17:00 UTC - https://cpponline.uk/workshop/concurrency-tools-in-the-cpp-standard-library/
  4. C++ Software Design - Klaus Iglberger - 1 day online workshop available on Thursday 30th April 09:00 - 17:00 UTC - https://cpponline.uk/workshop/cpp-software-design/
  5. Safe C++ - Klaus Iglberger - 1 day online workshop available on Friday 1st May 09:00 - 17:00 UTC - https://cpponline.uk/workshop/safe-cpp/
  6. Safe and Efficient C++ for Embedded Environments - Andreas Fertig - 1 day online workshop available on Tuesday 12th May 09:00 - 17:00 UTC - https://cpponline.uk/workshop/safe-and-efficient-cpp-for-embedded-environments/
  7. Mastering std::execution (Senders/Receivers) - Mateusz Pusz - 1 day online workshop available on Friday 15th May 09:00 - 17:00 UTC - https://cpponline.uk/workshop/mastering-stdexecution-senders-receivers/
  8. How C++ Actually Works - Hands-On With Compilation, Memory, and Runtime - Assaf Tzur-El - One day online workshop that runs over two days on May 18th - May 19th 16:00 - 20:00 UTC - https://cpponline.uk/workshop/how-cpp-actually-works/
  9. AI++ 101 - Build an AI Coding Assistant in C++ - Jody Hagins - 1 day online workshop available on Friday 22nd May 09:00 - 17:00 UTC - https://cpponline.uk/workshop/ai-101/

C++Online One Day Beginner Workshops - Reduced from £345 to £150/$200/€175 (£90/$120/€105 for students)

  1. Jumpstart to C++ in Audio - Learn Audio Programming & Create Your Own Music Plugin/App with the JUCE C++ Framework - Jan Wilczek - 1 day online workshop available on both Tuesday 14th April 13:00 - 20:00 UTC & Tuesday 28th April 07:00 - 14:00 UTC - https://cpponline.uk/workshop/jumpstart-to-cpp-in-audio/
  2. From Hello World to Real World - A Hands-On C++ Journey from Beginner to Advanced - Amir Kirsh - 1 day online workshop available on Thursday 21st May 08:30 - 16:30 UTC - https://cpponline.uk/workshop/from-hello-world-to-real-world/

C++Online Half Day Workshops - £172.50/$230/€200 (£45/$60/€55 for students)

  1. Stop Thinking Like a Junior - The Soft Skills That Make You Senior - Sandor Dargo - Half Day online workshop available on Friday 10th April 13:00 - 16:30 UTC & Friday 8th May 20:00 - 23:30 UTC - https://cpponline.uk/workshop/stop-thinking-like-a-junior/
  2. Splice & Dice - A Field Guide to C++26 Static Reflection - Koen Samyn - Half Day online workshop available on Monday 25th May 09:00 - 12:30 UTC - https://cpponline.uk/workshop/splice-and-dice/

C++Online Two Day Workshops - £690/$920/€800 (£180/$240/€210 for students)

  1. AI++ 201 - Build a Matching Engine with Claude Code - Jody Hagins - 2 day online workshop available on April 20th - April 21st 13:00 - 21:00 UTC & May 28th - May 29th 09:00 - 17:00 UTC - https://cpponline.uk/workshop/ai-201/

Eleven of these workshops had previews at the main C++Online Conference which took place on the 11th - 13th March. You can watch these preview sessions here: https://www.youtube.com/playlist?list=PLHG0uo5c6V3KIeoLqvBbIqy5AXt_Me_cm

Anyone who purchased a C++Online Main Conference ticket can also get a discount of however much they paid to attend the main conference. 

Also if anyone is from a lower-income background or live in a country where purchasing power is limited, then it is recommended to reach out to C++Online on info@cpponline.uk as they will be able to give you a discount.

OTHER NEWS


r/cpp • • Apr 07 '26

C++ History Collection: Software Preservation Group

Thumbnail softwarepreservation.computerhistory.org
17 Upvotes

r/cpp • • Apr 07 '26

Future of Boost.Graph Workshop, Paris, France, May 6th 2026

37 Upvotes

Dear C++ and Graph community,

We are working towards the revitalizing of the Boost.Graph library and we would like to reconnect with our user base. To this end, I organize a small workshop in Paris on May 6th 2026, 09h-18h.

The goal is to bring together a small group (10-15 people) of researchers, open-source implementers, and industrial users for a day of honest conversation. If you have used Boost.Graph or another C++ graph library in production/research, you should feel invited and welcome. Three questions will anchor the discussions:

  1. What types of graphs and data structures do you use in practice?
  2. What performance, scalability, and interpretability requirements matter most to you?
  3. What algorithms are missing today that Boost.Graph could offer?

And of course expect loooong discussions about API ergonomics and documentation ;)

The format is a mix of short lightning talks in the morning and structured discussions in the afternoon, ending with a concrete prioritized roadmap.

I opened a Github Discussion to allow the community to reach us, even if not able to attend, so please feel free to chime in with your ideas, suggestions, complaints and wish-list: https://github.com/boostorg/graph/discussions/466

If you can not attend because you are far away, please show yourself: remote attendance is possible and I plan to organize similar events in different cities/countries in the future to allow for in-person presence <3

Thanks again,


r/cpp • • Apr 07 '26

The "macro overloading" idiom – Arthur O'Dwyer

Thumbnail quuxplusone.github.io
30 Upvotes

r/cpp • • Apr 06 '26

The cover of C++: The Programming Language raises questions not answered by the cover

Thumbnail devblogs.microsoft.com
135 Upvotes

r/cpp • • Apr 07 '26

Introducing Sparrow-IPC: A modern C++ implementation of Arrow IPC

Thumbnail medium.com
18 Upvotes

We’re excited to announce the release of Sparrow-IPC: a modern, open-source C++20 library that implements the Apache Arrow IPC protocol on top of Sparrow.

Sparrow-IPC passes 100% of the Apache Arrow IPC integration tests, ensuring full compatibility with existing Arrow tools and pipelines.

The library supports compression, the Arrow stream format, and the Arrow file format.

Some examples

Serialize record batches to a memory stream

std::vector<uint8_t> serialize_batches_to_stream(const std::vector<sp::record_batch>& batches)
{
    std::vector<uint8_t> stream_data;
    sp_ipc::memory_output_stream stream(stream_data);
    sp_ipc::serializer serializer(stream);

    // Serialize all batches using the streaming operator
    serializer << batches << sp_ipc::end_stream;

    return stream_data;
}

Pipe a source of record batches to a stream:

class record_batch_source
{
public:
    std::optional<sp::record_batch> next();
};

void stream_record_batches(std::ostream& os, record_batch_source& source)
{
    sp::serializer serial(os);
    std::optional<sp::record_batch> batch = std::nullopt;
    while (batch = source.next())
    {
        serial << batch;
    }
    serial << sp_ipc::end_stream;
}

Incremental deserialization:

void deserializer_incremental_example(const std::vector<std::vector<uint8_t>>& stream_chunks)
{
    // Container to accumulate all deserialized batches
    std::vector<sp::record_batch> batches;

    // Create a deserializer
    sp_ipc::deserializer deser(batches);

    // Deserialize chunks as they arrive using the streaming operator
    for (const auto& chunk : stream_chunks)
    {
        deser << std::span<const uint8_t>(chunk);
        std::cout << "After chunk: " << batches.size() << " batches accumulated\n";
    }

    // All batches are now available in the container
    std::cout << "Total batches deserialized: " << batches.size() << "\n";
}

r/cpp • • Apr 07 '26

CppCast CppCast: Building a Compiler Inside the C++ Compiler with Daniel Nikpayuk

Thumbnail cppcast.com
25 Upvotes

r/cpp • • Apr 06 '26

Seergdb v2.7 released for Linux.

17 Upvotes