On Thu, 29 Aug 2002, Peter L. Peres wrote: > On Thu, 29 Aug 2002, Scott Dattalo wrote: > > >On Thu, 29 Aug 2002, Wouter van Ooijen wrote: > > > >> > >Maybe we can get Scott to translate gpasm and gpsim to Java ;-) > >> > > >> > He would likely prefer Tcl. Me too. Tcl runs on all the > >> > quoted platforms > >> > afaik. > >> > >> For a simulator (where speed realy matters) and interpreted language > >> like Tcl would be a bad choice. And when you consider Tcl have a look at > >> Python, *much* better for more than a few 100 lines of code, and it has > >> Tk too (Tk is/was IMHO the biggest reason to use Tcl). > > > >What's the issue? Why would I want to Java-ize gpsim? > > You misunderstood. Just Tcl-ize the front end to gpsim. And it was a wish, > not a command ... I understand what Wouter was asking, however the request (to which he happened to respond) was for "translating gpsim to Java". But whatever the request may be, there are dozens of ways one can interface with gpsim. First there is the gui. I presume that the request for Java was in some part associated with dispensing with that interface. Then there's a CLI interface (invoke gpsim with the --cli option and your freed of all those ostentatious windows). Then there's a module interface. That's primarily intended as a slave interface, but with a couple lines of clever code the roles are easily swapped. Then there's the library interface. gpsim is built as a series of modular libraries that are dynamically linked. One could just as well write another frontend that links in with the simulation engine to create a custom interface. All of these interfaces theoretically require no code changes to gpsim. If you wish to modify the gpsim source, then there are numerous other ways to interface. In practice, I'm certain code would have to be added to pacify some new interface need. But as it stands now, one could use Tcl, python, perl, or whatever script glue desired to create a custom PIC simulator. The only hurdle I see is time. Scott -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu