کد مقاله کد نشریه سال انتشار مقاله انگلیسی نسخه تمام متن
433479 1441719 2011 16 صفحه PDF دانلود رایگان
عنوان انگلیسی مقاله ISI
An open implementation for context-oriented layer composition in ContextJS
موضوعات مرتبط
مهندسی و علوم پایه مهندسی کامپیوتر نظریه محاسباتی و ریاضیات
پیش نمایش صفحه اول مقاله
An open implementation for context-oriented layer composition in ContextJS
چکیده انگلیسی

Context-oriented programming (COP) provides dedicated support for defining and composing variations to a basic program behavior. A variation, which is defined within a layer, can be de-/activated for the dynamic extent of a code block. While this mechanism allows for control flow-specific scoping, expressing behavior adaptations can demand alternative scopes. For instance, adaptations can depend on dynamic object structure rather than control flow. We present scenarios for behavior adaptation and identify the need for new scoping mechanisms. The increasing number of scoping mechanisms calls for new language abstractions representing them. We suggest to open the implementation of scoping mechanisms so that developers can extend the COP language core according to their specific needs. Our open implementation moves layer composition into objects to be affected and with that closer to the method dispatch to be changed. We discuss the implementation of established COP scoping mechanisms using our approach and present new scoping mechanisms developed for our enhancements to Lively Kernel.

Research highlights
► Open implementation of layer composition for experimental COP language design.
► Generalization of control flow-specific layer activation.
► COP use cases for Lively Kernel/Javascript application scenarios.

ناشر
Database: Elsevier - ScienceDirect (ساینس دایرکت)
Journal: Science of Computer Programming - Volume 76, Issue 12, 1 December 2011, Pages 1194–1209
نویسندگان
, , , ,