{"title":"A promising approach for debugging remote promises","authors":"Max Leske, Andrei Chis, Oscar Nierstrasz","doi":"10.1145/2991041.2991059","DOIUrl":"https://doi.org/10.1145/2991041.2991059","url":null,"abstract":"Promises are synchronization constructs that hide the complexity of process synchronisation from the developer by providing a placeholder for the result of a potentially incomplete computation performed in a concurrent process. Promises evaluated by remote processes pose challenges for debugging when the remote computation raises an exception. Current debuggers are either unaware that there is a problem in the remote computation or give developers access only to the context of the remote process. This does not allow developers to interact at the same time with the process that launched the promise and the remote process that executed the promise's computation. To improve debugging of remote promises, in this paper we propose a debugger interface that presents a unified view of both the original and the remote process, by merging the call chains of the two processes at the point where the promise was created. We exemplify our approach, discuss challenges for making it practical, and illustrate through an initial prototype that it can improve debugging of exceptions in remote promises.","PeriodicalId":248327,"journal":{"name":"Proceedings of the 11th edition of the International Workshop on Smalltalk Technologies","volume":"18 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2016-08-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"114187378","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
Jan Kurs, J. Vraný, Mohammad Ghafari, M. Lungu, Oscar Nierstrasz
{"title":"Optimizing Parser Combinators","authors":"Jan Kurs, J. Vraný, Mohammad Ghafari, M. Lungu, Oscar Nierstrasz","doi":"10.1145/2991041.2991042","DOIUrl":"https://doi.org/10.1145/2991041.2991042","url":null,"abstract":"Parser combinators are a popular approach to parsing. Parser combinators follow the structure of an underlying grammar, are modular, well-structured, easy to maintain, and can recognize a large variety of languages including context-sensitive ones. However, their universality and flexibility introduces a noticeable performance overhead. Time-wise, parser combinators cannot compete with parsers generated by well-performing parser generators or optimized handwritten code. Techniques exist to achieve a linear asymptotic performance of parser combinators, yet there is still a significant constant multiplier. This can be further lowered using meta-programming techniques. In this work we present a more traditional approach to optimization --- a compiler --- applied to the domain of parser combinators. A parser combinator compiler (pc-compiler) analyzes a parser combinator, applies parser combinatorspecific optimizations and, generates an equivalent high-performance top-down parser. Such a compiler preserves the advantages of parser combinators while complementing them with better performance.","PeriodicalId":248327,"journal":{"name":"Proceedings of the 11th edition of the International Workshop on Smalltalk Technologies","volume":"22 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2016-08-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"127877272","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
Vincent Blondeau, N. Anquetil, Stéphane Ducasse, Sylvain Cresson, Pascal Croisy
{"title":"Test Selection with Moose In Industry: Impact of Granularity","authors":"Vincent Blondeau, N. Anquetil, Stéphane Ducasse, Sylvain Cresson, Pascal Croisy","doi":"10.1145/2991041.2991058","DOIUrl":"https://doi.org/10.1145/2991041.2991058","url":null,"abstract":"Automatic testing constitutes an important part of everyday development practice. Worldline, a major IT company, is creating more and more tests to ensure the good behaviour of its applications and gain in efficiency and quality. But running all these tests may take hours. For this reason tests are not launched as often as they should and are mostly run at night. The company wishes to improve its development and testing process by giving rapid feedback to developers after a change. An interesting solution is to reduce the number of tests to run by identifying only those exercising the piece of code changed. Two main approaches are proposed in the literature: static and dynamic. The static approach creates a model of the source code and explores it to find links between changed methods and tests. The dynamic approach records invocations of methods during the execution of test scenarios. Moose, a tool allowing to create static models of source code is a good candidate to carry this approach. Thanks to the partnership created with Worldline, we investigate on three industrial, closed source, cases to compare static and dynamic approaches. We evaluate the impact on the results of the frequency of modification of methods or considering groups of methods instead of single ones. We found that considering commits instead of individual methods tends to worsen the results, perhaps due to their large size.","PeriodicalId":248327,"journal":{"name":"Proceedings of the 11th edition of the International Workshop on Smalltalk Technologies","volume":"11 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2016-08-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"122219114","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
Steven Costiou, Mickaël Kerboeuf, Glenn Cavarlé, A. Plantec
{"title":"Lub: a DSL for Dynamic Context Oriented Programming","authors":"Steven Costiou, Mickaël Kerboeuf, Glenn Cavarlé, A. Plantec","doi":"10.1145/2991041.2991054","DOIUrl":"https://doi.org/10.1145/2991041.2991054","url":null,"abstract":"Embedded, interactive or reactive systems have to face unexpected events coming from their environment. Taking this kind of event into account at design time raises the challenging issue of the dynamic behavior adaptation at runtime. In this paper, we investigate a DSL approach to address this problem. This DSL, called Lub, is a context oriented programming language. It is defined as a featherlight adaptation of Pharo which enables to temporarily change the base of the method lookup when a message is sent to an object. This language is evaluated with a running example of a fleet of drones facing an unexpected problem of GPS loss.","PeriodicalId":248327,"journal":{"name":"Proceedings of the 11th edition of the International Workshop on Smalltalk Technologies","volume":"39 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2016-08-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"131659948","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"Power and Energy Code Profiling in Pharo","authors":"Alexandre Bergel","doi":"10.1145/2991041.2991065","DOIUrl":"https://doi.org/10.1145/2991041.2991065","url":null,"abstract":"Modeling energy consumption is a major concern when designing software systems such as a cloud service or for a mobile device (e.g., smartphone, laptop). Unfortunately, we have little knowledge on how decisions taken by a programmer may impact the energy profile of a system. This paper investigates the energy consumption in the Pharo programming language. We have closely monitored the power consumption of five micro-benchmarks and four macro-benchmarks. Our findings indicate that the way the memory is used has a significant impact on the power consumption. We propose a code profiler to measure the power consumption of any Pharo code expression. Our profiler is available under the MIT license and run on Pharo 5.","PeriodicalId":248327,"journal":{"name":"Proceedings of the 11th edition of the International Workshop on Smalltalk Technologies","volume":"7 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2016-08-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"129745694","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"Proceedings of the 11th edition of the International Workshop on Smalltalk Technologies","authors":"Jannik Laval, Anne Etien","doi":"10.1145/2991041","DOIUrl":"https://doi.org/10.1145/2991041","url":null,"abstract":"","PeriodicalId":248327,"journal":{"name":"Proceedings of the 11th edition of the International Workshop on Smalltalk Technologies","volume":"142 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2016-08-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"125218103","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
Leonel Merino, Dominik Seliner, Mohammad Ghafari, Oscar Nierstrasz
{"title":"CommunityExplorer: A Framework for Visualizing Collaboration Networks","authors":"Leonel Merino, Dominik Seliner, Mohammad Ghafari, Oscar Nierstrasz","doi":"10.1145/2991041.2991043","DOIUrl":"https://doi.org/10.1145/2991041.2991043","url":null,"abstract":"Understanding the network of collaborations, identifying the key players, potential future collaborators, and trends in the field are very important to carry out a project successfully. In this paper, we present CommunityExplorer, a visualization framework that facilitates presenting, exploring, and understanding the network of collaborations at once. The framework performs data extraction, parsing, and modeling automatically. It is easy to adopt and utilizes a bigraph visualization that scales well.We demonstrate the advantage of CommunityExplorer to identify the collaboration of authors on 346 and 104 research papers published in SOTFVIS/VISSOFT and IWST communities respectively. We found that even though SOFTVIS/VISSOFT has more contributors, IWST exhibits more collaboration.We discovered that contributors in IWST are more resilient than those in SOFTVIS/VISSOFT, which are more volatile. Moreover, collaboration in IWST is concentrated in a single large group, while in SOFTVIS/VISSOFT it is spread among many tiny groups and a few medium-sized ones.","PeriodicalId":248327,"journal":{"name":"Proceedings of the 11th edition of the International Workshop on Smalltalk Technologies","volume":"16 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2016-08-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"123069327","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"Prototyping Software Product Lines analysis with Pharo","authors":"Abdelghani Alidra, M. Kimour","doi":"10.1145/2991041.2991053","DOIUrl":"https://doi.org/10.1145/2991041.2991053","url":null,"abstract":"Software Product Lines (SPLs) are an emerging software engineering paradigm that aims to optimize software development costs and time to market trough systematic development of reusable of core assets. At the heart of SPL engineering is variability modelling. Feature models (FM) are a common way to model variability and reason about it. Examples of reasoning are for instance checking that at least one product is represented by a given FM (satisfiability) or finding the product that best fits a given set of requirements. In practice however, such operations are often complex and time consuming. In order to address these challenges, we introduce in the present article the notion of transitive dependency between features and show how it can be used as the basis for efficient analysis and automatic reasoning on feature models. We exploit this new concept to implement a first platform for prototyping and reasoning on large SPLs in Pharo. Finally we illustrate the efficiency of our proposal on the problem of features selection optimisation.","PeriodicalId":248327,"journal":{"name":"Proceedings of the 11th edition of the International Workshop on Smalltalk Technologies","volume":"58 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2016-08-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"116634297","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"When QualityAssistant Meets Pharo: Enforced Code Critiques Motivate More Valuable Rules","authors":"Y. Tymchuk, Mohammad Ghafari, Oscar Nierstrasz","doi":"10.1145/2991041.2991046","DOIUrl":"https://doi.org/10.1145/2991041.2991046","url":null,"abstract":"Static analysis tools can aid in software quality assessment, but are rarely used by software developers. Poor usage of quality analysis tools not only means missed opportunities for the quality of software systems, but also results in little feedback, which in turn slows the improvements of the quality rules themselves. We introduced a set of intrusive quality plugins and integrated them into the Pharo IDE. This not only triggered a feedback loop that led to improvements of the existing rules, but also encouraged removal of some rules and integration of new ones. Our analysis of changes to the rules suggests that precise rules capturing a domain-specific logic are more valuable than general ones.","PeriodicalId":248327,"journal":{"name":"Proceedings of the 11th edition of the International Workshop on Smalltalk Technologies","volume":"51 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2016-08-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"115491628","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
Bui Thi My Anh, Nick Papoulias, M. Ziane, Serge Stinckwich
{"title":"Explicit Composition Constructs in DSLs: The case of the epidemiological language KENDRICK","authors":"Bui Thi My Anh, Nick Papoulias, M. Ziane, Serge Stinckwich","doi":"10.1145/2991041.2991061","DOIUrl":"https://doi.org/10.1145/2991041.2991061","url":null,"abstract":"Domain Specific Languages (DSL) are designed to be syntactically and semantically easier to use than general-purpose languages performing the same task. This is generally achieved by tailoring programming notions and constructs to the domain tasks at hand. Yet there are examples of domain specific problems that demand elaborate constructs (for e.g. aspects in Aspect DSLs) which need to be carefully introduced as to avoid complicating the language. We present such an example in Pharo for the epidemiological language KENDRICK. KENDRICK simplifies the programming of epidemiological simulations by decomposing highly-coupled monolithic models into modular concerns. This decomposition though, is based on a mathematical model that introduces non-trivial composition semantics into the language that need to be carefully integrated. In this work, we address this problem by extending KENDRICK's DSL with explicit composition semantics, entities and operators.","PeriodicalId":248327,"journal":{"name":"Proceedings of the 11th edition of the International Workshop on Smalltalk Technologies","volume":"39 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2016-08-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"129894125","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}