Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

There is no such thing as a "compiled language" or "interpreted language"

"There is no such thing as a "compiled language" or "interpreted language". Whether a language implementer chooses to write a compiler, an interpreter or anything in between is an implementation detail and has nothing to do with the language. "

Is the above statement is true ?

like image 458
Tony Avatar asked Aug 09 '10 13:08

Tony


People also ask

Can a language be compiled and interpreted?

Thus every language can technically be compiled. And, since any compiled program can be written in the form "interpret the act of compiling the program, then interpret the result," every program can be interpreted as well.

Are compiled language or interpreted language?

A compiled language is a programming language whose implementations are typically compilers and not interpreters. An interpreted language is a programming language whose implementations execute instructions directly and freely, without previously compiling a program into machine-language instructions.

Is interpreted language not a compiled?

Interpreted languages differ from compiled languages; for example, interpreted code, such as shell code, is compiled on the fly each time the program is run. Bytecode, such as Java bytecode, is also interpreted code.

Should a compiled or an interpreted language be used and why?

Compiled code can run faster, but, unlike interpreted code in Java, it is not platform agnostic. The code written in a compiled language is converted directly into machine code that is specific to the targeted runtime architecture. Interpreted code is compiled into an intermediary that runs on any architecture.


1 Answers

Yes, it is true in the strictest interpretation. You can find both a C++ interpreter and a Javascript compiler, for example. However, you will find that some types of languages (statically typed, for example) lend themselves well to native code compilation. Other languages (dynamically typed, for example) are commonly implemented using bytecode compilation combined with a virtual machine execution environment.

like image 118
Greg Hewgill Avatar answered Nov 03 '22 17:11

Greg Hewgill