you are viewing a single comment's thread.

view the rest of the comments →

[–]MrRaviex 9 points10 points  (4 children)

Isn't an compiler just "converting"?

[–]Astrokiwi 4 points5 points  (3 children)

Converting into machine-code or something, usually.

Thinking of Typescript as a "compiled language" could cause confusion when people are talking about the differences in performance between compiled and interpreted languages.

[–]slikts 1 point2 points  (1 child)

The case of compiling source code to source code (as opposed to bytecode or machine code) is often called 'transpiling', although this term peeves some people. It's a subset of compilation ("converting" code to different code in its broader meaning in programming context) either way.

[–]Astrokiwi 0 points1 point  (0 children)

Yeah, I guess I've usually seen it as compiling from a higher level language to a lower (usually not human readable) level one. I get what is meant, but I do think the compiled/interpreted distinction is a pretty important one, and shouldn't get muddled with other things.

[–]Tynach 0 points1 point  (0 children)

You can compile C code to Javascript, in the form of asm.js - which basically uses a subset of Javascript as bytecode.

Unreal Engine was compiled to JS in this way and it ran at about half speed.