{"title":"Evolving ASDF: more cooperation, less coordination","authors":"François-René Rideau, Robert P. Goldman","doi":"10.1145/1869643.1869648","DOIUrl":"https://doi.org/10.1145/1869643.1869648","url":null,"abstract":"We present ASDF2, the current state of the art in CL build systems. From a technical standpoint, ASDF2 improves upon ASDF by integrating previous common extensions, making configuration easy, and fixing bugs. However the overriding concern driving these changes was social rather than technical: ASDF plays a central role in the CL community and we wanted to reduce the coordination costs that it imposed upon CL programmers. We outline ASDF's history and architecture, explain the link between the social issues we faced and the software features we added, and explore the technical challenges involved and lessons learned, notably involving inplace code upgrade of ASDF itself, backward compatibility, portability, testing and other coding best practices.","PeriodicalId":128104,"journal":{"name":"International Lisp Conference","volume":"30 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2010-10-19","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"128924918","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":"LP/LISP: literate programming for Lisp","authors":"R. Turner","doi":"10.1145/1869643.1869647","DOIUrl":"https://doi.org/10.1145/1869643.1869647","url":null,"abstract":"Writing a program and writing its documentation are often considered two separate tasks, leading to several problems: the documentation may never be written; when it is, it may be an afterthought; and when the program is modified, the needed changes to the documentation may be overlooked. Literate programming (LP), introduced by Donald Knuth, views a program and its documentation as an integrated whole: they are written together to inform both the computer and human readers. LP tools then extract the code for the computer and the documentation for further document processing. Unfortunately, existing LP tools are much more suited for compiled languages, where there is already a step between coding and executing and debugging the code. Lisp programming typically involved incremental development and testing, often highly interleaving coding with running portions of the code. Thus LP tools inject an artificial impediment into this process.\u0000 LP/Lisp is a new LP tool designed specifically for Lisp and the usual style of programming using Lisp. The literate programming file is the Lisp file; LP markup and text resides in Lisp comments, where it does not interfere with running the code. LP/Lisp provided the usual literate programming services, such as code typesetting, syntactic sugaring, and the ability to split the code for expository purposes (a \"chunk\" mechanism). LP/Lisp, itself written in Lisp, is run on the code to produce the documentation.","PeriodicalId":128104,"journal":{"name":"International Lisp Conference","volume":"35 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2010-10-19","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"133273839","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":"Extending Dylan's type system for better type inference and error detection","authors":"Hannes Mehnert","doi":"10.1145/1869643.1869645","DOIUrl":"https://doi.org/10.1145/1869643.1869645","url":null,"abstract":"Whereas dynamic typing enables rapid prototyping and easy experimentation, static typing provides early error detection and better compile time optimization. Gradual typing [26] provides the best of both worlds. This paper shows how to define and implement gradual typing in Dylan, traditionally a dynamically typed language. Dylan poses several special challenges for gradual typing, such as multiple return values, variable-arity methods and generic functions (multiple dispatch).\u0000 In this paper Dylan is extended with function types and parametric polymorphism. We implemented the type system and aunification-based type inference algorithm in the mainstream Dylan compiler. As case study we use the Dylan standard library (roughly 32000 lines of code), which witnesses that the implementation generates faster code with fewer errors. Some previously undiscovered errors in the Dylan library were revealed.","PeriodicalId":128104,"journal":{"name":"International Lisp Conference","volume":"25 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2010-10-19","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"114207854","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":"Validating low-level instructions for fixnums using BDDs","authors":"Shingo Yuasa, M. Yasugi","doi":"10.1145/1869643.1869646","DOIUrl":"https://doi.org/10.1145/1869643.1869646","url":null,"abstract":"A fixnum is a data object used in Lisp and other programming languages for representing an integer within some fixed range; fixnum consisting of tag bits and an integer value is represented in a single machine word. Programming language systems must use or generate instruction sequences such as \"check if two objects are both fixnums\" and \"check if the sum of two fixnums does not overflow.\" To obtain efficient code, tricky bit operations with low-level instructions are used. To the best of our knowledge, mechanical verification frameworks for verifying these instruction sequences have not been investigated thus far. We implemented a library for validating low-level instructions against their intended meaning in Common Lisp. We consider each bit in a machine word as a Boolean value and verify the constraints that correspond to the intended meaning using binary decision diagrams.","PeriodicalId":128104,"journal":{"name":"International Lisp Conference","volume":"57 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2010-10-19","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"126332680","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":"NST: a unit testing system for common Lisp","authors":"J. Maraist","doi":"10.1145/1869643.1869650","DOIUrl":"https://doi.org/10.1145/1869643.1869650","url":null,"abstract":"We introduce NST, an expressive and extensible unit testing framework for Common Lisp. Distinct features of Lisp's object system CLOS allow an elegant implementation for NST, and we describe this class model and implementation. There are over a dozen test frameworks for Lisp which are currently available, almost half of which are under active maintenance, and we compare these packages features. Development of NST is ongoing, and we conclude with a discussion of future directions for the system.","PeriodicalId":128104,"journal":{"name":"International Lisp Conference","volume":"79 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2010-10-19","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"132419162","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":"Starvation-free heap size for replication-based incremental compacting garbage collection","authors":"Tomoharu Ugawa, H. Iwasaki, T. Yuasa","doi":"10.1145/1869643.1869649","DOIUrl":"https://doi.org/10.1145/1869643.1869649","url":null,"abstract":"We present a method to estimate the amount of the heap required to execute application programs on runtime systems with our replication-based incremental compacting garbage collector. Our method provides a strategy for adjusting the timing to trigger garbage collection and choosing a heap region to be evacuated during partial compaction, which moves all objects in one part of the heap to the rest of the heap. The method is also used to determing the minimum heap size that guarantees free memory never exhausts during incremental garbage collection. Furthermore, we ensure that allocation never fails due to fragmentation with the strategy. The strategy is to reserve a contiguous free area and to prohibit the allocator from allocating in that area until garbage collection is triggered. When it becomes necessary to use the reserved free area to satisfy an allocation request, we trigger garbage collection. We show that, with this strategy, an application never fails to allocate objects with a larger heap than R + 2 √(2Ra) + 3a plus space overhead caused by the heap layout, where R is the maximum amount of live objects and a is the upper bound of the possible amount of allocation during a single collection cycle.","PeriodicalId":128104,"journal":{"name":"International Lisp Conference","volume":"84 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2010-10-19","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"128461315","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}
M. Yasugi, Tsuneyasu Komiya, Tasuku Hiraishi, Seiji Umatani
{"title":"Managing continuations for proper tail recursion","authors":"M. Yasugi, Tsuneyasu Komiya, Tasuku Hiraishi, Seiji Umatani","doi":"10.1145/1869643.1869651","DOIUrl":"https://doi.org/10.1145/1869643.1869651","url":null,"abstract":"Implementations of Scheme are required to be properly tailrecursive and to support an unbounded number of active tail calls. Clinger proposed a formal definition of proper tail recursion based on space efficiency. This definition encompasses systematic tail call optimization, where every tail call is converted to a jump (with an optional trampoline), as well as Baker's implementation of Scheme in the C language with CPS (continuation-passing style) conversion. Baker's implementation is space-efficient, since no new continuation is created on a CPS-converted tail call and garbage is collected even on C's execution stack.\u0000 In our work, we discovered that an abstract machine that runs CPS-converted programs cannot be considered properly tailrecursive according to Clinger's definition if continuation closures are simply created with the lexical environments for all variables. Furthermore, an abstract machine that employs neither explicit environments nor continuations is also improperly tail-recursive.\u0000 This paper discusses the above issue and also proposes new techniques to implement a properly tail-recursive Scheme interpreter in an extended C language by following space-efficiency based definitions of proper tail recursion. In our approach, a program is not converted into CPS. The primary concept is to avoid stack overflow by creating a space-efficient first-class continuation represented as a list containing only the \"Frame\" objects necessary for the rest of the computation and immediately invoking the continuation. We use a language mechanism called \"L-closures\" to access the contents of the execution stack as values of legal data structures and variables for implementing garbage collection and capturing continuations.","PeriodicalId":128104,"journal":{"name":"International Lisp Conference","volume":"16 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2010-10-19","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"122066471","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":"Is P = PSPACE for Infinite Time Turing Machines?","authors":"Joost Winter","doi":"10.1007/978-3-642-03092-5_10","DOIUrl":"https://doi.org/10.1007/978-3-642-03092-5_10","url":null,"abstract":"","PeriodicalId":128104,"journal":{"name":"International Lisp Conference","volume":"1 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2009-10-14","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"125265355","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":"Sets of Infinite Words Recognized by Deterministic One-Turn Pushdown Automata","authors":"Douadi Mihoubi","doi":"10.1007/978-3-642-03092-5_8","DOIUrl":"https://doi.org/10.1007/978-3-642-03092-5_8","url":null,"abstract":"","PeriodicalId":128104,"journal":{"name":"International Lisp Conference","volume":"32 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2009-10-14","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"115948712","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}