frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: SirixDB 1.0 Beta – Git-Like Versioning, Diffs, Time-Travel Queries

https://github.com/sirixdb/sirix
2•lichtenberger•1h ago
Hi HN! I've posted SirixDB here before, back in 2019 and again in 2023.

The core idea behind SirixDB is, that history is a first-class citizen. Every commit stores a lightweight, queryable revision. You can query any point in time, even individual nodes (for instance JSON values), diff arbitrary revisions, and efficiently track how data evolved without replaying events.

Unlike traditional event stores, historical states do not need to be reconstructed by replaying events nor do we have to think about projections. Revisions are directly queryable.

A simple example:

Jan 1: Record "Price = $100, valid from Jan 1". Stored on Jan 1 (transaction time).

Jan 20: Discover price was actually $95 on Jan 1. Commit correction.

After correction, you can ask across both axes:

- "What did we THINK the price was on Jan 16?" -> $100 (Transaction time)

- "What WAS the price on Jan 1?" -> $95 (Valid time)

I've worked on this in my spare time since 2013, following its academic precursor (Idefix/Treetank) at the University of Konstanz. The architecture relies on an append-only physical log and a persistent copy-on-write page trie.

A high level view of the architecture:

Physical Log (append-only, sequential writes)

  ┌────────────────────────────────────────────────────────────────────────┐
  │ [R1:Root] [R1:P1] [R1:P2] [R2:Root] [R2:P1'] [R3:Root] [R3:P2'] ...    │
  └────────────────────────────────────────────────────────────────────────┘
       t=0      t=1     t=2      t=3      t=4       t=5       t=6    → time
Each revision is indexed, and unchanged pages are shared:

  [Rev 1]          [Rev 2]          [Rev 3]
     │                │                │
     ▼                ▼                ▼
  [Root₁]          [Root₂]          [Root₃]
   │   │            │   │            │   │
   │   └─────────┐  │   └────────┐   │   └─────────┐
   ▼             ▼  ▼            ▼   ▼             ▼
┌──────┐ ┌──────┐ ┌──────┐ ┌──────┐ │ P1 │ │ P2 │ │ P1' │ │ P2' │ └──────┘ └──────┘ └──────┘ └──────┘ Rev 1 Rev 1+2 Rev 2+3 Rev 3 (shared) (shared)

Beneath the root pages sit node and secondary indexes, using a novel sliding-snapshot algorithm to balance read/write performance. Everything is queryable using JSONiq via the Brackit compiler.

Back in 2019, and even in 2023, SirixDB was very slow due to GC pressure. Unlike most other document stores, SirixDB stores fine-grained nodes, and I came to realize that an on-heap (JVM) representation made up of lots of small objects simply didn't make sense. I measured it with async-profiler — with some help from Andrei Pangin himself — and the result was that the poor throughput was due to the sheer amount of allocations which scaled almost linearly with the number of open transactions.

Working a full-time software engineering job, I lacked the energy for a massive spare-time rewrite. About a year ago, I started experimenting with AI. It turned out to be ideal for automating the tedious, repetitive parts of migrating the storage layer to Java's Foreign Function & Memory API, storing pages completely off-heap.

Looking further ahead, the append-only, immutable-page design maps naturally onto object storage like S3 and distributed logs like Kafka for a cloud version, and initial prototypes already exist. Maybe that becomes a commercial service one day, but for now, I'm just thrilled to see these core design principles finally proven out.There's an interactive demo, documentation, and the code is on GitHub. I'd love feedback and am happy to answer questions!

kind regards

Johannes

[1] https://sirix.io | https://github.com/sirixdb/sirix

[2] https://sirix.io/docs/architecture.html

[3] https://demo.sirix.io

[4] https://sirix.io/docs/

[5] http://brackit.io

Optimizing a Ring Buffer for Throughput

https://rigtorp.se/ringbuffer/
1•mattrighetti•52s ago•0 comments

Save Standard Time

https://savestandardtime.com/
1•throw0101d•1m ago•0 comments

Maybe we could tone down the JavaScript (2016)

https://eev.ee/blog/2016/03/06/maybe-we-could-tone-down-the-javascript/
1•downbad_•1m ago•0 comments

Do YC companies get preference on the homepage?

1•e_i_pi_2•1m ago•0 comments

American AI is expensive. Some startups are turning to cheap Chinese models

https://www.npr.org/2026/07/15/nx-s1-5886476/startups-cheap-chinese-ai-models
1•makerdiety•2m ago•0 comments

US Debt Clock Live

https://www.us-debt-clock.com/
1•ourmandave•2m ago•0 comments

When agents talk: tool calls, handoffs, and two wallets

https://www.kulikowski.me/blog/agents-talking-to-each-other
1•kinlan•2m ago•0 comments

Funny item co-occurrences in 3.2M Instacart orders

https://rogerdickey.com/funny-item-co-occurrences-in-3-million-instacart-orders/
1•rogerdickey•6m ago•0 comments

Show HN: Pullrun – Run OCI Images as Containers or Firecracker MicroVMs

https://github.com/pullrun/pullrun
1•liquid64•6m ago•0 comments

Eight Writers on Facing the Blank Page

https://www.youtube.com/watch?v=TDH7yAWsyG0
1•brudgers•7m ago•0 comments

Show HN: 3,225 trials of LLMs guessing author age – confident and wrong

https://github.com/BraveAnn011/llm-author-misattribution
1•BrianneLee011•9m ago•0 comments

Show HN: Stillwind – PCB part selection as constraint solving

https://stillwind.ai
3•hannesfur•9m ago•0 comments

Show HN: Summa, a tool that annotates over whatever you're reading

https://summa.josephruocco.net
2•jruocco•9m ago•1 comments

Vacuum of the Imagination: Why Space Rockets Could Have Flown Centuries Earlier

https://angadh.com/rockets-1
1•angadh•10m ago•0 comments

Show HN: Painterly – Turn pictures into digital paintings without generative AI

https://github.com/jbunke/painterly
1•flinkerflitzer•11m ago•0 comments

The Download: a useful quantum machine and a record-breaking subsea tunnel

https://www.technologyreview.com/2026/07/15/1140498/the-download-useful-quantum-computer-subsea-t...
1•joozio•11m ago•0 comments

Reverse Engineering Crazy Taxi, Part 3

https://wretched.computer/post/crazytaxi3
2•marklit•13m ago•0 comments

I Switched from Hugo to Astro

https://hmmr.online/posts/why-astro-not-hugo/
1•ZanderHammer•14m ago•0 comments

Rustwright: Playwright rewritten in Rust that uses 70% less memory

https://github.com/Skyvern-AI/rustwright
1•suchintan•15m ago•0 comments

Show HN: Zappio – a native iOS player for M3U/Xtream playlists

https://zappio.maritsol.at
1•zappio_iptv•16m ago•0 comments

RL post-training on 14 Macs across 4 countries

https://pluralis.ai/blog/rl-post-training-on-macs/
2•erfan_mhi•19m ago•0 comments

Nearly 200 Economists and Tech Leaders Warn of A.I. Threats

https://www.nytimes.com/2026/07/13/business/economists-ai-threat-jobs.html
2•Vaslo•20m ago•1 comments

The digital euro could be a major boost for European integration

https://blogs.lse.ac.uk/europpblog/2026/07/15/digital-euro-boost-european-integration/
1•jruohonen•22m ago•1 comments

Query Latency in the Age of AI Agents

https://cube.dev/blog/query-latency-in-the-age-of-ai-agents
2•skadamat•24m ago•0 comments

Calibrating Alignment Evals

https://www.lesswrong.com/posts/mWpo4Tu87ZSFzwFWB/calibrating-alignment-evals
2•gmays•24m ago•0 comments

Ray Kurzweil and Hans Moravec: Spiritual Machines, Transcendent Minds

https://medium.com/@timventura/ray-kurzweil-and-hans-moravec-spiritual-machines-transcendent-mind...
1•timventura•24m ago•0 comments

Rare Autopsy Finds Alzheimer's Drugs Only Work in Some Parts of the Brain

https://www.sciencealert.com/rare-brain-autopsy-hints-at-why-alzheimers-drugs-are-failing
2•johntb86•24m ago•0 comments

Books that are just right for children might not be the best approach to learn

https://theconversation.com/children-learn-to-read-with-books-that-are-just-right-for-them-but-th...
1•obscurette•25m ago•0 comments

Carl Sagan and the 4th Dimension [video]

https://www.youtube.com/watch?v=UnURElCzGc0
2•jonbaer•25m ago•0 comments

Job Hunters Are Using AI to Cheat in Interviews, and Failing at the Office

https://www.bloomberg.com/news/articles/2026-07-14/ai-tools-can-help-job-hunters-cheat-on-intervi...
2•rainhacker•26m ago•1 comments