Implementing Babylonian/S by Putting Examples Into Contexts

Autor: Robert Hirschfeld, Fabio Niephaus, Toni Mattis, Patrick Rein, Stefan Ramson, Jens Lincke
Rok vydání: 2019
Předmět:
Zdroj: Proceedings of the Workshop on Context-oriented Programming - COP '19.
DOI: 10.1145/3340671.3343358
Popis: Based on context-oriented programming (COP), we implemented source code instrumentation for example-based live programming in a modular way. These tools provide programmers with feedback on the dynamic program behavior by showing traced values of example invocations of a program. For that, we have to trace intermediate, expression-level runtime states during the execution of an example. As the instrumentation is only intended to improve tool support, the default behavior of the system must not be altered. In this paper, we demonstrate how context-oriented programming can be used to keep the execution of examples separate from the default behavior even in the presence of expression-level behavior variations. We illustrate our approach by implementing Babylonian Programming using ContextS2 in Squeak/Smalltalk. Based on the implementation, we compare our COP-based Smalltalk implementation to the module-rewriting-based implementation for JavaScript.
Databáze: OpenAIRE