Passer à la navigation principale Passer à la recherche Passer au contenu principal

Lifestate: Event-driven protocols and callback control flow

  • University of Colorado Boulder

Résultats de recherche: Le chapitre dans un livre, un rapport, une anthologie ou une collectionContribution à une conférenceRevue par des pairs

2 Citations (Scopus)

Résumé

Developing interactive applications (apps) against event-driven software frameworks such as Android is notoriously difficult. To create apps that behave as expected, developers must follow complex and often implicit asynchronous programming protocols. Such protocols intertwine the proper registering of callbacks to receive control from the framework with appropriate application-programming interface (API) calls that in turn affect the set of possible future callbacks. An app violates the protocol when, for example, it calls a particular API method in a state of the framework where such a call is invalid. What makes automated reasoning hard in this domain is largely what makes programming apps against such frameworks hard: the specification of the protocol is unclear, and the control flow is complex, asynchronous, and higher-order. In this paper, we tackle the problem of specifying and modeling event-driven application-programming protocols. In particular, we formalize a core meta-model that captures the dialogue between event-driven frameworks and application callbacks. Based on this meta-model, we define a language called lifestate that permits precise and formal descriptions of application-programming protocols and the callback control flow imposed by the event-driven framework. Lifestate unifies modeling what app callbacks can expect of the framework with specifying rules the app must respect when calling into the framework. In this way, we effectively combine lifecycle constraints and typestate rules. To evaluate the effectiveness of lifestate modeling, we provide a dynamic verification algorithm that takes as input a trace of execution of an app and a lifestate protocol specification to either produce a trace witnessing a protocol violation or a proof that no such trace is realizable.

langue originaleAnglais
titre33rd European Conference on Object-Oriented Programming, ECOOP 2019
rédacteurs en chefAlastair F. Donaldson
EditeurSchloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing
ISBN (Electronique)9783959771115
Les DOIs
étatPublié - 1 juil. 2019
Evénement33rd European Conference on Object-Oriented Programming, ECOOP 2019 - London, Royaume-Uni
Durée: 15 juil. 201919 juil. 2019

Série de publications

NomLeibniz International Proceedings in Informatics, LIPIcs
Volume134
ISSN (imprimé)1868-8969

Une conférence

Une conférence33rd European Conference on Object-Oriented Programming, ECOOP 2019
Pays/TerritoireRoyaume-Uni
La villeLondon
période15/07/1919/07/19

Empreinte digitale

Examiner les sujets de recherche de « Lifestate: Event-driven protocols and callback control flow ». Ensemble, ils forment une empreinte digitale unique.

Contient cette citation