Envision Circle

WhatsApp Image 2021-04-19 at 4.40.14 PM

Interpreted VS Compiled Languages

An interpreted language is a programming language that generally is interpreted without compiling a program into machine instructions which aren’t machine coded, interpreted language is mostly used for scripting languages like Python, Java, etc.… which directly executes the code by converting it into an intermediate code usually called the bytecode which makes it works in a higher speed. Since it’s an independent platform it can be run on different platforms and the code is portable.

The Interpreted language is not recognizable as a source code because of its intermediary set of instructions and it’s not architecture-specific as machine code either. This sort of intermediary form is known as bytecode in Java language.

Even though it can run on any platform it needs to have a pre-installed interpreter that converts the intermediary code into machine code at runtime. The bytecode runs through the Java Virtual Machine (JVM) through a required interpreter in any target environment.

JavaScript is one of the most popular interpreted languages. However, there’s a setback, in the process of JVM being fed to the CPU, is often given as a reason for the weak and slow performance of Java.

A compiled language is a programming language where the source code is translated into machine code. Some of the examples for compiled languages are Rust, Go, and C++. When applications are written in these languages the source code is converted into machine code which will only run in a single specified platform.

There are no middle man steps like intermediary, therefore programs compiled into machine code have an advantage in their speed. However, the disadvantage of compiled languages would be that the deployment artifact is architecture-specific. A C++ application that was made to run on a Windows-based, x86 architecture cannot be installed on an x64 Ubuntu machine.


Leave a Reply

Your email address will not be published.