Request and Assert: A pragmatic approach to generating specialization scenarios

dc.contributor.authorZHU, Pingen_US
dc.contributor.authorKHOO, Siau-Chengen_US
dc.date.accessioned2006-11-13T07:09:20Zen_US
dc.date.accessioned2017-01-23T06:59:55Z
dc.date.available2006-11-13T07:09:20Zen_US
dc.date.available2017-01-23T06:59:55Z
dc.date.issued2006-11-13T07:09:20Zen_US
dc.description.abstractA specialization scenario provides a programmer friendly mechanism communicating the information about specialization opportunities to partial evaluators. Unfortunately, the process of generating suitable scenarios remains an art only mastered by programmers with in-depth knowledge about partial evaluation. Existing works on generating scenarios either rely on a brute-force approach to generate all possible scenarios, or to introduce specific design patterns into the programming to facilitate extracting specialization scenarios. In this paper, we provide a lightweight approach to partial evaluation by enabling non-experts to declare two simple specialization concerns: request and assert. The request enables a programmer to declare specialization opportunities and an assert aims to prevent undesirable partial evaluation, such as infinite specialization, from occurring. We describe an algorithm that derives specialization scenarios by declaring the necessary binding-time values at program inputs, aiming at fulfilling any request and satisfy the assert meanwhile.en_US
dc.format.extent554655 bytesen_US
dc.format.mimetypeapplication/pdfen_US
dc.identifier.urihttps://dl.comp.nus.edu.sg/xmlui/handle/1900.100/2254en_US
dc.language.isoenen_US
dc.relation.ispartofseriesTR11/06en_US
dc.titleRequest and Assert: A pragmatic approach to generating specialization scenariosen_US
dc.typeTechnical Reporten_US
Files
Original bundle
Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
TR11-06.pdf
Size:
541.66 KB
Format:
Adobe Portable Document Format
Description:
License bundle
Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
license.txt
Size:
1.53 KB
Format:
Plain Text
Description: