89 karma · joined Feb 26, 2025 (1y ago) · 60 submissions
comment 1w ago · link · parent
You can also replace a simple overloaded function with an implicit template that uses modern "if constexpr" to distinguish between input types. Or you can "modernize" a legacy function that takes a const string& to take string_view instead, even if the very first thing the function does is to turn it back into a string to pass its c_str() to a C API (leading to more net allocations). And so on.
I always found the fashion trends of the C++ community counter-productive, and that is what I personally associate with the term "modern C++" nowadays (since around C++20). It was the same with iterators after C++98 - cool, now we can express algorithms with all the clarity and safety of C pointer arithmetics. With all due respect to the original STL, std::erase_if(cont,pred) is a godsend in its simplicity, but I suspect it would have been against the zeitgeist for a long time.
comment 1w ago · link · parent
I also love C++11 "auto", but overusing it then makes the string/string_view bugs harder to find.
I am perfectly happy with with idiomatic C++11 plus features from recent standards, but I don't feel like that counts as "modern C++" anymore. A sibling comment put it better: idiomatic C++20 has become its own separate thing, and I personally don't love it, and it is certainly not more robust in my experience.
comment 1w ago · link · parent
comment 1w ago · link · parent
Using string_view over string by default is probably the #1 cause of memory errors that landed on my desk. I also keep hearing that "int x{0}" is preferable to "int x = 0" which allows for super dangerous implicit conversions, but then the same people rewrite push_back into emplace_back, which is much more lenient w.r.t. type conversions. It is also much easier to litter every function with [[nodiscard]] constexpr nothrow than it is to argue for readability.
My best explanation is that "Modern C++" is making developers biased towards whatever language feature is newer, instead of making good decisions. I wish the community gave up on the moniker.
comment 1w ago · link · parent
I wish I was a Bitcoin billionaire, for many reasons, but doing another study on flickery LED lighting seems like the lowest-hanging fruit of our entire civilization. I live in a country that is regulated to hell and back, and yet even our street lights flicker visibly, not to mention classrooms, children's bedrooms, and the screens that people stare at for hours every day. I don't get it.
comment 6mo ago · link · parent
I don't think this is necessarily about Linux nerds. For any kind of work laptop, time saved tinkering easily worth the extra $$$.
comment 8mo ago · link · parent
The "I'm gonna make a tool" thing is slowly happening and will probably help Linux, knocking on wood... https://x.com/xpasky/status/2030016470730658181
comment 10mo ago · link · parent
comment 11mo ago · link · parent
As to why this split is happening, I'd argue it was easier to be anti-authoritarian when we were in the opposition, just as today's AfD reliably votes against Chat Control or other power grabs because it makes them look good at no cost. But the left has become a dominant force due to its long march through the institutions, and some want to use this power to crush the enemy (debanking, police raids for milquetoast internet comments). Others look at the internet compass from your sibling post and decide they'd rather hang out with people in the libertarian right than with _any_ kind of authoritarian.
Just to be clear, I'm not saying the CCC is an authoritarian organization. But I doubt they'll ever be too critical of our intransparent "Trusted Flagger" system, for example, because they know it would anger many in their crowd. 20 years ago we'd have agreed that this kind of crap only happens in China.
comment 11mo ago · link · parent
https://www.youtube.com/results?search_query=funny+3d+animal...
(That's just one genre of brainrot I came across recently. I also had my front page flooded with monkey-themed AI slop because someone in my household watched animal documentaries. Thanks algorithm!)
comment 11mo ago · link · parent
https://fahrplan.events.ccc.de/congress/2025/fahrplan/event/...
https://fahrplan.events.ccc.de/congress/2025/fahrplan/event/...
https://fahrplan.events.ccc.de/congress/2025/fahrplan/event/...
comment 11mo ago · link · parent
But what happens when authoritarianism does not come from the right, but from the left or center? (Not a contradiction: East Germany was an "anti-fascist" totalitarian state as recently as 40 years ago.) Sadly, I think we have been slowly moving in this direction since Covid, where I was genuinely shocked that many of my "leftie" friends had turned into government drones (from my perspective), while they were deeply disappointed that I was now a "right-winger" (from their perspective).
The more aware they become of how unpopular some of their politics are, the less they believe in democracy as a concept, while I'm still jealous of countries that have proper referendums and freedom of speech. Hate Speech laws are accelerating this divide.
Anyway, I think that these are the dynamics that are driving many people apart who all simultaneously claim to not have changed in decades. The CCC is still doing a lot of great work, but I do feel it drifting away from me because it is not so much about punching up than about punching right.
comment 11mo ago · link · parent
https://daringfireball.net/misc/2025/12/state-department-ret...
I don't usually go back to comments from seven days ago, but I missed the full memo being on DF. The sideswipe at the previous administration is childish, sure. But the way in which Reuters has portrayed this memo is even more shocking to me after reading it. Holy culture war partisanship, batman.
comment 11mo ago · link · parent
comment 11mo ago · link · parent
Associating TNR with authoritarianism would not even be historically accurate, because many authoritarians pushed to simplify writing (Third Reich, Soviets, CCP); if anything, TNR looks _conservative_, which is probably the look that Rubio is going for.
comment 11mo ago · link · parent
> ...according to an internal department cable seen by Reuters...
The jab at the DEIA is petty, sure. But if the only intent was to smear them, why didn't they even announce it publicly? It was the choice of Reuters and HN to make an MS Office font change(!) a big deal.
comment 11mo ago · link · parent
> A cable dated December 9 sent to all U.S. diplomatic posts said that typography shapes the professionalism of an official document and Calibri is informal compared to serif typefaces. > "To restore decorum and professionalism to the Department’s written work products and abolish yet another wasteful DEIA program, the Department is returning to Times New Roman as its standard typeface," the cable said.
I don't read that purely as an "anti-woke" move, why did Reuters only highlight that part and not the bit about professionalism? I do indeed agree that serifs look more authoritative.