In the ClojureScript announcement, Rich shows running some AOT-compiled ClojureScript in Node to enumerate the files in a directory.
See him do it here: https://youtu.be/tVooR-dF_Ag?t=3882
Now with bootstrap, you can do that dynamically right on the command line,
change your mind and change the directory you enumerate,
revise the code to use println
vs. prn
, etc. Try this:
planck -e"(require 'planck.core)" -e'(run! (comp println :path) (planck.core/file-seq "/tmp"))'
Note that this is being done on the spot without starting up the JVM-based compiler. In other words, we can have our cake and eat it too these days!