Hi OrNot,

Yes please if you could help out and let me take a look at your
project that would be great ([email protected]). Thanks a lot.
As for passing a canvas image array it should be possible since it can
be done in JavaScript. The postMessage method in the SpeedTracer code
indeed does only have String and Double. Maybe you could modify the
speedtracer MessageHandler class and add a method for array passing.
Or would stringifying the canvas array be possible ?


On Aug 4, 6:08 pm, OrNOt <[email protected]> wrote:
> Hi, Cidylle,
>       I wrote  one example  based on speed tracer 's web worker and
> after some sort of struggling
> make it run.
>
>      If you like , I can send the source code to you.  It seems no
> place to attach file here?
>
> Regards.
> OrNot
>
> BTW:   I also need your help if possible. I want to pass a canvas'
> image array from front thread to worker,
> in javascript, it seems easy by the event.data. But I don't know how
> to pass it in Speed Tracer 's implementation.
> If I understand right, it only passes string and double.
>
> On Aug 3, 8:56 am, cidylle0 <[email protected]> wrote:
>
>
>
>
>
>
>
> > Chris,
> > Thanks again for your pointers, they have been very helpful. Following
> > your advice I believe I managed to set up the proper configuration and
> > I feel I am very close to succeeding. So far I am simply trying to
> > test the set up by sending a message from the main module to the
> > worker, and have the worker send back the message then display it in
> > an alert window. As I attempt to do so with postMessage() methods I
> > run into an error I cannot seem to correct:
>
> > ("worker bootstrap error" : "alert not defined" )
>
> > Do you have any idea what that error could be ? I have the error
> > whether i use simple strings or JSON objects in postMessage. I have
> > ran a couple searches and looked into the wc3 specs but to no avail.
> > Thank you.
>
> > On Aug 2, 10:18 am, Chris Conroy <[email protected]> wrote:
>
> > > Within SpeedTracer take a look at the Breaky Worker infrastructure (used 
> > > to
> > > validate the schema of records SpeedTracer receives from Chrome):
>
> > > client/ui/src/com/google/speedtracer/...
> > > breaky/BreakyWorker.gwt.xml
> > > breaky/worker/BreakyWorker.java
> > > client/model/BreakyWorkerHost.java
>
> > > To get an idea of how all this stuff is wired up. The Worker Host lives in
> > > the normal GWT module side of things, and the BreakyWorker is a
> > > DedicatedWorkerEntryPoint responsible for initializing the worker. Since
> > > it's small, it also handles the handling of messages.
>
> > > The BreakyWorker.gwt.xml module pulls in  our WebWorker definition and 
> > > uses
> > > the DedicatedWorkerLinker.
>
> > > On Mon, Aug 1, 2011 at 7:58 PM, cidylle0 <[email protected]> wrote:
> > > > Thank you for your input Chris.
> > > > Yes I have been looking at the code included in Speedtracer but
> > > > without documentation (and the fact that I am a novice GWT developer)
> > > > I am having a difficult time figuring out how to the webworker is
> > > > being set up and used in Speedtracer. There seems to be a module for
> > > > the webworker with various classes representing worker entry points
> > > > but I am not sure which would to implement and in what context. In the
> > > > xml files of the modules i did notice an <add-linker ...> tag which I
> > > > am assuming points to the module that represents the worker. Again, if
> > > > anyone could provide a few basic steps to make a simple web worker
> > > > work in GWT I would greatly appreciate.
>
> > > > On a general note, I am a bit surprised by the lack of support
> > > > available for web workers in gwt, when there is support for other
> > > > HTML5 features like local storage, canvas etc. Does anyone know why it
> > > > is the case ? Are people not interested in using multi-threading in
> > > > GWT or is GWT not a suitable tool for such an application ?
>
> > > > On Aug 1, 3:54 pm, Chris Conroy <[email protected]> wrote:
> > > > > You definitely don't want to use gears.
>
> > > > > You can take a look at how SpeedTracer uses WebWorkers via a custom
> > > > > DedicatedWebWorker linker:
> > > >http://code.google.com/p/speedtracer/source/browse/#svn%2Ftrunk%2Fsrc...
>
> > > > > Note that you cannot reference $doc or $wnd in the webworker.
>
> > > > > On Mon, Aug 1, 2011 at 6:37 PM, cidylle0 <[email protected]> wrote:
> > > > > > Hi Allahbaksh.
>
> > > > > > I did run accross the gwt-ns you mentioned but I am having trouble
> > > > > > running the sample described. Can't seem to set it up right. The
> > > > > > documentation is very minimal and the project seems to have been
> > > > > > halted. Can anyone who has used web workers with GWT before help me
> > > > > > out or point me out to some JAR or tutorial out there ? I found
> > > > > > something called google Gears that seemed to have been doing 
> > > > > > something
> > > > > > very similar (worker pool) but it has recently been deprecated. Any
> > > > > > help would be appreciated. Thanks.
>
> > > > > > On Aug 1, 5:02 am, Allahbaksh <[email protected]> wrote:
> > > > > > > HI,
> > > > > > > Check gwt-ns project. I have personally not used it.
> > > > > > > Regards,
> > > > > > > Allahbaksh
>
> > > > > > > On Jul 30, 6:08 am, cidylle0 <[email protected]> wrote:
>
> > > > > > > > Hello,
>
> > > > > > > > I am currently playing around with GWT and I would like to
> > > > implement
> > > > > > > > some HTML5 features with it like web workers. In the GWT
> > > > documentation
> > > > > > > > I see that it supports a couple HTML5 features but no Web 
> > > > > > > > Workers.
> > > > Are
> > > > > > > > there any libraries out there that would implement web workers 
> > > > > > > > in
> > > > > > > > GWT ? Or can anybody point me to a simple tutorial ? I would
> > > > > > > > appreciate. Thanks.
>
> > > > > > --
> > > > > > You received this message because you are subscribed to the Google
> > > > Groups
> > > > > > "Google Web Toolkit" group.
> > > > > > To post to this group, send email to
> > > > [email protected].
> > > > > > To unsubscribe from this group, send email to
> > > > > > [email protected].
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > > > --
> > > > You received this message because you are subscribed to the Google 
> > > > Groups
> > > > "Google Web Toolkit" group.
> > > > To post to this group, send email to 
> > > > [email protected].
> > > > To unsubscribe from this group, send email to
> > > > [email protected].
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to