What’s the proper way to setup a spawned process which has a Port(pipe) to an external program? I’m writing a toy program(something to experiment with Elixir) which accesses aspell(GNU aspell) via a Port(pipe) in a spawned process and I’ve got it working but I’m unsure if its the correct Elixir way. Any thoughts or comments? Please chime in.
The only reason I suggest Porcelain is it does the same, but you can control the lifespan of the port app better, like if it dies, locks up, if it does not close when the pipe is closed, etc… Ports are really designed for things that were made to speak ‘ports’, they just also happen to work decently with others too, Porcelain is good for everything else.
In this use-case, it looks like the aspell fits ports really well, so even as-is you should be fine.