Skip to content
BENIBIX Learn

Compiled vs Interpreted Language

A compiled language is built into a program before it runs. An interpreted one is read and run line by line as it goes.

Development🔤 Languages

Compiled Language

A language turned into machine code first, then run. A build step, then a fast program.

A compiled language is turned into machine code before it runs. A tool called a compiler reads all the source code and builds a file the computer can run directly. C, C++, Rust and Go work this way. The build step takes time, but the result usually runs fast. The compiler also catches many mistakes before the program ever starts.

Example
Jack builds his Go program once into one file. He copies that file to a server, and it runs there without Go installed.
Why it matters
They are often fast and easy to ship as one file. Many bugs show up before users see them.
Full entry
Development🔤 Languages

Interpreted Language

A language that another program reads and runs line by line. There is no build step.

An interpreted language is run line by line by another program. That program is called an interpreter. There is no separate build step, so you can change a line and run it again at once. Python, JavaScript, Ruby and PHP are usually run this way. It is quick to try ideas but often slower to run. Many errors only show up when that line is reached.

Example
Lucy changes one line of her Python script and runs it again within a second. There is nothing to rebuild.
Why it matters
Quick changes make interpreted languages good for learning, scripts and trying ideas fast.
Full entry

In one line

Compiled Language
A language turned into machine code first, then run. A build step, then a fast program.
Interpreted Language
A language that another program reads and runs line by line. There is no build step.