On Mon, Feb 27, 2012 at 11:09 PM, Peter Stuge <[email protected]> wrote: > Øyvind Harboe wrote: >> How about this approach to the problem of scripting? >> >> - make OpenOCD a library >> - make that library usable from Python & Lua. > > Lua works the other way around. It was, again, designed and > implemented from ground up to be embedded into a host software.
Actually, Lua works great in the way Øyvind suggests. You can easily expose your C libraries to Lua. You can also easily expose your Lua libraries to C. Luabind makes the same true for C++. I'd be happy to show you in code so let me know if you start a development branch to demonstrate your ideas. The idea I heard elsewhere in the thread of reimplementing OpenOCD in a scripting language is easy to do in Lua. The way I like to break my applications is to write all performance critical code in C++ and write "business logic" sorts of things in Lua. Adobe Lightroom is a commercial product which was developed this way using Lua. ks ------------------------------------------------------------------------------ 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
