C++ Templates as Partial Evaluation

Computer Science – Programming Languages

Scientific paper

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

13 pages

Scientific paper

This paper explores the relationship between C++ templates and partial evaluation. Templates were designed to support generic programming, but unintentionally provided the ability to perform compile-time computations and code generation. These features are completely accidental, and as a result their syntax is awkward. By recasting these features in terms of partial evaluation, a much simpler syntax can be achieved. C++ may be regarded as a two-level language in which types are first-class values. Template instantiation resembles an offline partial evaluator. This paper describes preliminary work toward a single mechanism based on Partial Evaluation which unifies generic programming, compile-time computation and code generation. The language Catat is introduced to illustrate these ideas.

No associations

LandOfFree

Say what you really think

Search LandOfFree.com for scientists and scientific papers. Rate them and share your experience with other people.

Rating

C++ Templates as Partial Evaluation does not yet have a rating. At this time, there are no reviews or comments for this scientific paper.

If you have personal experience with C++ Templates as Partial Evaluation, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and C++ Templates as Partial Evaluation will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFWR-SCP-O-493849

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.