Better HN
topnewbestaskshowjobs
Log inSign up

moltopoco

89 karma · joined Feb 26, 2025 (1y ago) · 60 submissions

Submissions

comment 1w ago · link · parent

We may be in agreement, so I'm sorry to split this hair: These features don't make the code more readable. They _can_ make it more readable.

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

Understood, and I also use string_view where it makes sense. But while overusing std::string can cause unnecessary and hidden allocations, overusing string_view often leads to memory errors.

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

I have no problem with any of these features, only with the culture surrounding them. The point should be to write maintainable, safe, and efficient code, but sometimes that is at odds with writing "modern" code because the boring old C++11 way works just fine. In my anecdotal experience (YMMV), "modern" then often trumps other concerns when it should never have been a goal in itself.

comment 1w ago · link · parent

Just one data point, because I have to get it off my heart. I loved Modern C++ when it meant C++11, but I've become more negative with each new language standard reaching my workplace.

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

When I've had a coffee too much, I notice the 120 Hz flicker even more. But even when I'm tired and don't, my mood still noticeably increases when I leave flickery spaces. (I sometimes test my hunch with the slow-motion cam as I am leaving.) I've tried looking for studies to prove or disprove my experience. They should be easy to find, right? Humanity is replacing the entire planet's lighting with LEDs after all! Comment sections have been busy with people arguing about PWM flicker for years, probably longer. What is the best study you can find? For me, it is always the one from 1989 about pre-LED 60 Hz office lighting (that said it had adverse effects). Seriously...?

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'd have preferred the inverted-T layout of recent MacBooks too. But because this keyboard does not have a numpad, it could be easy enough to find the bottom left corner of the keyboard with your fingers.

comment 6mo ago · link · parent

system76 does not develop special Nvidia drivers, but they do work on integrating GPU switching etc. in the Linux desktop: https://github.com/pop-os/system76-power/

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

I love Slay the Spire 2, it is a very good game, but it most honestly doesn't look or feel technically impressive.

comment 8mo ago · link · parent

Agreed, the tech job market was bad before AI was useful.

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

They did still overpromise and that should not be the way Apples does things (although it was hardly the first time; the AirPower mat was announced in 2017).

comment 10mo ago · link · parent

Many gamers are married to Windows exclusive games like Fortnite etc., but gamers are also more rebellious than corporate IT staff and many have actually built their computers from parts, so they are not scared of flashing a USB drive. I'm optimistic that this group is the next one to break away from Windows.

comment 10mo ago · link · parent

Not just battery life, but also webcams and mics. Sure, you can use additional gadgets...but being able to open your MacBook and just talk to your coworkers is reason enough to keep an M1 Air around for the next years.

comment 11mo ago · link · parent

That is not what I said at all. My claim is that, regardless of what the authoritarian right is doing, the left has become more tolerant of authoritarianism itself, especially to 'save democracy' (which is again reminescent of the GDR, starting from its very name).

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

To adults? Certainly. But keep in mind that many children are now growing up with this crap glued to their eyes from age 2:

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

Have you dived into the destructive brainrot that YouTube serves to millions of kids who (sadly) use it unattended each day? Even much of Google's non-ad software is a cancer on humanity.

comment 11mo ago · link · parent

Being able to replace the keyboard is especially wonderful because laptops are usually "region-locked". I know people who use relatively unpopular layouts relative to where they live, and it makes it harder to buy and much harder to sell their Macs.

comment 11mo ago · link · parent

It seems that no modern comment section is complete without the complaint "too much politics", then followed by "but everything is political". Some talks do not even try to draw a line from politics to computers, and I think that is what people feel unhappy about.

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

We might be the same age; I remember that defacing conservative websites was already a C3 thing about 20 years ago. Back then, it felt good to punch up against authoritarianism. Hackers hated Bush and his Patriot Act just as much as many hate Trump now. In Germany, the CDU is of course the perennial enemy.

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

The cable makes the claim that Calibri did not actually help anyone, and even backs up this claim with numbers. So how is it aimed at minorities? Who is prejudiced against people with bad eyesight?

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

That is also easily disabled. I think there are five or six things that I need to disable in a fresh Brave installation and then it's perfect.

comment 11mo ago · link · parent

Neither do I, but what about YouTube? Not letting your TV manufacturer sell your watching habits is already a big win, and on macOS you can further block telemetry. A big chunk of my YouTube consumption happens through yt-dlp using a VPN provider that presumably does not cooperate with Google.

comment 11mo ago · link · parent

SteamOS/Bazzite also makes it pretty easy to integrate flatpaks into its gamepad-oriented UI. I hope that leads to the development of more apps that work with a remote control or gamepad, which would then also work on Plasma Bigscreen.

comment 11mo ago · link · parent

The Steam Machine will support CEC, hopefully other PC vendors will take note and adopt it.

comment 11mo ago · link · parent

Yes, a true "mask-off moment": I do find that classic LaTeX papers look more trustworthy than whatever MS Word outputs by default.

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

From the article:

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

The irony here is that Steve Jobs _did_ actually think about fonts. Sure, he certainly didn't think about Times New Roman, but I disagree with the idea that someone at the top should not have time to write a quick memo about trivialities if it bothers them.

comment 11mo ago · link · parent

From the article:

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

comment 11mo ago · link · parent

This indeed. In the last couple of years, I've had to re-read a whole lot of sentences because I read it as the wrong Al/AI in my head at first.

comment 11mo ago · link · parent

Many people have one or more Discord groups where someone will say "let's play Valorant tonight" and then everyone just installs it. Linux is fantastic for local gaming on a handheld or in the living room, not so much when your non-Linux friends pick the game.
12