interpreter
A program that reads source code and carries it out at run time, instead of translating it into machine code in advance.
In more detail
Python and shell scripts run through an interpreter, so the machine running them must have the right interpreter version installed. Compiled languages translate ahead of time instead, so the target needs only the resulting program.
Examples
Go has no interpreter: the target machine needs only the binaryV8 runs code first in its Ignition interpreter, then compiles the hot parts.python3 hello.pyRelated terms
- compiler — A program that translates source code a person wrote into a form a machine or runtime can execute, checking it for errors on the way.
- language runtime — The software a programming language needs installed to run programs, such as the Python interpreter or Node.js.
- Python — A popular general-purpose programming language known for readable code and a large standard library.
- Ignition — V8's interpreter, which turns the abstract syntax tree into bytecode and runs it so code starts quickly.
- just-in-time compilation — Compiling code into machine code while the program is already running, focusing on the parts that run most often.
- CPython — The standard implementation of Python, written in the C language, which is what you get from python.org.
- Python shell — The interactive mode of the interpreter, where you type one statement at the >>> prompt and see the result straight away.
- injection — A bug where untrusted data reaches an interpreter and part of it is read as code instead of as a value.
- trust boundary — A line in a system where data passes between parts that trust each other differently, such as from the internet into your service or from your service to a vendor.
Taught in
- What Go Is and Why It Matters — Concurrent Systems Programming with Go
- Your First Program and go run — Concurrent Systems Programming with Go
- V8 Engine & JIT Pipeline: Bytecode & Turbofan — Node.js Internals & Backend Services
- What A Program Really Is — Hands-on Python: Complete Video Course & Book
- How Python Runs Your Code — Hands-on Python: Complete Video Course & Book
- What Python Is, And Where It Came From — Hands-on Python: Complete Video Course & Book
- First Run, And Fixing A Broken Install — Hands-on Python: Complete Video Course & Book
- Idle And The Python Shell — Hands-on Python: Complete Video Course & Book
- The Idle Editor And Running Programs — Hands-on Python: Complete Video Course & Book
- Injection In All Its Forms — Application Security & Threat Modeling for Engineers
- SQL Injection: The Exploit — Application Security & Threat Modeling for Engineers
- SQL Injection: The Fix — Application Security & Threat Modeling for Engineers
- Cross-Site Scripting — Application Security & Threat Modeling for Engineers
- Forty Minutes, Thirty Items: How PCEP Is Run — PCEP Certified Entry-Level Python Programmer (PCEP-30-02) Exam Prep
- Interpreter, Compiler, And What Counts As Syntax — PCEP Certified Entry-Level Python Programmer (PCEP-30-02) Exam Prep
- Fundamentals Sprint — PCEP Certified Entry-Level Python Programmer (PCEP-30-02) Exam Prep
- Sixty Five Minutes, Forty Items: How PCAP Is Run — PCAP Certified Associate in Python Programming (PCAP-31-03) Exam Prep
- math, random And platform — PCAP Certified Associate in Python Programming (PCAP-31-03) Exam Prep
- Your Own Modules And Packages — PCAP Certified Associate in Python Programming (PCAP-31-03) Exam Prep
- Modules Sprint — PCAP Certified Associate in Python Programming (PCAP-31-03) Exam Prep
- Mock, Review And Exam Day — PCAP Certified Associate in Python Programming (PCAP-31-03) Exam Prep
References
- Python tutorial: using the Python interpreter
- V8: Ignition
- Python glossary: interpreted
- OWASP Injection Prevention Cheat Sheet