• melfie@lemy.lol
      link
      fedilink
      arrow-up
      1
      ·
      1 day ago

      The JavaScript code is compiled to native and is heavily optimized, as opposed to being interpreted.

      • Fair Fairy@thelemmy.club
        link
        fedilink
        arrow-up
        1
        ·
        1 day ago

        Compiled to native what?
        Typescript is only used at development time it won’t do shit in the browser for you.
        Where did u see any performance improvements? TS doesn’t do that

        • melfie@lemy.lol
          link
          fedilink
          arrow-up
          1
          ·
          1 day ago

          TS transpiles to JS, and then when that JS is executed in Deno, Node.js, a Blink browser like Chrome, etc., it gets just in time compiled to native machine code instead of getting interpreted. Hope that helps.