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

Forfattere

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

Nøgleord:

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

Publiceret

7 maj 2015

Detaljer om denne monografi

ISBN-13 (15)

978-87-7507-314-6

Date of first publication (11)

21-04-2015