3 ms·
Actually ... it works. I'm calling Clojure from Kotlin in Spring Boot and it integrated very nicely. You have to export the code to make it callable, and I had
by afandian 4y ago
Actually ... it works. I'm calling Clojure from Kotlin in Spring Boot and it integrated very nicely.
You have to export the code to make it callable, and I had to write some adapters on the Kotlin end. But very doable for integrating if you need to.
This code is quite specific, but you get the idea. Export symbols:
https://gitlab.com/crossref/rest_api/-/blob/main/src/cayenne/extlib/core.clj https://gitlab.com/crossref/rest_api/-/blob/main/src/cayenne...
Convert Clojure structures to Kotlin classes:
https://gitlab.com/crossref/manifold/-/blob/main/src/main/kotlin/org/crossref/manifold/util/clojure/Clojure.kt https://gitlab.com/crossref/manifold/-/blob/main/src/main/ko...