interesting post, <https://www.scalawilliam.com/sc...
# kotlin-native
e
s
Something I don't understand: What's the advantage of using scala native to capture packets? Why not just use scala, and access the library? Does scala-native make using native libraries easier?
s
"A client needed a high performance online packet analyser for the "
So, performance
s
I don't think that performance is necessarily better in scala-native. Isn't it that performance typically gets a bit worse?
s
Jni isn't free, there's also the jit warmup one may not want
Plus perhaps it is nicer to write it without needing jni
s
low memory footprint, faster compilation (not scala-native case: "Total time: 37 s" to compile..) and startup time, enough to make the switch from JVM to native for that kind of thing