News for hackers. Stuff that matters.

porise

Re:Ask HN: How do you maintain flow when vibe coding? on Thursday April 16, 2026 @03:26PM (#47798262)
Sorry for not answering your question, but asking how to not let something do your work for you not be so exhausting is like listening to a billionaire complain that they have to instruct their maids and chefs too often.
Re:C++26: Structured Bindings in Conditions on Thursday April 16, 2026 @02:39PM (#47797647)
Yeah I wouldn't like this in a code review. Add one more line of code so I don't have to investigate foo().

That's my fundamental gripe with C++

int i = 0;

function_0(i,...);

...

function_9(i,...);

which one changes i? It's not obvious in a code review due to default mutable references.

Re:Number in man page titles e.g. sleep(3) on Monday April 06, 2026 @07:14AM (#47659389)
Reading this makes me wonder if Easter eggs are ever appropriate for something as ubiquitous as man.
Re:C++26 is done ISO C++ standards meeting, Trip Report on Monday March 30, 2026 @01:47AM (#47570809)
And yet, none of them work with std::regex etc.
Re:C++26 is done ISO C++ standards meeting, Trip Report on Sunday March 29, 2026 @03:22PM (#47566275)
I don't care until they stop pretending Unicode doesn't exist.
Re:LinkedIn uses 2.4 GB RAM across two tabs on Sunday March 29, 2026 @08:01AM (#47562409)
It's not as bad as JIRA, although JIRA is marginally more useful than LinkedIn.
Re:C++26: A User-Friednly assert() macro on Saturday March 28, 2026 @02:24PM (#47557077)
I'm still waiting for C++ to support Unicode properly.
Re:Nobody ever got fired for using a struct on Monday March 16, 2026 @04:55PM (#47404747)
Rusts tradeoff is awful. People organize struct members in the logical ways in which they will be accessed. Rust just decides to do things different so they can say they do things different and "better" than the old C. The featured article is an extreme case but other normal cases would have the same issue. Packing structs should be the exception.
Re:Nobody ever got fired for using a struct on Friday March 06, 2026 @01:50AM (#47271768)
Why is rust allowed to reorder fields? If I know that fields are going to be generally accessed together, this prevents me from ordering them so they fit in cache lines.
Re:Ask HN: Why electronics are still so unrecyclable? on Wednesday February 11, 2026 @11:20AM (#46976887)
I heard they changed it to 5Rs.

Refuse, reduce, reuse, recyle, rot.

Re:It's not you; GitHub is down again on Monday February 09, 2026 @02:10PM (#46949505)
Nope. If someone did that it should be reported if it's against the rules here.
Re:It's not you; GitHub is down again on Monday February 09, 2026 @01:00PM (#46948511)
I've had two accounts. I changed because I don't like the history (maybe one other person has the same opinion I did?). Anyways it's pretty obvious why this is an issue. Microsoft has a historical issue with being brutal to competition. There is no oversight as to what they do with the private data on GitHub. It's absolutely an antitrust issue. Do you need more reasoning?
Re:It's not you; GitHub is down again on Monday February 09, 2026 @11:30AM (#46947177)
Can they use Github to their advantage to maintain a monopoly if they are nefarious? Think about it.
Re:It's not you; GitHub is down again on Monday February 09, 2026 @11:28AM (#46947137)
Companies used to be forced to sell parts of their business when antitrust was involved. The issue isn't the downtime, they should never have been allowed to own this in the first place.

There was just a recent case with Google to decide if they would have to sell Chrome. Of course the Judge ruled no. Nowadays you can have a monopoly in 20 adjacent industries and the courts will say it's fine.

Re:It's not you; GitHub is down again on Monday February 09, 2026 @11:26AM (#46947086)
What antitrust issue does my open source software have?
Re:It's not you; GitHub is down again on Monday February 09, 2026 @11:17AM (#46946914)
Take it away from Microsoft. Not sure how this isn't an antitrust issue anyway.
Perl was written to write more complicated bash scripts. It's so seamless to call and handle shell commands and the first class regexes make it terse in a way that's appropriate for this use case.
Re:How Jeff Bezos Brought Down the Washington Post on Wednesday February 04, 2026 @03:30PM (#46891244)
Just say Google. The need for keywords plastered everywhere (often hidden in the HTML) was their invention.
Re:Notepad++ supply chain attack breakdown on Tuesday February 03, 2026 @06:38PM (#46879036)
I guess package managers win in the end. I got two emails from my IT department in the last year telling me to immediately update it.
I wish the people who wrote this let us know what king of codebases they are working on. They seem mostly useless in a sufficiently large codebase especially when they are messy and interactions aren't always obvious. I don't know how much better Claude is than ChatGPT, but I can't get ChatGPT to do much useful with an existing large codebase.
Re:Dutch police have their own car stolen during car theft chase on Wednesday January 14, 2026 @01:21PM (#46620069)
What kind of comments did you expect other than the one that was borderline racist with plausible deniability? What's a good conversation in this thread?
Re:Dutch police have their own car stolen during car theft chase on Wednesday January 14, 2026 @01:12PM (#46619851)
Nope. Only nonviolent crimes. Anyways I was just trying to draw a parallel to corporations doing harm.
Re:Dutch police have their own car stolen during car theft chase on Wednesday January 14, 2026 @01:01PM (#46619617)
Hustle comes in many different forms. Some people just start evil companies in their garage.
Re:GitHub should charge everyone $1 more per month on Wednesday January 14, 2026 @12:10PM (#46618757)
I would put Disney in there. I picked 8 arbitrarily but those companies have substantial pull in governmental regulations and the state of the web. Probably missing some Chinese companies.

imo corporations have more pull on governments than governments have on businesses at this point as far as long term culture goes.

Re:GitHub should charge everyone $1 more per month on Wednesday January 14, 2026 @11:54AM (#46618500)
I paid 1 buck for WhatsApp back in the day. Better business model than what meta did with it. But we're moving closer and closer to 8 companies controlling the world. Both WhatsApp and github are owned by them.
Value categories actually just are confusing in a language as complicated as C++. I'm not willing to bet that even senior C++ developers are always going to be able to deduce the correct value category.

And worse, in typical C++ fashion, there is still little guaranteed as far as when std::move will actually cause a move. The implementation is still given a lot of leeway. I've been surprised before and you basically have no choice but to check the assembly and hope it continues to be compiled that way as minor changes make their way into the code base.

Re:When Compilers Surprise You on Wednesday December 24, 2025 @10:29AM (#46376413)
You don't have to be an expert in compiler design to make godbolt in fairness, although he does know a lot.

I spend a lot of time looking at generated assembly and there are some more impressive ones.

Re:Get an AI code review in 10 seconds on Sunday December 21, 2025 @05:08PM (#46349080)
Template instantiation is relatively simple and can be resolved immediately. Trying to figure out how 4 different libraries interact with undefined behavior to boot is not going to be easy for AI for a while.
Re:Get an AI code review in 10 seconds on Sunday December 21, 2025 @04:09PM (#46348491)
Good thing I work on an old C++ code base where it's impossible for AI to go through the millions of lines that all interact horribly in unpredictable ways.
Re:Three Ways to Solve Problems on Sunday December 21, 2025 @01:35PM (#46347034)
It's in own category for higher level beings who make pot holes bigger until it gets fixed.

Older ยป