{"_id":"TgyJu2nzEi4Nhpd7K","bibbaseid":"gustavsson-sands-afoundationforspacesafetransformationsofcallbyneedprograms-1999","downloads":0,"creationDate":"2017-02-03T08:24:26.830Z","title":"A Foundation for Space-Safe Transformations of Call-by-Need Programs","author_short":["Gustavsson, J.","Sands, D."],"year":1999,"bibtype":"inproceedings","biburl":"http://www.cse.chalmers.se/~dave/davewww2016.bib","bibdata":{"bibtype":"inproceedings","type":"inproceedings","author":[{"firstnames":["J."],"propositions":[],"lastnames":["Gustavsson"],"suffixes":[]},{"firstnames":["David"],"propositions":[],"lastnames":["Sands"],"suffixes":[]}],"title":"A Foundation for Space-Safe Transformations of Call-by-Need Programs","booktitle":"The Third International Workshop on Higher Order Operational Techniques in Semantics","year":"1999","editor":[{"firstnames":["A.","D."],"propositions":[],"lastnames":["Gordon"],"suffixes":[]},{"firstnames":["A."],"propositions":[],"lastnames":["M.Pitts"],"suffixes":[]}],"volume":"26","series":"Electronic Notes in Theoretical Computer Science","publisher":"Elsevier","url_paper":"http://www.cse.chalmers.se/~dave/papers/space.pdf","url_link":"http://www.elsevier.nl/locate/entcs/volume26.html","abstract":"We introduce a space-improvement relation on programs which guarantees that whenever M is improved by N, replacement of M by N in a program can never lead to asymptotically worse space (heap or stack) behaviour, for a particular model of garbage collection. This study takes place in the context of a call-by-need programming language. For languages implemented using call-by-need, e.g, Haskell, space behaviour is notoriously difficult to predict and analyse, and even innocent-looking equivalences like x + y = y + x can change the asymptotic space requirements of some programs. Despite this, we establish a fairly rich collection of improvement laws, with the help of a context lemma for a finer-grained improvement relation. We briefly consider an application of the theory; we prove that inlining of affine-linear bindings (as introduced by a certain class of ``used-once'' type-systems) is work- and space-safe. We also show that certain weaker type systems for usage do not provide sufficient conditions for space-safe inlining. ","bibtex":"@INPROCEEDINGS{Gustavsson:Sands:Foundation,\n author = {J. Gustavsson and David Sands},\n title = {A Foundation for Space-Safe Transformations of Call-by-Need Programs},\n booktitle = {The Third International Workshop on Higher Order Operational Techniques in Semantics},\n year = {1999},\n editor = {A. D. Gordon and A. M.Pitts},\n volume = {26},\n series = {Electronic Notes in Theoretical Computer Science},\n publisher = {Elsevier},\n url_Paper = {http://www.cse.chalmers.se/~dave/papers/space.pdf},\n url_Link = {http://www.elsevier.nl/locate/entcs/volume26.html},\n abstract = {\n We introduce a space-improvement relation on programs which guarantees\n that whenever M is improved by N, replacement of M by N in a\n program can never lead to asymptotically worse space (heap or stack)\n behaviour, for a particular model of garbage collection. This study\n takes place in the context of a call-by-need programming language. For\n languages implemented using call-by-need, e.g, Haskell, space behaviour\n is notoriously difficult to predict and analyse, and even\n innocent-looking equivalences like x + y = y + x can change the\n asymptotic space requirements of some programs. Despite this, we\n establish a fairly rich collection of improvement laws, with the help of a\n context lemma for a finer-grained improvement relation. We briefly\n consider an application of the theory; we prove that inlining of\n affine-linear bindings (as introduced by a certain class of ``used-once''\n type-systems) is work- and space-safe. We also show that certain weaker\n type systems for usage do not provide sufficient conditions for\n space-safe inlining.\n},\n}\n","author_short":["Gustavsson, J.","Sands, D."],"editor_short":["Gordon, A. D.","M.Pitts, A."],"key":"Gustavsson:Sands:Foundation","id":"Gustavsson:Sands:Foundation","bibbaseid":"gustavsson-sands-afoundationforspacesafetransformationsofcallbyneedprograms-1999","role":"author","urls":{" paper":"http://www.cse.chalmers.se/~dave/papers/space.pdf"," link":"http://www.elsevier.nl/locate/entcs/volume26.html"},"downloads":0},"search_terms":["foundation","space","safe","transformations","call","need","programs","gustavsson","sands"],"keywords":[],"authorIDs":["58943e3a2f18920f4c000022"],"dataSources":["SBHWXKotbthoEYKJv"]}