Meikel  Brandmeyer avatar Meikel Brandmeyer committed 010de93

Add documentation about AOT compilation

Comments (0)

Files changed (2)

AOT Compilation.wiki

+== AOT Compilation ==
+
+Clojure can be AOT compiled. In general this not required and in fact
+it can be harmful. AOT compiled code is tied to a certain version of
+Clojure. So you can't mix AOT compiled libraries which were compiled
+with different versions of Clojure.
+
+Nevertheless, AOT compilation can be quite useful and sometimes even
+necessary. It may happen that your target platform does not allow
+dynamic byte code generation. Then you //have// to AOT compile your
+code. Or you have to use {{{gen-class}}}. Then again you //have// to
+use AOT compilation.
+
+//clojuresque// normally does not AOT compile your project for the
+above mentioned reasons. However, you can simply tell it, that you
+want AOT compilation and it will happily do so.
+{{{
+#!groovy
+aotCompile = true
+}}}
 * [[Getting Started]] with //clojuresque//.
 * Using [[Repositories]].
 * Create [[Uberjar]]s.
+* [[AOT Compilation]] comes also out-of-the-box.
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.