Lightweight way to call a swift function as a child process?

Any chance that implementation can become its own library?

Why, yes!

The Foundation folks are in the process (hey hey) of creating a replacement for Process. See [Pitch] Swift Subprocess. I don’t think there’s any ETA for that yet, but it’s definitely on the cards.

In the meantime, there are a number of alternative Process wrappers from other third-party developers. I don’t keep track of them — due to the nature of my work, I’m not able to use third-party libraries — so I can’t give you a specific recommendation. Perhaps someone else will chime in…

Share and Enjoy

Quinn “The Eskimo!” @ DTS @ Apple

1 Like