https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
r

Ruckus

06/29/2018, 7:42 PM
Is there any plan to open up the multiplatform concept to let people create their own compile targets? Or even just some helpers for Kotlin transpiling (something like what is used for Kotlin/JS)?
I'm not sure if it would be a good idea, but it would be interesting to see some form of core Kotlin as a meta-language that can be transpiled to other languages, along with some custom stuff for the target language (like
dynamic
for JS and reflection for JVM).
g

gildor

06/30/2018, 5:12 AM
You actually talking about custom backend for Kotlin. I think we should wait end of compiler refactoring. After that Kotlin backend will have IR layer so big part of compiler will be shared across different backends, so it will make implementation of new backend easier, but I'm pretty sure it requires a lot of work to implement new backend.
But it would be possible to generate code from IR
r

Ruckus

06/30/2018, 5:52 AM
Makes sense
l

lex

07/02/2018, 5:09 AM
what platform you want?
r

Ruckus

07/02/2018, 2:10 PM
Not any one in particular. I had an idea pop into my head, but I'm still not sure it was a good one.