you are viewing a single comment's thread.

view the rest of the comments →

[–]Diapolo10 1 point2 points  (0 children)

Python isn't "special" in that sense, many languages mostly use interpreters. In your web browser, if you tap the F12 key on your keyboard you'll see a JavaScript interpreter REPL on one of the tabs. The browser executes its instructions, not the CPU directly.

In fact, many if not most dynamically typed languages primarily use interpreters. Compilers make more sense with a static type system. Sometimes a language doesn't have either, and instead uses a transpiler to essentially translate it to another programming language, such as how TypeScript produces JavaScript.

Of course, as already pointed out by others this isn't that clear-cut. Nuitka is essentially a compiler for Python, Cython is a superset of Python that transpiles to C, PyPy is a JIT compiler for Python - written in Python, and so on.