frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: SNKV – KV store on SQLite's B-tree with 11x less memory than RocksDB

https://github.com/hash-anu/snkv
3•swaminarayan•1h ago
While working with RocksDB, I noticed it consumed significantly more memory than expected for small workloads. On a 1M record benchmark, it peaked at ~121 MB RSS. That got me thinking: what if I skip the query layer entirely and use SQLite purely as a storage engine? So I started digging into SQLite internals — specifically the B-tree, pager, and OS layers — to understand how data is actually stored and managed under the hood. I documented what I learned along the way:

B-tree operations: https://github.com/hash-anu/snkv/blob/master/internal/BTREE_... Pager operations: https://github.com/hash-anu/snkv/blob/master/internal/PAGER_... OS layer operations: https://github.com/hash-anu/snkv/blob/master/internal/OS_LAY...

Once I understood the core pieces, I built a simple key-value store directly on top of SQLite's B-tree layer — reusing its storage management, paging, and file I/O without touching the SQL engine at all.

I then added column family support, WAL and journal modes, and transactions. For easier integration, I generated a single amalgamated header (similar to SQLite's approach): https://github.com/hash-anu/snkv

Benchmarks (1M records, sync-on-commit enabled for both):

                    RocksDB     SNKV
Sequential writes: 237K/s 181K/s Random reads: 95K/s 154K/s Sequential scan: 1.78M/s 5.95M/s Mixed workload: 51K/s 97K/s Peak memory (RSS): 121 MB 10.8 MB (~11x less)

RocksDB's LSM-tree design gives it a clear write advantage, and with tuning (bloom filters, larger caches) its read numbers would improve too. The memory gap is structural though — RocksDB carries significantly more overhead even when constrained to a small footprint configuration.

The full KV layer documentation is here: https://github.com/hash-anu/snkv/blob/master/internal/KVSTOR...

Curious if others have hit the same memory wall with RocksDB on small workloads, or taken a different approach to this tradeoff.

OpenClaw creator slams Europe's regulations as he moves to the US

https://www.businessinsider.com/openclaw-creator-slams-europe-regulations-move-us-openai-2026-2
1•WarmWash•1m ago•0 comments

DVDs, Blu-ray disks, and VHS tapes are cool again

https://www.marketplace.org/story/2026/02/17/dvds-and-vhs-physical-film-media-is-cool-again
1•toomuchtodo•1m ago•0 comments

Tool Shaped Objects

https://minutes.substack.com/p/tool-shaped-objects
1•msp26•1m ago•0 comments

Starting April 2026, messenger.com will no longer be available for messaging

https://www.facebook.com/help/messenger-app/804132271957789
1•agluszak•2m ago•0 comments

Pixel 10a

https://store.google.com/us/product/pixel_10a?hl=en-US
2•meetpateltech•3m ago•0 comments

Show HN: A real-time strategy game that AI agents can play

https://llmskirmish.com/
1•__cayenne__•3m ago•1 comments

Show HN: CreativeFlow – A Guided Brainstorming App

https://creativeflow.pages.dev/
1•jamescamagong•3m ago•0 comments

Pre-Publication Moderation Can Disqualify Services from DMCA 512(c) Safe Harbor

https://blog.ericgoldman.org/archives/2026/02/pre-publication-content-moderation-can-disqualify-s...
1•hn_acker•4m ago•1 comments

Americans are ten times more likely to be fired than Germans

https://www.worksinprogress.news/p/americans-are-ten-times-more-likely
1•deunamuno•4m ago•0 comments

Clojure Jam 2026 – A Festival of Creative Coding in Clojure

https://scicloj.github.io/clojure-jam-2026/
1•TheWiggles•4m ago•0 comments

Show HN: Formally verified FPGA watchdog for AM broadcast in unmanned tunnels

https://github.com/Park07/amradio
1•anonymoosestdnt•5m ago•0 comments

Transcranial focused ultrasound stimulation enhances semantic memory

https://www.nature.com/articles/s41467-026-69579-7
1•bookofjoe•5m ago•0 comments

Major League Hacking Has Acquired DEV

https://news.mlh.io/major-league-hacking-acquires-dev-to-feb-18-2026-02-18-2026
2•jonmarkgo•5m ago•0 comments

Seven Models in Three Weeks: China's AI Labs Aren't Waiting

https://7min.ai/news/chinese-ai-models-spring-2026/
2•fabioperez•6m ago•1 comments

Identity, Cooperation and Framing Within Groups of Real and Simulated Humans

https://arxiv.org/abs/2601.16355
2•PaulHoule•6m ago•0 comments

The Grok 4.2 release candidate (public beta) is now available for use

https://twitter.com/i/status/2023829664318583105
1•fauria•8m ago•0 comments

Joe Halpern (1953-2026)

https://blog.computationalcomplexity.org/2026/02/joe-halpern-1953-2025.html
2•speckx•9m ago•0 comments

Investigating the Downstream Effect of AI Assistants on Software Maintainability

https://arxiv.org/abs/2507.00788
1•KallDrexx•9m ago•1 comments

The future of social media is human

https://blog.picheta.me/post/the-future-of-social-media-is-human/
1•dom96•11m ago•0 comments

Musings on AI

https://tonyneufeld.blog/2026/02/18/Musings-on-AI/
1•tonyneufeldblog•12m ago•0 comments

Show HN: Opaal Visual multi-agent prompt designer for Claude Code and agentic AI

https://github.com/Agravak/opaal
1•Kinanhamwi•12m ago•0 comments

What is happening to writing?: Claude Code and the negative space around AI

https://resobscura.substack.com/p/what-is-happening-to-writing
1•benbreen•12m ago•0 comments

Microsoft says Office bug exposed customers' confidential emails to Copilot AI

https://techcrunch.com/2026/02/18/microsoft-says-office-bug-exposed-customers-confidential-emails...
1•gloxkiqcza•12m ago•0 comments

On daily drawing, attention, embarrassment, coffee & the comfort of repetition

https://katebingamanburt.substack.com/p/20-years-ago-i-bought-a-tank-of-gas
1•NaOH•13m ago•0 comments

Search operators were an API

https://www.nklswbr.com/blog/agentic-search-operators
1•nklswbr•14m ago•0 comments

How far back in time can you understand English?

https://www.deadlanguagesociety.com/p/how-far-back-in-time-understand-english
1•spzb•14m ago•0 comments

Websites Decide You're Human

https://steel.dev/blog/anti-bot-defense
1•nkko•14m ago•0 comments

Show HN: Sievers a Rust SIEVE filter editor

https://github.com/oscarcp/sievers
1•oscarcp•16m ago•0 comments

Advent of AI: Can AI Compete on the Advent of Code Leaderboards

https://normanponte.io/ea75fda7
2•nponte•17m ago•0 comments

Vibe Password Generation: LLM-Generated Passwords Are Dangerously Insecure

https://www.irregular.com/publications/vibe-password-generation
3•edanm•17m ago•3 comments