Friday, July 08, 2005

Compilers - where are they going?

Reading through some of my books, I came across two concepts that I think are the biggest things that compilers support today

  1. Templates or Generics
  2. Reflection



The diagram below depicts the following facts

  1. Reflection is getting us closer to the compiler internals. They help us with how types are organized and to help us probe for more compiler details. Reflection is helping the user get more information about compiler internals.
  2. Templates are taking us towards implementing our own primitives. We are so close to doing code generation using techniques like meta template programming.

The day is not far when templates and reflection techniques will merge at some point giving the user full control from compiler internals to using the compiler interface.
Post a Comment