Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Dekompiling (Mobile Unplugged 2019)

Dekompiling (Mobile Unplugged 2019)

Kotlin has many features that are leaps and bounds ahead of Java. However, its primary target platform being the JVM, all of these features still need to compile to the same bytecode as Java does. This is a look at how a variety of interesting Kotlin features are compiled to bytecode, and what their Java equivalents would be. Even though Kotlin abstracts away much of the virtual machine and the original feature set of Java with its own features, it’s still important to know what your Kotlin code compiles to. Not only can this knowledge give you the power to optimize your code, but it will also help you avoid subtle bugs that would otherwise be near impossible to track down.

Márton Braun

November 06, 2019
Tweet

More Decks by Márton Braun

Other Decks in Programming

Transcript

  1. Related talks • Kotlin: Uncovered  Victoria Gonda, Chicago Roboto

    2017  https://vimeo.com/217569130 • Desugaring Kotlin features and their performance impact  Ionuț Baloșin, VoxxedDays Bucharest 2019  https://www.youtube.com/watch?v=D2a2vK-mfp4 • Kotlin Under the Hood  Chet Haase & Romain Guy, I/O ’19  https://www.youtube.com/watch?v=Ta5wBJsC39s