cpp replaced by m4?

Bill Ricker bill.n1vux at gmail.com
Thu Jul 5 08:28:42 EDT 2007


If you're doing 6-nexted integer loops, shouldn't you be using
vector-optimized super-scalar fortran anyway?

> > That 'cog' hack looks interesting, although I am leery of such things
> > that modify their own source files.  A similar hack is 'ptml' which also
> > executes embedded python in templates and produces text output.

> Actually any of the myriad template languages that support unstructured
> text output (i.e. not limited to XML or some other strict format) should
> work as well. Many Python choices here, I imagine there are similar
> lists for perl, Ruby, etc.

There is a surfeit of templating packages for Perl. Ruby must have
more than Rails (but that's all you hear of).

Basing your macro package on Perl/Python is no different than coding
it in C, except you have better string processing at syntactic level
and thus should require less black magic to add features. Unless all
app coders using it are happy Perl/Python hackers, a macro/templating
package built in P* is a better choice than embedding P* that
generates C/Fortran. Someone on your team would need to be enough of a
p* hacker to extend & maintain, but not everyone.

If you decide what macros are what you need (a spec), the Boston.PM or
#perl folk can probably prototype your macro processor quickly, and
GNH-pythoners likewise.


-- 
Bill
n1vux at arrl.net bill.n1vux at gmail.com


More information about the gnhlug-discuss mailing list