Publication:
Context-Oriented Programming

cris.virtualsource.author-orcide7e37c38-3cec-4a31-83a2-5be23f6f0f2a
datacite.rightsopen.access
dc.contributor.authorHirschfeld, Robert
dc.contributor.authorCostanza, Pascal
dc.contributor.authorNierstrasz, Oscar
dc.date.accessioned2025-01-08T19:33:22Z
dc.date.available2025-01-08T19:33:22Z
dc.date.issued2008
dc.description.abstractContext-dependent behavior is becoming increasingly important for a wide range of application domains, from pervasive computing to common business applications. Unfortunately, mainstream programming languages do not provide mechanisms that enable software entities to adapt their behavior dynamically to the current execution context. This leads developers to adopt convoluted designs to achieve the necessary runtime flexibility. We propose a new programming technique called Context-oriented Programming (COP) which addresses this problem. COP treats context explicitly, and provides mechanisms to dynamically adapt behavior in reaction to changes in context, even after system deployment at runtime. In this paper we lay the foundations of COP, show how dynamic layer activation enables multi-dimensional dispatch, illustrate the application of COP by examples in several language extensions, and demonstrate that COP is largely independent of other commitments to programming style.
dc.description.numberOfPages27
dc.description.sponsorshipInstitut für Informatik und angewandte Mathematik (IAM)
dc.identifier.doi10.7892/boris.37163
dc.identifier.isi000261730200009
dc.identifier.publisherDOI10.5381/jot.2008.7.3.a4
dc.identifier.urihttps://boris-portal.unibe.ch/handle/20.500.12422/196640
dc.language.isoen
dc.publisherAITO
dc.publisher.placeZürich
dc.relation.ispartofJournal of Object Technology
dc.relation.issn1660-1769
dc.relation.organizationDCD5A442C2AFE17DE0405C82790C4DE2
dc.relation.organizationDCD5A442C2AFE17DE0405C82790C4DE2
dc.titleContext-Oriented Programming
dc.typearticle
dspace.entity.typePublication
dspace.file.typetext
oaire.citation.endPage151
oaire.citation.issue3
oaire.citation.startPage125
oaire.citation.volume7
oairecerif.author.affiliationInstitut für Informatik und angewandte Mathematik (IAM)
oairecerif.identifier.urlhttp://www.jot.fm/issues/issue_2008_03/article4/index.html
unibe.contributor.rolecreator
unibe.contributor.rolecreator
unibe.contributor.rolecreator
unibe.date.licenseChanged2017-10-19 11:26:15
unibe.description.ispublishedpub
unibe.eprints.legacyId37163
unibe.journal.abbrevTitleJournal of Object Technology
unibe.refereedtrue
unibe.subtype.articlejournal

Files

Original bundle
Now showing 1 - 1 of 1
Name:
article4.pdf
Size:
750.37 KB
Format:
Adobe Portable Document Format
File Type:
text
License:
https://creativecommons.org/licenses/by/4.0
Content:
published

Collections