Thanks Eliot!<div>Francisco<div><br><div class="gmail_quote">On Fri, Dec 31, 2010 at 12:37 AM, Germán Arduino <span dir="ltr"><<a href="mailto:garduino@gmail.com">garduino@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Wow fantastic!<br>
I will try tomorrow on my usual development work.<br>
Thanks by share!<br>
German.<br>
<br>
2010/12/30, Eliot Miranda <<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>>:<br>
<div><div></div><div class="h5">> Hi All,<br>
><br>
> I've released a new version of Cog that has a substantially improved<br>
> code generator along the lines of Peter Deutsch's HPS (VisualWorks) and<br>
> various of Ian Piumarta's VMs. These all use a simple tecnique to identify<br>
> constant references in bytecode and to support a register-based calling<br>
> convention. While this does produce faster code it tends to accelerate<br>
> low-level code much more than high-level code as you can see by the<br>
> following benchmarks:<br>
><br>
> SimpleStackBasedCogit: [1 to: 100000000 do: [:i|]] timeToRun 691<br>
> StackToRegisterMappingCogit: [1 to: 100000000 do: [:i|]] timeToRun 192<br>
> 192 - 691 / 6.91 -72%<br>
><br>
> SimpleStackBasedCogit: 0 tinyBenchmarks '753495217 bytecodes/sec; 64769127<br>
> sends/sec'<br>
> StackToRegisterMappingCogit: 0 tinyBenchmarks '931756141 bytecodes/sec;<br>
> 128157989 sends/sec'<br>
> 931756141 - 753495217 / 7534952.17 -24%<br>
> 128157989 - 64769127 / 647691.27 -98%<br>
><br>
> SimpleStackBasedCogit: [Compiler recompileAll] timeToRun 47013 (no<br>
> transcript<br>
> StackToRegisterMappingCogit: [Compiler recompileAll] timeToRun 43406 (no<br>
> transcript)<br>
> 43406 - 47013 / 470.13 -7.67234594686576<br>
><br>
> The status of this code is essentially beta. The test suite runs the same<br>
> on the new code generator as on the old, but I think there are still bugs<br>
> because I get the occasional transient error. I am therefore very<br>
> interested in any reproducible errors you can find.<br>
><br>
> The VMs (<a href="http://www.mirandabanda.org/files/Cog/VM/VM.r2334/" target="_blank">http://www.mirandabanda.org/files/Cog/VM/VM.r2334/</a>) contain a few<br>
> other important changes:<br>
><br>
> - a bug fix to bytecode<->native pc mappng that produced incorrect results<br>
> for methods containing blocks with ^-returns in them. One symptom is<br>
> incorrect highlighting of the pc in the debugger, althoguh symptoms could be<br>
> much serious.<br>
><br>
> - jitting interpreted methods on backward branches. Currently any<br>
> interpreted method that performs more than 20 backward branches will be<br>
> considered for JIT compilation and if it is suitable (default, <= 60<br>
> literals) will be compiled to native code.<br>
><br>
> - new callback support. I need to commit some changes to the Alien package<br>
> to provide access to this but essentially the VM's callback support is now<br>
> able to be ported to architectures with register-based calling conventions<br>
> (ARM, PowerPC, SPARC etc). I'll try and get the Alien code released soon,<br>
> and to back-port the changes to the standard VM before the end of the<br>
> holiday.<br>
><br>
> One thing that is still /not/ fixed is the lack of a SoundPlugin on win32.<br>
> Apologies. I'll try and get a fix for this before the end of the holidays<br>
> too, but time might be too tight. There are other priorities such as<br>
> harmonising the standard and Cog VMs for the 4.2 release.<br>
><br>
> best<br>
> Eliot<br>
><br>
<br>
<br>
</div></div><font color="#888888">--<br>
=================================================<br>
Germán S. Arduino <gsa @ <a href="http://arsol.net" target="_blank">arsol.net</a>> Twitter: garduino<br>
Arduino Software & Web Hosting <a href="http://www.arduinosoftware.com" target="_blank">http://www.arduinosoftware.com</a><br>
PasswordsPro <a href="http://www.passwordspro.com" target="_blank">http://www.passwordspro.com</a><br>
=================================================<br>
<br>
</font></blockquote></div><br></div></div>