I'm looking for a guide for polyglot programming in this two languages.
I know that interop between them is possible, since they are both running on the same Java VM, and both got compiled to the same bytecode. But there is some cumbersomes:
( Yeah, yeah, I know I can just plug in jar from one language to project in other lang.)
So the question is How to setup polyglot development in Scala and Clojure?
Scala is faster than Clojure. The microservice development is efficient.
The short anser: use Maven3
maven3 with the zi plugin for clojure and the maven-scala-plugin will allow you to have a nicely integrated polyglot project where you can use any language you want as long as its Java ;)
One of the big changes in Maven3 was a push toward polyglot JVM programming including the ability to write POMs in many languages. You loose the polish of leiningen when taking this route, though you gain plenty in return.
I've not used it, but Leiningen does have scalac support.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With