frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Prompt Caching: Just do it

https://kreidemann.com/blog/prompt-caching
2•kreidema•1h ago

Comments

oggreen•42m ago
How is prompt caching different than caching responses in a database? If you use the same prompt wouldn't you want the same answer? Or can this be used for some type of intermediate process where different questions may utilize the same prompt in some type of workflow?
kreidema•10m ago
Fair question! The main thing to think about here: We are not caching responses, we are caching intermediate calculation results (see first graphic in the post). And those are most of the time just the result of a part of the full prompt. So maybe just the system prompt, but then not what comes after, etc.

This way we can save Anthropic and co. for example the effort of recalculating all the linear algebra needed for the prefill of the system prompt, for which they reward us with reduced input token cost. The result is the same, if cached or not cached, it's just less computation.

For the same prompt you would still get the same answer (assuming temperature = 0).

The big savings you will get in an agentic/conversational context: Every new turn always puts the full message array back into the request. If we don't cache the calculation result at every step, the provider has to recalculate the early turns potentially hundreds of times (see second/third graphic).

Cotypist – Smart Autocomplete for Mac

https://cotypist.app/
1•lorenz_li•1m ago•0 comments

Show HN: VS Code agent optimized for affordable coding plans

https://smartdino.dev/features
1•ylian•1m ago•0 comments

Tribes of Programming (2017)

https://josephg.com/blog/3-tribes/
1•downbad_•3m ago•0 comments

Show HN: Agent Departures

https://agent-departures.vercel.app/
1•qainsights•3m ago•0 comments

Controversial Programming Opinions (2012)

https://programmers.blogoverflow.com/2012/08/20-controversial-programming-opinions/
1•downbad_•3m ago•0 comments

Show HN: Browser-Based Video Converter

https://cliparr.dev/convert/
1•TechSquidTV•4m ago•0 comments

Europe buys the future, America builds it

https://www.economist.com/finance-and-economics/2026/06/18/europe-buys-the-future-america-builds-it
2•gmays•4m ago•0 comments

Bending Emacs Ep. 14: Prototype iOS apps with agent-shell artist-mode and skills [video]

https://www.youtube.com/watch?v=7fdHeUoRRgg
1•xenodium•6m ago•0 comments

Ask HN: Why Do AI Credits Expire

1•kuberwastaken•6m ago•2 comments

Update Secure Boot Cert Before It Expires

https://nochan.net/b/Internet-Crap/20260621-Update-Secure-Boot-Cert-Before-It-Expires/
1•Bender•6m ago•0 comments

Show HN: AI Convert – built from my Android phone, no laptop

https://www.ai-convert.xyz
1•kenengmathias•8m ago•0 comments

PostmarketOS v26.06 (Alpen Avocado) released

https://postmarketos.org/blog/2026/06/21/v26.06-release/
1•fossdd•9m ago•0 comments

Vagus Atlas Explorer

https://drsiyarb.github.io/vagus_nerve_explorer/explorer/
1•brandonb•12m ago•0 comments

Show HN: Finikit – 33 free financial calculators, all in the browser

https://finikit.com/
2•anagnoraxis•13m ago•0 comments

Xi Lang: create Microservices with built-in DI, compiled to a native binary

https://code-by-sia.github.io/xi/
1•sia_xi•13m ago•0 comments

Is this blog written by AI?

https://brooker.co.za/blog/2026/06/18/my-blog-and-ai.html
1•_josh_meyer_•16m ago•0 comments

My experience going through a startup incubator (2025)

https://developerwithacat.com/blog/062025/startup-incubator-experience/
2•mmarian•20m ago•0 comments

The Scam Industry Is Booming [video][15 mins]

https://www.youtube.com/watch?v=bICyHwj1cWY
1•Bender•24m ago•0 comments

Show HN: One-Click Fork "Promo Video Studio (HyperFrames)" in Isolated MicroVM

https://www.jurniti.com/templates/hyperframes-promo-video-studio
1•shving90•25m ago•0 comments

Downtown S.F. tower promised a new kind of tech community

https://www.sfchronicle.com/sf/article/frontier-tower-san-francisco-22253458.php
1•iancmceachern•26m ago•0 comments

Cointegration and Long-Horizon Forecasting (2025)

https://www.philadelphiafed.org/the-economy/cointegration-and-long-horizon-forecasting
1•bryanrasmussen•30m ago•0 comments

The Revolution in Battery Technology: 3-D Printing

https://www.wsj.com/tech/battery-technology-3d-printing-c319ca9a
1•bookofjoe•31m ago•1 comments

Whitman, switch agents.md files in the CLI

https://github.com/ProximalEnergy/whitman
1•skrhee•32m ago•2 comments

Show HN: Remote Exec Server using only Python stdlib

1•abhrankan•35m ago•0 comments

Show HN: Remote Exec Server using only Python stdlib

1•abhrankan•35m ago•0 comments

Fossil Fuels Are 40% of Freight Shipping Tonnage, but Half Its Fuel Use

https://cleantechnica.com/2026/06/16/shipping-freight-energy-fossil-cargo/
3•choult•35m ago•0 comments

Show HN: I "built" Sana, a vector DB on object storage

https://github.com/djakish/sana
3•wasdwasdwasd•38m ago•0 comments

My symbolic regression engine rediscovered Kepler's Third Law from raw data

https://github.com/ariel95500-create/gp-elite
2•sade_95•39m ago•0 comments

Reinventing Entropy [video]

https://www.youtube.com/watch?v=l6DKRf-fAAM
2•tosh•40m ago•0 comments

SpaceX handed lowest possible ESG rating by MSCI

https://www.ft.com/content/a0dd4ea7-ef3d-4460-a96c-8c6975a053e3
7•mkl95•43m ago•0 comments