Skip to content

Dana

An open-source, AI-first programming language for fast, private, database-native data work — Zero-Crate Rust compiler, vectorized columnar VM, SQLite/PostgreSQL pushdown, and compile-time PII/FERPA safety.
v0.7.2
Pre-1.0 release (Zero-Crate Rust)
3.35x
Faster than Polars on SQLite + FERPA
16/16
Blind 4-model AI learnability pass (0 leaks)
Lean 4
Formal soundness & non-interference proofs
Terminal window
brew install robertguss/tap/dana

ScholarshipReport pushes filters and projections down into SQLite or PostgreSQL, enforces unique join keys with join_one, and compiles away [pii] / [ferpa] sensitivity tags only after suppress_small_groups(min: 5, distinct_by: .id) clears distinct-student thresholds:

## Summarizes scholarship applicants by program without exposing student PII/FERPA.
module ScholarshipReport
schema Student
id: Int [pii]
email: Text [pii]
gpa: Decimal? [ferpa]
program: Text
enrolled_year: Int
active?: Bool
end
schema Application
student_id: Int [pii]
requested: Decimal where . > 0
end
fn by_program(students: Table(Student), apps: Table(Application))
promise unique(.program)
promise all(.applicants >= 5)
# Filter & select push down to SQLite / Postgres SQL; join_one fails loudly on duplicate keys;
# suppress_small_groups declassifies [pii]/[ferpa] once k >= 5 distinct students.
students
|> where(.enrolled_year == 2026 and .active?)
|> select(.id, .program, .gpa)
|> join_one(apps, on: left.id == right.student_id)
|> group_by(.program)
|> summarize(
applicants: count_distinct(.id),
avg_gpa: mean(.gpa),
total_requested: sum(.requested)
)
|> suppress_small_groups(min: 5, distinct_by: .id)
|> sort_desc(.total_requested)
end

Benchmark Highlights vs. Python, Pandas & Polars (v0.7.2)

Section titled “Benchmark Highlights vs. Python, Pandas & Polars (v0.7.2)”

Every benchmark runs in a fresh child subprocess with cell-for-cell parity checks across CSV + UDF ETL, 500k × 50k Parquet joins, SQLite pushdown with FERPA suppression, and Parquet + statistical HTML5 reporting:

W2: 500k x 50k Parquet Join + UDF + Agg

Median end-to-end subprocess latency (ms)

Lower is better
Dana v0.7.2 (Zstd Parquet + inlined UDF)152.8 ms · 99.2 MiB RSS
Polars 2.2.0280.2 ms · 1.83x slower · 212.4 MiB
Pandas 3.1.1522.0 ms · 3.42x slower · 252.9 MiB
Python stdlib (CSV mirror)992.3 ms · 6.49x slower
W3: 250k SQLite Pushdown + FERPA Privacy

Median end-to-end subprocess latency (ms)

Lower is better
Dana v0.7.2 (SQLite pushdown + VM window)107.8 ms · 22.2 MiB RSS
Python stdlib (sqlite3)160.3 ms · 1.49x slower
Polars 2.2.0360.6 ms · 3.35x slower · 98.5 MiB
Pandas 3.1.1595.0 ms · 5.52x slower · 153.0 MiB

Native PII & FERPA Tracking

Attach [pii], [ferpa], [financial], or custom tags in schemas. Tags propagate automatically across expressions, filters, joins, and windows; unauthorized sinks fail at compile time.

Unified SQL Pushdown

CSV/TSV/JSONL, Zstd Parquet, Excel .xlsx, embedded SQLite, and native PostgreSQL v3.0 share one typed |> pipeline verified against offline schema.lock snapshots.

Zero UDF Cliff

2,048-row vectorized columnar VM written in Zero-Crate Rust with exact 128-bit Decimal math and pure Dana UDF bytecode inlining.

Formally Verified Core

0-conflict Bison IELR(1) grammar, Lean 4 type soundness & non-interference proofs over Dana Core IR, and a 13-parser zero-crate fuzzer.