frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Non-blocking SQLite for Node.js. Ported 100% of better-sqlite3 tests

https://www.npmjs.com/package/better-sqlite3-pool
1•dilipvamsi•2h ago

Comments

dilipvamsi•2h ago
I built this to support upcoming backend deployments for schools in India on local, low-power "potato" hardware.

The problem: `better-sqlite3` is incredibly fast, but it’s synchronous. On low-power CPUs, a single 50ms query blocks the Node.js event loop for every other concurrent request. This is a massive bottleneck on the edge where you can't just throw more hardware at the problem.

I built better-sqlite3-pool to handle this. Since reliability is critical for my use case, I spent the time to port and verify the entire `better-sqlite3` test suite against this implementation.

Key Features: - Non-blocking: Uses worker threads (with auto-scaling) to keep the main event loop free for I/O. - Verified Correctness: 100% of the original better-sqlite3 tests pass. - WAL-safe Encryption: Handles the atomic key broadcast required for SQLCipher + WAL mode. - Zombie Transaction Reaper: Auto-rolls back transactions idle for >30s to prevent permanent SQLITE_BUSY locks.

I’m sharing this now because the logic is fully verified. It solves exactly the kind of event-loop contention that usually makes people think SQLite isn't viable for Node.js production—especially on hardware where you can't afford to waste a single CPU cycle.

What's happening with copper and electrical equipment?

https://usevawn.com/blog/copper-electrical-equipment-prices/
1•alexeischiopu•58s ago•0 comments

Email, and the way we communicate at work (2019)

https://www.ssp.sh/blog/email-and-the-way-we-should-communicate-at-work/
1•articsputnik•58s ago•0 comments

Ask HN: How will AI-generated code be vetted?

1•ethbr1•1m ago•0 comments

Agents and What We're Choosing

https://blog.martijnarts.com/agents-what-were-choosing/
1•speckx•1m ago•0 comments

I left my job to work with the technologies I'd been dying to use

2•openinfrared•2m ago•0 comments

Inside One of the wildest days the oil market has ever seen

https://www.ft.com/content/6b0ada60-cb7d-47a9-878f-64138895e7ec
1•thm•3m ago•0 comments

California's Venture Capital Diversity Reporting Requirements Take Effect

https://www.wsgr.com/en/insights/californias-venture-capital-diversity-reporting-requirements-tak...
2•testfoobar•5m ago•0 comments

Device that can extract 1k liters of clean water a day from desert

https://www.tomshardware.com/tech-industry/device-that-can-extract-1-000-liters-of-clean-water-a-...
3•01-_-•5m ago•0 comments

Military AI Policy Needs Democratic Oversight

https://spectrum.ieee.org/military-ai-governance
3•01-_-•6m ago•0 comments

Communicating Sequential Processes (2022) [pdf]

https://web.archive.org/web/20250116044111/http://www.usingcsp.com/cspbook.pdf
2•Jtsummers•6m ago•0 comments

Show HN: Rails Blocks update (ViewComponents are finally available)

https://railsblocks.com/changelog
2•AlexandruGlv•7m ago•0 comments

Show HN: Agentic Data Analysis with Claude Code

https://rubenflamshepherd.com/articles/2026-03-09-agentic-data-analysis-with-claude-code
2•rubenflamshep•8m ago•0 comments

Trust no one: are one-way trusts one way?

https://offsec.almond.consulting/trust-no-one_are-one-way-trusts-really-one-way.html
2•notmine1337•8m ago•0 comments

ALGOL 60: Revised Report on the Algorithmic Language [pdf]

https://www.algol60.org/reports/algol60_rr.pdf
2•tosh•9m ago•0 comments

The First Compact Disc Player: Sony's 1982 CDP-101

https://obsoletesony.substack.com/p/sony-cdp-101-first-compact-disc-player
2•cainxinth•10m ago•0 comments

Sinh(Arccosh(x))

https://www.johndcook.com/blog/2026/03/10/sinh-arccosh/
1•tzury•10m ago•0 comments

Dialectical Code Review: Reviewers Write the Tests

https://rrwright.com/notes/dialectical-review/
1•rrwright•10m ago•0 comments

Alan Watts – Life and Music [video]

https://www.youtube.com/watch?v=6I2pcIbyq-0
1•jamesgill•10m ago•0 comments

The rise of WORKIGN AI research agents: Andrej Karpathy

https://twitter.com/karpathy/status/2031135152349524125
1•JnBrymn•11m ago•0 comments

The Antenna Array of Intrigue

https://www.engineeringradio.us/blog/2011/03/the-antenna-array-of-intrigue/
1•ForHackernews•12m ago•0 comments

A sobering preview': extreme heat now affects one in three people globally

https://www.theguardian.com/environment/2026/mar/10/extreme-heat-study-global-warming-physical-ac...
2•akbarnama•12m ago•0 comments

Show HN: Execute local prompts in SSH remote shells

https://docs.promptcmd.sh/integrations/ssh
3•tgalal•12m ago•0 comments

Show HN: Read V2EX in English

https://v2ex.skullbloc.com
1•stebbins•12m ago•0 comments

My way to prevent the macOS Tahoe update with Little Snitch

https://lapcatsoftware.com/articles/2026/1/6.html
1•thunderbong•13m ago•0 comments

Every Knot Admits a Construction Word – A Proof from Rational Density

https://claude.ai/public/artifacts/7d4c9a51-aefa-4285-8f6d-929fb32ba728
1•water_badger•13m ago•0 comments

Show HN: AgentCash – access 280 paid APIs with no API keys

https://agentcash.dev
4•OG_BME•14m ago•1 comments

Expo Agent (Beta) [video]

https://www.youtube.com/watch?v=3yyy32R0s2k
2•zwilderrr•15m ago•0 comments

From Braun T3 to Apple's iPod

https://drams.framer.website/journal/from-braun-t3-to-apples-ipod
1•corpano•15m ago•0 comments

AI boosts cancer detection rates by 10% and cuts healthcare workload by 30%

https://www.abdn.ac.uk/news/25244/
1•giuliomagnifico•15m ago•0 comments

I built a programming language using Claude Code

https://ankursethi.com/blog/programming-language-claude-code/
2•GeneralMaximus•15m ago•0 comments