"give a man an inch and they'll take a mile" and what not, but, I wonder how hard this would be to port to Hoot, a web assembly/wasm-ified Guile Scheme. https://spritely.institute/hoot/ It would be neat to have some real management APIs for the things running on a page, to be able to manage long running processes & workers. A bit more niche than for general webapps, but systemgo comes to mind; a re-impl of some of sy…
It would be interesting, though I don't know if it would make sense. In any case, the way to do it would be to extract all the code that does POSIX things into an abstraction layer. Shepherd is built on the Fibers async system which Hoot supports so that part shouldn't be an issue.