Compile a zero-dependency native executable
Pure .pa programs compile straight to native machine code via LLVM—no
interpreter, no libpython linked, and zero garbage-collector pauses.
def sum_squares(n) -> float:
total = 0.0
for i in range(n):
x = float(i) * 0.001
total += x * x
return total
def main() -> int:
print(sum_squares(100000))
return 0
$ pac run main.pa # dev mode: bounds checks, auto-cleanup
$ pac run --mode prod main.pa # prod mode: LLVM -O2 (~1.7 MB RSS)
333328333.34999967
pac build --mode prod main.pa -o app. For binaries that embed
.paw modules across machines, add
--relocatable and run pac bundle app --with-stdlib.