Meta-tracing
Meta-tracing is a mostly automatic transformation that takes an interpreter as input and produces a tracing just-in-time compiler as output.[src] Since interpreters are usually easier to write than compilers, but run slower, this technique can make it easier to produce efficient implementations of programming languages.[src] The essence of the approach is based on the use of two levels of interpretation, in which a tracing interpreter is used to execute a second interpreter that interprets the target language for which a compiler is to be generated; the tracing interpreter then watches the second interpreter as it executes sequences of instructions generated from the input program.[src] This approach is used by the PyPy project to create their Python compiler, by meta-tracing a Python interpreter written in RPython, a restricted version of the Python programming language.[src] In the special case of RPython, the RPython language is itself interpreted by an interpreter written in the full Python language, symbolized by the PyPy project's logo of an ouroboros.[src] RPython has also been used to create an interpreter for the Scheme programming language.[src] Meta-tracing can be compared to the AST-guided partial evaluation approach for generating compilers, such as the Truffle/JS compiler for the JavaScript programming language.…[src]
Meta-tracing is a mostly automatic transformation that takes an interpreter as input and produces a tracing just-in-time compiler as output.[src] Since interpreters are usually easier to write than compilers, but run slower, this technique can make it easier to produce efficient implementations of programming languages.[src] The essence of the approach is based on the use of two levels of interpretation, in which a tracing interpreter is used to execute a second interpreter that interprets the target language for which a compiler is to be generated; the tracing interpreter then watches the second interpreter as it executes sequences of instructions generated from the input program.[src] This approach is used by the PyPy project to create their Python compiler, by meta-tracing a Python interpreter written in RPython, a restricted version of the Python programming language.[src] In the special case of RPython, the RPython language is itself interpreted by an interpreter written in the full Python language, symbolized by the PyPy project's logo of an ouroboros.[src] RPython has also been used to create an interpreter for the Scheme programming language.[src] Meta-tracing can be compared to the AST-guided partial evaluation approach for generating compilers, such as the Truffle/JS compiler for the JavaScript programming language.[src] Both meta-tracing and AST-guided partial evaluation can be viewed as examples of Futamura projection.[src]
15 sentences · 15 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Meta-tracing." encyclopegia.org, 2026, https://encyclopegia.org/wiki/meta-tracing. Accessed 06 December 2026.
Chicago
"Meta-tracing." encyclopegia.org. Accessed December 6, 2026. https://encyclopegia.org/wiki/meta-tracing.
APA
encyclopegia.org. (2026). Meta-tracing. Retrieved December 6, 2026, from https://encyclopegia.org/wiki/meta-tracing
Accessed December 6, 2026 · CC BY-SA 4.0 · citation page · JSON