I’m curious for the generation of objective-C; is ...
# kotlin-native
i
I’m curious for the generation of objective-C; is the intermediate code available, or are the binaries somehow generated “directly”? I’m curious to have access to the objective-C on windows (using 1.4M1)
s
There isn’t any intermediate ObjC. K/N compiles to machine code using LLVM. It can generate a Mac or iOS compatible framework on a Mac. There’s a small runtime that does the bridging between ObjC and Kotlin on those platforms. You can find that code in the Github repo.
👍 1
i
The reason I’m asking is that the exported C has some weaknesses compared to objective-C : Significantly worse generic support (no surprise of course, it’s C), no clue about when an object is garbage collected (which I can tell indirectly in objective-C)… So I was curious about whether there was a way to use the objective-C under windows.
s
I don’t believe that is possible at this time. The ObjC targets all link to the darwin platform libraries which would have to be available on Windows.