Explain about translation and compilation

Languages are divided into interpreted and compiled languages. And what is the difference? Are the commands still translated into bit instructions? Is it even necessary to dig so deep for a web developer?

Author: Helen, 2020-12-29

1 answers

In compiled languages (C, C++, Go, etc) the code is pre-checked for errors and then translated into the processor instructions and in the future they do not need additional software at startup.

In interpreted languages (JavaScript, Python, Lisp, etc) uses middleware that reads code directly from a file and executes it, without translating it into processor instructions. Without the interpreter, it is impossible to run the program and because of parsing code on the fly, they work slower (also a relative concept, for most tasks there is enough speed).

There are languages with intermediate compilation to bytecode (Java, C#, CPython, etc), which are executed in the same way using middleware, but may not be inferior in speed to compiled languages. In this case, the code is not compiled directly into the processor instructions, but into an intermediate bytecode.

When learning the language and programming in general, you will encounter these in terms, but it doesn't make much sense to dig in advance, except for general development and presentation.

Broadcast - translation from one language to another language, slightly from a different topic.

 5
Author: Alex Krass, 2020-12-29 21:49:39