6

Is there a Kotlin compiler to JavaScript available in JavaScript (like CoffeeScript or Coco)?

If not, when is expected to be available?

1 Answer 1

6

Currently there's no such implementation.

The existing compiler is written in Java. It is not very clear if we (JetBrains) will work on another implementation in the nearest future. On the other hand, we are always open to contributions...

Sign up to request clarification or add additional context in comments.

3 Comments

Are there any plans to port it to Kotlin? (So it may be then compiled to JavaScript?) Or what parts do you think would be hardest to port to Kotlin?
Definitely, there are such plans, but currently Kotlin compiler depends on a few Java librarie, most importantly — the IntelliJ IDEA's infrastructure for parsing/representing syntax trees, and that is written in Java, we'd have to reimplement that all to be able to compile the the compiler to JavaScript.
It's not (pure) Java anymore, is it?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.