To install the native-image compiler, you need to use
gu, a tool for updating
For GraalVM Community Edition users, install a component from the GitHub catalog by its name
gu install native-image. After this additional step, the native-image executable will become available in the bin directory, as for the previous releases.
I often forget how to type-hint different forms in Clojure. I usually only end up doing this when using GraalVM.
;; Type hinting the let binding (let [^String s (something-returning-a-string)] (.isEmpty s)) ;; Type hinting a function parameter (defn empty? [^String s] (.isEmpty s)) ;; Type hinting a Java Interop method call. (.isEmpty ^String (something-returning-a-string)) ;; Type hinting a return value on a function (defn ^String myfn  "I'm a string") ;; A multi arity type function return (defn myfn2 (^String  "I'm a string") (^String [a b] "I'm a string too"))