scripting / command patterns
-
Do any of you integrate scripting capability into your applications? For those who do, do you write your own command patterns and interpreters, or do you integrate real scripting languages like Lua?
~Nitron.
ññòòïðïðB A
startNitron wrote:
Do any of you integrate scripting capability into your applications?
Yes I have. My product uses ActiveX Scripting technology to provide extensibility to the application with Scripts. So it can use VBScript, JScript and any other language for which a Active Scripting engine is avaialble (like Perl and Python). Most commonly, however, users use VBScript. Before I worked on the product, it had a custom scripting language. But the problem with the custom scripting language is that it always require training from the part of end users. With using VBScript and JScript, it is probable that some of the users may be familiar with those languages. If I have to extend the application in .NET world, I will use CodeDOM and host the .NET runtime (in the unmanaged application).
-
Do any of you integrate scripting capability into your applications? For those who do, do you write your own command patterns and interpreters, or do you integrate real scripting languages like Lua?
~Nitron.
ññòòïðïðB A
start -
Do any of you integrate scripting capability into your applications? For those who do, do you write your own command patterns and interpreters, or do you integrate real scripting languages like Lua?
~Nitron.
ññòòïðïðB A
startNitron wrote:
Do any of you integrate scripting capability into your applications? For those who do, do you write your own command patterns and interpreters, or do you integrate real scripting languages like Lua?
It all depends on the target audience: if your software is for programmers, you should look into using something "standard"; Lua, MS Script Engine, and even calling external .exes or COM components are something that come into my mind. OTOH, if you are offering this to end users, you'd be better to create your own, simple DSL (Domain Specific Language); using a tool like ANTLR makes it a breeze...
-
Do any of you integrate scripting capability into your applications? For those who do, do you write your own command patterns and interpreters, or do you integrate real scripting languages like Lua?
~Nitron.
ññòòïðïðB A
startBack in the day I integrated the Microsoft scripting engine in a few applications. Now with .net it is really easy to just use the CodeDom and expose your object model. If you haven't written an automation wrapper for your objects, it seems that Lua would be a better option then the Microsoft scripting engine though.
Using the GridView is like trying to explain to someone else how to move a third person's hands in order to tie your shoelaces for you. -Chris Maunder
-
Do any of you integrate scripting capability into your applications? For those who do, do you write your own command patterns and interpreters, or do you integrate real scripting languages like Lua?
~Nitron.
ññòòïðïðB A
startIt the past I've used Boost.Python[^] to integrate Python scripting into a few large scale projects. From what I've heard there is excellent tools for integrating LUA. I just haven't had the need for it as of yet.
My Blog A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects. - -Lazarus Long
-
It the past I've used Boost.Python[^] to integrate Python scripting into a few large scale projects. From what I've heard there is excellent tools for integrating LUA. I just haven't had the need for it as of yet.
My Blog A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects. - -Lazarus Long
LUA (light weight C style) is used in World of Warcraft and Python (kitchen sink C++ OO style) is used in Civilization IV. I used boost.python in a C++ project at my previous work. I'm probably going to go with a MS solution for the .NET project I'm working on currently.
Todd Smith
-
LUA (light weight C style) is used in World of Warcraft and Python (kitchen sink C++ OO style) is used in Civilization IV. I used boost.python in a C++ project at my previous work. I'm probably going to go with a MS solution for the .NET project I'm working on currently.
Todd Smith
Todd Smith wrote:
LUA (light weight C style) is used in World of Warcraft
Only in the client. And from the LUA guys I know, it sounds like the implementation is a bit odd. Don't know any details myself as I have my hands full these days and don't have the energy to investigate.
Todd Smith wrote:
I'm probably going to go with a MS solution for the .NET project I'm working on currently.
In that case I'd suggest using IronPython[^]. We are currently using it on the client side of a project. The integration with the .net library is pretty good and it works as one would expect. This is not necassarly an impartial opinion, since I've been working with Python on and off for eight years now and think it's the cats meow for these type of things. -- modified at 13:42 Monday 15th January, 2007
My Blog A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects. - -Lazarus Long