Has anyone tried developing in :kotlin: without st...
# random
m
Has anyone tried developing in K without stdlib? 🙂
j
mg6maciej: that sounds like an interesting experiment!
m
It's definitely doable. I just put a very small lib on maven central that is written in Kotlin, but doesn't use anything from stdlib.
j
mg6maciej: it would be nice to have the Kotlin compiler remove methods from stdlib that are not in use
m
Compiler doesn't have to do with it.
Unless you create fat jar.
In which case I guess it's still not a compiler that creates it.
j
Not sure how practical that would be considering reflection might not work correctly
Mmm, a fat jar generator that does tree shaking, that sounds like an interesting project
m
Have you heard about something like Proguard?
It can do that.
j
Never used it, will definitely check it out!
m
There are probably many shrinkers out there.