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.
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.
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.
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.