Matěj Kocourek
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Research Subjects
Matěj Kocourek has a total of 5 co-authors. Here are the top co-authors by number of shared publications:
- Filip Křikava
Czech Technical University, Prague, Czech Republic
3 shared publications - Jan Vitek
Czech Technical University, Prague, Czech Republic
3 shared publications - Pierre Donat-Bouillud
Czech Technical University, Prague, Czech Republic
2 shared publications - Filip Říha
Czech Technical University, Prague, Czech Republic
1 shared publication - Oliver Tušla
Czech Technical University, Prague, Czech Republic
1 shared publication
Latest Publications
- Open Access
- 2 October 2026
- Published by Association for Computing Machinery (ACM)
- p. 39-49
What Do R Benchmarks Measure
- 2 October 2026
- Published by Association for Computing Machinery (ACM)
- p. 39-49
Open AccessWhat Do R Benchmarks Measure
- Open Access
- 30 June 2026
- Published by Association for Computing Machinery (ACM)
- p. 49-60
Leveraging Copy-and-Patch JIT for Low-Overhead Dynamic Program Analysis
Copy-and-patch compilation is an approach for building baseline just-in-time compilers from AST or bytecode interpreters. It features very fast compilation times while generating good quality code. It has been used as a baseline tier for a number of languages including Lua, Python, and R. In this paper, we explore copy-and-patch as a foundation for dynamic program analysis, and implement four analyses on top of an existing copy-and-patch JIT for R: code instrumentation, code coverage, performance profiling, and native debugging. Two properties make copy-and-patch particularly well-suited for this purpose. First, since the code templates (stencils) are compiled by a standard C compiler, DWARF debug information is available as a by-product. This lets us reuse native tooling for profiling and debugging directly, with R and native code appearing in a single unified view. Second, analyses that operate at the bytecode level reduce to injecting stencils into the bytecode stream at JIT compile time, incurring minimal overhead. Our prototype evaluation yields instrumentation with no measurable overhead; code coverage that is faster than the existing solution while covering 17% more lines; and profiling that remains, on average, faster than GNU R.
- 30 June 2026
- Published by Association for Computing Machinery (ACM)
- p. 49-60
Open AccessLeveraging Copy-and-Patch JIT for Low-Overhead Dynamic Program Analysis
Copy-and-patch compilation is an approach for building baseline just-in-time compilers from AST or bytecode interpreters. It features very fast compilation times while generating good quality code. It has been used as a baseline tier for a number of languages including Lua, Python, and R. In this paper, we explore copy-and-patch as a foundation for dynamic program analysis, and implement four analyses on top of an existing copy-and-patch JIT for R: code instrumentation, code coverage, performance profiling, and native debugging. Two properties make copy-and-patch particularly well-suited for this purpose. First, since the code templates (stencils) are compiled by a standard C compiler, DWARF debug information is available as a by-product. This lets us reuse native tooling for profiling and debugging directly, with R and native code appearing in a single unified view. Second, analyses that operate at the bytecode level reduce to injecting stencils into the bytecode stream at JIT compile time, incurring minimal overhead. Our prototype evaluation yields instrumentation with no measurable overhead; code coverage that is faster than the existing solution while covering 17% more lines; and profiling that remains, on average, faster than GNU R.
- Open Access
- 9 October 2025
- Published by Association for Computing Machinery (ACM)
- p. 12-21
Copy-and-Patch Just-in-Time Compiler for R
- 9 October 2025
- Published by Association for Computing Machinery (ACM)
- p. 12-21
Open AccessCopy-and-Patch Just-in-Time Compiler for R