Sbt backgroud incremental compile

#1

Is it possible to configure sbt to run in the background and do incremental compile on every file save?

After Python, it is very annoyable to wait seconds of compile even HelloWorld projects. Maybe some work is going now to make Scala be compilable incrementally?

I mean something like daemon which tries to compile changed files partially and store intermediate results in memory. For example, if some single class can be compiled, it will be compiled and wait until other classes in such file will be fixed.

#2

any command in sbt can be prefixed with ~ to mean “when anything changes”. The command ~compile will run incremental compiles on save. You can do the equivalent and immediately run tests with ~testQuick