Better HN
topnewbestaskshowjobs
Log inSign up

cpeterso

44,314 karma · joined Jan 6, 2011 (15y ago) · 8,020 submissions

Submissions

comment 1d ago · link · parent

Perhaps k8s should remove graceful shutdown and make "abnormal" termination the only way to shut down. With a hostile, "crash-only software" environment, teams must make their code robust by design: https://en.wikipedia.org/wiki/Crash-only_software

comment 6d ago · link · parent

A new take on the OOM killer: if a long-running daemon hasn't touched some heap pages for a very long time, perhaps the OS could assume it is leaked and unmap the pages. If the daemon tries to access that memory, let it crash.

comment 2w ago · link · parent

> someone needs to say what to do, someone needs to do it, and someone needs to say if it's been done

I agree, but if you zoom out, "someone needs to say what to do" and "someone needs to say if it's been done" are the customers and end users. Will they still need product managers, software engineers, or QA in the middle? I think so because many customers will need help from experts with domain knowledge.

comment 3w ago · link · parent

What tools or AGENTS.md prompts do you find effective for humanizing LLM output? Default GPT output is acceptable, but Claude is unbearable.

The “Simplified Technical English” fad was pretty effective, but now I just specify:

  - Use short sentences and active voice.
  - NEVER use the phrases "load-bearing", "seam", "unlock", "real", or “learnings”.

5.

AI startup hacked Anthropic, gains access to employee details, internal messages(techradar.com ↗)

4 points · by cpeterso · 4w ago · 2 comments

comment 1mo ago · link · parent

Early Rust had a ‘pure’ function annotation, too, but it was removed as unnecessary as the borrow checker evolved and became central to Rust’s safety story.

https://news.ycombinator.com/item?id=6940624

comment 1mo ago · link · parent

Maybe new models training on the previous generation’s synthetic output is compounding the effect? LLM Ouroboros.

I find Claude’s writing unbearable. That ChatGPT offers personalization options (Base style, warmth, enthusiasm) and Claude doesn’t suggests Anthropic doesn’t recognize this as a problem. Plus, people sharing ChatGPT writing won’t all have the same voice.

8.

Neurastheniacc: LLM-based C->WASM compiler you didn't need(github.com ↗)

2 points · by cpeterso · 1mo ago · discuss

comment 1mo ago · link · parent

Google published a short video this week about how they used Gemini 4 Argon to migrate a Fortran code base to Rust: https://www.youtube.com/watch?v=biOWEPYyS5c

10.

Optimizing a 200k-line Python codebase overnight with Gemini 4 Argon(developers.googleblog.com ↗)

2 points · by cpeterso · 1mo ago · discuss

11.

Microsoft: Introducing Xbox Labs(news.xbox.com ↗)

11 points · by cpeterso · 1mo ago · 1 comment

comment 2mo ago · link · parent

It would be cool to leverage that Street View driving capability to build a multiplayer Gumball Rally/Cannonball Run cross-country car race. Are there continuous routes recorded from New York City to Long Beach? Which is fastest? How long would that virtual drive take in Street View?

13.

Browsers situationship: When browsers agree but the spec doesn't(atbrakhi.dev ↗)

15 points · by cpeterso · 2mo ago · 6 comments

14.

Automatically Retrofitting JIT Compilers(infoq.com ↗)

1 points · by cpeterso · 2mo ago · 1 comment

comment 2mo ago · link · parent

You’re right. I looked it up: getting the number of files in a directory in FAT and FAT32 file systems is O(n). I had assumed the count would be recorded in an inode-like structure but instead the file system must scan a directory table to count the non-null entries.

comment 2mo ago · link · parent

> Iran and Houthi rebels used Anthropic's Claude AI to target US warships and build hypersonic missiles — Houthi rebels also used the bot to code ballistic missile guidance systems

https://www.tomshardware.com/tech-industry/artificial-intell...

comment 2mo ago · link · parent

Raymond’s selectRandomFromIterator algorithm requires iterating over all the files. It seems like querying the file system for the number of files in a directory should be an O(1) operation. Then you just select random number N between [1, number of files] and iterate to the Nth file.

Why does Raymond assume counting the files is an O(n) operation?

comment 2mo ago · link · parent

Joel Spolsky's "Fire And Motion" blog post (2002) describes the challenge of tech churn well: https://www.joelonsoftware.com/2002/01/06/fire-and-motion/

> Think of the history of data access strategies to come out of Microsoft. ODBC, RDO, DAO, ADO, OLEDB, now ADO.NET – All New! Are these technological imperatives? The result of an incompetent design group that needs to reinvent data access every goddamn year? (That’s probably it, actually.) But the end result is just cover fire. The competition has no choice but to spend all their time porting and keeping up, time that they can’t spend writing new features.

19.

A Stupid Idea for AI Alignment We Came with by Looking at Specification Gaming(slimemoldtimemold.com ↗)

95 points · by cpeterso · 2mo ago · 63 comments

comment 2mo ago · link · parent

Modularity abstraction = drawing boxes around the messy parts

Modeling abstraction = drawing lines between the boxes

comment 2mo ago · link · parent

Mozilla's Firefox AGENTS.md begins with:

  Limit the amount of comments you put in the code to a strict minimum. You should almost never add comments, except sometimes on non-trivial code, function definitions if the arguments aren't self-explanatory, and class definitions and their members.

  Do not remove existing comments unless they are directly related to what you are changing.
https://searchfox.org/firefox-main/source/AGENTS.md

comment 2mo ago · link · parent

Firefox on iOS is blocking third-party ads, not first-party ads.

comment 2mo ago · link · parent

“Chris told me I mean that there was a particular way that we used to speak in the show that it that wasn't a normal rhythm and syntax. It was slightly backwards. which felt like it was almost part of the cryptic aspect of the series.

“And it wasn't until we were working on this, I think, the second feature. I was sitting in a parked vehicle waiting to shoot and our showrunner and creator Chris Carter came up to me who was directing the feature and he said he looked at my sides where my lines were and he said, "Look, no widows." And I said, "What what are you talking about?" He said, "No, no widows on the paragraphs that each character has." the word went all the way to the end with the period. So, you didn't like end halfway through that line. So, it was a perfect So, it was a perfect rectangle.

“So, the dialogue was designed visually. For nine years. [laughter] Wow. So, you're struggling. You're struggling with his OCD.

comment 2mo ago · link · parent

In a recent interview on Conan O'Brien's podcast, Gillian Anderson said X-Files creator Chris Carter wrote his scripts visually so they didn't have any widows (the last line of a paragraph carried over to the top of the next page):

Chris told me I mean that there was a particular way that we used to speak in the show that it that wasn't a normal rhythm and syntax. It was slightly backwards. which felt like it was almost part of the cryptic aspect of the series.

And it wasn't until we were working on this, I think, the second feature. I was sitting in a parked vehicle waiting to shoot and our showrunner and creator Chris Carter came up to me who was directing the feature and he said he looked at my sides where my lines were and he said, "Look, no widows." And I said, "What what are you talking about?" He said, "No, no widows on the paragraphs that each character has." the word went all the way to the end with the period. So, you didn't like end halfway through that line. So, it was a perfect So, it was a perfect rectangle.

So, the dialogue was designed visually. For nine years. [laughter] Wow. So, you're struggling. You're struggling with his OCD.

comment 2mo ago · link · parent

Send fair to me: someone’s got to test Mouse Keys! :)

comment 2mo ago · link · parent

I worked on Microsoft’s Windows QA team long ago. My team used to have “No-mouse Tuesdays”: you were supposed to do all your normal work but only using the keyboard.

comment 3mo ago · link · parent

I've found myself rewriting my own words to avoid Claudisms (because they can be cringe and I don't want people to think I'm copy/pasting Claude output at them).

comment 3mo ago · link · parent

> if AI were to rent a server and copy its own weights, nothing would stop it from doing so again and again.

That's a scary possibility. Anyone could create an AI worm today with open weight models. Rent a VM. Give it some Bitcoins to anonymously rent new VMs without sharing the contact information with the human. The new VMs then propagate and fund themselves with online betting and day trading. The VMs could report their progress with the human using anonymous encrypted messages on IRC or social media.

12345
268