Abstract:
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 and allows for shorter local names. 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.
Reference:
Matriona: Class Nesting with Parameterization in Squeak/Smalltalk (Matthias Springer, Fabio Niephaus, Robert Hirschfeld and Hidehiko Masuhara), In Proceedings of International Conference on Modularity (Modularity'16), 2016.
Bibtex Entry:
@inproceedings{springer2016modularity,
location = {M{\'a}laga, Spain},
month = mar,
booktitle = {Proceedings of International Conference on Modularity (Modularity'16)},
year = 2016,
author = {Matthias Springer and Fabio Niephaus and Robert Hirschfeld and Hidehiko Masuhara},
title = {Matriona: Class Nesting with Parameterization in {Squeak/Smalltalk}},
pdf = {modularity2016.pdf},
annote = {Modularity Visions Track},
pages = {118--129},
doi = {10.1145/2889443.2889457},
abstract = {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 and allows for shorter local names. 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.}
}