News for hackers. Stuff that matters.

jstrong

but did they change the process-per-connection model? if not, wtf??
seems like `cargo nextest run` just runs `--lib` tests by default? however, `cargo test` is not so slow if you do `cargo test --lib`. how do I get nextest to execute the doc tests, too?
hoping this is a joke
Re:The Short Leash AI Coding Method for Beating Fable on Thursday July 02, 2026 @07:14PM (#48768618)
claude is so slow for interactive use like described, do people just run it in low effort mode or what?
optimizer can't inspect the value? pretty dumb optimizer, then.
Re:A distributed queue in a single JSON file on object storage on Tuesday February 24, 2026 @07:03AM (#47136081)
that's A choice.
Re:Micropayments as a reality check for news sites on Friday February 20, 2026 @12:42AM (#47084230)
I feel like the less tolerance I have for ads (as time goes on), the more desperate they get in trying increasingly aggressive ways of making you watch ads. I'm never watching ads again, ever! I'm willing to pay, but not with my time for your terrible, horrendous, bullshit ads!
Re:Micropayments as a reality check for news sites on Friday February 20, 2026 @12:37AM (#47084204)
I don't know, man, glossy magazine ads were glamorous. sure there was stupid stuff, but the comparison between the "one weird trick" era and magazine ads of someone looking cool so you have a positive impression with some brand name is pretty stark.
Re:Company as Code on Thursday February 05, 2026 @07:39PM (#46907535)
man, I can't wait to wrangle a giant YAML file to be able to take a sick day!
Re:Postgres Postmaster does not scale on Thursday February 05, 2026 @06:55PM (#46907171)
redis is single-threaded but handles lots of connections (i.e. > 500) with much better performance vs. postgres. there's zero chance someone building postgres in 2025 would do one process per connection, I don't think there's any argument that it's a good design for performance. it's just a long-ago design choice that would be difficult to change now.
Re:Postgres Postmaster does not scale on Thursday February 05, 2026 @02:59AM (#46896968)
From the article:

> The real bottleneck is the single-threaded main loop in the postmaster.

A single-threaded event loop can do a lot of stuff. Certainly handle 4000 tasks of some sort in under 10s. Just offhand it seems like it would be eminently possible to handle incoming connections on the scale they describe in a single-threaded event loop.

Clearly the existing postgres postmaster thread is a bottleneck as it is implemented today. But I'd be interested to go deeper into what it's doing that causes it to be unable to keep up with a fairly low workload vs. what is possible to do on a single thread/core.

Re:Postgres Postmaster does not scale on Thursday February 05, 2026 @02:52AM (#46896912)
can't believe postgres still uses a process-per-connection model that leads to endless problems like this one.
Re:Google flags Immich sites as dangerous on Wednesday October 22, 2025 @09:14PM (#45677116)
google: we make going to the DMV look delightful by comparison!
Re:Ripgrep 15.0.0 on Saturday October 18, 2025 @01:27PM (#45628964)
ripgrep is one of the main reasons I got interested in rust. it worked so well, it piqued my interest that it was written in rust. many years later, very glad about that. been using `rg` daily since then as well!
Re:We already live in social credit, we just don't call it that on Tuesday September 02, 2025 @05:36PM (#45109388)
... some stuff we have kinda resembles china's social credit score if you really think about it ...

ok, maybe

... so yeah, it's totally fine lets do it ...

WHAT

Re:No Moar Cookies on Monday July 28, 2025 @11:59AM (#44712125)
imagine some people started using hammers as weapons, leading to some gruesome murders vividly depicted by the news. as a result, construction companies started advertising that this house was built without the use of ANY hammers. that's how I feel about cookies.

cookies are not the problem. spyware is the problem. the way cookies work is, the server includes a "SET-COOKIE" header in its response. it is literally a request, which has no power, other than your computer deciding to store the data locally and include the cookie as a header in its subsequent requests.

somehow instead of us collectively relying on our own user agents to not comply with requests from remote servers that are not in our interest, we settled on deciding the cookie itself is a dangerous mechanism, which is stupid.

wow that sounds like a PITA to deal with
Re:Embedding Python in Rust (For Tests) on Wednesday January 22, 2025 @09:41AM (#42793329)
was expecting to see examples of python tests you would use, presumably for testing the rust code? like, how would writing the tests in python be easier?
Re:100x defect tolerance: How we solved the yield problem on Friday January 17, 2025 @01:37PM (#42741753)
a man can dream
Re:100x defect tolerance: How we solved the yield problem on Thursday January 16, 2025 @12:36PM (#42728292)
I would like a workstation with 900k cores. lmk when these things are on ebay.
Re:Designing Code for Forward Progress on Friday January 10, 2025 @02:13AM (#42653392)
man, the python examples in there .. I am always low-grade irked by those! until now I wouldn't have been able to describe the problem. great piece.
unrelated rant, but I'm still salty about it.

needed to send "raw" http requests instead of using their bloated sdk for reasons, and requests failed with "content-type: application/json" header, but succeeded with "content-type: application/x-amz-json-1.0". get out of here with that nonsense.

Re:Building a highly-available web service without a database on Saturday August 10, 2024 @05:05PM (#41212205)
like you I'm more open to the idea of keeping data in memory than most of the responders here. when I got to the part of the article about how they are using common lisp with hot reloading, I was thinking, well you guys can do whatever you want, but not everybody is working on that team, ha.
Re:How we migrated onto K8s in less than 12 months on Saturday August 10, 2024 @01:41AM (#41207583)
enjoyed the article - provides a comprehensive tour of the benefits of deploying in a tmux session (seamless restarts via ctrl-c, up, enter). for super important stuff, a systemd unit is worth considering.
Re:Beating NumPy matrix multiplication in 150 lines of C on Wednesday July 03, 2024 @10:36PM (#40871892)
in terms of comparing to numpy, how much overhead would there be from Python (vs. running the numpy C code alone)?
Re:Germany: Police seize bitcoins worth €2B on Tuesday January 30, 2024 @12:54PM (#39193295)
I don't think if I had $2 billion in proceeds from a piracy website I would choose to reside in Germany.
I need this to resist the temptation to read the HN comments on politics, ha.
Re:Cruise pauses driverless operations across all cities on Friday October 27, 2023 @02:50AM (#38035466)
people voted with their life decisions and it turns out your view is not very popular.
Re:We Need Scientific Dissidents Now More Than Ever on Saturday August 12, 2023 @12:07AM (#37096956)
greatly enjoying your humor

Older »