kotlin-language-server icon indicating copy to clipboard operation
kotlin-language-server copied to clipboard

Supper non-JVM backends (Kotlin/Native, Kotlin/JS, Kotlin/Wasm)

Open fwcd opened this issue 7 years ago • 2 comments

Support non-JVM backends, such as...

  • [ ] Kotlin/Native: https://kotlinlang.org/docs/native-overview.html
  • [ ] Kotlin/JS: https://kotlinlang.org/docs/js-overview.html
  • [ ] Kotlin/Wasm: https://kotlinlang.org/docs/wasm-overview.html

The native backend might be particularly interesting for iOS/Android apps using Compose Multiplatform, while the JS/Wasm support would be cool for using Kotlin in (web) frontend projects.

The kotlin-compiler-server used by the kotlin-playground (hosted on https://play.kotlinlang.org), provides a nice reference implementation for JS and Wasm and would be worth studying.

Since the language server itself (mostly) just depends on the compiler frontend, integrating dependency resolution would be the central challenge.

fwcd avatar Jun 11 '18 18:06 fwcd

The Kotlin Web Demo might be a good resource for Kotlin JS support:

https://github.com/JetBrains/kotlin-web-demo/tree/master/versions/1.2.71/src/main/java/org/jetbrains/webdemo/kotlin/impl

fwcd avatar Jan 07 '19 19:01 fwcd

The upcoming Wasm support in kotlin-compiler-server might be interesting:

  • https://github.com/JetBrains/kotlin-compiler-server/commit/2d87c39775f0c66e7a025f63cff29006089980f8
  • https://github.com/JetBrains/kotlin-compiler-server/pull/681

fwcd avatar Oct 03 '23 14:10 fwcd