From octave-graphics-request at bevo dot che dot wisc dot edu Mon Sep 17 10:09:47 2001 Subject: Re: new version of TK octave From: Paul Kienzle To: =?iso-8859-1?Q?Jo=E3o?= Cardoso CC: Paul Kienzle , octave-graphics@bevo.che.wisc.edu Date: Mon, 17 Sep 2001 11:06:48 -0400 Joćo Cardoso wrote: > On Friday 14 September 2001 19:04, Paul Kienzle wrote: > | Hi! I've extended the work Przemek has done on tk_octave. It > | includes a matrix viewer/editor plus all of the dialogs in Joao's > | original tk_octave. > | It does not include his interface to plplot. > | > | This code is not backward compatible with either version of > | tk_octave, so > | use it carefully. > | > | You can find all the source on the cvs server at > | > | http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/octave/tk_octave/ > | > | Let me know if it works for you. > | > | Paul Kienzle > | pkienzle at users dot sf dot net > > Well, it looks like "pthread_mutex" did not work here :-) > > I was just thinking to release tk_octave-0.3 today. Take a look at > http://merlin.inescn.pt/~qual/tk_octave/tk_octave.html > > Not very much differences, just "Tk-me" (Tk Made Easy), that is a > wrapper around the usual tk_cmd() and tk_receive(), and that enables > one to create GUIs as easy as: > > tkme("start"); > top = toplevel("Tk is Easy!"); > l1 = label(top,"34"); > b1 = button(top,"Start","start=1"); > b2 = button(top,"Stop","start=0"); > b3 = button(top,"Quit","done=1"); > > As usual, there is builtin support for the tk driver of > plplot_octave, that is now part of PLplot, see > http://sourceforge.net/projects/plplot/ > > But after a brief look, I think that your approach is supperior to > mine. I don't have now the time to do a merge, which I thing is > desirable, but comments are welcome. > > Joćo It's not clear to me that the multi-threaded approach is superior. It's just the version that I started playing with first. In principle, the only difference will be the speed of copying things down a pipe rather than copying them from shared memory. I can imagine that the pipe is slower, but I haven't got any numbers to back this up. The big advantage of the pipe is that it means we don't have to worry about license incompatibilities between the GPL and various Tcl/Tk packages. Paul