MichalStrehovsky / sizegame

Compare binary sizes of canonical Hello World in 18 different languages
210 stars 17 forks source link

What's the canonical AOT for Kotlin on Windows #18

Closed MichalStrehovsky closed 1 year ago

MichalStrehovsky commented 1 year ago

Capturing a conversation from Twitter.

The benchmark currently uses Kotlin/Native.

Kotlin/Native has inherent compat issues with Java interop (it's no longer using Java - one of Kotlin's advertised features). There's also the issue that Kotlin/Native doesn't have a stable release and on top of that Windows is a Tier-3 supported target (meaning barely supported; x86 Windows was already dropped).

The question is whether a Kotlin developer who wants to AOT compile on Windows would reach to Kotlin/Native or Kotlin + GraalVM. If it's the latter, we need to measure what's representative.

Despite all of this I'm leaning to Kotlin/Native because that's the one from JetBrains, but if I were to build a pros/cons list, that would be the only pro.

MichalStrehovsky commented 1 year ago

I was pointed to RELEASE_NOTES.md in the Kotlin/Native release 1.9.0 that says:

Performance

DO NOT USE THIS PREVIEW RELEASE FOR ANY PERFORMANCE ANALYSIS

This beta version of Kotlin/Native technology is not yet tuned for benchmarking and competitive analysis of any kind.

I guess that settles it.