Skip to content

omarespejel/uc

Repository files navigation

uc

uc is a next-generation Cairo package manager and build/proving engine for high-performance workflows.

Mission

  • Deliver materially faster developer and CI loops than Scarb.
  • Keep deterministic artifacts and reproducible builds as hard requirements.
  • Provide a modern 2026 architecture: sessionized compiler state, content-addressed cache, and measurable performance gates.

First Product Proof

The first thing we must prove is that uc beats Scarb on warm rebuild latency while preserving correctness.

  • Hypothesis: uc can reduce warm edit -> build p95 by at least 40%.
  • Guardrails: zero artifact hash mismatches and diagnostics parity >= 99.5%.
  • Decision gate: continue platform rollout only if proof passes.

See:

  • docs/FIRST_PROOF.md
  • docs/BENCHMARK_PLAN.md
  • docs/ARCHITECTURE_BLUEPRINT.md
  • docs/COMMAND_SURFACE.md
  • docs/SPEED_SIGNAL_2026-03-03.md

Repository Structure

  • docs/: product, architecture, roadmap, KPIs, operating model, cutover.
  • docs/research/: imported and synthesized research from the codebase exploration.
  • docs/adr/: architecture decision records.
  • benchmarks/: scenario matrix, harness, fixtures, results, and baselines.
  • scripts/github/: GitHub milestones/labels/issues bootstrap.
  • .github/: issue templates, PR template, and benchmark CI workflow.

Quick Start

make bootstrap
make benchmark-local
make benchmark-uc
make compare-local
./benchmarks/scripts/run_stability_benchmarks.sh --matrix research --workspace-root /path/to/compiler-starknet --runs 10 --cold-runs 5 --cycles 5 --gate-config benchmarks/gates/perf-gate-research.json
./benchmarks/scripts/compare_benchmark_results.sh --baseline <scarb.json> --candidate <uc.json> --out <delta.md>
cargo run -p uc-cli -- build --manifest-path /path/to/Scarb.toml
UC_PHASE_TIMING=1 cargo run -p uc-cli -- build --engine uc --daemon-mode off --manifest-path /path/to/Scarb.toml
UC_NATIVE_PROGRESS=1 UC_NATIVE_PROGRESS_HEARTBEAT_SECS=5 cargo run -p uc-cli -- build --engine uc --daemon-mode off --offline --manifest-path /path/to/Scarb.toml
UC_NATIVE_PROGRESS=1 UC_NATIVE_PROGRESS_COMPILE_BATCH_SIZE=1 cargo run -p uc-cli -- build --engine uc --daemon-mode off --offline --manifest-path /path/to/Scarb.toml
cargo run -p uc-cli -- daemon start
cargo run -p uc-cli -- daemon status
cargo run -p uc-cli -- build --engine uc --daemon-mode require --manifest-path /path/to/Scarb.toml
cargo run -p uc-cli -- compare-build --manifest-path /path/to/Scarb.toml
cargo run -p uc-cli -- daemon stop
cargo run -p uc-cli -- migrate --manifest-path /path/to/Scarb.toml --emit-uc-toml /path/to/Uc.toml

Tooling

  • scarb
  • jq
  • git
  • cargo

Current Status

  • Program foundations are set.
  • Baseline benchmarking against Scarb is automated and committed.
  • uc now has executable commands for build, metadata, benchmark orchestration, daemon lifecycle, and dual-run comparator reports.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors