Registration for C++Now 2026 is now open! The fourteenth annual C++Now Conference will be held at the Aspen Center for Physics in Aspen, Colorado, from May 4th - 8th
Wondering if std::variant can be empty and discovering the answer is "no, unless [lengthy edge case about assignment] then yes" is the most C++ thing imaginable
We cordially invite all members of the C++ community, to submit session proposals for the 13th annual C++Now Conference, to be held April 28th – May 2nd, 2025, in Aspen, Colorado.
I talk about my history with Linux and KDE and what I've done over the years, going through my work as a documentation contractor for KDE until I reach the current state of KDE onboarding docs.
Any tips on editing C++ in emacs? I find myself burning a lot of time looking for implementations that could live in a .cpp file, a .h file, a .h.cc file, and so on. This language seems to delight in just tossing implementations wherever relative to other languages I use.
Is there a convenient tool stack to simplify navigating this space?
@foonathan The general premise is that it's worse to be ambiguous than to be long.
It's rare to need to name these long identifiers in application code. If I am using them, it probably means I'm doing something clever and obscure, and the extra verbosity is going to be helpful in comprehending the code when I come back to it in 6 months.
I prefer these to the C library's naming convention of “8 apparently random characters”.
So I got tired of mysterious crashes, uncooperative debugger, and learning this fractally arcane language. So I am taking a break from #CPlusPlus, going back to GDScript for my #Godot project. Making lots of progress. Maybe later (much later...) I'll redo everything as a GDExtension, because I'm still concerned about performance issues when scaling up (running behavior trees for potentially thousands of actors every frame), and other things like more rigor from the type system and unit tests, better integration for the editor plugin side of things, and so on. But for now, being able to see our vision come together is worth it!
Hell, maybe by the time the prototype is finished, maybe the #Rust for Godot or even #Bevy will be production ready!¹
¹ Bevy is great, but a working editor is not a "nice to have," it's a requirement. I love code first for certain things, but I need my non-"technical" collaborator(s?) to be able to contribute.
Anyone used Chromium Embedded Framework before?
I'm setting the resolution of a windowless renderer to 1600×900 from CefRenderHandler::GetViewRect
But when I query it from JavaScript I get
window.outerWidth = 1600
window.innerWidth = 1455
Any idea where 145 of my pixels went and how to get them back?
We're actually getting static reflection in C++26?? Move over constexpr cmath functions, I have a new favorite!
I wonder how many thousands of lines could be removed from my project once manual serialization, comparison, enum stringification, etc. are no longer required #programming#gamedev#indiedev#cpp#cplusplus
Why did IEEE specify sqrt(-0) to be -0?! That's … surprising when applied to the interpretation of -0 in the context of complex numbers:
sqrt(complex{-0,+0}) is complex{+0,+0}.
And also pow(-0, 0.5) is +0.
If anything sqrt(-0) should be NaN, but why -0?