Overview
News
Salaries
Products
People
Growth
Offices
Financials

Overview

Sandor Dargo writes about about C++, software development, books and stoic philosophy applied to software craftsmanship.

News

Blog 2 months ago
C++26: std::indirect
C++26 adds two new vocabulary types in memory, introduced by P3019R14 (Coe, Peacock, Parent). From the abstract: The class template indirect confers value-like semantics on a dynamically-allocated object. An indirect may hold an object of a class T. Copyi
Read more
Report
Blog 2 months ago
C++26: #embed
If you've ever needed to ship a binary file - a certificate, a small image, a default configuration - inside a C++ program, you know the ritual. You find or write a tool that converts the file into a C array, you wire it into your build system, and you pr
Read more
Report
Blog 3 months ago
The C++ Interview Book is here
Five years ago I published Daily C++ Interview - a collection of questions and answers that grew out of an email course I ran for C++ developers preparing for interviews. It did better than I expected. Over a thousand copies sold and plenty of kind emails
Read more
Report
Blog 3 months ago
C++26: Reducing undefined behaviour
Nowadays, safety is in the focus of C++. Whether it's at committee meetings, conference talks, or hallway discussions, the topic keeps coming up. C++26 made some big steps forward in this area, and one recurring theme is the reduction of cases leading to
Read more
Report
Blog 3 months ago
The Portable Way to Extract Date and Time from a File's mtime in C++
After I finished my Time in C++ series, a reader asked a seemingly simple question: "What is the portable way to extract the year, month, day, hour, minute, and second from a file's modification time? I tried, and I couldn't get it to work reliably on mac
Read more
Report
News Sandor Dargo's Blog 3 months ago
The Prompt-Wait-Evaluate Loop: How AI Kills Flow Without You Noticing
A few months ago, I wrote about finding joy in programming in the age of AI. In the personal discussions I've had with fellow developers - both before and after that article - one thing keeps striking me. Most people don't argue. They just say: yes, that'
Read more
Report
News Sandor Dargo's Blog 3 months ago
Propagating exceptions from destructors with std::exception_ptr
A few weeks ago, I wrote about what happens when a destructor actually throws and why it is a dangerous idea. One of the readers commented that he was once in a situation where he had to propagate an exception from a destructor. But as a destructor cannot
Read more
Report
News Sandor Dargo's Blog 4 months ago
C++26: constexpr virtual inheritance
constexpr has come a long way since its introduction in C++11. Back then, constexpr functions were extremely restricted and could essentially contain only a single return statement. C++14 relaxed those restrictions, allowing local variables, loops, and mu
Read more
Report
News Sandor Dargo's Blog 4 months ago
Memory Management in C++ by Patrice Roy
Memory management is one of those topics that every C++ developer has to deal with, yet very few of us take the time to study it systematically. Memory Management in C++ by Patrice Roy is a book that finally gives this fundamental topic the deep and up-to
Read more
Report
News Sandor Dargo's Blog 4 months ago
C++26: Cleaning up string literals
The two papers we are covering today are complementary in a philosophical sense. They both improve how string literals are handled in C++26. P2361R6 tackles strings that are never evaluated - the ones that only exist at compile time. P1854R4 tackles evalu
Read more
Report
Show more news