<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0" xmlns:blogChannel="http://backend.userland.com/blogChannelModule">

<channel>
<title><![CDATA[Perl 6: Polymorphic Eval]]></title>
<link>http://www.perlfoundation.org/perl6/index.cgi?polymorphic_eval</link>
<description></description>
<pubDate>Fri, 18 Jan 2008 16:07:01 -0000</pubDate>
<webMaster>synedra@gmail.com</webMaster>
<generator>Socialtext Workspace v2.14.7.2</generator>

<item>
<title><![CDATA[Polymorphic Eval]]></title>
<link>http://www.perlfoundation.org/perl6/index.cgi?polymorphic_eval</link>
<description><![CDATA[<div class="wiki">
<p>
Polymorphic Eval is the ability of chaining the execution of different interpreters from within the same interpreter. <a href="http://www.perlfoundation.org/perl6/index.cgi?smop" title="(7 months)  Simple Meta Object Programming Simple Matter Of Programming is a C based interpreter (runloop) that...">SMOP</a> does it by having a level of indirection that is the &quot;Interpreter Instance&quot;. This is an object that references to the &quot;Current Continuation&quot;, and to which the instance delegates the running calls. The &quot;Current Continuation&quot; is simply the current state of some &quot;Interpreter Implementation&quot;. And it can be changed by goto calls to implement <a href="http://www.perlfoundation.org/perl6/index.cgi?continuation_passing_style" title="(65 months) Abbreviated as CPS, this is a technique of a stackless implementation of function call. This basical...">Continuation Passing Style</a>.</p>
<p>
This is what enables <a href="http://www.perlfoundation.org/perl6/index.cgi?smop" title="(7 months)  Simple Meta Object Programming Simple Matter Of Programming is a C based interpreter (runloop) that...">SMOP</a> to embed other interpreter runloops inside itself, so the default runloop can be replaced by the perl5 runloop as the current continuation and get back transparently. This feature is also important to enable the implementation of green threads, and to enable interrupt handling to do <a href="http://www.perlfoundation.org/perl6/index.cgi?continuation_passing_style" title="(65 months) Abbreviated as CPS, this is a technique of a stackless implementation of function call. This basical...">Continuation Passing Style</a> with the current interpreter instance.</p>
</div>
]]></description>
<author>Daniel Ruoso</author>
<guid isPermaLink="true">http://www.perlfoundation.org/perl6/index.cgi?polymorphic_eval</guid>
<pubDate>Fri, 18 Jan 2008 16:07:01 -0000</pubDate>
</item>

</channel>
</rss>