frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Big Tech vs. OpenClaw

https://www.jakequist.com/thoughts/big-tech-vs-openclaw/
1•headalgorithm•1m ago•0 comments

Show HN: Orcha – Run multiple AI coding agents in parallel, locally

https://orcha.nl
1•buildingwdavid•1m ago•0 comments

Anofox Forecast

https://anofox.com/docs/forecast/
1•marklit•1m ago•0 comments

Ask HN: How do you figure out where data lives across 100 microservices?

1•doodledood•2m ago•0 comments

Motus: A Unified Latent Action World Model

https://arxiv.org/abs/2512.13030
1•mnming•2m ago•0 comments

Rotten Tomatoes Desperately Claims 'Impossible' Rating for 'Melania' Is Real

https://www.thedailybeast.com/obsessed/rotten-tomatoes-desperately-claims-impossible-rating-for-m...
1•juujian•4m ago•0 comments

The protein denitrosylase SCoR2 regulates lipogenesis and fat storage [pdf]

https://www.science.org/doi/10.1126/scisignal.adv0660
1•thunderbong•5m ago•0 comments

Los Alamos Primer

https://blog.szczepan.org/blog/los-alamos-primer/
1•alkyon•8m ago•0 comments

NewASM Virtual Machine

https://github.com/bracesoftware/newasm
1•DEntisT_•10m ago•0 comments

Terminal-Bench 2.0 Leaderboard

https://www.tbench.ai/leaderboard/terminal-bench/2.0
1•tosh•10m ago•0 comments

I vibe coded a BBS bank with a real working ledger

https://mini-ledger.exe.xyz/
1•simonvc•10m ago•1 comments

The Path to Mojo 1.0

https://www.modular.com/blog/the-path-to-mojo-1-0
1•tosh•13m ago•0 comments

Show HN: I'm 75, building an OSS Virtual Protest Protocol for digital activism

https://github.com/voice-of-japan/Virtual-Protest-Protocol/blob/main/README.md
4•sakanakana00•16m ago•0 comments

Show HN: I built Divvy to split restaurant bills from a photo

https://divvyai.app/
3•pieterdy•19m ago•0 comments

Hot Reloading in Rust? Subsecond and Dioxus to the Rescue

https://codethoughts.io/posts/2026-02-07-rust-hot-reloading/
3•Tehnix•19m ago•1 comments

Skim – vibe review your PRs

https://github.com/Haizzz/skim
2•haizzz•21m ago•1 comments

Show HN: Open-source AI assistant for interview reasoning

https://github.com/evinjohnn/natively-cluely-ai-assistant
4•Nive11•21m ago•6 comments

Tech Edge: A Living Playbook for America's Technology Long Game

https://csis-website-prod.s3.amazonaws.com/s3fs-public/2026-01/260120_EST_Tech_Edge_0.pdf?Version...
2•hunglee2•25m ago•0 comments

Golden Cross vs. Death Cross: Crypto Trading Guide

https://chartscout.io/golden-cross-vs-death-cross-crypto-trading-guide
2•chartscout•27m ago•0 comments

Hoot: Scheme on WebAssembly

https://www.spritely.institute/hoot/
3•AlexeyBrin•30m ago•0 comments

What the longevity experts don't tell you

https://machielreyneke.com/blog/longevity-lessons/
2•machielrey•32m ago•1 comments

Monzo wrongly denied refunds to fraud and scam victims

https://www.theguardian.com/money/2026/feb/07/monzo-natwest-hsbc-refunds-fraud-scam-fos-ombudsman
3•tablets•36m ago•1 comments

They were drawn to Korea with dreams of K-pop stardom – but then let down

https://www.bbc.com/news/articles/cvgnq9rwyqno
2•breve•39m ago•0 comments

Show HN: AI-Powered Merchant Intelligence

https://nodee.co
1•jjkirsch•41m ago•0 comments

Bash parallel tasks and error handling

https://github.com/themattrix/bash-concurrent
2•pastage•41m ago•0 comments

Let's compile Quake like it's 1997

https://fabiensanglard.net/compile_like_1997/index.html
2•billiob•42m ago•0 comments

Reverse Engineering Medium.com's Editor: How Copy, Paste, and Images Work

https://app.writtte.com/read/gP0H6W5
2•birdculture•47m ago•0 comments

Go 1.22, SQLite, and Next.js: The "Boring" Back End

https://mohammedeabdelaziz.github.io/articles/go-next-pt-2
1•mohammede•53m ago•0 comments

Laibach the Whistleblowers [video]

https://www.youtube.com/watch?v=c6Mx2mxpaCY
1•KnuthIsGod•54m ago•1 comments

Slop News - The Front Page right now but it's only Slop

https://slop-news.pages.dev/slop-news
1•keepamovin•59m ago•1 comments
Open in hackernews

Tower Defense: Cache Control

https://www.jasonthorsness.com/26
68•jasonthorsness•8mo ago

Comments

ec109685•8mo ago
Regarding stale-while-revalidate, the author calculates maximum load like this: “With the options available on hn.unlurker.com, there are only 10 * 12 * 8 * 2 or 1920 possible combinations, refreshed at most once every 15 seconds”

That math works until it doesn’t. If for some reason there’s a greater than 15 second response, the cache will open the floodgate and won’t return any cached response until the cache is full.

Similarly, errors need to be accounted for. If the server returns a 500, is it configured to be cached? Is stale-while-error configured so the error state doesn’t take the server down?

ndriscoll•8mo ago
Put nginx in front with proxy_cache_lock with a sufficiently high lock timeout. Even if your service can somehow be that slow, now you have bounded requests again.
tshaddox•8mo ago
Also, wouldn't each CDN node maintain its own cache and thus its own state-while-revalidate timer? Or is the implication that this is using a tiered cache where there's only a single CDN node that connects to the origin server?
jasonthorsness•8mo ago
Good point. I guess this depends on Vercel's cache topology and whether it uses multiple layers. I would have thought they would cache the output of the origin function in a cache right at the origin but I can't find anything about this in the docs so likely not. As an alternative, they do allow caching the fetch to the API in their "data cache" so I'll probably need to enable that to protect the VPS in the way I intend.
nisten•8mo ago
Where's the fucking game, I was teased with a potential of a vibecoded game!
jerf•8mo ago
Now I really want to somehow work out a way to drop that in to my next architecture diagram wholesale: https://www.jasonthorsness.com/_next/image?url=%2F_next%2Fst...

"Why did you choose Go for your backend?"

"Well, the lightning strikes it implements deliver critical elec-damage against the customers that get past the ice blast from our DATA CACHE-powered FUNC, striking them in their frozen-status for x3 before they can get to our vital CPURAM resources. The most important thing to have in a cloud-based deployment is a diverse mix of elemental attacks and crit-stacking bonuses."

bee_rider•8mo ago
Now we have to figure out which game will, if you train an a dnn on it, will result in a network that solved technical problems best. Maybe a facorio-playing AI could design a good cpu, haha.
harrall•8mo ago
Read your CDN docs very carefully on how it processes requests. Make sure that your CDN does request coalescing.

At my previous job, I became responsible for handling >350,000 requests/second and I dug so deep.

hacb•8mo ago
\> 350,000 req/s? That's really impressive. May I ask in which area you were working?
harrall•8mo ago
It was something to do with consumer releases (e.g. product launches) so we had to handle extremely sudden bursts in traffic.

We leveraged the CDN heavily but I had to drill down and dive deep into the specifics of our CDN and our stack. One mistake might mean turning 10,000 into 100,000 requests and over 100 million requests, it would become a big(ger) deal.

grep_it•8mo ago
> Why Not Redis? I have a single VPS, so I can get by with a simple SQLite database. If I had many instances of my API on separate servers

Just to push against this a bit. Redis can be very low memory cost and is very easy to run (I give it 5mb). I have a small single server with a few instances of my API that let's me cache pretty much everything I need.

jasonthorsness•8mo ago
Huh, I never thought of running it just on the one same node. I guess that would better prepare for a scale-up later.
johnmaguire•8mo ago
You may even be able to scale horizontally with many nginx+redis nodes, if the cache does not need to be shared.
hangonhn•8mo ago
It's so obvious once I've heard someone else say it but wow that's really clever actually.
thr0waway2i•8mo ago
Before "The Cloud" taught people to split everything into dedicated VMs, it was common to run multiple services on the same machine.
arp242•8mo ago
When I last benchmarked Redis vs. PostgreSQL for a simple k/v cache it was about ~1ms for PostgreSQL to fetch a key, and ~0.5ms for Redis. Faster, but not really noticeably so. I haven't benchmarked SQLite, but I would be surprised if the numbers are substantially different.

Of course Redis can do other things than just a k/v cache, and at scale you just want to offload some load from your main SQL server. But for "small" use cases my conclusion was that Redis doesn't really add anything. OTOH it's also not especially difficult to run so it also not a big problem to use it, but by and large it seems superfluous.

nixpulvis•8mo ago
I've always wondered if it would be worth the effort to display information to the user to indicate that their request was stale and that they'll need to refresh again? 15s is pretty quick, but how do caching schemes work when users need to know when to use their time refreshing and checking the results. Alternatively, I'd be interested to read about the architecture of a modern always fresh caching scheme.
tikotus•8mo ago
I've been running a handful of low traffic services on a $10 VPS from DigitalOcean for years. I'm currently in a situation where a thing I've made might blow up, and I had to look into CDNs just in case. It's just static content, but updates once per day (it's a daily logic puzzle).

I must admit I had no idea what goes into runnig a CDN. First I had a look at DO's spaces object storage which has CDN support. But it wasn't exactly the right tool for serving a static website apparently, but rather for serving large files. For example I couldn't make it serve css files with the correct mime type without some voodoo, so I had to conclude I wasn't doing the right thing.

Then I looked at DO's app platform. But that seemed like an overkill for just sharing some static content. It wants me to rely on an external service like GitHub to reliably serve the content. I already rely on DO, I don't want to additionally rely on something else too. Seems like I could also use DO's docker registry. What? To serve static content on CDN I need to create a whole container running the whole server? And what do I need to take into consideration when I want to update the content once per day simultaneously for all users? It's easy when it's all on my single VPS (with caching disabled for that url) but I actually have no idea what happens with the docker image once it's live on the "app platform". This is getting way more complex than I was hoping for. Should I go back to the spaces solution?

Right now I'm in a limbo. On one hand I want to be prepared in case I get lucky and my thing goes "viral". On the other hand my tiny VPS is running on 2% CPU usage with already quite a few users. And if I do get lucky, I should afford doubling my VPS capacity. But what about protection from DDoS? Anything else I should worry about? Why is everyone else using CDN?

And I don't even have caching! An article like this puts my problem into shame. I just want to serve a couple of plain web files and I can't choose what I should do. This article really shows how quickly the problem starts ballooning.

_QrE•8mo ago
It sounds like you might be looking at the wrong place. There's services like bunny.net and cloudflare CDN (I'm not affiliated with either, but I use the former) that are really easy to set up and configure, if you've built your site properly (edit for clarification: if you have clearly defined static content, and/or you're using some build system). You don't want to 'run' a CDN, you want to use one.

Configuration depends a lot on the specifics of your stack. For Svelte, you can use an adapter (https://svelte.dev/docs/kit/adapters) that will handle pointing to the CDN for you.

Cloudflare's offering is free, bunny.net is also probably going to be free for you if you don't have much traffic. CDNs are great insurance for static sites, because they can handle all the traffic you could possibly get without breaking a sweat.

victorbjorklund•8mo ago
Bunny is never free (other than a 14 day free trial). But it is dirt cheap but with a min cost of 1 usd/month.
_QrE•8mo ago
You're right, my bad. I was looking at the CDN tab and it rounds the traffic cost to 0.
amenghra•8mo ago
If it’s updated daily, maybe host it on GitHub pages (public repo) and have a job push an update on a daily basis?

If you want to be more fancy, you could do private GitHub repo+ Cloudflare pages enabling you to prepare puzzles in advance.

You can get quite far with both service’s free offering or Cloudflare’s $5/mo stuff.

Full disclosure: I work for neither companies but I have regularly been a happy paid customer of both products.

arjie•8mo ago
My blog is on a totally overprovisioned VPS and I use Cloudflare to cache responses for non-logged-in users. I'm using Mediawiki because I want people to be able to edit it and sometimes it can be extraordinarily slow but with Cloudflare it loads instantly if someone visited it some time recently. I really like Cloudflare's caching control.
kawsper•8mo ago
> stale-while-revalidate is a relatively recent cache-control option

Varnish Cache have supported that since version 4.1, it was released 2015-09-30:

> Varnish will now use the stale-while-revalidate defined in RFC5861 to set object grace time.

https://varnish-cache.org/docs/trunk/whats-new/changes-4.1.h...

mnutt•8mo ago
You can even do neat things like having the revalidate fetch tell your backend “I served this object out of cache 1100 times since last fetch, maybe consider putting a few extra cpu cycles into the compression on this one”
RexM•8mo ago
That seems verbose