Clojure Bytecode and Namespace Loading
Let’s investigate what kind of bytecode is generated when Clojure compiles *.clj files. First, let’s start with a simple example: (ns example.hello). Things to Note Compilation unit is a namespace A class loader “namespace__init.class” is created for each namespace Details are available at http://clojure.org/compilation During compilation, include the (Clojure code to be compiled) source directory in the classpath At runtime, include clojure.jar in the classpath in addition to the compiled class files Compilation Without using leiningen, let’s compile with raw Clojure....