note
FoxtrotUniform
<blockquote>
No, I mean mostly code generation using closures and string eval. If you write code that writes code then you can usually make that generated code extremely efficient. A good example for me was a system that processes large volumes of records based on a config file of rules that were strongly influenced by file type. Instead of making a machine in perl that processed the records according to the rules I made a machine in perl that created perl programs that were equivelent to the rules for each type of file. Each closure was constructed to handle only the rules for each file and in an optimised way. The end result has proved to be extremely fast.
</blockquote>
<p>Regardless of whether or not "writing code that writes code" is "really" functional programming, that sounds like a really cool CUFP or Meditation waiting to happen.</p>
<div class="pmsig"><div class="pmsig-95145">
<p><tt>-- </tt><br>
Yours in pedantry,<tt><br>
<font color="#330000">F</font>
<font color="#550000">o</font>
<font color="#770000">x</font>
<font color="#990000">t</font>
<font color="#bb0000">r</font>
<font color="#dd0000">o</font>
<font color="#ff0000">t</font>
<font color="#ff0000">U</font>
<font color="#dd0000">n</font>
<font color="#bb0000">i</font>
<font color="#990000">f</font>
<font color="#770000">o</font>
<font color="#550000">r</font>
<font color="#330000">m</font>
</tt><br>
[id://399880|"Lines of code don't matter as long as I'm not writing them."] -- [merlyn]</p>
</div></div>
401489
401637