Skip to main navigation Skip to search Skip to main content

Making Our Own Luck A Language for Random Generators

  • Leonidas Lampropoulos
  • , Benjamin C. Pierce
  • , Cătălin Hriţcu
  • , John Hughes
  • , Zoe Paraskevopoulou
  • , Li-yao Xia

Research output: Contribution to conference › Paper › peer-review

Abstract

QuickCheck-style property-based random testing [4] requires efficient generators for well-distributed random data satisfying complex logical predicates. Writing such generators by hand can be difficult and error prone. We propose a domain-specific language, Luck, in which generators are expressed by decorating predicates with lightweight annotations controlling both the distribution of generated values and the amount of constraint solving that happens before each variable is instantiated. Generators in Luck are compact, readable, and maintainable, with efficiency close to custom handwritten generators. We give a precise semantics for Luck, reminiscent of those for probabilistic languages [7], and prove key theorems about its behavior, including the soundness and completeness of random generation with respect to a straightforward predicate semantics.
Original languageEnglish
Number of pages3
Publication statusPublished - 17 Dec 2015
EventWorkshop on Probabilistic Programming Semantics 2016 - St. Petersburg, United States
Duration: 23 Jan 2016 → 23 Jan 2016
https://popl16.sigplan.org/track/pps-2016

Conference

ConferenceWorkshop on Probabilistic Programming Semantics 2016
Abbreviated titlePPS 2016
Country/TerritoryUnited States
CitySt. Petersburg
Period23/01/16 → 23/01/16
Internet address

Fingerprint

Dive into the research topics of 'Making Our Own Luck A Language for Random Generators'. Together they form a unique fingerprint.

Cite this