[gambit-list] Gambit in the browser

Amirouche Boubekki amirouche.boubekki at gmail.com
Tue Jul 23 19:52:00 EDT 2013

2013/7/23 Mikael <mikael.rcv at gmail.com>

> Awesome!
> 2013/6/9 Marc Feeley <feeley at iro.umontreal.ca>
>> 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
>>     http://feeley.github.io/gambit-in-the-browser
>> Be patient... it can take 30 seconds to a minute to load the page
>> (there's about 11 MB of JavaScript code).
> gzip -9 brings the 11.2MB to 1.88MB which is really fair.
> The feeley.github.io 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.
> 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.
> 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.

Parsing will still be done by the Javascript engine so this won't improve
the loading time. I'm not sure this is practical.

You might be interested by

Is it possible to access the dom ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://webmail.iro.umontreal.ca/pipermail/gambit-list/attachments/20130724/129f7abd/attachment.html 

More information about the Gambit-list mailing list