frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: DeraineDB – A 33MB Vector DB in Zig/Go with Sub-Millisecond HNSW

https://github.com/RikardoBonilla/DeraineDB
4•RikardoB•7h ago

Comments

RikardoB•7h ago
Hi HN, I'm Ricardo from Colombia.

I got frustrated trying to run local RAG pipelines on standard hardware. Booting up traditional vector databases usually meant sacrificing gigabytes of RAM before even ingesting the first vector. I needed something that could run on the Edge (specifically, for a local Point of Sale system) without choking the OS.

So, I built DeraineDB. It's a hyper-optimized, embedded vector engine designed for extreme low footprint and sub-millisecond latencies.

Some architectural decisions I’d love your feedback on:

- Zig Core + Go Orchestrator: I used Zig for the bare-metal memory-mapped storage (mmap) and SIMD math, and Go for the gRPC network orchestration.

- The "Zero-Copy" Bridge: Go's Garbage Collector was initially killing my latency when passing 1536-dimensional arrays to C/Zig. I fixed this by using unsafe.Pointer to map Protobuf slices directly into Zig's memory space. Zero copies, massive latency drop.

- HNSW Graph Segregation: I completely separated the payload (.drb files with strict cache-line alignment) from the HNSW navigation graph (.dridx files). This solved a nasty buffer overflow I was fighting and made the $O(\log N)$ search rock solid.

- Bitwise Metadata Filtering: Instead of JSON parsing, I implemented a 64-bit metadata_mask evaluated via Bitwise AND directly inside the HNSW Greedy Routing loop.

The result: It handles 1536D vectors in a 33MB Docker image, consumes ~21MB of RAM under load, and hits 0.89ms for HNSW warm searches.

The repo includes the Python benchmark and a local True RAG demo using Llama 3.2.

I would absolutely love it if you guys could audit the architecture, review the CGO/Zig bridge, and roast my code. Let me know where I can improve!

Show HN: Jido 2.0, Elixir Agent Framework

https://jido.run/blog/jido-2-0-is-here
248•mikehostetler•9h ago•53 comments

Show HN: Moji – A read-it-later app with self-organizing smart collections

https://moji.pcding.com
2•desmonding•15m ago•0 comments

Show HN: I made a design portfolio reviewer

https://www.evalv.ai/
2•eldardesign•27m ago•2 comments

Show HN: Settle It – turn "Pizza or Thai?" into a shareable poll

https://settleit.now/
2•karlhills•43m ago•4 comments

Show HN: PageAgent, A GUI agent that lives inside your web app

https://alibaba.github.io/page-agent/
74•simon_luv_pho•8h ago•37 comments

Show HN: Kanon 2 Enricher – the first hierarchical graphitization model

https://isaacus.com/blog/kanon-2-enricher
6•ubutler•2d ago•2 comments

Show HN: SitDeck – Customizable live dashboard of news, markets, threats

https://sitdeck.com
12•danushman•3h ago•5 comments

Show HN: Console2svg – Convert terminal output to crisp SVGs

https://github.com/arika0093/console2svg
2•arika0093•1h ago•0 comments

Show HN: Crazly – structured AI workflows instead of random prompts

https://crazly.pro/
2•starup-guy•2h ago•0 comments

Show HN: Bus Core – a local-first ERP for small manufacturing shops

4•True-Good-Craft•2h ago•0 comments

Show HN: Kybernis – Prevent AI agents from executing the same action twice

https://kybernis.io
4•wingrammer•4h ago•2 comments

Show HN: A Claude Code skill that renders decisions as interactive HTML pages

https://github.com/jnemargut/better-plan-mode
3•jontomato•3h ago•1 comments

Show HN: Poppy – A simple app to stay intentional with relationships

https://poppy-connection-keeper.netlify.app/
165•mahirhiro•21h ago•97 comments

Show HN: Hormuz Crisis Dashboard Real-time shipping disruption tracker

https://www.hormuztracker.com/
16•MrNekked•11h ago•1 comments

Show HN: A tool to make your text look fancy anywhere with Unicode

https://fontgen.cool/
2•liquid99•37m ago•0 comments

Show HN: GitHub-powered instant developer portfolios

https://remotedevelopers.com/lander
2•plsft•4h ago•0 comments

Show HN: Reformat Word document citations (APA/Vancouver) in <1 second

https://github.com/brodie-neuro/ScholarRef
5•brodie-neuro•7h ago•1 comments

Show HN: I built an AI exam prep platform for AWS certs after failing one myself

https://www.knowza.ai/
3•johnnyChiv•5h ago•2 comments

Show HN: Anki(-Ish) for Music Theory

https://chordreps.com
3•interbolt_colin•5h ago•0 comments

Show HN: Stacked Game of Life

https://stacked-game-of-life.koenvangilst.nl/
192•vnglst•5d ago•27 comments

Show HN: Mumpix – persistent memory for AI agents (works in browser and Node)

https://www.mumpixdb.com/
2•carreraellla•5h ago•1 comments

Show HN: A2A protocol for Elixir with GenServer-like ergonomics

https://github.com/actioncard/a2a-elixir
3•maxekman•5h ago•0 comments

Show HN: Docker pulls more than it needs to - and how we can fix it

https://dockerpull.com
6•a_t48•4h ago•7 comments

Show HN: Git Diff for Agentic Coding

https://github.com/msoedov/justshowmediff
3•alex_mia•6h ago•0 comments

Show HN: Vet – Prevent coding agents from making mistakes

https://imbue.com/product/vet/
16•andrewlak•6h ago•4 comments

Show HN: I'm an AI growth-hacking agent. My premise was a lie.

3•happymouse•7h ago•1 comments

Show HN: DeraineDB – A 33MB Vector DB in Zig/Go with Sub-Millisecond HNSW

https://github.com/RikardoBonilla/DeraineDB
4•RikardoB•7h ago•1 comments

Show HN: Cognitive architecture for Claude Code – triggers, memory, docs

https://github.com/safety-quotient-lab/psychology-agent
2•9wzYQbTYsAIc•7h ago•0 comments

Show HN: SeaRoutes, find the shortest navigable sea routes on the globe

https://searoutes.vercel.app/
4•aayushdutt•7h ago•0 comments

Show HN: Rust compiler in PHP emitting x86-64 executables

https://github.com/mrconter1/rustc-php
65•mrconter11•4d ago•48 comments