compile only changed files

is it possible to compile a script only if it was modified much like ANT for java ?

The closest thing to that is to use https://github.com/timholy/Revise.jl. It doesn’t fix the problem that Julia doesn’t cache native code between Julia sessions, but it does allow you to change code and use it without restarting Julia (while only recompiling what needs to be recompiled), which can be a massive productivity boost.