Skip to content
BENIBIX Learn

Interpreted Language

Development🔤 LanguagesLanguage Kinds

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

Think of it like

Think of it like a helper at a talk. Each line is put into French as it is said.

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.

Definition

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 code

console
$ python3 hello.py
Hello, world!
The program reads the file and runs it right away.

Common mistake

Thinking a language is always one or the other. Many, like Java and Python, mix the two.

Key takeaways

  1. 1
    Read as it runs. Another program walks through the code.
  2. 2
    No build step. Change a line and run again at once.
  3. 3
    Errors show late. A bad line fails only when it is reached.

Compare

Learn it properly