You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ A library to sideload code into a live JVM/Clojure AWS Lambda.
4
4
5
5
The idea is to first build a JVM/Clojure AWS Lambda in the usual way, by AOT compiling Clojure code into Java bytecode, but in the handler, call a sideloader, that puts new Clojure code into the Classpath, by downloading a zip from S3.
6
6
7
-
If there is new Clojure code available, the sideloader calls `(require '<ns-sym> :reload-all)` to reload application namespaces.
7
+
If there is new Clojure code available, the sideloader calls `(require '<ns-sym> :reload-all)` to reload application namespaces. The idea is to exclude Clojure source code from the AOT bundle, so when reloading with sideloaded Clojure code on the classpath, we let the Clojure compiler [pick up the new source code](https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/RT.java#L440-L460), if it is newer than the compiled class files
8
8
9
9
There is an example in the [example](example/) folder, that uses [pod-babashka-fswatcher](https://github.com/babashka/pod-babashka-fswatcher) to package application Clojure code into a zip file and upload to S3, when there are changes in the source folder.
0 commit comments