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 language | English |
|---|---|
| Number of pages | 3 |
| Publication status | Published - 17 Dec 2015 |
| Event | Workshop on Probabilistic Programming Semantics 2016 - St. Petersburg, United States Duration: 23 Jan 2016 → 23 Jan 2016 https://popl16.sigplan.org/track/pps-2016 |
Conference
| Conference | Workshop on Probabilistic Programming Semantics 2016 |
|---|---|
| Abbreviated title | PPS 2016 |
| Country/Territory | United States |
| City | St. Petersburg |
| Period | 23/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
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver