Observable Sharing for Functional Circuit Description. Claessen, K. & Sands, D. In Thiagarajan, P. & Yap, R., editors, Advances in Computing Science ASIAN'99; 5th Asian Computing Science Conference, volume 1742, of Lecture Notes in Computer Science, pages 62--73, 1999. Springer-Verlag. Extended Version Available
Paper abstract bibtex Pure functional programming languages have been proposed as a vehicle to describe, simulate and manipulate circuit specifications. We propose an extension to Haskell to solve a standard problem when manipulating data types representing circuits in a lazy functional language. The problem is that circuits are finite graphs -- but viewing them as an algebraic (lazy) datatype makes them indistinguishable from potentially infinite regular trees. However, implementations of Haskell do indeed represent cyclic structures by graphs. The problem is that the sharing of nodes that creates such cycles is not observable by any function which traverses such a structure. In this paper we propose an extension to call-by-need languages which makes graph sharing observable. The extension is based on non updatable reference cells and an equality test (sharing detection) on this type. We show that this simple and practical extension has well-behaved semantic properties, which means that many typical source-to-source program transformations, such as might be performed by a compiler, are still valid in the presence of this extension.
@INPROCEEDINGS{Claessen:Sands:Observable,
author = {K. Claessen and David Sands},
title = {Observable Sharing for Functional Circuit Description},
booktitle = {Advances in Computing Science ASIAN'99; 5th Asian Computing Science Conference},
pages = {62--73},
editor = {P.S. Thiagarajan and R. Yap},
volume = {1742},
series = {Lecture Notes in Computer Science},
year = {1999},
publisher = {Springer-Verlag},
note = {Extended Version Available},
url_Paper = {http://www.cse.chalmers.se/~dave/papers/observable-sharing.pdf},
abstract = {
Pure functional programming languages have been proposed as a vehicle to
describe, simulate and manipulate circuit specifications. We propose an
extension to Haskell to solve a standard problem when manipulating data
types representing circuits in a lazy functional language. The problem is
that circuits are finite graphs -- but viewing them as an algebraic (lazy)
datatype makes them indistinguishable from potentially infinite regular
trees. However, implementations of Haskell do indeed represent cyclic
structures by graphs. The problem is that the sharing of nodes that creates
such cycles is not observable by any function which traverses such a
structure. In this paper we propose an extension to call-by-need languages
which makes graph sharing observable. The extension is based on non
updatable reference cells and an equality test (sharing detection) on this
type. We show that this simple and practical extension has well-behaved
semantic properties, which means that many typical source-to-source program
transformations, such as might be performed by a compiler, are still valid
in the presence of this extension.},
}
Downloads: 0
{"_id":"RGoJNfMtyCHdKEdrR","bibbaseid":"claessen-sands-observablesharingforfunctionalcircuitdescription-1999","downloads":0,"creationDate":"2017-02-03T08:24:26.831Z","title":"Observable Sharing for Functional Circuit Description","author_short":["Claessen, K.","Sands, D."],"year":1999,"bibtype":"inproceedings","biburl":"http://www.cse.chalmers.se/~dave/davewww2016.bib","bibdata":{"bibtype":"inproceedings","type":"inproceedings","author":[{"firstnames":["K."],"propositions":[],"lastnames":["Claessen"],"suffixes":[]},{"firstnames":["David"],"propositions":[],"lastnames":["Sands"],"suffixes":[]}],"title":"Observable Sharing for Functional Circuit Description","booktitle":"Advances in Computing Science ASIAN'99; 5th Asian Computing Science Conference","pages":"62--73","editor":[{"firstnames":["P.S."],"propositions":[],"lastnames":["Thiagarajan"],"suffixes":[]},{"firstnames":["R."],"propositions":[],"lastnames":["Yap"],"suffixes":[]}],"volume":"1742","series":"Lecture Notes in Computer Science","year":"1999","publisher":"Springer-Verlag","note":"Extended Version Available","url_paper":"http://www.cse.chalmers.se/~dave/papers/observable-sharing.pdf","abstract":"Pure functional programming languages have been proposed as a vehicle to describe, simulate and manipulate circuit specifications. We propose an extension to Haskell to solve a standard problem when manipulating data types representing circuits in a lazy functional language. The problem is that circuits are finite graphs -- but viewing them as an algebraic (lazy) datatype makes them indistinguishable from potentially infinite regular trees. However, implementations of Haskell do indeed represent cyclic structures by graphs. The problem is that the sharing of nodes that creates such cycles is not observable by any function which traverses such a structure. In this paper we propose an extension to call-by-need languages which makes graph sharing observable. The extension is based on non updatable reference cells and an equality test (sharing detection) on this type. We show that this simple and practical extension has well-behaved semantic properties, which means that many typical source-to-source program transformations, such as might be performed by a compiler, are still valid in the presence of this extension.","bibtex":"@INPROCEEDINGS{Claessen:Sands:Observable,\n author = {K. Claessen and David Sands},\n title = {Observable Sharing for Functional Circuit Description},\n booktitle = {Advances in Computing Science ASIAN'99; 5th Asian Computing Science Conference},\n pages = {62--73},\n editor = {P.S. Thiagarajan and R. Yap},\n volume = {1742},\n series = {Lecture Notes in Computer Science},\n year = {1999},\n publisher = {Springer-Verlag},\n note = {Extended Version Available},\n url_Paper = {http://www.cse.chalmers.se/~dave/papers/observable-sharing.pdf},\n abstract = {\nPure functional programming languages have been proposed as a vehicle to\ndescribe, simulate and manipulate circuit specifications. We propose an\nextension to Haskell to solve a standard problem when manipulating data\ntypes representing circuits in a lazy functional language. The problem is\nthat circuits are finite graphs -- but viewing them as an algebraic (lazy)\ndatatype makes them indistinguishable from potentially infinite regular\ntrees. However, implementations of Haskell do indeed represent cyclic\nstructures by graphs. The problem is that the sharing of nodes that creates\nsuch cycles is not observable by any function which traverses such a\nstructure. In this paper we propose an extension to call-by-need languages\nwhich makes graph sharing observable. The extension is based on non\nupdatable reference cells and an equality test (sharing detection) on this\ntype. We show that this simple and practical extension has well-behaved\nsemantic properties, which means that many typical source-to-source program\ntransformations, such as might be performed by a compiler, are still valid\nin the presence of this extension.},\n}\n","author_short":["Claessen, K.","Sands, D."],"editor_short":["Thiagarajan, P.","Yap, R."],"key":"Claessen:Sands:Observable","id":"Claessen:Sands:Observable","bibbaseid":"claessen-sands-observablesharingforfunctionalcircuitdescription-1999","role":"author","urls":{" paper":"http://www.cse.chalmers.se/~dave/papers/observable-sharing.pdf"},"downloads":0},"search_terms":["observable","sharing","functional","circuit","description","claessen","sands"],"keywords":[],"authorIDs":[],"dataSources":["SBHWXKotbthoEYKJv"]}