pine-vm / pine

Cross-platform runtime environment for the Elm programming language.
https://pine-vm.org
MIT License
219 stars 18 forks source link

Simplify app development with dedicated API for tasks not depending on volatile process state #25

Open Viir opened 6 months ago

Viir commented 6 months ago

So far, we always use volatile processes to run tasks integrating other software. However, in many cases, we don't need the facilities to retain volatile process state beyond a single task. Examples are usages of elm-format and elm make in Elm Editor.

A dedicated API for a single task would simplify application developers' implementation. For example, this part should be simpler (And more complete, forwarding any errors that were not linked to RequestToVolatileProcess): https://github.com/pine-vm/pine/blob/e4949e0d1fdfe7eba8dd326f8429b8765276dc6e/implement/example-apps/elm-editor/src/Backend/Main.elm#L370-L377