CSC/ECE 517 Spring 2013/ch1 1h jc: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
Line 9: Line 9:
==Common Uses==
==Common Uses==
===Pre-generate static data at compile time===
===Pre-generate static data at compile time===
One common use of metaprogramming in statically typed languages is to write programs that will pre-generate tables of data for use at runtime.
===Eliminate boiler-plate===
===Eliminate boiler-plate===
===Abbreviate statements and prevent mistakes===
===Abbreviate statements and prevent mistakes===

Revision as of 21:07, 17 February 2013

Metaprogramming in statically typed languages

Introduction

What is metaprogramming

Metaprogramming in statically typed languages

Implementation

Exposing the internals of the compiler as an API

Program transformation system

Metaprogramming using Scheme

Common Uses

Pre-generate static data at compile time

One common use of metaprogramming in statically typed languages is to write programs that will pre-generate tables of data for use at runtime.

Eliminate boiler-plate

Abbreviate statements and prevent mistakes

Metaprogramming Framework in Java

Reflection

Generics

Metadata annotation

Limitations