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
6
def tot(xs: list[int], base: int) -> int:
    return sum(xs, base)


def fsum(xs: list[float]) -> float:
    return sum(xs, 1.5)