kicad-developers team mailing list archive
Mailing list archive
Re: [kicad-users] Re: macros in Pcbnew
On Sat, Mar 30, 2013 at 07:58:25PM -0400, Wayne Stambaugh wrote:
> Not unless someone steps forward to do it. The Python scripting is
> generated using SWIG. If Lua is supported by SWIG than it shouldn't
> be that difficult for someone who interesting in supporting Lua in
> KiCad to get it working. If SWIG doesn't support Lua, then the task
> becomes considerably more complex.
I feel that one scripting language for now is enough. The SWIG approach
still is not optimal (you can very easily crash the world from
scripting) because scripting at the moment is simply 'stitched' on
pcbnew... LUA would be even worse due to the need to track metaclasses.
The real issue is for memory management: most (all?) scripting language
do garbage collection and want to manage memory itself, but, especially,
doesn't want object to disappear at runtime. All complications follow:((