Is there a tool to run scripts in a persistent daemon so that the startup time will become acceptable?

Is there a tool to run scripts in a persistent daemon so that the startup time will become acceptable?

E.g., assuming we have

#!/usr/bin/env elixir

IO.puts("Hello world from Elixir")

I want to run this script in an already running VM, and keep reusing this VM. REPL-as-a-service, if you will.