Jigyasa Grover, Nick Papoulias, Serge Stinckwich, P. Bommel
{"title":"Pragmatic Insights: Live UIs for Agent-based Modelling in Pharo","authors":"Jigyasa Grover, Nick Papoulias, Serge Stinckwich, P. Bommel","doi":"10.1145/3139903.3139915","DOIUrl":"https://doi.org/10.1145/3139903.3139915","url":null,"abstract":"Object-oriented programming has had a long-standing history with simulation systems in terms of human-computer interaction [1] dating back to Simula and early versions of Smalltalk-72 and Smalltalk-76. These frameworks were based on discrete, event-based simulations as revealed by the classic simulation examples of Smalltalk-80 Blue-book [2]. Nevertheless present time trends have pivoted towards agent-based modelling and abstractions, with systems like NetLogo capturing a sizeable following and heed. Two of the widely known agent-based modelling (ABM) platforms in Smalltalk (MobiDyC and CORMAS) have recently begun experimenting with porting their systems to Pharo. The rationale behind this choice is to allow modern re-imagination of the platforms that can take advantage of developments in: agile visualization, moldable tools, domain-specific languages (DSLs) and so on. This work focuses on the salient user interface component of these platforms, namely the spatial interface, which empowers a user to visualize the evolution of the system through time. We start with a concise analysis of the state-of-the-art for spatial interfaces and their platforms (MobiDyC, NetLogo, GAMA and CORMAS), scrutinizing in terms of programming flexibility, extensibility, portability, scalability, and interaction. Subsequently we highlight our on-going efforts in building an open-source extension for CORMAS' spatial interface in Pharo. In closing, we detail the pragmatic experience gained in the course of our work and present future perspectives.","PeriodicalId":270310,"journal":{"name":"Proceedings of the 12th edition of the International Workshop on Smalltalk Technologies","volume":"36 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2017-09-04","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"114440637","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}
Matteo Marra, E. G. Boix, Steven Costiou, Mickaël Kerboeuf, A. Plantec, G. Polito, Stéphane Ducasse
{"title":"Debugging Cyber-Physical Systems with Pharo: An Experience Report","authors":"Matteo Marra, E. G. Boix, Steven Costiou, Mickaël Kerboeuf, A. Plantec, G. Polito, Stéphane Ducasse","doi":"10.1145/3139903.3139913","DOIUrl":"https://doi.org/10.1145/3139903.3139913","url":null,"abstract":"Cyber-Physical Systems (CPS) integrate sensors and actuators to collect data and control entities in the physical world. Debugging CPS systems is hard due to the time-sensitive nature of a distributed applications combined with the lack of control on the surrounding physical environment. This makes bugs in CPS systems hard to reproduce and thus to fix. In this context, on-line debugging techniques are helpful because the debugger is connected to the device when an exception or crash occurs. This paper reports on our experiences on applying two different on-line debugging techniques for a CPS system: remote debugging using the Pharo remote debugger and our IDRA debugger. In contrast to traditional remote debugging, IDRA allows to on-line debug an application locally in another client machine by reproducing the runtime context where the bug manifested. Our qualitative evaluation shows that IDRA provides almost the same interaction capabilities than Pharo's remote debugger and is less intrusive when performing hot-modifications. Our benchmarks also show that IDRA is significantly faster than the Pharo remote debugger, although it increases the amount of data transferred over the network.","PeriodicalId":270310,"journal":{"name":"Proceedings of the 12th edition of the International Workshop on Smalltalk Technologies","volume":" 5","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2017-09-04","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"114051496","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":"Ad-hoc Runtime Object Structure Visualizations with MetaLinks","authors":"Peter Uhnák, R. Pergl","doi":"10.1145/3139903.3139912","DOIUrl":"https://doi.org/10.1145/3139903.3139912","url":null,"abstract":"This paper describes an original method and a tool for an a posteriori analysis of a running object software system, specifically system's runtime structural properties. Highly context-dependent systems pose a challenge of understanding their runtime behaviour. The typical approach is to let the system run and manually observe its runtime properties, which is cognitively demanding and error-prone. Smalltalk, and Pharo in particular, focuses on providing live introspection and immediate feedback during the development. In our method, we take the advantage of these possibilities and combine them with the (relatively new) concept of metalinks as a way to hook into existing code without modifying it, and to set specific attributes to be observed. The result is an analysis tool focused on visualization of ad-hoc runtime structures -- that is, providing an analyst with a live view of the stepwise construction and runtime changes of a system based on a UML instance visualization. We demonstrate the tool on analyzing the construction loop of Pharo's Spec UI framework.","PeriodicalId":270310,"journal":{"name":"Proceedings of the 12th edition of the International Workshop on Smalltalk Technologies","volume":"217 2 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2017-09-04","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"134398595","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}
Abdelghani Alidra, Moussa Saker, N. Anquetil, Stéphane Ducasse
{"title":"Identifying class name inconsistency in hierarchy: a first simple heuristic","authors":"Abdelghani Alidra, Moussa Saker, N. Anquetil, Stéphane Ducasse","doi":"10.1145/3139903.3139920","DOIUrl":"https://doi.org/10.1145/3139903.3139920","url":null,"abstract":"Giving good class names is an important task. Good programmers often report that they take several attempts to find an adequate one. Often programmers do not name consistently classes within a package, project or hierarchy. This is a problem because it hampers understanding the systems. In this article we present a simple heuristic (a distribution) to characterise class naming. We combine such a heuristic with structural information to identify inconsistent class names. In addition, we use this simple heuristic to give packages a shape. We applied such heuristic to 285 packages in Pharo to identify misnamed classes. Some of these misnamed classes are reported and discussed here.","PeriodicalId":270310,"journal":{"name":"Proceedings of the 12th edition of the International Workshop on Smalltalk Technologies","volume":"31 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2017-09-04","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"129940092","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}
Sophie Kaleba, Clément Béra, Alexandre Bergel, Stéphane Ducasse
{"title":"A detailed VM profiler for the Cog VM","authors":"Sophie Kaleba, Clément Béra, Alexandre Bergel, Stéphane Ducasse","doi":"10.1145/3139903.3139911","DOIUrl":"https://doi.org/10.1145/3139903.3139911","url":null,"abstract":"Code profiling enables a user to know where in an application or function the execution time is spent. The Pharo ecosystem offers several code profilers. However, most of the publicly available profilers (MessageTally, Spy, GadgetProfiler) largely ignore the activity carried out by the virtual machine, thus incurring inaccuracy in the gathered information and missing important information, such as the Just-in-time compiler activity. This paper describes the motivations and the latest improvements carried out in VMProfiler, a code execution profiler hooked into the virtual machine, that performs its analysis by monitoring the virtual machine execution. These improvements address some limitations related to assessing the activity of native functions (resulting from a Just-in-time compiler operation): as of now, VMProfiler provides more detailed profiling reports, showing for native code functions in which bytecode range the execution time is spent.","PeriodicalId":270310,"journal":{"name":"Proceedings of the 12th edition of the International Workshop on Smalltalk Technologies","volume":"1 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2017-09-04","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"124230257","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}
B. Verhaeghe, N. Anquetil, Stéphane Ducasse, Vincent Blondeau
{"title":"Usage of Tests in an Open-Source Community: A Case Study with Pharo Developers","authors":"B. Verhaeghe, N. Anquetil, Stéphane Ducasse, Vincent Blondeau","doi":"10.1145/3139903.3139909","DOIUrl":"https://doi.org/10.1145/3139903.3139909","url":null,"abstract":"During the development, tests ensure the good behavior of applications and improve their quality. We studied developers testing behavior inside the Pharo community with the purpose to improve it. In this paper, we start from related works to enhance our comprehension of test habits in our open source community. We report results of a field study on how often developers use tests in their daily practice, whether they make use of tests selection and why they do. Results are strengthened by interviews with the developers involved in the study. The main findings are that developers run tests after every modifications of a method; most of the time they practice test selection (instead of launching an entire test suite). However, they are not accurate in their selection. They change their selection depending on the duration of the tests and; contrary to expectation, test selection is not influenced by the size of the test suite.","PeriodicalId":270310,"journal":{"name":"Proceedings of the 12th edition of the International Workshop on Smalltalk Technologies","volume":"67 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2017-09-04","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"131932256","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}
Henrique Rocha, Stéphane Ducasse, M. Denker, J. Lecerf
{"title":"Solidity Parsing Using SmaCC: Challenges and Irregularities","authors":"Henrique Rocha, Stéphane Ducasse, M. Denker, J. Lecerf","doi":"10.1145/3139903.3139906","DOIUrl":"https://doi.org/10.1145/3139903.3139906","url":null,"abstract":"Solidity is a language used to implement smart contracts on a blockchain platform. Since its initial conception in 2014, Solidity has evolved into one of the major languages for the Ethereum platform as well as other blockchain technologies. Due to its popularity, there are many tools specifically designed to handle smart contracts written in Solidity. However, there is a lack of tools for Pharo to handle Solidity contracts. Therefore, we implemented a parser using SmaCC to serve as a base for further developing Solidity support in Pharo. In this paper, we describe the parser creation, the irregularities we found in the Solidity grammar specification, and common practices on how to adapt the grammar to an LR type parser. Our experiences with parsing the Solidity language using SmaCC may help other developers trying to convert similar grammars.","PeriodicalId":270310,"journal":{"name":"Proceedings of the 12th edition of the International Workshop on Smalltalk Technologies","volume":"574 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2017-09-04","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"121903264","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}
Oleksandr Zaytsev, Nick Papoulias, Serge Stinckwich
{"title":"Towards Exploratory Data Analysis for Pharo","authors":"Oleksandr Zaytsev, Nick Papoulias, Serge Stinckwich","doi":"10.1145/3139903.3139918","DOIUrl":"https://doi.org/10.1145/3139903.3139918","url":null,"abstract":"Data analysis and visualizations techniques (such as split-apply-combine) make extensive use of associative tabular data-structures that are cumbersome to use with common aggregation APIs (for arrays, lists or dictionaries). In these cases a fluent API for querying associative tabular data (like the ones provided by Pandas, Mathematica or LINQ) is more appropriate for interactive exploration environments. In Smalltalk despite the fact that many important analysis tools are already present (for e.g., in the PolyMath library), we are still missing this essential part of the data science toolkit. These specialized data structures for tabular datasets can provide us with a simple and powerful API for summarizing, cleaning, and manipulating a wealth of data-sources that are currently cumbersome to use. In this paper we introduce the DataFrame and DataSeries collections - that are specifically designed for working with structured data. We demonstrate how these tools can be used for descriptive statistics and Exploratory Data Analysis (EDA) - the critical first step of data analysis which allows us to get the summary of a dataset, detect mistakes, determine the relations, and select the appropriate model for further confirmatory analysis. We then detail the implementation trade-offs that we are currently facing in our implementation for Pharo and discuss future perspectives.","PeriodicalId":270310,"journal":{"name":"Proceedings of the 12th edition of the International Workshop on Smalltalk Technologies","volume":"41 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2017-09-04","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"126028741","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":"Analysis and exploration for new generation debuggers","authors":"Thomas Dupriez, G. Polito, Stéphane Ducasse","doi":"10.1145/3139903.3139910","DOIUrl":"https://doi.org/10.1145/3139903.3139910","url":null,"abstract":"Locating and fixing bugs is well-known to be a time consuming task. Advanced approaches such as object-centric or back-in-time debuggers have been proposed in the literature. still in many scenarios developers are left alone with generic tools such as manual breakpoints and execution stepping that, while usable, cannot adapt to specific debugging scenarios to make the life of developers easier. In this position paper we explore several advanced on-line debugging techniques such as contextual breakpoints and on-line execution comparison, that could help developers solve complex debugging scenarios. We analyse the open research challenges these techniques pose, as well as the underlying mechanisms they require. We present early but promising prototypes we built using the Pharo programming language. We finally identify future research paths by analysing existing research and connecting it to the techniques we presented before.","PeriodicalId":270310,"journal":{"name":"Proceedings of the 12th edition of the International Workshop on Smalltalk Technologies","volume":"51 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2017-09-04","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"127374355","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":"First-Class Undefined Classes for Pharo: From Alternative Designs to a Unified Practical Solution","authors":"G. Polito, Stéphane Ducasse, L. Fabresse","doi":"10.1145/3139903.3139914","DOIUrl":"https://doi.org/10.1145/3139903.3139914","url":null,"abstract":"Loading code inside a Pharo image is a daily concern for a Pharo developer. Nevertheless, several problems may arise at loading time that can prevent the code to load or even worse let the system in an inconsistent state. In this paper, we focus on the problem of loading code that references a class that does not exist in the system. We discuss the different flavors of this problem, the limitations of the existing Undeclared mechanism and the heterogeneity of Pharo tools to solve it. Then, we propose an unified solution for Pharo that reifies Undefined Classes. Our model of Undefined Classes is the result of an objective selection among different alternatives. We then validate our solution through two cases studies: migrating old code and loading code with circular dependencies. This paper also presents the integration of this solution into Pharo regarding the needed Meta-Object Protocol for Undefined Classes and the required modifications of existing tools.","PeriodicalId":270310,"journal":{"name":"Proceedings of the 12th edition of the International Workshop on Smalltalk Technologies","volume":"1 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2017-09-04","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"129073339","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}