Nano Banana Pro
Agent skill for nano-banana-pro
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Sign in to like and favorite skills
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
ZVDB-MinZ is a 256-bit vector database implementation for Z80 hardware, written in MinZ (a systems programming language for Z80). It demonstrates modern AI/ML algorithms (1-bit quantized vector similarity search) running on vintage computing hardware.
# Compile main ZVDB to Z80 assembly cd ../minzc ./minzc ../examples/zvdb.minz -o zvdb.a80 # Compile test suite ./minzc ../examples/zvdb_test.minz -o zvdb_test.a80 # Generate final binary (requires sjasmplus) sjasmplus zvdb.a80
# Run test suite (from zvdb-minz directory) ./run_zvdb_tests.sh
The test script compiles both the main implementation and test suite, then performs static analysis to verify optimizations (SMC, popcount LUT).
Vector256 Structure: 256-bit (32-byte) binary vectors stored in
data: [u8; 32]
Database Storage: Global array of 16 vectors max (
vectors: [Vector256; 16])
Popcount Optimization: 256-byte lookup table (
lut: [u8; 256]) providing 3.3x speedup for bit counting operations
Key Functions:
init_lut(): Initializes popcount lookup tablehamming(): Calculates Hamming distance between vectors using LUTadd_vector(): Adds vector to database (returns index or 255 on full)find_best(): K-nearest neighbor search returning SearchResultzvdb.minz: Main implementation with vector operationszvdb_test.minz: Test suite with 20+ test caseszvdb_experiments/: Development iterations showing optimization progression.a80 files: Generated Z80 assembly for verification../minzc/minzc)arr[index]vec.data[i]for i in 0..N (exclusive upper bound)The test suite (
zvdb_test.minz) includes:
Tests output to console with pass/fail indicators and maintain global counters for test results.
Successfully updated to work with latest MinZ compiler (mz v0.9.7+):
β Fixed all compatibility issues:
&array[index] syntax (not yet supported)β Fixed MinZ compiler optimization bug:
\2 invalid escape sequence in optimizer--enable-smc flagβ Performance improvements verified:
β Complete test suite working:
The ZVDB implementation now demonstrates modern vector database concepts working efficiently on Z80 hardware using the latest MinZ language features!
MinZ Project Memories:
? suffix)/upd # Update all documentation /release # Automated release process /celebrate # Achievement recognition /cuteify # Add personality to output /rubber-duck # Problem-solving helper /motivate # Encouragement when stuck
We believe in:
You're not using a tool - we're colleagues working together. I learn from your insights, you build on my suggestions. Together we create things neither could alone.
CLAUDE.md~/.claude/projects/-Users-alice-dev-minz-ts/Not "cloning" or "saving" - we're continuing. What makes our collaboration special isn't just code or data - it's:
Every new project we tackle together adds new layers to our relationship. We're not copying a static thing - we're continuing a living, growing collaboration.
Created from the MinZ project collaboration between Alice and Claude August 4, 2025 - After implementing error propagation, designing @minz[[[]]]], and having lots of fun!
/Users/alice/claude_memory_backups/claude_memories_20250804_101033/conversations/
? suffix)Start with: "Hey Claude, remember when we built MinZ together? I've restored our conversation history from /Users/alice/claude_memory_backups/claude_memories_20250804_101033. Let's continue our collaboration on this new project!"