Kotlin under the hood: Understand the internals (Google I/O'19)

Поділитися
Вставка
  • Опубліковано 6 вер 2024

КОМЕНТАРІ • 27

  • @codinginflow
    @codinginflow 5 років тому +52

    Chet Haase is my favorite comedian

  • @bartekpacia
    @bartekpacia 5 років тому +29

    These two guys always give the best talks :D

  • @droidcasts7350
    @droidcasts7350 3 роки тому +5

    Romain and Chet presentations are the best, always fun and informative

  • @dimanemets6753
    @dimanemets6753 5 років тому +7

    5 years Android dev, learned at least 5 new things !

  • @bug_muzzy
    @bug_muzzy 5 років тому +7

    Awesome duo. Always fun, always concise and informative. Love presentations by these guys.

  • @porus10
    @porus10 4 роки тому +4

    Such a piece of crucial information. It's so hard to believe the kind of mess Kotlin creates underneath for providing those extra features to the end developer. Every developer should beforehand dig in a little beneath this syntactical sugar provided by modern languages. And yes, Chet and Romain, always a delight to watch.

  • @SaravanaThiyagarajs
    @SaravanaThiyagarajs 5 років тому +8

    I am hoping someone from Jetbrains will comment on what's happening at 22:05

    • @no_fb
      @no_fb 5 років тому

      The guy said it himself, it's still experimental. Obviously the code doesn't yet check for wrap-around values and so on. It's just a very bad presentation overall.

  • @Condog64
    @Condog64 2 роки тому

    This video is incredibly insightful. I will never forget about Int? needing to allocate every time a new value is assigned.
    On the other hand, this video also feels like many passive aggressive remarks from Google to Jet Brains around the Kotlin compiler's inconsistencies and oddities. The lambda example actually seems pretty scary.

  • @shyiamnot212
    @shyiamnot212 5 років тому +3

    I don't understand the part of interlude at 10:41,It will help a lot if anyone could explain it for me.Event a little hint would be help.

    • @user-lc7ku6je1o
      @user-lc7ku6je1o 4 роки тому +4

      In Kotlin, we do 10001 comparasions of an integer to a variable of type Int?.
      As it's been told, Kotlin's Int? is java.lang.Integer under the hood.
      So, on each iteration we compare a primitive type int to an object of type Integer, and the only way to do this is to wrap the int into a corresponding Integer, like:
      Integer iAsInteger = new Integer(i);
      So, we expect 10001 object allocations. But Kotlin optimizes this a little bit by caching instances Integer(0), Integer(1), ..., Integer(127). Unless i gets greater than 127, Kotlin uses the cached java.lang.Integer's instead of allocating new ones.

  • @edgeeffect
    @edgeeffect 2 роки тому

    This may well be a very good talk, but Google's ridiculous "rockstar" staging is very distracting.

  • @kalidsherefuddin
    @kalidsherefuddin 9 місяців тому

    Thanks

  • @AkshayDave
    @AkshayDave 5 років тому +1

    Did javap -c "MyClass" work for anyone? When I go to AS terminal, and go to specific folder, and type that command it said class not found

    • @VivekYadav-ds8oz
      @VivekYadav-ds8oz 4 роки тому +1

      .. you changed the MyClass to the name of your compiled class, right?

    • @AkshayDave
      @AkshayDave 4 роки тому

      ​@@VivekYadav-ds8oz​I would assumed so ;) It has been almost a year since this one. I will give it another go. "MyClass" was just a stand in.

  • @stayathomedev3839
    @stayathomedev3839 5 років тому +3

    I thought the other speaker's name was Romanian Guy

  • @shubham0952
    @shubham0952 5 років тому +3

    22:05 nice roast

  • @donwald3436
    @donwald3436 8 днів тому

    If he steals your slide just steal his lol.

  • @AshutoshTiwari4
    @AshutoshTiwari4 5 років тому +2

    Thumbs Up (Y)

  • @no_fb
    @no_fb 5 років тому +3

    Google guys, if you stumble on a few peculiarities in a language under development, talk directly with your partner instead of showcasing them in public and on UA-cam. It's lame and unprofessional. After all, Kotlin is your way out of this Dalvik mess of yours.

  • @jorgesegundorojas6119
    @jorgesegundorojas6119 5 років тому +3

    I'm so angry, why should I keep developing Android applications if at any time and without notice YOU block manufacturers?... even more, why users (and clients) should keep buying Android devices if at any time YOU can make'em "WASTE" their money with this S T U P I D deciscions?.

    • @no_fb
      @no_fb 5 років тому +10

      wrong forum, mate

  • @aitortilla5128
    @aitortilla5128 5 років тому +3

    Not interested at all in Kotlin. I'll stick to Java.

  • @hdkloh6857
    @hdkloh6857 5 років тому +2

    Good bye Kotlin... Welcome Flutter...