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

Authors

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. 

Downloads

Published

May 7, 2015

Series

Details about this monograph

ISBN-13 (15)

978-87-7507-314-6

Date of first publication (11)

2015-04-21