soywiz-archive / jtransc

Bytecode to source converting Java & Kotlin code into JavaScript, C++, D, C#, PHP, AS3, Dart and Haxe and run it everywhere. Also use JVM code in your favourite language as a library.
https://jtransc.soywiz.com/
Apache License 2.0
632 stars 67 forks source link

Could this work with Clojure? #283

Open didibus opened 6 years ago

didibus commented 6 years ago

Wondering if this could work with Clojure. I'd assume yes, since it takes byte code, but I know Clojure has a lot of dynamic constructs that create new byte code at runtime, so I don't know if that would complicate the matter.

soywiz commented 6 years ago

Probably not though not tried. Even if you statically compile clojure, probably it is using invokedynamic a lot (from 1.7). Unless you use a version targeting 1.6 or lower. I just implemented a subset of invokedynamic to support java/kotlin lambdas. So probably won't work.