I'd like to revive the efforts of compiling Kotlin...
# kotlin-native
p
I'd like to revive the efforts of compiling Kotlin to Python, but using a different approach than before (which was working on a fork of Kotlin monorepo). Instead, I'd like to work on klib - parse the IR stored there, and produce Python from it. This way I need to create a separate building block with well-defined API instead of fighting with the whole monorepo which is hard to work with. Does this idea make sense to you? For it to succeed, I need a library that can parse serialized IR from within the klib files - is there a library like this published somewhere? I don't mind unstable API, I just want to experiment 😁
p
Wow, impressive! I'll take a closer look, thanks!
y
That library is called the Kotlin compiler! No, seriously, there's deserialization stuff in the compiler, and you likely won't find anything else that'll do a decent job
p
ok, got it - I'll try to use the compiler's internals then! maybe there's a dedicated Gradle module that I could publish/consume for myself as a library