• dohpaz42English
      arrow-up
      7
      arrow-down
      0
      ·
      25 days ago
      link
      fedilink

      Typescript is always compiled down to JavaScript, so it’s kinda the same thing, but with “nicer” clothes.

        • LeFantome
          arrow-up
          15
          arrow-down
          1
          ·
          25 days ago
          link
          fedilink

          Rust does not compile down to C. It generates LLVM bytecode the same as Clang does. They both produce native executables. You do not need a C compiler on your system to run Rust binaries.

          Typescript produces JavaScript. You need a JavaScript interpreter to execute the output from TypeScript.

          Not the same thing.

          • dohpaz42English
            arrow-up
            3
            arrow-down
            2
            ·
            25 days ago
            edit-2
            25 days ago
            link
            fedilink

            In before the pedants: clang is a c compiler, in that it compiles c code—but it also compiles other languages too. The distinction is that c, c++, rust, etc are compiled directly into byte code , whereas typescript is transpiled into another language (JavaScript) before it is executed. I’ll probably catch heat for this, but you can liken TypeScript to C++ because they both are supersets of another language.

            • JackbyDevEnglish
              arrow-up
              3
              arrow-down
              0
              ·
              25 days ago
              link
              fedilink

              C++ is actually not a superset of C, believe it or not.

              • dohpaz42English
                arrow-up
                2
                arrow-down
                0
                ·
                25 days ago
                link
                fedilink

                I’ll admit I’m no c/c++ aficionado, but after a little research I see what you mean. Originally, C++ was a superset of C, but C has since diverged to include things that are not in C++. So we are both correct.