February 27, 2003 | ||
Very interesting :)
One project of compile-time metapprogramming i'm aware of is OpenC++ Version 2 and higher.
http://www.csg.is.titech.ac.jp/~chiba/openc++.html
It has undergone some improvement at version 2.5, but i haven't read all the documents yet. There are already several years of experience behind the project.
Anyway, i'm considering to make a meta-programming language extension for D programming language (which brings both improvement and simplification to C++), or to make a Pascal descendant with meta-programming as GCC frontend or generating D source.
For information on D: www.digitalmars.com/d/
-i.
Posted by: Ilya Minkov on March 20, 2003 06:33 AMThanks for the feedback. I was aware of OpenC++ and MPC++. I've only read high-level papers about these (no hands-on experience), but they seemed too complex for widespread use.
The metacode extension ended up being a pretty simple extension with almost no new C++ concepts. (The implementation may not be all that simple, but the programming model is.)
Something like lisp macros in C or C++ would be great.
I built a programmable preprocessor that allows generic code manipultation through directives in fortran90. The language used to transform the fortran has features for examining and constructing chunks of code. It's been used for a few years on a few hundred thousand lines of code I'm trying to extend it with data flow information.
It would be great to make it more elegant and work it into Fortran but the users don't want that.
Let me know if you want some info.
Posted by: Matt on June 6, 2003 04:01 PM