How zikk/adventofcode works
Main Components
a. Language-Specific Solution Modules:
• Rust Solutions Module (src/bin/*.rs files)
• TypeScript Solutions Module (src/ts/*.ts files)
b. Build and Configuration Layer:
• Rust Configuration (Cargo.toml)
• TypeScript Configuration (tsconfig.json, package.json)
• Bun Runtime Environment (indicated by bun.lockb)
• Go Module (indicated by go.mod)
┌─ Solution Layer ─────────────────────────┐
• ┌─ Rust Solutions ┐ ┌─ TS Solutions ─┐ │
• Day 1-16 │ │ Day 1-3 │ │
• (Individual │ │ (Individual │ │
• Binaries) │ │ Modules) │ │
• ┘ └───────────────┘ │
• ┘
┌─ Build & Configuration Layer ────────────┐
• ┌─ Rust ─────┐ ┌─ TypeScript ────┐ │
• Cargo.toml │ │ tsconfig.json │ │
• Cargo.lock │ │ package.json │ │
• ┘ └────────────────┘ │
• ┌─ Runtime ───┐ ┌─ Other ────────┐ │
• Bun Runtime │ │ Go Module │ │
• ┘ └────────────────┘ │
• ┘
Important Elements to Highlight
a. Solution Structure:
• How each day's solutions are independent executables in Rust
• Demonstrate the parallel TypeScript implementation structure
• Separation between languages while solving the same problems
b. Build System:
• How Cargo manages Rust builds
• TypeScript compilation flow
• Bun's role in running TypeScript code
Relationships
• Rust source files → Cargo build system → Executable binaries
• TypeScript source files → TypeScript compiler → Bun runtime
• Configuration files → Their respective language environments