Bigger TypeScript projects should now become much more manageable in all code editors

  • aleq@lemmy.world
    link
    fedilink
    arrow-up
    28
    arrow-down
    5
    ·
    1 day ago

    I feel this should be obvious to anyone who knows anything about programming, because typescript is just a development tool not a runtime.

    • BatmanAoD@programming.dev
      link
      fedilink
      arrow-up
      8
      ·
      1 day ago

      TypeScript is a language, and traditionally languages are considered separate from their implementations. When I first saw the headline I hoped maybe it meant a non-JS runtime for compiled TS, and I’m well aware of the difference. Yes, that would be a much larger undertaking than porting the compiler to a new language, but the headline doesn’t indicate how large a project this is, and Microsoft certainly has the resources to write a new backend (even a native-code one) for the TS compiler.

    • Dark Arc@social.packetloss.gg
      link
      fedilink
      English
      arrow-up
      11
      ·
      1 day ago

      I… Don’t know about that. I mean, you could implement a browser or even a runtime library that used typescript (or a subset thereof) to directly write LLVM; it would take a lot of work, but typescript doesn’t have to just be for transpiling.

      • aleq@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        1 day ago

        But there is no such implementation AFAIK? How is it making Typescript faster if it’s a completely new implementation?

        But certainly, in theory it could become unshackled from JavaScript. Have there been any serious attempts to do so though?

        • Dark Arc@social.packetloss.gg
          link
          fedilink
          English
          arrow-up
          5
          ·
          edit-2
          1 day ago

          But there is no such implementation AFAIK? How is it making Typescript faster if it’s a completely new implementation?

          Well a new implementation running TypeScript could be 10x faster than the traditional e.g., NodeJS implementation or something; it’s not unusual for things to be compared in such a way.

          But certainly, in theory it could become unshackled from JavaScript. Have there been any serious attempts to do so though?

          No idea! :)