Better HN
topnewbestaskshowjobs
Log inSign up

weiserwx

1 karma · joined May 23, 2026 (6mo ago) · 5 submissions

Submissions

comment 5mo ago · link · parent

A DSL for machine learning programs: https://pypie.dev/ Embedded in Python, written like Python, but with static type safety (e.g. it catches tensor shape mismatches at compile time)

comment 6mo ago · link · parent

PyPie is a subset of Python built on a dependent type system to statically validate tensor shapes.

We have made the "type surface" just rigorous enough but not too much: it catches shape mismatches without breaking the illusion that we are still writing Python. It's also seasoned with rank polymorphism and some basic arithmetic rewriting.

This is our early demo focused on language semantics. Under the hood, PyPie currently compiles to JAX, which does the heavy lifting for optimizations.

3.

PyPie, A DSL for Tensor Programming(pypie.dev ↗)

2 points · by weiserwx · 6mo ago · 1 comment