https://kotlinlang.org logo
p

Paulo Cereda

04/30/2022, 12:42 PM
Hi friends! Does anyone know of a MPP library for process execution (similar in behavior to
ProcessBuilder
or
Runtime.exec
in the Java ecosystem)? Any suggestion is welcome! Thanks! Have a great weekend!
1
m

Matthias Geisler

04/30/2022, 12:57 PM
p

Paulo Cereda

04/30/2022, 1:13 PM
Thanks, Matthias! Sadly,
turtle
seems to be a JVM-only library...
m

Matthias Geisler

04/30/2022, 1:17 PM
Right...totally overlooked that
e

ephemient

05/01/2022, 1:16 AM
iOS apps (generally) do not have the capability to start processes, and neither does JS in browsers
I suppose you could create wrappers around
posix_spawn
(Linux, macos), `CreateProcess`(Windows), and
child_process
(JS), with the expectation that it will fail on some platforms
👍 1
p

Paulo Cereda

05/01/2022, 10:18 AM
@ephemient Thanks, that's a good start! Actually, we don't need to cover mobile or web, so as long as we find a solution that works on Linux, MacOS and Windows, I'll be very happy! 😊
p

Paul Woitaschek

05/01/2022, 1:58 PM
Usually writing this yourself should be pretty simple as you only need to cover you use cases
4 Views