@cppnow@mastodon.social avatar cppnow , to random

Would you like to present at C++Now 2025? Then submit a proposal before February 10th

Read more at https://cppnow.org/announcements/2025/01/2025-CfS/

Proposals can be submitted from our Presenters Page here https://cppnow.org/presenters/

@cppnow@mastodon.social avatar cppnow , to random

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

Find out more and register today: https://cppnow.org/announcements/2026/02/2026-registration-is-open/

@AminiAllight@mastodon.gamedev.place avatar AminiAllight , to random

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

@h4ckernews@mastodon.social avatar h4ckernews Bot , to random
@cppnow@mastodon.social avatar cppnow , to random

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.

For more information, please read our announcement at https://cppnow.org/announcements/2025/01/2025-CfS/

@herzenschein@furry.engineer avatar herzenschein , to random

I've just published my new blog post:

"KDE onboarding is good now."

It will be awesome next.

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.

https://rabbitictranslator.com/kde-onboarding/

@meetingcpp@mastodon.online avatar meetingcpp , to random

Cache Friendly C++ - Jonathan Müller - Meeting C++ 2025
https://www.youtube.com/watch?v=LHPOAcKqWFc

@h4ckernews@mastodon.social avatar h4ckernews Bot , to random
@aemstuz@mastodon.com.pl avatar aemstuz , to random Polish

Świetny komedio-horror dla programistów: https://yewtu.be/watch?v=7fGB-hjc2Gc

@vitaut@mastodon.social avatar vitaut , to random

New blog post: The smallest state-of-the-art double-to-string implementation
https://vitaut.net/posts/2025/smallest-dtoa/

@shafik@hachyderm.io avatar shafik , to random

Retro C++ quiz

<iostream>
<string>

int main() {
using namespace std::string_literals;
std::string s1("hello world",5);
std::string s2("hello world"s,5);

std::cout<<s1<<s2; // What is the output?
}

Without checking:

A. hellohello
B. world world
C. hello world
D. worldhello


@mark@mastodon.fixermark.com avatar mark , to random

Dear lazymastodon,

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@fosstodon.org avatar foonathan , to random

From the standardization committee that brought you keywords such as co_return, decltype, and reinterpret_cast, now for your consideration:

trivially_relocatable_if_eligible

and

replacable_if_eligible!

C++ - you're gonna need a bigger column limit.

krans ,
@krans@mastodon.me.uk avatar

@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”.

@meetingcpp@mastodon.online avatar meetingcpp , to random

Trip report: Budapest C++ - Breaking & Building C++
https://www.sandordargo.com/blog/2025/10/22/trip-report-budapest-cpp

@h4ckernews@mastodon.social avatar h4ckernews Bot , to random
@h4ckernews@mastodon.social avatar h4ckernews Bot , to random
@alter_kaker@hachyderm.io avatar alter_kaker , to random

So I got tired of mysterious crashes, uncooperative debugger, and learning this fractally arcane language. So I am taking a break from , going back to GDScript for my 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 for Godot or even 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.

@markuswerle@nrw.social avatar markuswerle , to random

As co-organizer of the C++ User Group , I am thrilled to announce our program for next Wednesday, September 3, 2025.

We will meet at SLB starting at 6:30 p.m., and the talks will begin at 7:00 p.m..

If possible, please pre-register at https://www.meetup.com/de-de/c-user-gruppe-aachen/.

Many thanks to @foonathan for accepting our invitation and to the think-cell Software team for supporting this opportunity.

@cppnow@mastodon.social avatar cppnow , to random
@meetingcpp@mastodon.online avatar meetingcpp , to random

Meeting C++ 2025 featured talk of the day: Jonathan Müller - Cache-Friendly C++
https://meetingcpp.com/mcpp/schedule/talkview.php?th=1f1a36bc598240f78105a2ed332e8d78261b3a0e


@glloyd@fosstodon.org avatar glloyd , to random

I spent all day digging into code to discover and fix this issue.

auto make_func(int v) {
auto f1 = [&] { return v; }; // OK
auto f2 = [=] { return f1(); }; // OK
return f2; // DANGER (has reference to local v)
}

int main() {
auto f = make_func(42);
return f();
}

I'm glad I found it, but is there any tooling that would save future me from spending so much time?

@AminiAllight@mastodon.gamedev.place avatar AminiAllight , to random

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?

Boosts appreciated for visibility!

@xolatgames@mastodon.gamedev.place avatar xolatgames , to random

So... I decided to rebase the project codebase.

The results of my work you can see here 👉🏼 https://gitlab.com/xolatgames/birdy-wants-crisps

So as you can see - the work on the project is in full swing 😉

But while I "rebase" the source code of the project - it can't will be running!

@AminiAllight@mastodon.gamedev.place avatar AminiAllight , to random

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

@mkretz@floss.social avatar mkretz , to random

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?

#C