Matriona: Class Nesting with Parameterization in Squeak/Smalltalk
Class nesting and parameterization are well-established concepts in object-oriented programming languages. Class nesting is typically used to group classes that logically belong to the same category. Class parameterization is used to add variation points to classes. We present Matriona, a module system for Squeak, a Smalltalk dialect. It supports class nesting and parameterization and is based on a hierarchical name lookup mechanism. Matriona solves a range of modularity issues in Squeak. Instead of a flat class organization, it provides a hierarchical namespace, that avoids name clashes, allows for shorter local names, provides functionality for dependency management, and makes it possible to use multiple versions of a module at the same time. Furthermore, it provides a way to share behavior among classes and modules using mixins and class hierarchy inheritance (a form of inheritance that subclasses an entire class family), respectively. Finally, it allows modules to be externally configurable, which is a form of dependency management decoupling a module from the actual implementation of its dependencies. Matriona is implemented on top of Squeak by introducing a new keyword for run-time name lookups through a reflective mechanism, without modifying the underlying virtual machine. We evaluate Matriona with a series of small applications and will demonstrate how its features can benefit modularity when porting a simple application written in plain Squeak to Matriona.
Wed 16 Mar Times are displayed in time zone: Greenwich Mean Time : Belfast change
|14:00 - 14:30|
|14:30 - 15:00|
Matthias SpringerTokyo Institute of Technology, Fabio NiephausHasso Plattner Institute, University of Potsdam, Robert HirschfeldHPI, Hidehiko MasuharaTokyo Institute of TechnologyDOI