is there a good "streaming sam" implementation that can be used instead of sed?
deadpixi's sam port[1] includes a "ssam" command, but it's just a shell-script that writes standard input to a temporary file, launches sam to run commands, then copies the temporary file to standard output - it's not really a "stream".

"Plan 9 from User Space" has its own ssam command, whose implementation is basically the same, except as an rc script instead of a shell script.

I don't know if there's an actually-streaming sam implementation anywhere.

[1]: https://github.com/deadpixi/sam