On Feb 27, 2012, at 5:36 PM, Peter Stuge wrote: > John wrote: >>>> wish i could help, but i am no tcl expert either. >>> >>> Does anyone feel very strongly against replacing jimtcl with say lua? >> >> Only that it means rewriting and then re-debugging every script > > Yes, but on the other hand there aren't so many complicated scripts.. > I'd also guess that many scripts need only minimal changes. The > languages have some similarities, and again, since scripts are simple > the effort is small.
The Lua interface with C is also very clean; rewriting might be a good chance to make a new start of some things. >> and how many people know lua as compared to tcl? I'd guess fewer. > > I guess this number is roughly the same for both lua and tcl within > the OpenOCD developer community. > > I've used both lua and tcl, but I haven't used tcl since the mid > 1990s and I have absolutely zero interest in freshening up on tcl in > order to work with OpenOCD. > > Lua on the other hand is more interesting. It's a big plus that it > was designed for embedding from the ground up, and that the canonical > implementation is clean C also written for embedding. I don't know much TCL. I'm not opposed to it, but I'm not necessarily competent to comment on their relative merits. I do like Lua an awful lot, though, and I've used it a lot. It's clean and easy to embed/interface with C, and LuaJIT provides a very high-performance implementation that's almost a drop-in replacement for the standard Lua library (certainly worth considering as a potential target). I might submit Python for consideration, though. I feel like a lot more people are likely to know Python, given its popularity, and it also has a fairly clean interface with C (I might say even cleaner, though it's somewhat subjective). It has some very definite disadvantages, though; CPython isn't very fast (neither is the stock implementation of Lua, really) and it has a much larger memory footprint than Lua. If you wanted to implement this on a small embedded device (e.g. if you wanted to make a JTAG pod that exposes a GDB server running on a small micro), this might be a serious negative. - Dave ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
