A Case Study in Modular Programming: Using AspectJ and OCaml in an Undergraduate Compiler Project

Contributors

Aske Simon Christensen
Jan Midtgaard, Dept. of Computer Science, Aarhus University
Johnni Winther
Ian Zerny

Keywords

Modularity, Compilers, AspectJ, OCaml

Synopsis

We report our experience in using two different languages to build the same software project. Specifically, we have converted an entire undergraduate compiler course from using AspectJ, an aspect-oriented language, to using OCaml, a functional language. The course has evolved over a period of eight years with, on average, 60 students completing it every year. In this article, we analyze our usage of the two programming languages and we compare and contrast the two software projects on a number of parameters, including how they enable students to write and test individual compiler phases in a modular way. 

How to Cite

Christensen, A. S., Midtgaard, J., Winther, J., & Zerny, I. (2015). A Case Study in Modular Programming: Using AspectJ and OCaml in an Undergraduate Compiler Project. Aarhus University. https://openbooks.kb.dk/au/catalog/book/6