A compiler for the streaming SCORE framework