Just-in-Time Compilers
Historically, computer languages are translated in one of two different ways. A language might use a compiler to convert the program code directly to machine language. This compilation happens in a separate step before the code is executed and produces machine-language artifacts. When it’s time to run the code, the machine-language version is run, and the original source code isn’t used.
Ruby typically uses a different tool called an interpreter. An interpreter converts the source code to machine language at runtime, generally without creating an intermediate machine-language artifact. In an interpreted language, you typically use the original source code at runtime.
That said, the line between compilers and interpreters ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access