Reference. From dirt to shovels: fully automatic tool generation from ad hoc data

Cite

Cite as @fisher-2008-from (helia, typst) · \cite{fisher-2008-from} (LaTeX)
BibTeX
bibtex · 1 line
@inproceedings{fisher-2008-from, series={POPL08}, title={From dirt to shovels: fully automatic tool generation from ad hoc data}, url={http://dx.doi.org/10.1145/1328438.1328488}, DOI={10.1145/1328438.1328488}, booktitle={Proceedings of the 35th annual ACM SIGPLAN-SIGACT symposium on Principles of programming languages}, publisher={ACM}, author={Fisher, Kathleen and Walker, David and Zhu, Kenny Q. and White, Peter}, year={2008}, month=Jan, pages={421–434}, collection={POPL08} }
hayagriva YAML (typst)
yaml · 20 lines
fisher-2008-from:
  type: article
  title: 'From dirt to shovels: fully automatic tool generation from ad hoc data'
  author:
  - Fisher, Kathleen
  - Walker, David
  - Zhu, Kenny Q.
  - White, Peter
  date: 2008-01
  page-range: 421-434
  url: http://dx.doi.org/10.1145/1328438.1328488
  serial-number:
    doi: 10.1145/1328438.1328488
  parent:
    type: proceedings
    title: Proceedings of the 35th annual ACM SIGPLAN-SIGACT symposium on Principles of programming languages
    publisher: ACM
    parent:
      type: proceedings
      title: POPL08
Cited by (2)

Saggitarius: A DSL for Specifying Grammatical Domains miltner-2023-saggitarius

Common data types like dates, addresses, phone numbers and tables can have multiple textual representations, and many heavily-used languages, such as SQL, come in several dialects. These variations can cause data to be misinterpreted, leading to silent data corruption, failure of data processing systems, or even security vulnerabilities. Saggitarius is a new language and system designed to help programmers reason about the format of data, by describing grammatical domains—that is, sets of context-free grammars that describe the many possible representations of a datatype. We describe the design of Saggitarius via example and provide a relational semantics. We show how Saggitarius may be used to analyze a data set: given example data, it uses an algorithm based on semi-ring parsing and MaxSAT to infer which grammar in a given domain best matches that data. We evaluate the effectiveness of the algorithm on a benchmark suite of 110 example problems, and we demonstrate that our system typically returns a satisfying grammar within a few seconds with only a small number of examples. We also delve deeper into a more extensive case study on using Saggitarius for CSV dialect detection. Despite being general-purpose, we find that Saggitarius offers comparable results to hand-tuned, specialized tools; in the case of CSV, it infers grammars for 84% of benchmarks within 60 seconds, and has comparable accuracy to custom-built dialect detection tools.
PDF · DOI · arXiv · pldb

Synthesizing symmetric lenses miltner-2019-synthesizing

Lenses are programs that can be run both “front to back” and “back to front,” allowing updates to either their source or their target data to be transferred in both directions. Since their introduction by Foster et al., lenses have been extensively studied, extended, and applied. Recent work has also demonstrated how techniques from type-directed program synthesis can be used to efficiently synthesize a simple class of lenses—so-called bijective lenses over string data—given a pair of types (regular expressions) and a small number of examples. We extend this synthesis algorithm to a much broader class of lenses, called simple symmetric lenses, including all bijective lenses, all of the popular category of “asymmetric” lenses, and a rich subset of the more powerful “symmetric lenses” proposed by Hofmann et al. Intuitively, simple symmetric lenses allow some information to be present on one side but not the other and vice versa. They are of independent theoretical interest, being the largest class of symmetric lenses that do not rely on persistent internal state. Synthesizing simple symmetric lenses is substantially more challenging than synthesizing bijective lenses: Since some of the information on each side can be “disconnected” from the other side, there will, in general, be many lenses that agree with a given example. To guide the search process, we use stochastic regular expressions and ideas from information theory to estimate the amount of information propagated by a candidate lens, generally preferring lenses that propagate more information, as well as user annotations marking parts of the source and target data structures as either irrelevant or essential. We describe an implementation of simple symmetric lenses and our synthesis procedure as extensions to the Boomerang language. We evaluate its performance on 48 benchmark examples drawn from Flash Fill, Augeas, the bidirectional programming literature, and electronic file format synchronization tasks. Our implementation can synthesize each of these lenses in under 30 seconds.
PDF · DOI · arXiv · pldb
Cites 33 works (2 here)
With notes (2)

The next 700 data description languages fisher-2006-the

PDF · DOI · pldb

PADS: a domain-specific language for processing ad hoc data fisher-2005-pads

PDF · DOI · pldb
External (31)
fisher-2008-from reference entries/refs/fisher-2008-from/fisher-2008-from.hel