rise-lang / shine

The Shine compiler for the RISE language
https://rise-lang.org
MIT License
73 stars 8 forks source link

Low-level Rise sanity check #226

Open Bastacyclop opened 2 years ago

Bastacyclop commented 2 years ago

After #198 and #220, me and @johanneslenfers concluded that it would be very useful to implement some low-level Rise program sanity checks:

Bastacyclop commented 2 years ago

Example of writing race:

    val e = depFun((n: Nat) => fun(n`.`f32)(in =>
      in |> split(128) |> mapWorkGroup(
        mapLocal(id) >> toLocal >> mapSeq(id)
      ) |> join
    ))