News for hackers. Stuff that matters.
Re:Shrinking a Kotlin Binary by 99.2% by dtech on Wednesday August 26, 2020 @04:48AM (#24280494)
At that point, why not use Rust or Go or D or whatever with significantly smaller binary sizes and (un-optimized) faster speeds.
Re:Shrinking a Kotlin Binary by 99.2% by Jake_Wharton on Wednesday August 26, 2020 @11:30AM (#24283340)
The goal here was to get the binary size to be small enough, not the smallest it could possibly be. The tool was written in 2 hours because I used a language I was proficient in. While I love me some Rust it would easily double if not triple the time it would take me to build the thing in the first place
Re:Shrinking a Kotlin Binary by 99.2% by tasubotadas on Wednesday August 26, 2020 @03:50PM (#24286500)
If that's the real Jake Wharton, I have to say I am a big fan of the tools/libs (and their quality) you wrote for Android. They were especially useful 7-5 years ago, when the "official" libs were pathetically crappy :).
Re:Shrinking a Kotlin Binary by 99.2% by tasubotadas on Wednesday August 26, 2020 @06:15AM (#24281025)
Not on Android
Re:Shrinking a Kotlin Binary by 99.2% by fnord123 on Wednesday August 26, 2020 @09:17AM (#24282164)
On Android you are stuck with Java8 so GP's point melts away.
Re:Shrinking a Kotlin Binary by 99.2% by ChrisRR on Wednesday August 26, 2020 @07:14AM (#24281342)
C or C++ then
Re:Shrinking a Kotlin Binary by 99.2% by FlyingSnake on Wednesday August 26, 2020 @07:25AM (#24281403)
Rust has first class support for Android.
Re:Shrinking a Kotlin Binary by 99.2% by eptcyka on Wednesday August 26, 2020 @07:30AM (#24281436)
Cool, so I can start a new service and bind activities to it from Rust without having to deal with a nasty JNI or an unstable ABI that changes under my feet?
Re:Shrinking a Kotlin Binary by 99.2% by untog on Wednesday August 26, 2020 @10:29AM (#24282799)
That's hardly the full story. Rust provides all the support it is able to provide for Android, yes. But it still relies on the NDK and has to sit behind a JNI layer. A "Kotlin vs Rust" comparison for Android is apples and oranges.
Re:Shrinking a Kotlin Binary by 99.2% by dgellow on Wednesday August 26, 2020 @08:06AM (#24281640)
What do you mean by "first class support" here? Some quick searches doesn't give me results that goes in this sense (nothing official from the rust and/or android projects).
Re:Shrinking a Kotlin Binary by 99.2% by vips7L on Wednesday August 26, 2020 @10:25AM (#24282738)
I love D but it's ecosystem just isn't there. If you need the jvm ecosystem you're probably better off with Graal.
Re:Shrinking a Kotlin Binary by 99.2% by saagarjha on Wednesday August 26, 2020 @05:49AM (#24280881)
Those compile to native.