PhD Computer Science – Indiana University, IN, USA2015 – 2021
Dissertation: Self-Hosting Functional Programming Languages on Meta-Tracing JIT Compilers
Specialized in Programming Languages (PL) under the supervision of Sam Tobin‑Hochstadt, minored in Logic at the Department of Philosophy.
My work focuses on fast run‑times of dynamic languages. In the first phase of my research, I investigated the effects of using Racket byte‑code compiler as a frontend for Pycket--studying optimizations like heavy inlining and lambda lifting and their effects on Pycket's run-time.
When Racket became more portable and started adopting Chez Scheme as its primary run time, I pivoted to help that effort. We had a rudimentary Racket implementation, Pycket, a meta‑tracing JIT compiler built on RPython framework. It was designed to demonstrate that efficient sound gradual typing is possible. I helped make Racket more portable and adopt Chez Scheme (see publication). Mimicking Racket’s self‑hosting on Racket‑on‑Chez, I turned Pycket into a full implementation of Racket with a meta‑tracing JIT as its run‑time.
PyPy showed that fast prototyping of efficient run‑times for dynamic languages is possible through meta‑interpretation. My work takes this a step further to show that fast prototyping of efficient run‑times for self‑hosting dynamic languages is achievable.
Currently Pycket works as a runtime for full self-hosting Racket, including green threads via engines and full rktio via ffi--essentially no different than Racket on Chez.
My dissertation contains all the technical details on how this is achieved for the first time ever, along with a full performance investigation of self-hosting a production-grade language on a tracing JIT compiler.