Revet: A Language and Compiler for Dataflow Threads