<br><br><div><span class="gmail_quote">On 10/26/07, <b class="gmail_sendername">Jim Graham</b> <<a href="mailto:jim.graham@jim-graham.net">jim.graham@jim-graham.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br> -- Reddit discussion of Lua benchmarks on Parrot. This was originally a link to the perl6 internals mailing list with Reddit comments. Most of the discussion comes back to 'completeness first, optimization second'
<br><br> <a href="http://programming.reddit.com/info/2z05a/comments/">http://programming.reddit.com/info/2z05a/comments/</a></blockquote></div><br style="font-family: courier new,monospace;"><div><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">I read that stuff, and I know of Lua (in passing where its embedded in Wireshark)</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">My comment on the Reddit discussion,</span><span style="font-family: courier new,monospace;"> (based on last night's discussion) is:</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">...Lua is optimized for Lua,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">...Parrot is not optimized for Lua,<br>
...Parrot is optimized for Parrot.<br>
<br>
So I'm not surprised that Lua code running on a highly<br>
(Lua) optimized 'system' is faster than Lua code<br>
compiled to run on Parrot.<br>
<br>
I would suspect there is a one to one mapping between Lua<br>
constructs and the Lua VM, whereas the Lua on Parrot compiler<br>
probably isn't designed with that in mind and hence isn't one to<br>
one.<br>
<br>
The corollary is that Lua probably doesn't have a one to one<br>
mapping of Perl constructs either, so that a perl compiler<br>
written in Lua probably won't run as fast as perl on parrot.<br>
<br>
"A screwdriver it great with screws, and can be used as a so-so chisel.<br>
A chisel is a great chisel, and can be used as a so-so screwdriver."<br>
<br>
Does that make screwdrivers inefficient?<br>
Does that make chisels inefficient?<br>
<br>
I'll leave that as a rhetorical question.<br>
<br style="font-family: courier new,monospace;">
</span><br style="font-family: courier new,monospace;"></div>