google-research / dex-lang

Research language for array processing in the Haskell/ML family
BSD 3-Clause "New" or "Revised" License
1.58k stars 107 forks source link

Add a HeapType type and HeapVal value for the heap parameter. #1198

Closed dougalm closed 1 year ago

dougalm commented 1 year ago

Previously we just used h:Type (leftover from ST monad inspiration) and UnitTy as its "runtime" value. But that meant SimpIR had to contain vars of type Type, which we want to rule out statically.