[Tcl Java] RE: [Tcl Java] RE: [Tcl Java] Threa d question in TclBlend

2000-05-18 Thread Mo DeJong
Humm, I was under the impression that the Tcl Blend version of the Notifier was not synchronized and that is why we needed to protect the notifier. In fact, it is synchronized in "regular Java". public synchronized void queueEvent( TclEvent evt, // The event to put in the queue.

[Tcl Java] RE: [Tcl Java] RE: [Tcl Java] Threa d question in TclBlend

2000-05-18 Thread Jiang Wu
You are right in saying that the JVM should be protecting the event queue. Currently, TclBlend performs this protection by not letting any Java thread posting any event to the native Tcl's event queue. Java Thread 1 Java Thread 2... Java Thread N ||

[Tcl Java] RE: [Tcl Java] Threa d question in TclBlend

2000-05-18 Thread Mo DeJong
Well, how do we prevent the Tcl event queue from being accessed from multiple Java threads? In the case where Tcl is threaded, Tcl should do its own locking. In the case where Tcl is not threaded, I would think we would need the JVM to do the locking (AKA JAVA_LOCK). I am not convinced that we nee

[Tcl Java] RE: [Tcl Java] Threa d question in TclBlend

2000-05-18 Thread Jiang Wu
My opinion is that there is no need for any locking for non-threaded version of Tcl in TclBlend. There is no need for any locking for threaded version of Tcl in TclBlend. Here are my reasons: 1. JAVA_LOCK does not serve any useful function, whether Tcl is thread enabled or not. 2. JAVA_LOCK doe

[Tcl Java] RE: [Tcl Java] Re: [Tcl Java] RE: [Tcl Java] RE: [Tcl Java] Threa d question in TclBlend

2000-05-18 Thread Mo DeJong
I thought the whole point you were making was that if we require that Tcl be built with threads then we could remove the JAVA_LOCK stuff. How do you suggest we implement locking in a non thread enabled version of Tcl if we are not going to use the current JAVA_LOCK approach? Mo Dejong Red Hat Inc

[Tcl Java] Re: [Tcl Java] In search of uses of TclBlend and Jacl

2000-05-18 Thread Mo DeJong
Well, just off the top of my head: http://www.sunworld.com/sunworldonline/swol-11-1999/swol-11-jacl.html (Story Server uses Tcl Blend) http://www.vignette.com/ (Catapult uses Jacl) http://www.memcad.com/ (HMS uses both Jacl and Tcl Blend) http://www.hmssoftware.com/ (Embedded Server from Sun

[Tcl Java] Re: [Tcl Java] Re: Tcl Java problems with make test

2000-05-18 Thread Mo DeJong
On Thu, 18 May 2000, Larry W. Virden wrote: > Re: updated configure.in to get around Tcl package require bug > > Thanks Mo. I got the updated, manually re-executed the autoconf so that a new > configure is generated, and got significantly farther . Looks like you are running JDK 1.2 from Sun.

[Tcl Java] Re: [Tcl Java] TclBlend and Expect - exporting a java stream into tcl

2000-05-18 Thread Mo DeJong
On Thu, 18 May 2000, Peter wrote: > Hi, > > I've been using Tcl/Tk heavily for several yers, java to some extent, > and I'm Sounds like an interesting combination. I would love to read a paper about this project when you are finished. > currently investigating Expect for testing purposes. Sinc

[Tcl Java] Re: [Tcl Java] RE: [Tcl Java] Re: Tcl Java problems with make test

2000-05-18 Thread Larry W. Virden
From: "Scott Redman" <[EMAIL PROTECTED]> > I haven't read all of your messages, but this looks like the > known error using Solaris and JRE 1.2.2. For some reason > this works on all JREs except 1.2.2 and only on Solaris. Thanks. I will pursue getting the JRE updated here to 1.3.x . -- Larry

[Tcl Java] RE: [Tcl Java] Re: Tcl Java problems with make test

2000-05-18 Thread Scott Redman
I haven't read all of your messages, but this looks like the known error using Solaris and JRE 1.2.2. For some reason this works on all JREs except 1.2.2 and only on Solaris. -- Scott > -Original Message- > From: Larry W. Virden [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 18, 2000

[Tcl Java] Re: Tcl Java problems with make test

2000-05-18 Thread Larry W. Virden
Re: updated configure.in to get around Tcl package require bug Thanks Mo. I got the updated, manually re-executed the autoconf so that a new configure is generated, and got significantly farther . Now, I have some make check problems to ask about. During the make check, these are the only warn

[Tcl Java] In search of uses of TclBlend and Jacl

2000-05-18 Thread Larry W. Virden
Hi. I maintain a Tcl software catalog on the internet at http://www.purl.org/NET/Tcl-FAQ/>. One of the things I would like to know is whether any of you have written tools, extensions, articles, books, web pages, etc. which make use of TclBlend and/or Jacl. If so, I would surely appreciate a po

[Tcl Java] RE: [Tcl Java] Thread question in TclBlend

2000-05-18 Thread Scott Redman
Well, hopefully one day all of the important extensions will work properly with threads. For instance, Expect is not thread-safe, but as long as you only use one thread with Expect, then it's fine regardless of how Tcl was built. Jiang and I discussed using checks in the TclBlend code to do some

[Tcl Java] RE: [Tcl Java] Re: [Tcl Java] RE: [Tcl Java] RE: [Tcl Java] Thread question in TclBlend

2000-05-18 Thread Jiang Wu
Will the C based Tcl extensions work the same with the threaded version of Tcl versus the non-threaded Tcl? One reason for using TclBlend is to access these extensions such as Expect and Scotty. I don't really see why we need to require the multi-threaded Tcl. If TclBlend works with multi-threa

[Tcl Java] Re: [Tcl Java] TclBlend and Expect - exporting a java stream into tcl

2000-05-18 Thread Jeff Sturm
Peter wrote: > But even at this stage I forsee a problem: How do I make a stream (used > for > internal communication between two java threads) available in the tcl > environment > for Expect to listen on? It's a shame that this isn't currently possible. I have hacks for Jacl that allow me to wr

[Tcl Java] TclBlend and Expect - exporting a java stream into tcl

2000-05-18 Thread Peter
Hi, I've been using Tcl/Tk heavily for several yers, java to some extent, and I'm currently investigating Expect for testing purposes. Since we will be interfacing a bunch of simulators (separate Unix processes) and real targets (dedicated hardware) from the same test system as we also want to te