Design Patterns in Eos

By: Hridesh Rajan

PDF Download Download Paper

Abstract

In earlier work, we showed that the AspectJ notions of aspect and class can be unified in a new module construct that we called the classpect, and that this new model is simpler and able to accommodate a broader set of requirements for modular solutions to complex integration problems. We embodied our unified model in the Eos language design. The main contribution of this paper is a case study, which considers the implementation of the Gang-of-Four (GOF) design patterns in Eos to analyze the effect of new programming language constructs on these implementations. We also compare these implementations with the AspectJ’s implementation. Our result shows that the Eos implementation showed improvement in 7 out of 23 design patterns, and are no worse in case of other 16 patterns. These improvements were mainly manifested in being able to realize the intent of the design patterns more clearly. The design structures realized in the Eos implementation provide supporting evidence for the potential benefits of the unified model.

Other Info

See a revised version of this paper: TR15-07

ACM Reference

Rajan, H. 2007. Design Pattern Implementations in Eos. ACM.

BibTeX Reference

@techreport{rajan2007design-a,
   author = {Rajan, Hridesh},
   title = {Design Pattern Implementations in Eos},
   booktitle = {Proceedings of the 14th Conference on Pattern Languages of Programs},
   series = {PLOP '07},
   year = {2007},
   isbn = {978-1-60558-411-9},
   location = {Monticello, Illinois, USA},
   pages = {9:1--9:11},
   articleno = {9},
   numpages = {11},
   url = {http://doi.acm.org/10.1145/1772070.1772081},
   doi = {10.1145/1772070.1772081},
   acmid = {1772081},
   publisher = {ACM},
   address = {New York, NY, USA},
   keywords = {Eos, binding, classpect, design patterns, unified aspect language model},
   abstract = {
     In earlier work, we showed that the AspectJ notions of aspect and class can be
     unified in a new module construct that we called the classpect, and that this
     new model is simpler and able to accommodate a broader set of requirements for
     modular solutions to complex integration problems. We embodied our unified
     model in the Eos language design. The main contribution of this paper is a
     case study, which considers the implementation of the Gang-of-Four (GOF)
     design patterns in Eos to analyze the effect of new programming language
     constructs on these implementations. We also compare these implementations
     with the AspectJ's implementation. Our result shows that the Eos
     implementation showed improvement in 7 out of 23 design patterns, and are no
     worse in case of other 16 patterns. These improvements were mainly manifested
     in being able to realize the intent of the design patterns more clearly. The
     design structures realized in the Eos implementation provide supporting
     evidence for the potential benefits of the unified model.
   }
 }