Awesome!<br><br><div class="gmail_quote">2013/6/9 Marc Feeley <span dir="ltr"><<a href="mailto:feeley@iro.umontreal.ca" target="_blank">feeley@iro.umontreal.ca</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


I have been experimenting with the emscripten C to JavaScript compiler.  I have used it to compile the Gambit interpreter into JavaScript.  This allows the Gambit interpreter to run in the browser!  Just direct your browser to<br>



<br>
    <a href="http://feeley.github.io/gambit-in-the-browser" target="_blank">http://feeley.github.io/gambit-in-the-browser</a><br>
<br></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Be patient... it can take 30 seconds to a minute to load the page (there's about 11 MB of JavaScript code). </blockquote><div><br></div><div>gzip -9 brings the 11.2MB to 1.88MB which is really fair.</div><div><br></div>


<div>The <a href="http://feeley.github.io" target="_blank">feeley.github.io</a> server has automatic gzip (-6?) compression enabled already so what's transfered currently is 2.6MB. Download time seems to be ~1.5s so the server probably cached the compressed content, so all that is not a bottleneck.</div>

<div><br></div><div>Then, probably what takes the most time here is the web browser JS parsing. Probably browsers will improve this, with the advent of asm.js and alike.</div><div><br></div><div>Maybe if doing emscripten compilation with ASM_JS as target configuration and running on Firefox nightly that includes asm.js now, the parse/initialization time would go down alot already.</div>

<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
 Use a fast JIT based browser if possible (Firefox or Chrome have been tested).<br>
<br>
Marc<br>
<br>
_______________________________________________<br>
Gambit-list mailing list<br>
<a href="mailto:Gambit-list@iro.umontreal.ca" target="_blank">Gambit-list@iro.umontreal.ca</a><br>
<a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list" target="_blank">https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list</a><br>
</blockquote></div><br>