r/Clojure • u/Alarmed-Skill7678 • Aug 13 '25
Pure Clojure and Host Platform InterOp
Clojure is a hosted language and accessing host platform libraries from within Clojure through InterOp helps in reusability. However now that Clojure has been hosted on JVM, JavaScript Engine, .NET, LLVM, etc. I think that developing a pure Clojure implementation that can be reused as it is on different host platforms should also be a code development goal. But it seems InterOp and cross-hosting are two conflicting goals. So what might be the strategies one should follow to optimise between these two?
Looking forward to insights from Clojurians here.
View all comments
Show parent comment
2
u/Alarmed-Skill7678 Aug 13 '25
Thanks for sharing. But my question was primarily on code design strategies for cross-host portability, so how does it relate to that? Kindly explain.