Comet + Canvas (tag) => Morphic on internet browser

Diego Gomez Deck DiegoGomezDeck at consultar.com
Mon May 22 10:06:37 UTC 2006


Hi folks,

I'm still having fun with Comet
(http://en.wikipedia.org/wiki/COMET_(programming)) and related stuff.
My goal is to get an approximated idea of what we can do with "modern"
browsers.

This time I'm hacking with CANVAS tag:
(http://en.wikipedia.org/wiki/Canvas_(HTML_element))

I implemented a "Fake" canvas on Squeak side (I mean an Squeak-canvas)
that generated JavaScript to push (using Comet) to browsers.  The speed
is not so bad, and we still have room for more optimizations (reduce the
size of the generated JS, compress the socket usint GZip-http, etc).


The example works in Firefox (version 1.5) and IE (using the google's
canvas emulation library).

Next goal: Try to inject the mouse events generated in the browsers in
the Squeak world to get a full interactive environment.

Have fun!

-- Diego


-- 
==========================================
 Diego Gomez Deck
------------------------------------------
 http://www.consultar.com/DiegoGomezDeck/
 http://diegogomezdeck.blogspot.com/
 http://smalltalk.consultar.com/
==========================================




More information about the Squeak-dev mailing list