Show simple item record

dc.contributor.authorEckhardt, Jason
Kaiabachev, Roumen
Pašalić, Emir
Swadi, Kedar
Taha, Walid
dc.date.accessioned 2017-08-02T22:03:03Z
dc.date.available 2017-08-02T22:03:03Z
dc.date.issued 2005-04-16
dc.identifier.urihttps://hdl.handle.net/1911/96341
dc.description.abstract Previous work on semantics-based multi-stage programming (MSP) language design focused on homogeneous languages designs, where the generating and the generated languages are the same. Homogeneous designs simply add a hygienic quasi-quotation and evaluation mechanism to a base language. An apparent disadvantage of this approach is that the programmer is bound to both expressivity and performance characteristics of the base language. This paper proposes a practical means to show that this can be avoided by providing specialized translations from subsets of the base language to different target languages. This approach preserves the homogeneous "look" of multi-stage programs, and, more importantly, the static guarantees about the generated code. In addition, compared to an explicitly heterogeneous approach, it promotes reuse and systematic exploration of the performance characteristics of the target languages. To illustrate the proposed approach, we design and implement a translation to a subset of C suitable for numerical computation, and show that it preserves static typing. The translation is implemented, and evaluated with several benchmarks. The implementation is available in the online distribution of MetaOCaml.
dc.format.extent 23 pp
dc.language.iso eng
dc.rights You are granted permission for the noncommercial reproduction, distribution, display, and performance of this technical report in any format, but this permission is only for a period of forty-five (45) days from the most recent time that you verified that this technical report is still available from the Computer Science Department of Rice University under terms that include this permission. All other rights are reserved by the author(s).
dc.title Implicitly Heterogeneous Multi-stage Programming
dc.type Technical report
dc.date.note April 16, 2005
dc.identifier.digital TR05-453
dc.type.dcmi Text
dc.identifier.citation Eckhardt, Jason, Kaiabachev, Roumen, Pašalić, Emir, et al.. "Implicitly Heterogeneous Multi-stage Programming." (2005) https://hdl.handle.net/1911/96341.


Files in this item

Thumbnail

This item appears in the following Collection(s)

Show simple item record