[tcljava-dev] Re: tcljava-dev digest, Vol 1 #174 - 2 msgs
Brought to you by:
mdejong
From: Martti T. <ma...@da...> - 2006-05-18 17:17:44
|
> 2. Re: Re: tcljava compiler (Mo DeJong) >> >> The only minor problem so far is that the "-readyvar" option on >> >> TJC::compile never returns a result in the server. > > Your code is not processing Tcl events. Please take a look at the > new documentation in the CVS and let me know if that clears > things up for you. > > tcljava/docs/Topics/EventLoop.html > > Or online via: > > http://tcljava.cvs.sourceforge.net/*checkout*/tcljava/tcljava/docs/Topics/EventLoop.html?revision=1.1 > > cheers > Mo DeJong Thank you very much for the documentation on The Tcl Event Loop which is excellent. I definitely did not understand the event processing relationship and I now understand why we have got away without the understanding up to now. We have been using the Jacl interpreter and doing eval strictly within each thread in past projects and so have not run into any problems with just eval. Obviously with the TJC compiler running in a separate thread this is no longer feasible. In our new project under development we are using the Bean Scripting Framework, an Apache Jakarta project to allow other scripting languages to be used by users as well as Jacl. We use Jacl for everything but some users will prefer to use Javascript since they already know it. I will have to look at the Jacl engine source in the BSF package to see what we need to do to use the Tcl events properly. Being able to queue Jacl commands from other threads will also be very useful. Thanks again. -- Martti Tienhaara (ma...@da...) DASH Software Ltd. |