3 ms·
I've been looking a lot at Scala and kotlin recently. Other differences aside, Kotlin has an 800kb runtime compared to Scala 2.11's 11mb runtime. That's quite
by talloaktrees 12y ago
I've been looking a lot at Scala and kotlin recently. Other differences aside, Kotlin has an 800kb runtime compared to Scala 2.11's 11mb runtime. That's quite a difference
- frowaway001 12y agoHow do you come up with 11 MB? Even the whole library jar file which is much more than just the runtime is only 5.5 MB. But even then it doesn't matter anyway. Android apps are ProGuarded before deployment (regardless of the language used) and the overhead in Sclaa's case is a few dozen kBs.
- lvillani 12y agoThe less code has to be converted to the DEX format, the better. Sure, build tools have improved somewhat (incremental DEX compilation comes to mind) but, still, every time I pull in some rather big (~1 MB) .jar file in my project I get noticeably longer build times for non-production builds. With a 11 MB dependency, even production builds take considerably more time to complete and that gets in the way when you want to test the app on a production setting and you have to wade through a lengthy build process each time you fix a bug.
- frowaway001 12y agoThere. Is. No. 11. MB. dependency. And even if there was, it wouldn't matter because it would be done once and then deployed directly on the development device. Really, can we just stop making stuff up?
- lmm 12y agoYour final app with Scala may well be smaller than with Kotlin - Scala makes very high level abstractions possible, and while the standard library is large, anything you don't use won't be included in your app. Kotlin always struck me as a bit halfhearted - if I'm going to go to the effort of learning a new language, I want one that gives me a real power boost, not just a small incremental improvement.