why can't you compile an interpreted language?

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/AskProgramming

Our great sponsors
  • SonarQube - Static code analysis for 29 languages.
  • Scout APM - Less time debugging, more time building
  • SaaSHub - Software Alternatives and Reviews
  • Numba

    NumPy aware dynamic Python compiler using LLVM

  • picoc

    A very small C interpreter

    You can. People have written an interpreter for C, and you could write a compiler for Python.

  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

  • Cython

    The most widely used Python to C compiler

    You absolutely can. For example, here's a compiler for Python. Note, though, that this compiler extends the Python language with static types to enable more efficient compilation - if you wanted to compile standard Python code, the compiler would either have to generate code to cover every possible case, or statically determine what types a variable may have (a problem which is undecidable in general).

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts