In an effort to use swift for scripting, without the startup cost:

Swift Caching Compiler - https://github.com/jrz/tools