Skip to main content

A Generic Programming Toolkit for PADS/ML: First-Class Upgrades for Third-Party Developers

  • Conference paper
Practical Aspects of Declarative Languages (PADL 2008)

Part of the book series: Lecture Notes in Computer Science ((LNPSE,volume 4902))

Included in the following conference series:

Abstract

Domain-specific languages facilitate solving problems in a targeted domain by providing features particular to the domain. Declarative domain-specific languages have the additional benefit that users specify what something means rather than how to do something. As a result, the language compiler is free to choose the best implementation strategies and to generate multiple artifacts from a single description. pads/ml is a declarative data description language designed to facilitate ad hoc data management. From a single description, the compiler generates a myriad of artifacts, including data structures for the in-memory representation of the data and parsers and printers. In this paper, we describe a new generic programming infrastructure for pads/ml that allows third-party developers to define additional useful artifacts without modifying the compiler. We report on two case studies that use this infrastructure. In the first, we build a version of padx for pads/ml, allowing any data source with a pads/ml description to be queried as if it were xml. In the second, we extend Harmony with the ability to synchronize any data with a pads/ml description.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Camlp4 - Gallium, http://brion.inria.fr/gallium/index.php/Camlp4

  2. Gene Ontology Consortium. Gene ontology project, http://www.geneontology.org

  3. Fernández, M., Fisher, K., Gruber, R., Mandelbaum, Y.: PADX: Querying large-scale ad hoc data with XQuery. In: PLAN-X (2006)

    Google Scholar 

  4. Fisher, K., Gruber, R.: PADS: A domain-specific language for processing ad hoc data. In: PLDI (2005)

    Google Scholar 

  5. Nathan Foster, J., Greenwald, M.B., Kirkegaard, C., Pierce, B.C., Schmitt, A.: Exploiting schemas in data synchronization. Journal of Computer and System Sciences 73(4) (June 2007)

    Google Scholar 

  6. Fernández, M.F., Siméon, J., Choi, B., Marian, A., Sur, G.: Implementing XQuery 1.0: The Galax experience. In: VLDB, pp. 1077–1080 (2003)

    Google Scholar 

  7. Hinze, R.: Generics for the masses. In: ICFP (2004)

    Google Scholar 

  8. Karvonen, V.A.J.: Generics for the working ml’er. In: ML Workshop (2007)

    Google Scholar 

  9. Katz, H. (ed.): XQuery from the experts. Addison-Wesley, Reading (2004)

    Google Scholar 

  10. Lämmel, R., Peyton Jones, S.: Scrap your boilerplate: a practical design pattern for generic programming. In: TLDI (2003)

    Google Scholar 

  11. Lämmel, R., Peyton Jones, S.: Scrap more boilerplate: reflection, zips, and generalised casts. In: ICFP (2004)

    Google Scholar 

  12. Lämmel, R., Peyton Jones, S.: Scrap your boilerplate with class: extensible generic functions. In: ICFP (2005)

    Google Scholar 

  13. Mandelbaum, Y.: The Theory and Practice of Data Description. PhD thesis, Princeton University (September 2006)

    Google Scholar 

  14. Mandelbaum, Y., Fisher, K., Walker, D., Fernandez, M., Gleyzer, A.: PADS/ML: A functional data description language. In: POPL (2007)

    Google Scholar 

  15. Mandelbaum, R., Hirata, C.M., Seljak, U., Guzik, J., Padmanabhan, N., Blake, C., Blanton, M.R., Lupton, R., Brinkmann, J.: Systematic errors in weak lensing: application to SDSS galaxy-galaxy weak lensing. Mon. Not. R. Astron. Soc. 361, 1287–1322 (2005)

    Article  Google Scholar 

  16. Pierce, B.C., Bohannon, A., Foster, J.N., Greenwald, M.B., Khanna, S., Kunal, K., Schmitt, A.: Harmony: A synchronization framework for heterogeneous tree-structured data, http://www.seas.upenn.edu/~harmony/

  17. Yallop, J.: Practical generic programming in ocaml. In: ML Workshop (2007)

    Google Scholar 

  18. Yang, Z.: Encoding types in ML-like languages. In: ICFP (1998)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Paul Hudak David S. Warren

Rights and permissions

Reprints and permissions

Copyright information

© 2007 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Fernández, M., Fisher, K., Foster, J.N., Greenberg, M., Mandelbaum, Y. (2007). A Generic Programming Toolkit for PADS/ML: First-Class Upgrades for Third-Party Developers. In: Hudak, P., Warren, D.S. (eds) Practical Aspects of Declarative Languages. PADL 2008. Lecture Notes in Computer Science, vol 4902. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-77442-6_10

Download citation

  • DOI: https://doi.org/10.1007/978-3-540-77442-6_10

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-77441-9

  • Online ISBN: 978-3-540-77442-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics