Any good plugin macro languages?
-
I was looking at the windows scripting control as an option for adding an advanced macro language to my VC++ app. But I'm concerned that it'll take a huge performance hit - and of course the corrosponding "lock" into a little documented microsoft technology (which is never good for long term code maintance). Are there any simple/clean/portable/full efficient/ozone friendly methods for supporting a simple macro lanuage (in C++ apps)? Or is the MS Script control the best way to go?
-
I was looking at the windows scripting control as an option for adding an advanced macro language to my VC++ app. But I'm concerned that it'll take a huge performance hit - and of course the corrosponding "lock" into a little documented microsoft technology (which is never good for long term code maintance). Are there any simple/clean/portable/full efficient/ozone friendly methods for supporting a simple macro lanuage (in C++ apps)? Or is the MS Script control the best way to go?
I'm using the TCL as macro language in my VC++ app. It's free, It's known for some time, source is available, you can use it as dll or link it staticaly and you can use a freeware SWIG software to generate the code needed to integrate the interpreter with your C/C++ code (supports also Perl,Python,...). See: http://www.swig.org/index.htm
-
I was looking at the windows scripting control as an option for adding an advanced macro language to my VC++ app. But I'm concerned that it'll take a huge performance hit - and of course the corrosponding "lock" into a little documented microsoft technology (which is never good for long term code maintance). Are there any simple/clean/portable/full efficient/ozone friendly methods for supporting a simple macro lanuage (in C++ apps)? Or is the MS Script control the best way to go?
Check Python, it is better than even C#, and it is designed for this. ActivePython 2.0 is just released. www.activestate.com. Regards, Paul.
-
I was looking at the windows scripting control as an option for adding an advanced macro language to my VC++ app. But I'm concerned that it'll take a huge performance hit - and of course the corrosponding "lock" into a little documented microsoft technology (which is never good for long term code maintance). Are there any simple/clean/portable/full efficient/ozone friendly methods for supporting a simple macro lanuage (in C++ apps)? Or is the MS Script control the best way to go?
It kind of depends what sorts of things you require of your scripting language... If you just want to do some minimal things, I'd just add support for active scripting to your app (plenty of info floating about on how to do this for MFC and non-MFC app), and then you can choose whatever language you want, as there are many that support active scripting. (vbs, jscript, python, etc..) If you care about speed, then I'd suggest Lua, as it's very fast, and designed to be embedded into other apps (this is something python is lousy at). Lua Homepage: http://www.tecgraf.puc-rio.br/lua/ There are some C-like script languages too, like EiC. If you would like real VBA-like scripting, then there is a commercial product from www.cypressinc.com that is fast, and easy to integrate. I've used active scripting, cypress enable, and now I'm using Lua on a project. There are lots of script languages out there, so spend some time evaluating them, and looking at their communities