xpile 0.1.616

Polyglot transpile workbench (Python/C/C++/Rust/Ruchy/Lean ↔ Rust/Ruchy/PTX/WGSL/SPIR-V) with provable contracts at every layer.
1
2
3
4
5
def fact(n: int) -> int:
    return 1 if n <= 1 else n * fact(n - 1)
def main() -> None:
    print(fact(5))
    print(fact(10))