<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>ByteLabs: Exploiting Parallelism in Multi-way Recursive Methods</title>
    <link>http://blog.solaris.bytelabs.org/articles/2007/03/06/exploiting-parallelism-in-multi-way-recursive-methods</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>additions to a vast pool of entropy by Igor and Ines</description>
    <item>
      <title>Exploiting Parallelism in Multi-way Recursive Methods</title>
      <description>&lt;p&gt;My &lt;a href="http://www.ssw.uni-linz.ac.at/Teaching/DiplomaTheses/AutomatischeCodeerzeugung/Aufgabenstellung.pdf"&gt;code generator&lt;/a&gt; which
is still in the prototyping and experimentation phase does &lt;strong&gt;a lot of recursive tree traversals&lt;/strong&gt; which is quite obvious since it
needs to match tree patterns and emit code for abstract syntax trees (AST).&lt;/p&gt;


	&lt;p&gt;Especially during the code emission phase which does a top down left to right tree traversal it would be nice to 
recursively evaluate child nodes of an &lt;span class="caps"&gt;AST&lt;/span&gt; in parallel if the evaluation of the child nodes does not yield any 
side effects. The following &lt;a href="http://citeseer.ist.psu.edu/31327.html"&gt;paper&lt;/a&gt; nicely describes how to transform
&lt;strong&gt;standard&lt;/strong&gt; multi-way recursive methods into &lt;strong&gt;parallel&lt;/strong&gt; mutli-way recursive methods in Java.&lt;/p&gt;


	&lt;p&gt;The transformation described is quite simple and works well for direct recursion. However, due to the attribute
type grammar I want to use for my tree pattern matching code generator and the way most tree patterns are
augmented with semantic actions, it seems that it would cause a bit of a mess, or at least require a lot of careful
thinking how to integrate such parallelism into the tree pattern matching grammar and the code generator 
which is produced by the grammar specification.&lt;/p&gt;


	&lt;p&gt;Unfortunately right now this idea can not be assigned a high priority and must be post-poned&amp;#8230;&lt;/p&gt;</description>
      <pubDate>Tue, 06 Mar 2007 20:58:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:3b2d29129dd4f3dd37f6cb5593054fbb</guid>
      <author>igor</author>
      <link>http://blog.solaris.bytelabs.org/articles/2007/03/06/exploiting-parallelism-in-multi-way-recursive-methods</link>
      <category>University of Linz</category>
      <category>Diploma Thesis</category>
      <category>Hacking and Computers</category>
    </item>
  </channel>
</rss>
