Skip to content

Commit dc0f5c3

Browse files
authored
Expand reloadability explanation
1 parent 650a1c5 commit dc0f5c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ A library to sideload code into a live JVM/Clojure AWS Lambda.
44

55
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.
66

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
88

99
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.
1010

0 commit comments

Comments
 (0)