https://kotlinlang.org logo
Title
m

Matthias Schuster

03/15/2018, 3:32 AM
Did Kotlin evaluate to compile into Rust, rather than LLVM?
o

olonho

03/15/2018, 5:45 AM
Not sure what would be the point, especially considering Objective C interop
v

Vlad Drahnea

03/15/2018, 9:04 AM
Does transcompiler have any advantages? And why in Rust? To me it seems like useless work.
2
t

tapchicoma

03/15/2018, 9:26 AM
but as I understand it is possible to create a kotlin native library that can be consumed in Rust?
m

Matthias Schuster

03/15/2018, 10:06 AM
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

Vlad Drahnea

03/15/2018, 10:26 AM
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

spierce7

03/15/2018, 3:52 PM
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