News for hackers. Stuff that matters.

mseepgood

Re:Go 1.27 on Thursday August 20, 2026 @09:00AM (#49374059)
"May well be added at some point" it said and added they were at some point.
Re:Go 1.27 Interactive Tour on Sunday August 02, 2026 @07:46AM (#49143564)
It's not good Go code anyway. In Go you would use a for loop. Just because Go has generics nowadays doesn't mean you should abandon good taste and write ML/Haskell/Rust/C# in it.
Re:How to Exist on Saturday August 01, 2026 @01:32AM (#49131335)
Isn't that just how one falls asleep? I've been doing this every evening for decades.
Re:Unauthorized alert sent to cell phones across Brazil on Saturday June 20, 2026 @05:30PM (#48613152)
Of all the messages they could have sent they chose the most boring.
He's probably dead by now.
> It seems to me that humans often fall into the trap of anthropomorphism.

That's true, but they also often fall into the trap of exceptionalism.

Re:Sunsetting the Techempower Framework Benchmarks on Monday March 23, 2026 @11:32PM (#47498326)
This text lacks information about why it is being sunset.
A third that will never have a wife.
> We would immediately build better telescopes to track it precisely, refine its trajectory models, and begin developing propulsion systems capable of interception

That's not what would happen. We wouldn't mobilize. We'd fragment. Within days, the prediction would be declared partisan. One bloc would call it settled science; another would call it statistical hysteria. Billionaires would quietly commission private shelters while publicly funding studies questioning whether the asteroid even qualified as "large." News panels would debate whether the projected impact zone was being unfairly politicized. Conspiracy channels would insist the asteroid was fabricated to justify global governance. Others would insist the real asteroid was being hidden. Amateur analysts would flood the internet with homemade trajectory charts proving the professionals wrong. Death threats would arrive in astronomers' inboxes faster than research grants.

Re:Turn Dependabot Off on Saturday February 21, 2026 @03:08AM (#47098568)
With a statically compiled language it is usually culled through dead-code elimination (DCE), and with static linking you don’t ship entire libraries.
Re:Building a TUI is easy now on Friday February 13, 2026 @04:59PM (#47008401)
The question is how many decades each user of your software would have to use it in order to offset, through the optimisation it provides, the energy consumption you burned through with LLMs.
Re:Italy Railways Sabotaged on Saturday February 07, 2026 @05:32PM (#46928891)
Our railways don't need sabotage - trains fail to run anyway.
Re:CSS now has an if() conditional function on Friday December 05, 2025 @04:20AM (#46158785)
So why do people still design declarative languages?
Re:Go's Sweet 16 on Saturday November 15, 2025 @11:42AM (#45938631)
> Octals must start with zero and then o/O literals.

No, the o/O is optional (hence in square brackets), only the leading zero is required. All of these are valid octal literals in Go:

0600 (zero six zero zero)

0_600 (zero underscore six zero zero)

0o600 (zero lower-case-letter-o six zero zero)

0O600 (zero upper-case-letter-o six zero zero)

Re:Go's Sweet 16 on Saturday November 15, 2025 @11:36AM (#45938576)
You're looking at the wrong production. They are octal literals:

    octal_lit      = "0" [ "o" | "O" ] [ "_" ] octal_digits .
Re:It's Not Wrong that " ".length == 7 on Friday August 22, 2025 @04:35AM (#44982182)
The values for x and y should't come from your brain, though (with the exception of 0). They should come from previous index operations like s.indexOf(...) or s.search(regex), etc.
Re:The Daily Life of a Medieval King on Monday July 21, 2025 @06:45AM (#44633675)
Delegation is key
Re:The Daily Life of a Medieval King on Monday July 21, 2025 @06:42AM (#44633661)
So he only did four hours of actual work per day.
Re:MCP: An (Accidentally) Universal Plugin System on Sunday June 29, 2025 @11:48AM (#44414023)
Is it some kind of CORBA?
Re:The Prompt Engineering Playbook for Programmers on Thursday June 05, 2025 @10:19AM (#44191974)
You don't even have to write proper sentences. "me get error X how fix here code:" usually works.
Re:The Prompt Engineering Playbook for Programmers on Thursday June 05, 2025 @10:13AM (#44191920)
Is asking good questions or making clear requests what people now refer to as 'prompt engineering'?
Re:(On | No) Syntactic Support for Error Handling on Tuesday June 03, 2025 @05:42PM (#44175068)
The second most popular issue was adding generics. So it's probably not a resistance to change.
Re:(On | No) Syntactic Support for Error Handling on Tuesday June 03, 2025 @05:03PM (#44174706)
> sometimes a decision is better than nothing

Not in this case. The most popular Go proposal/issue of all times was 'leave "if err != nil" alone': https://github.com/golang/go/issues?q=is%3Aissue%20%20sort%3...

Re:(On | No) Syntactic Support for Error Handling on Tuesday June 03, 2025 @02:45PM (#44173250)
It's good to have languages with different approaches to design and and with different design philosophies.
Re:(On | No) Syntactic Support for Error Handling on Tuesday June 03, 2025 @02:37PM (#44173173)
- It has poor visibility, it hides control flow branches in a single statement / expression. That's one of the reasons Go got rid of the ternary operator in favor of an if statement where each branch has to be on its own line.

- It isn't easily breakpointable.

- It favors "bubbling up" as-is over enriching or handling.

Re:(On | No) Syntactic Support for Error Handling on Tuesday June 03, 2025 @02:24PM (#44173042)
One reason I consider Rust's approach worse than Go's.
Re:(On | No) Syntactic Support for Error Handling on Tuesday June 03, 2025 @02:20PM (#44172989)
How would you set a breakpoint on the error return case?
Re:(On | No) Syntactic Support for Error Handling on Tuesday June 03, 2025 @01:51PM (#44172685)
Sometimes doing nothing is the right thing to do. (Quote from Until Dawn)

Go chose not to change the error handling - Nature remained in balance.

Or the 2006 London incident, where a Putin critic was irradiated by a radioactive source in his stomach.
They were composed by Ennio Moricons.

Older »