-
I have a mix project. I can run
iex -S mix
in this project. -
I have a basic Scala/Swing app running with two text areas. One for input, one for output.
-
I would like to connect Scala/Swing with
iex -S mix
-
The dumbest approach is to, from Scala, run the process
iex -S mix
, then interact with it via stdin/stdout. However, this is rather messy due to the need of parsing the output ofiex -S mix
Question: Is there a way to run iex -S mix
in some type of ‘server’ mode, where instead of interacting wit hit via stdin/stdout, we can talk to it via json blobs? (I.e. send commands to iex -S mix via json blobs and get the response back as a json blob). The goal here is to preserve as much of the structure of iex -S mix
as possible, so we don’t have to re parse it.
Thanks!