{"title":"Using a language of functions and relations for VLSI specification","authors":"Robin Sharp, O. Rasmussen","doi":"10.1145/224164.224180","DOIUrl":"https://doi.org/10.1145/224164.224180","url":null,"abstract":"This paper describes the T-Ruby language for specifying VLSI circuits in terms of relational abstractions of their behaviour. The language is based on a typed lambda calculus with a type system closely related to that of Edinburgh LF. Terms in the language may have simple, non-parameterised types or types which are constructed from other types, possibly together with terms. The dependent types which can be constructed in this way are useful for describing parameterised regular structures which commonly appear in VLSI circuits. The language forms the basis for a tool which permits term rewriting in a user-directed transformational style according to a set of proved term equivalences. Terms which describe causal relations may then be translated into a VLSI specification in a standard VLSI description language. The rewriting process is illustrated by the derivation of a relation describing a circuit for 2-dimensional convolution.","PeriodicalId":317084,"journal":{"name":"Conference on Functional Programming Languages and Computer Architecture","volume":"1 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"1995-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"129740368","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":"A generalization of exceptions and control in ML-like languages","authors":"Carl A. Gunter, Didier Rémy, J. Riecke","doi":"10.1145/224164.224173","DOIUrl":"https://doi.org/10.1145/224164.224173","url":null,"abstract":"We add functional continuations and prompts to a language with an ML-style type system. The operators signi cantly extend and simplify the control operators in SML/NJ, and can be themselves used to implement (simple) exceptions. We prove that well-typed terms never produce run-time type errors and give a module for implementing them in the latest version of SML/NJ.","PeriodicalId":317084,"journal":{"name":"Conference on Functional Programming Languages and Computer Architecture","volume":"23 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"1995-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"122493150","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":"The functional side of logic programming","authors":"M. Marchiori","doi":"10.1145/224164.224181","DOIUrl":"https://doi.org/10.1145/224164.224181","url":null,"abstract":"In this paper we study the relationships between logic pro gramming and functional programming trying to answer the following basic question to what extent is logic pro gramming just functional programming in disguise We develop a theory to formally express this correspondence and exhibit a class that can by right be considered as the functional core of logic programming Moreover since the functional meaning of each program in this class is provided constructively via a transformation from logic to functional programs we show how the obtained theoretical results are useful also in the study of languages integration termination issues and practical implementations","PeriodicalId":317084,"journal":{"name":"Conference on Functional Programming Languages and Computer Architecture","volume":"24 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"1995-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"114268199","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 schedules and virtual maps","authors":"Rajiv Mirani, P. Hudak","doi":"10.1145/224164.224185","DOIUrl":"https://doi.org/10.1145/224164.224185","url":null,"abstract":"Explicitly parallel functional languages typically use metalinguistics annotations to provide control over parallel evaluation. In this paper we explore more flexible mechanisms to control when and where an expression is evaluated: firstclass schedules and processors. We discuss the advantages of using first-class objects over traditional annotation-based systems. In particular, we show how monads can be used to access dynamic system parameters like system load in a referentially transparent manner (up to termination). Finally, we describe an implementation of first-class schedules and virtual processors on a 16-processor Silicon Graphics Challenge multiprocessor.","PeriodicalId":317084,"journal":{"name":"Conference on Functional Programming Languages and Computer Architecture","volume":"2 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"1995-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"124841731","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":"Deriving imperative code from functional programs","authors":"P. Quinton, S. Rajopadhye, D. Wilde","doi":"10.1145/224164.224177","DOIUrl":"https://doi.org/10.1145/224164.224177","url":null,"abstract":"Alpha is a data parallel functional language which has the capability of specifying algorithms at a very high level. Our ultimate objective is to generate efficient parallel imperative code from an Alpha program. In this paper, we discuss the related problem of generating efficient single processor imperative code. Analysis techniques that were developed for the synthesis of systolic arrays are extended and adapted for the compilation of functional programming languages. We also demonstrate how a transformational methodology can be used as a compilation engine to transform an Alpha program to a sequential form. C-code is then generated using a straightforward pretty printer from the sequential form Alpha program. The C-code may then be compiled to efficiently execute the program.","PeriodicalId":317084,"journal":{"name":"Conference on Functional Programming Languages and Computer Architecture","volume":"41 7 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"1995-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"130281877","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":"Parallelism in sequential functional languages","authors":"G. Blelloch, John Greiner","doi":"10.1145/224164.224210","DOIUrl":"https://doi.org/10.1145/224164.224210","url":null,"abstract":"This paper formally studies the question of how much parallelism is available in cal-by-value functional languages with no parallel extensions (i. e., the functional sub;ets of ML or Scheme). In particular we are interested in placing bounds on how much parallelism is available for various problems. To do this we introduce a complexity model, the PAL, based on the call-by-value A-calculus. The model is defined in terms of a profiling semantics and measures complexity in terms of the total work and the parallel depth of a computation. We describe a simulation of the A-PAL (the PAL extended with arithmetic operations) on various parallel machine models, including the butterfly, hypercube, and PRAM models and prove simulation bounds. In particular the simulat ions are workeficient (the processor-time product on the machines is within a constant factor of the work on the A-PAL), and for p processors the slowdown (time on the machines divided by depth on the A-PAL) is proportional to at most O(log p). We also prove bounds for simulating the PRAM on the A-PAL. Based on the model, we describe and analyze tree-based versions of quicksort and merge sort. We show that for an input of size n these algorithms run on the A-PAL model with O(rI log n) work and 0(log2 n) depth (expected case for quicksort ).","PeriodicalId":317084,"journal":{"name":"Conference on Functional Programming Languages and Computer Architecture","volume":"34 4 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"1995-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"132603095","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":"Pi-calculus, dialogue games and full abstraction PCF","authors":"M. Hyland, C. Ong","doi":"10.1145/224164.224189","DOIUrl":"https://doi.org/10.1145/224164.224189","url":null,"abstract":"Game semantics is an unusual denotational semantics in that it captures the intentional (or algorithmic) and dy-namical aspects of the computation. This makes it an ideal semantical framework in which to seek to unify analyses of both the qualitative (correctness) as well as the quantitative (efficiency) properties of programming languages. This paper reports work arising from a recent construction of an order (or inequationall y) fully abstract model for Scot t's functional programming language PCF based on a kind of two-person (Player and Opponent) dialogue game of questions and answers [H094]. In this model types are interpreted as games and terms as innocent strategies. The fully abstract game model may be said to be canonical for the semantical analysis of sequential functional languages. Unfortunately even for relatively simple PCF-terms, precise description of their denotations as strategies in [H094] very rapidly becomes unwieldy and opaque. What is needed to remedy the situation is an expressive formal language which lends itself to a succinct and economical representation of innocent strategies. In this paper we give just such a representation in terms of an appropriately sorted polyadic r-calculus, reading input ~-actions as Opponent's moves, and output ~-actions as Player's moves. This correspondence captures every essential aspect of the dialogue game paradigm so precisely that the r-representation may as well be taken to be the basis for its formal dejinitzon. Although the rr-representation of strategies already gives an encoding of PCF in the rr-calculus-indirectly via the fully abstract denotation of PCF-terms as innocent strategies, we define by recursion a new encoding of PCF in the n-calculus directly. The two ~-encodings of PCF are weakly bisimilar; if the latter is regarded as a compilation, then the former amounts to a more efficient version with compile-time optimization. The functional language PCF [SC093, P1077] is essentially the simply typed A-calculus augmented by basic arithmetic, con-Permission to make. digihllhard copies of 011or part of this material wKh-out fee is granted provided that the copies we not made or distributed for profit or commercial ~dvtmtage. the ACM copyright/server nouce, lhe title o f the publication and its date appear. and notice is given that copyright is by pemussIon of the .%sociatmr for Computmg Machinery. Inc. ditionals and fixed-point operators at every type. PCF-t ypes, ranged over by A, A,, B, etc., are defined by the following grammar in BNF: Every PCF-type A has a unique representation of the form …","PeriodicalId":317084,"journal":{"name":"Conference on Functional Programming Languages and Computer Architecture","volume":"22 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"1995-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"132631984","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":"Interprocedural register allocation for lazy functional languages","authors":"Urban Boquist","doi":"10.1145/224164.224215","DOIUrl":"https://doi.org/10.1145/224164.224215","url":null,"abstract":"The aim of this paper is two-fold; first, we develop an interprocedural register allocation algorithm, an extended variant of Briggs’ optimistic graph colouring. We use interprocedural coalescing as an elegant way to axhieve a custom-made calling convention for each function. We add a restricted, and cheap, form of live range splitting in a way that is particularly useful for call intensive languages. Second, we apply our interprocedural register allocation algorithm to code generated from a lazy functional language. In doing this we use a monadic intermediate code, well suited for analysis and program transformation. We use program transformation techniques and the result of an abstract interpretation analysis on the intermediate code to eliminate all unknown control flow in the program. This will improve the chances of the register allocator to produce good results. Preliminary measurements show that we are able to eliminate up to 95% of all stack references compared to the Chalmers hbc compiler, and to a large extent even further reduce the total number of memory references.","PeriodicalId":317084,"journal":{"name":"Conference on Functional Programming Languages and Computer Architecture","volume":"30 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"1995-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"128935025","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":"Constructing functional programs for grammar analysis problems","authors":"J. Jeuring, D. Swierstra","doi":"10.1145/224164.224214","DOIUrl":"https://doi.org/10.1145/224164.224214","url":null,"abstract":"This paper discusses the derivation of functional programs for grammar analysis problems, such as the Empty problem and the Reachable problem. Grammar analysis problems can be divided into two classes: top-down problems such as Follow and Reachable, which are described in terms of the contexts of nonterminals, and bottom-up problems such as Empty and First, which do not refer to contexts. In a previous paper we derive a program for bottom-up grammar analysis problems. In this paper we derive a program for top-down grammar analysis problems by transforming the specification of an arbitrary top-down problem into a program. The existence of a solution is guaranteed provided some natural conditions are satisfied. Furthermore, we describe a general transformation that applies to both classes of grammar analysis problems. The general transformation avoids unnecessary computations in the computation of a fixed point. Constructor classes, which are used to abstract from the notions bottom-up and top-down, are an essential ingredient of the latter derivation.","PeriodicalId":317084,"journal":{"name":"Conference on Functional Programming Languages and Computer Architecture","volume":"39 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"1995-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"129452627","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":"Purely functional random-access lists","authors":"Chris Okasaki","doi":"10.1145/224164.224187","DOIUrl":"https://doi.org/10.1145/224164.224187","url":null,"abstract":"We present a new data structure, called a random-access list, that supports array lookup and update operations in O(log n) time, while simultaneously providing O(1) time list operations (cons, head, tad). A closer analysis of the array operations improves the bound to O(min{i, log n}) in the worst case and O(log i) in the expected case, where i is the index of the desired element. Empirical evidence suggests that this data structure should be quite efficient in practice.","PeriodicalId":317084,"journal":{"name":"Conference on Functional Programming Languages and Computer Architecture","volume":"35 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"1995-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"115846943","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}