frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

SQLite in Production: Lessons from Running a Store on a Single File

https://ultrathink.art/blog/sqlite-in-production-lessons
19•thunderbong•3h ago

Comments

sgbeal•3h ago
> json_extract returns native types. json_extract(data, '$.id') returns an integer if the value was stored as a number. Comparing it to a string silently fails. Always CAST(json_extract(...) AS TEXT) when you need string comparison.

More simply:

    sqlite> select typeof('{a:1}'->>'a') ;
    ╭──────────────────────╮
    │ typeof('{a:1}'->>... │
    ╞══════════════════════╡
    │ integer              │
    ╰──────────────────────╯
vs:

    sqlite> select typeof('{a:1}'->'a') ;
    ╭──────────────────────╮
    │ typeof('{a:1}'->'a') │
    ╞══════════════════════╡
    │ text                 │
    ╰──────────────────────╯
yokuze•1h ago
> The technical fix was embarrassingly simple: stop pushing to main every ten minutes.

Wait, you push straight to main?

> We added a rule — batch related changes, avoid rapid-fire pushes. It's in our CLAUDE.md (the governance file that all our AI agents follow):

> Avoid rapid-fire pushes to main — 11 pushes in 2h caused overlapping Kamal deploys with concurrent SQLite access.

Wait, you let _Claude_ push your e-commerce code straight to main which immediately results in a production deploy?

crabmusket•1h ago
Patient: doctor, my app loses data when I deploy twice during a 10 minute interval!

Doctor: simply do not do that

pavel_lishin•1h ago
Doctor: solution is simple, stop letting that stupid clown Pagliacci define how you do your work!

Patient: but doctor,

leosanchez•1h ago
> Backups are cp production.sqlite3 backup.sqlite3

I use gobackup[0] as another container in compose.yml file which can backup to multiple locations.

[0]: https://gobackup.github.io/

faangguyindia•1h ago
I've a busy app, i just deploy to canary. And use loadbalancer to move 5% traffic to it, i observe how it reacts and then rollout the canary changes to all.

how hard and complex is it to roll out postgres?

cadamsdotcom•46m ago
The fix appears to nicely asking the forgetful unreliable agent to please (very closely pretty please!) follow the deploy instructions (and also please never hallucinate or mess up, because statistics tells us an entity with no long term memory and no incentive to get everything right will do the job right 99.99999999% of the time, which is good enough to run an eshop) not deploy too often per hour.

With one simple instruction the system (99.9999% of the time) gains the handy property that “only” two processes end up with the database files open at once.

Thanks for the vibes!

politelemon•28m ago
> embarrassingly simple

This is becoming the new overused LLM goto expression for describing basic concepts.

Apple: Embarrassingly Simple Self-Distillation Improves Code Generation

https://arxiv.org/abs/2604.01193
159•Anon84•2h ago•34 comments

The CMS is dead. Long live the CMS

https://next.jazzsequence.com/posts/the-cms-is-dead-long-live-the-cms
28•taubek•1h ago•10 comments

Tell HN: Anthropic no longer allowing Claude Code subscriptions to use OpenClaw

817•firloop•14h ago•638 comments

Some Unusual Trees

https://thoughts.wyounas.com/p/some-unusual-trees
76•simplegeek•4h ago•20 comments

Artemis II crew take “spectacular” image of Earth

https://www.bbc.com/news/articles/ce8jzr423p9o
835•andsoitis•17h ago•287 comments

The Cathedral, the Bazaar, and the Winchester Mystery House

https://www.dbreunig.com/2026/03/26/winchester-mystery-house.html
15•dbreunig•2d ago•6 comments

iNaturalist

https://www.inaturalist.org/
460•bookofjoe•19h ago•110 comments

Mbodi AI (YC P25) Is Hiring

https://www.ycombinator.com/companies/mbodi-ai/jobs/mf9L3sy-senior-robotics-engineer-systems-cont...
1•chitianhao•1h ago

OpenClaw privilege escalation vulnerability

https://nvd.nist.gov/vuln/detail/CVE-2026-33579
423•kykeonaut•20h ago•207 comments

Herbie: Automatically improve imprecise floating point formulas

https://herbie.uwplse.org/doc/latest/tutorial.html
146•summarity•4d ago•21 comments

Delve removed from Y Combinator

https://www.ycombinator.com/companies/delve
374•carabiner•11h ago•230 comments

Run Linux containers on Android, no root required

https://github.com/ExTV/Podroid
156•politelemon•14h ago•54 comments

Claude Code Found a Linux Vulnerability Hidden for 23 Years

https://mtlynch.io/claude-code-found-linux-vulnerability/
95•eichin•13h ago•60 comments

The most-disliked people in the publishing industry

https://www.woman-of-letters.com/p/the-most-disliked-people-in-the-publishing
18•Caiero•3d ago•3 comments

Improving my focus by giving up my big monitor

https://ounapuu.ee/posts/2026/04/01/focus/
116•Fudgel•3d ago•136 comments

We replaced RAG with a virtual filesystem for our AI documentation assistant

https://www.mintlify.com/blog/how-we-built-a-virtual-filesystem-for-our-assistant
338•denssumesh•1d ago•126 comments

What changes when you turn a Linux box into a router

https://patrickmccanna.net/7-configuration-changes-that-turn-a-multi-homed-host-into-a-switch-rou...
187•0o_MrPatrick_o0•3d ago•47 comments

The Technocracy Movement of the 1930s

https://donotresearch.substack.com/p/welcome-to-the-technocracy
121•lazydogbrownfox•1d ago•97 comments

Go on Embedded Systems and WebAssembly

https://tinygo.org/
172•uticus•20h ago•23 comments

Why Inventing Color TV Was So Difficult [video]

https://www.youtube.com/watch?v=hyjCmIbRRvs
4•DamnInteresting•3d ago•0 comments

Build your own Dial-up ISP with a Raspberry Pi

https://www.jeffgeerling.com/blog/2026/build-your-own-dial-up-isp-with-a-raspberry-pi/
174•arjunbajaj•22h ago•30 comments

Big-Endian Testing with QEMU

https://www.hanshq.net/big-endian-qemu.html
100•jandeboevrie•23h ago•112 comments

F-15E jet shot down over Iran

https://www.theguardian.com/world/2026/apr/03/us-fighter-jet-confirmed-shot-down-over-iran
519•tjwds•21h ago•1158 comments

How to make a sliding, self-locking, and predator-proof chicken coop door (2020)

https://www.backyardchickens.com/articles/how-to-make-a-sliding-self-locking-and-predator-proof-c...
113•uticus•18h ago•47 comments

Jack Dorsey says Block employees now bring prototypes, not slides, to meetings

https://www.businessinsider.com/block-ceo-jack-dorsey-bring-prototypes-not-slide-decks-meetings-2...
7•taubek•1h ago•3 comments

The house is a work of art: Frank Lloyd Wright

https://aeon.co/essays/frank-lloyd-wright-as-a-mirror-of-the-american-condition
94•midnightfish•14h ago•40 comments

Fake Fans

https://www.wordsfromeliza.com/p/fake-fans
125•performative•14h ago•31 comments

Why are we still using Markdown?

https://bgslabs.org/blog/why-are-we-using-markdown/
152•veqq•19h ago•216 comments

Sequential Optimal Packing for PCB Placement

https://blog.autorouting.com/p/sequential-optimal-packing-for-pcb
13•seveibar•2d ago•5 comments

The FAA’s flight restriction for drones is an attempt to criminalize filming ICE

https://www.eff.org/deeplinks/2026/04/faas-temporary-flight-restriction-drones-blatant-attempt-cr...
438•detaro•13h ago•140 comments