Fun Netflix Performance Story

Поделиться
HTML-код
  • Опубликовано: 21 окт 2024
  • All Clips are from the live stream of ThePrimeagen
    / theprimeagen
    Wanna Become a Backend Dev & Support me at the SAME TIME???
    boot.dev/prime...

Комментарии • 47

  • @elbaraaabuaraki327
    @elbaraaabuaraki327 5 месяцев назад +42

    that's the Japanese character ツ (pronounced tsu) it took me by surprise when i first saw it. the name is the プライウマジイン

    • @atxorsatti
      @atxorsatti 5 месяцев назад +3

      Priuma Majin
      He should change

    • @elbaraaabuaraki327
      @elbaraaabuaraki327 5 месяцев назад +3

      @@atxorsatti Right! it's catchy

    • @DubiousNachos
      @DubiousNachos 5 месяцев назад +1

      Wouldn't it be closer to something like プライマジェン? (Maybe プライーマジェン if you want to carry over the first-syllable stress that he puts on the name)

    • @elbaraaabuaraki327
      @elbaraaabuaraki327 5 месяцев назад

      @@DubiousNachos I think so, Am still N5 level Japanese speaker

    • @LexicalNoScope
      @LexicalNoScope 5 месяцев назад

      Prima majin buu

  • @Oler-yx7xj
    @Oler-yx7xj 5 месяцев назад +34

    The memory went up by ツ times

  • @Leonhart_93
    @Leonhart_93 5 месяцев назад +10

    That's what happens when you try to get fancy for absolutely no reason at all.

  • @IOSALive
    @IOSALive 5 месяцев назад +3

    ThePrimeagenClips, This is perfect! I subscribed right away!

  • @chigozie123
    @chigozie123 4 месяца назад

    I had no idea he quit Netflix. However, I kinda suspected he wasn't working as much given the amount of videos he was pumping out.

  • @drooplug
    @drooplug 5 месяцев назад +10

    Why use a non ASCII character to begin with?

    • @proosee
      @proosee 5 месяцев назад

      to be cool JS dev

    • @RaZziaN1
      @RaZziaN1 5 месяцев назад +1

      JS developers like problems, so they create problems from trivial things

  • @blenderpanzi
    @blenderpanzi 5 месяцев назад

    I thought the reason why JavaScript uses UTF-16 is because it predates UTF-8, but then I looked it up and it doesn't. Weird.

  • @BreezeLock
    @BreezeLock 5 месяцев назад

    Is this an extension of the main Prime accounts, or is it a community led abstraction?

  • @LtdJorge
    @LtdJorge 5 месяцев назад

    Is the performance story about the change from indexing to property access or the thing about multibyte character?

  • @Kane0123
    @Kane0123 5 месяцев назад

    Did bro managed to get screen tearing to occur in the final frame?

  • @nezu_cc
    @nezu_cc 5 месяцев назад

    ツのgen sounds cool but unfortunately it's the wrong order and genのツ doesn't sound as good

  • @MrKKPA
    @MrKKPA 5 месяцев назад +1

    I did not understand :(. I'm a backend dev, can anyone please help me with this?

    • @ChrisCox-wv7oo
      @ChrisCox-wv7oo 5 месяцев назад +7

      They used a character that could not be represented by a single byte. It requires two bytes.
      There was an optimization made, where if all characters could be represented by one byte the source code stayed in UTF-8 encoding.
      When the new character was introduced, this forced the encoding to go from UTF-8 to UTF 16.
      That is twice the memory for each character represented.
      One bite is 8 bits. Two bites is 16 bits. This is the difference between UTF-8, and UTF 16 (with regards to memory required per character represented)
      After realizing that the size of the source code doubled because of this single character being included in the source, they remove that character and replaced it with characters that could be represented in UTF-8.
      Did that help?

    • @tablettablete186
      @tablettablete186 5 месяцев назад

      ​@@ChrisCox-wv7ooMy hero!

    • @anj000
      @anj000 5 месяцев назад +2

      @@ChrisCox-wv7oo why use this character in the first place though?

    • @Sam54345
      @Sam54345 5 месяцев назад

      @@anj000 To make it more difficult for people to access and mess with the client side cache. Basically obfuscation.

    • @RaZziaN1
      @RaZziaN1 5 месяцев назад +2

      @@Sam54345 wtf it has nothing to do with obfusscation, obfusscated code with this character or different won't be making any difference

  • @OchiiDinUmbraa
    @OchiiDinUmbraa 5 месяцев назад

    UTF-8 characters in source code? What is this sorcery?

    • @leonardoraele
      @leonardoraele 5 месяцев назад

      I put an emoji in a PHP comment once, and the interpreter would refuse to run the script 🥲

  • @worgenzwithm14z
    @worgenzwithm14z 5 месяцев назад

    案外だ

  • @TianYuanEX
    @TianYuanEX 5 месяцев назад +25

    How is that smile emoji even valid as a lexical token??

    • @rocstar3000
      @rocstar3000 5 месяцев назад +9

      Not a smile emoji tho

    • @FinlayDaG33k
      @FinlayDaG33k 5 месяцев назад +17

      It's part of Japanese Katakana... But to us western folks, it looks like a smile emoji.

    • @TianYuanEX
      @TianYuanEX 5 месяцев назад +4

      @@FinlayDaG33k Ah okay, thanks for info! Though still, how is that a valid lexical token?

    • @nemis123
      @nemis123 5 месяцев назад

      Its utf, you can even use emoji in js src code.

    • @Acorn_Anomaly
      @Acorn_Anomaly 5 месяцев назад

      @@TianYuanEX Because it's just a regular text character. Javascript files are Unicode documents. Just because it's not an English/Latin letter doesn't mean it's not a regular Unicode text character.
      (According to the MDN docs, any character in the ID_Start Unicode character set is allowed to start an identifier, and any character in ID_Continue set is allowed to be in an identifier after the first character.)