Lecture Notes in Computer Science 7149

Similar documents
Lecture Notes in Computer Science 7007

Lecture Notes in Computer Science 4409

Lecture Notes in Computer Science 3511

Lecture Notes in Computer Science 3819

Lecture Notes in Computer Science 4728

Lecture Notes in Computer Science 4454

Lecture Notes in Computer Science 7480

Lecture Notes in Computer Science 6663

Lecture Notes in Artificial Intelligence 3176

Lecture Notes in Computer Science 4797

Lecture Notes in Computer Science 7342

Lecture Notes in Computer Science 6037

Lecture Notes in Artificial Intelligence 2155

Lecture Notes in Computer Science 5004

Lecture Notes in Computer Science 5083

Lecture Notes in Computer Science 4401

Lecture Notes in Computer Science 6647

Lecture Notes in Computer Science 4214

Lecture Notes in Computer Science 5671

Lecture Notes in Computer Science 5474

Lecture Notes in Computer Science 4449

Research Reports ESPRIT

Detection of Intrusions and Malware, and Vulnerability Assessment

The Archaeology of Anxiety

Lecture Notes in Computer Science 5438

Lecture Notes in Computer Science 2497 Edited by G. Goos, J. Hartmanis, and J. van Leeuwen

International Conference on Image and Signal Processing. July 2-4, 2018, Cherbourg, France

Lecture Notes in Computer Science 10644

Lecture Notes in Computer Science 8341

Lecture Notes in Computer Science 8036

Gordon Stewart Curriculum Vitae

Lecture Notes in Computer Science 3507

Lecture Notes in Artificial Intelligence 4327

Arild Stubhaug. Gösta Mittag-Leffler. AManofConviction. Translated by Tiina Nunnally

Lecture Notes in Computer Science 4883

Lecture Notes in Computer Science 3527

Emotional Engineering Volume 5

Lecture Notes in Computer Science 9804

Intelligent Primary School Project in Italy

Lecture Notes in Computer Science 9596

Lecture Notes in Computer Science 7734

Lecture Notes in Computer Science 8031

Lecture Notes in Artificial Intelligence 6517

Lecture Notes in Computer Science 7896

Fractals and Chaos. A.J. Crilly R.A. Earnshaw H. Jones Editors. With 146 Figures in 173 Parts, 57 in Color

Springer Berlin Heidelberg NewYork Barcelona Budapest HongKong London Milan Paris Santa Clara Singapore Tokyo

Lecture Notes in Computer Science 9211

CoPDA Barbara Rita Barricelli Ali Gheitasy Anders Mørch Antonio Piccinno Stefano Valtolina (Eds.)

Lecture Notes in Computer Science 5587

Lecture Notes in Computer Science 6815

Early Modern Philosophers and the Renaissance Legacy

Lecture Notes in Computer Science 3061

Lecture Notes in Computer Science 5581

Lecture Notes in Computer Science 7140

Lecture Notes in Computer Science 6035

Curriculum Vitae Person Education Professional career

Lecture Notes in Artificial Intelligence

Studies in Epistemology, Logic, Methodology, and Philosophy of Science

Lecture Notes in Computer Science 2386 Edited by G. Goos, J. Hartmanis, and J. van Leeuwen

Higher Densities No Sprawl: Master Plan for the City of Ramat-Gan, Israel

Process Maturity Profile

Lecture Notes in Computer Science 9249

Process Maturity Profile

Lecture Notes in Computer Science 6705

ADCS Proceedings of the Ninth Australasian Document Computing Symposium, December 13, 2004

Lecture Notes in Computer Science 7189

High-Rise Living in Asian Cities

Stefano Bistarelli, Andrea Formisano, Marco Maratea (Eds.)

German Yearbook on Business History 1986

Lecture Notes in Computer Science 6697

This page intentionally left blank

ISNI. International Society of Neuroimmunology PROFILE 2013

Lecture Notes in Computer Science 7744

CoPDA Barbara Rita Barricelli Gerhard Fischer Anders Mørch Antonio Piccinno Stefano Valtolina (Eds.)

Lecture Notes in Computer Science 7679

CURRICULUM VITAE Michael (Michail) Th. Rassias

Lecture Notes in Computer Science 7137

Lecture Notes in Computer Science

Process Maturity Profile

TRAVEL FELLOWSHIP. John Belle traveling in England between studies at the Architectural Association in London.

Computers in Building: Proceedings of the CAADfutures'99 Conference

American Literature. Narratives of Multiculturalism in Post-Imperial Turkey. Interamericana 10. Elena Furlanetto

gpehihpcl'upn sdii-gei tim GE ng Fiae^'ban*' and pq>-er ujeibel with contributions by

Lecture Notes in Computer Science 5284

Study. Review of External Market Valuations of Properties Located Abroad. HypZert Professional Group International. As at: November 2011

RTS & HUMANITIES CITATION INDEX - ASIAN STUDIES JOURNAL LIST Total journals: ARTIBUS ASIAE

Lecture Notes in Computer Science 6092

ACADEMIC QUALIFICATIONS:

Curriculum Vitae for Marlis Buchman

A Complete Bibliography of the Proceedings Volumes of the ACM Symposia on the Theory of Computing ( )

Lecture Notes in Computer Science 7309

5 Liberty St., Suite B-328, Charleston, SC Phone: (843)

NCCR Digital Fabrication. Dr. Russell Loveridge. Managing Director NCCR Digital Fabrication

College of Business and Economics California State University, Fullerton present

Lecture Notes in Computer Science 6527

A Bibliography of Books about REDUCE

Nonprofit and Civil Society Studies

Lecture Notes in Computer Science 6084

L.O. Hertzberger, University of Amsterdam, The Netherland, T. Kanade, CMU, Pittsburg, USA

Lecture Notes in Computer Science 4935

Transcription:

Lecture Notes in Computer Science 7149 Commenced Publication in 1973 Founding and Former Series Editors: Gerhard Goos, Juris Hartmanis, and Jan van Leeuwen Editorial Board David Hutchison Lancaster University, UK Takeo Kanade Carnegie Mellon University, Pittsburgh, PA, USA Josef Kittler University of Surrey, Guildford, UK Jon M. Kleinberg Cornell University, Ithaca, NY, USA Alfred Kobsa University of California, Irvine, CA, USA Friedemann Mattern ETH Zurich, Switzerland John C. Mitchell Stanford University, CA, USA Moni Naor Weizmann Institute of Science, Rehovot, Israel Oscar Nierstrasz University of Bern, Switzerland C. Pandu Rangan Indian Institute of Technology, Madras, India Bernhard Steffen TU Dortmund University, Germany Madhu Sudan Microsoft Research, Cambridge, MA, USA Demetri Terzopoulos University of California, Los Angeles, CA, USA Doug Tygar University of California, Berkeley, CA, USA Gerhard Weikum Max Planck Institute for Informatics, Saarbruecken, Germany

Claudio Russo Neng-Fa Zhou (Eds.) Practical Aspects of Declarative Languages 14th International Symposium, PADL 2012 Philadelphia, PA, USA, January 23-24, 2012 Proceedings 13

Volume Editors Claudio Russo Microsoft Research Ltd 7 JJ Thomson Ave, Cambridge, CB3 0FB, UK E-mail: crusso@microsoft.com Neng-Fa Zhou Brooklyn College Dept. of Computer and Information Science 2900 Bedford Ave, Brooklyn, NY 11210-2889, USA E-mail: zhou@sci.brooklyn.cuny.edu ISSN 0302-9743 e-issn 1611-3349 ISBN 978-3-642-27693-4 e-isbn 978-3-642-27694-1 DOI 10.1007/978-3-642-27694-1 Springer Heidelberg Dordrecht London New York Library of Congress Control Number: 2011944653 CR Subject Classification (1998): D.3, D.1, F.3, D.2, I.2 LNCS Sublibrary: SL 2 Programming and Software Engineering Springer-Verlag Berlin Heidelberg 2012 This work is subject to copyright. All rights are reserved, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, re-use of illustrations, recitation, broadcasting, reproduction on microfilms or in any other way, and storage in data banks. Duplication of this publication or parts thereof is permitted only under the provisions of the German Copyright Law of September 9, 1965, in its current version, and permission for use must always be obtained from Springer. Violations are liable to prosecution under the German Copyright Law. The use of general descriptive names, registered names, trademarks, etc. in this publication does not imply, even in the absence of a specific statement, that such names are exempt from the relevant protective laws and regulations and therefore free for general use. Typesetting: Camera-ready by author, data conversion by Scientific Publishing Services, Chennai, India Printed on acid-free paper Springer is part of Springer Science+Business Media (www.springer.com)

Preface This volume contains the proceedings of the 14th International Symposium on Practical Aspects of Declarative Languages (PADL 2012), held in Philadelphia, Pennsylvania, during January 23 24, 2012. PADL is an annual forum where researchers and practitioners present original work emphasizing new ideas and approaches pertaining to applications and implementation techniques of declarative languages. This year s topics of interest included: Innovative applications of declarative languages Declarative domain-specific languages and applications Practical applications of theoretical results New language developments and their impact on applications Evaluation of implementation techniques on practical applications Novel implementation techniques relevant to applications Novel uses of declarative languages in the classroom Practical experiences PADL solicited both full technical papers and shorter application papers. In both categories we initially received 52 abstracts, which materialized into 41 papers (38 technical papers and three application papers). Each submission was reviewed by at least three Program Committee members and each member was asked to referee at least one paper outside their usual area. In the end, the Program Committee decided to accept 19 technical papers. The set of accepted papers present a variety of contributions ranging from implementation techniques, applied dependent types, (embedded) domain-specific languages, declarative modelling and hardware design, concurrent and parallel programming, constraint programming, attribute grammars, distributed policy languages and work on new language features and type systems. The conference program also included an invited paper, Recent Advances in Declarative Networking, presented by Boon Thau Loo (University of Pennsylvania), and an invited talk Make Things Now! Pragmatic Functional Programming in Haskell by Don Stewart (Standard Chartered Bank). The PADL symposium was co-located with the ACM Symposium on Principles of Programming Languages (POPL 2012). We would like to thank the ACM, the POPL organizers, the Association for Logic Programming and Microsoft Research for their support, the developers of the EasyChair conference management system for easing the lives of the Program Committee chairs and the Springer staff responsible for producing the LNCS series. We would also like

VI Preface to express our gratitude to all the authors who submitted papers, the participants for making the event a success, and the Program Committee members and external reviewers the symposium would not have been possible without their dedicated and outstanding work. We are also indebted to Gopal Gupta for his guidance and practical help and Ricardo Rocha for access to past materials. November 2011 Claudio Russo Neng-Fa Zhou

Organization Program Committee Marcello Balduccini Edwin Brady Henning Christiansen Agostino Dovier Matthew Flatt Gopal Gupta John Hughes Gabriele Keller Lunjin Lu Marc Pouzet Ricardo Rocha Andreas Rossberg Claudio Russo Kostis Sagonas Satnam Singh Zoltan Somogyi Eijiro Sumii Terrance Swift Andrew Tolmach Jan Wielemaker Roland Yap Kwangkeun Yi Neng-Fa Zhou Kodak Research Laboratories, USA University of St. Andrews, UK Roskilde University, Denmark University of Udine, Italy University of Utah, USA University of Texas at Dallas, USA Chalmers University of Technology, Sweden University of New South Wales, Australia Oakland University, USA École Normale Supérieure, France University of Porto, Portugal Google Germany GmbH, Germany Microsoft Research, UK Uppsala University, Sweden; NTUA, Greece Microsoft Research, UK The Univerity of Melbourne, Australia Tohoku University, Japan Universidade Nova de Lisboa, Portugal; Johns Hopkins University, USA Portland State University, USA University of Amsterdam, The Netherlands National University of Singapore, Republic of Singapore Seoul National University, Korea City University of New York, USA Additional Reviewers Antoy, Sergio Axelsson, Emil Bordeaux, Lucas Brand, Sebastian Caillaud, Benoît Carlsson, Mats Chakravarty, Manuel Chintabathina, Sandeep Cohen, Albert Cruz, Flávio Devries, Brian Dutra, Ins Fiore, Marcelo Formisano, Andrea Gelfond, Gregory Hamlen, Kevin Hobor, Aquinas Hur, Chung-Kil

VIII Organization Kim, Sangsig Komendantskaya, Ekaterina Lee, Wonchan Lee, Wooseok Mainland, Geoffrey Marple, Kyle Montanari, Angelo Oh, Hakjoo Omodeo, Eugenio Pace, Gordon Park, Sungwoo Piazza, Carla Rosendahl, Mads Santos Costa, Vitor Sasano, Isao Schulte, Christian Tamura, Naoyuki Theil Have, Christian Van Wyk, Eric

Table of Contents Recent Advances in Declarative Networking... 1 Boon Thau Loo, Harjot Gill, Changbin Liu, Yun Mao, William R. Marczak, Micah Sherr, Anduo Wang, and Wenchao Zhou Make Things Now! Pragmatic Functional Programming in Haskell... 17 Don Stewart A Declarative Approach for Software Modeling... 18 Mayer Goldberg and Guy Wiener Contracts and Specifications for Functional Logic Programming... 33 Sergio Antoy and Michael Hanus The Environment as an Argument: Context-Aware Functional Programming... 48 Pedro M. Martins, Julie A. McCann, and Susan Eisenbach Weighted-Sequence Problem: ASP vs CASP and Declarative vs Problem-Oriented Solving... 63 Yuliya Lierler, Shaden Smith, Miroslaw Truszczynski, and Alex Westlund Practical and Methodological Aspects of the Use of Cutting-Edge ASP Tools... 78 Marcello Balduccini and Yuliya Lierler Efficient Tabling of Structured Data Using Indexing and Program Transformation... 93 Christian Theil Have and Henning Christiansen Optimizing Inequality Joins in Datalog with Approximated Constraint Propagation... 108 Dario Campagna, Beata Sarna-Starosta, and Tom Schrijvers Symbolic Execution of Concurrent Objects in CLP... 123 ElviraAlbert,PuriArenas,andMiguelGómez-Zamalloa A Segment-Swapping Approach for Executing Trapped Computations... 138 Pablo Chico de Guzmán, Amadeo Casas, Manuel Carro, and Manuel V. Hermenegildo

X Table of Contents Palovca: Describing and Executing Graph Algorithms in Haskell... 153 Michael Lesniak LearnPADS ++ : Incremental Inference of Ad Hoc Data Formats... 168 Kenny Q. Zhu, Kathleen Fisher, and David Walker The Kennedy-Warren Algorithm Revisited: Ordering Attribute Grammars... 183 Jeroen Bransen, Arie Middelkoop, Atze Dijkstra, and S. Doaitse Swierstra Distributed Policy Specification and Interpretation with Classified Advertisements... 198 Nicholas Coleman Handshaking in Kansas Lava Using Patch Logic... 212 Andy Gill and Bowe Neuenschwander Virtualizing Real-World Objects in FRP... 227 Daniel Winograd-Cort, Hai Liu, and Paul Hudak Resource-Safe Systems Programming with Embedded Domain Specific Languages... 242 Edwin Brady and Kevin Hammond Node-Based Connection Semantics for Equation-Based Object-Oriented Modeling Languages... 258 David Broman and Henrik Nilsson A Declarative Specification of Tree-Based Symbolic Arithmetic Computations... 273 Paul Tarau Typing the Numeric Tower... 289 Vincent St-Amour, Sam Tobin-Hochstadt, Matthew Flatt, and Matthias Felleisen Author Index... 305