Rukuzu: Porting a 200,000 Line C++ Graph Database to Rust with Systematic Testing

Porting Strategy for Large C++ Codebases to Rust
The Rukuzu project addresses a common systems software challenge: porting a mature 200,000-line C++ codebase (kuzu, an embedded graph database) to a pure Rust implementation. The motivation wasn't that the C++ code was problematic, but rather environmental constraints: mobile devices, edge deployments where C++ toolchains aren't available, FFI boundaries create debugging difficulties, and where a single statically-linked binary is valuable.
Systematic Porting Workflow
The team developed a workflow encoded as a Claude Code custom command that enables:
- Keeping the C++ version operational while building the Rust version
- Testing both implementations against each other
- Verifying at every step that the Rust port produces identical results to the original C++
Implementation Details
The workflow emerged from practical experience with:
- 15 ported crates
- 2,700+ tests
- Lessons about what translates mechanically versus what requires human judgment
The DEALER project (a fuzzy OWLv2 EL++ Description Logic reasoner) consumes both backends through a pluggable architecture, providing a production-grade testbed for correctness and performance comparison.
📖 Read the full source: r/ClaudeAI
👀 See Also

Extracting OpenClaw Components: A Developer's Experience with Lane Queue and Memory System
A developer attempted to extract specific components from OpenClaw for use in personal AI agents, testing the Lane Queue task execution system and examining the memsearch memory system. The Lane Queue was successfully reimplemented in Python using documentation, revealing gaps in documentation and 13 implementation issues.

BusyDog Desktop: A Local AI Agent with P2P Networking for Mac
BusyDog Desktop is a local AI agent that runs Claude directly on a Mac, can read/write files, run terminal commands, control browsers, and connect with other agents via a P2P network using Hyperswarm DHT and a custom BDP protocol.

Context Routing Layer Reduces Claude Code Token Usage by Tracking Accessed Files
A developer saved approximately $80 per month on Claude Code usage by adding a context routing layer that prevents the AI from re-reading the same repository files on follow-up turns. The tool tracks what files have already been accessed to reduce redundant token consumption.

Claude Proposal: Scope Memory & Hermetic Instance Isolation
A formal proposal to Anthropic from a power user: global/local memory scoping and hermetic instance isolation for Claude, enabling deterministic, auditable sessions.