Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

MacoCaml - Staging Composable and Compilable Macros

ACM SIGPLAN via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore a 32-minute video presentation from ICFP 2023 introducing MacoCaml, a novel design and implementation of compile-time code generation for OCaml. Delve into the unique combination of macros with phase separation and quotation-based staging, where macros are treated as compile-time bindings and expressions cross evaluation phases using staging annotations. Learn about the theoretical foundation of MacoCaml through the formalization of a typed source calculus called maco, which supports interleaving typing and compile-time code generation, references with explicit compile-time heaps, and modules. Discover the crucial properties studied, including soundness and phase distinction. Gain insights into the implementation of MacoCaml in the OCaml compiler and the successful porting of two substantial existing libraries. Access supplementary materials, including artifacts available for reuse, through the provided links to enhance your understanding of this innovative approach to compile-time code generation in OCaml.

Syllabus

[ICFP'23] MacoCaml: Staging Composable and Compilable Macros

Taught by

ACM SIGPLAN

Reviews

Start your review of MacoCaml - Staging Composable and Compilable Macros

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.