Did Kotlin evaluate to compile into Rust, rather t...
# kotlin-native
m
Did Kotlin evaluate to compile into Rust, rather than LLVM?
o
Not sure what would be the point, especially considering Objective C interop
t
but as I understand it is possible to create a kotlin native library that can be consumed in Rust?
m
Because Rust transpiles to LLVM anyway and provides memory safety? And through that optionally a way to code something for environments where GC is unsuitable?
v
That’s interesting use case and maybe a valid one. I’ve heard in a presentation (don’t remember which exactly) of @abreslav , where he told about plans to make Kotlin memory safe. BTW Kotlin/Native doesn’t use GC. What about Rust interop? Let’s see what guys think about this, but I have a feeling that you might need to develop it by yourself 🙂
s
Lol, that sounds like really bad compile times.
Kotlin -> Rust -> Rust Compilation
. Compiling to LLVM directly is a much better choice imo. Then Kotlin devs can make all the decisions they want about memory safety without being constrained by another platform.
👍 1