# Update: This micro-blog is now also a guide on clojurescript.org: # http://clojurescript.org/guides/native-executables # Hello! This is a micro-post about how to produce native executables # from ClojureScript source. The basic idea is to produce a # JavaScript file using the ClojureScript compiler, and then use a # Node.js tool called nexe (https://github.com/jaredallard/nexe) to # compile that into an executable. The resulting file can be run # without requiring a node install on the target machine, which can # be handy. # nexe works by compiling the v8 engine into an exe that also # contains your Javascript. So, strictly speaking, your program # itself is not being compiled ahead of time. But if what you're # after is the packaging convenience of an EXE, IMO this remains # a useful technique. # Install node and nexe brew install node npm install nexe -g # Make a little hello world file mkdir -p /tmp/nexe-test/src cd /tmp/nexe-test cat > src/hello.cljs <