<div class="gmail_quote">On Mon, Dec 6, 2010 at 22:23, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Of course in the end we will be editing "code fragments" in an editor.</blockquote><div><br></div><div>Related: <a href="http://www.cs.brown.edu/people/acb/codebubbles_site.htm">http://www.cs.brown.edu/people/acb/codebubbles_site.htm</a></div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"> But I would like to see much of the code obtained by "manipulating" the code fragments with powerful tools (beyond CPP or regular expressions), for example all the code that is in there for different block sizes should be "generated"; but I don't want it generated by crude m4 macros and crap like that.  Note that C++ templates try to provide a mechanism for this type of thing but we both think that mechanism is crappy.</blockquote>
</div><br><div>Actually, I think C++ templates are adequate, and fairly well-suited, for block size specialization.  It's when people try to do more with them that the floodgates let loose.</div><div><br></div><div>Jed</div>