Embeded scripting language options
-
Hello all, I'm looking at including an interpreted scripting language into my application. The major constraints are the following: (1) It must be cross platform capable (Windows, Mac, maybe Unix). (2) It must be relatively lightweight. However, as I'm sure all such notions begin, "it doesn't need to do much" ;-) I saw the SAScript demo here (pretty helpful), but am looking for other options as well. Can anyone suggest what alternatives there are and/or places to look about how to roll your own? Any other info or tales of dread are welcome. Thanks.
-
Hello all, I'm looking at including an interpreted scripting language into my application. The major constraints are the following: (1) It must be cross platform capable (Windows, Mac, maybe Unix). (2) It must be relatively lightweight. However, as I'm sure all such notions begin, "it doesn't need to do much" ;-) I saw the SAScript demo here (pretty helpful), but am looking for other options as well. Can anyone suggest what alternatives there are and/or places to look about how to roll your own? Any other info or tales of dread are welcome. Thanks.
We're just starting a new version of our product and cross platform is a major concern. Hence we moved from DX to OpenGL. We are also writing our own GUI classes in order to reimpliment them under other platforms, so our core code will be cross platform and we'll end up with a set of libraries for cross platform GUI development. We are scripting with Python and it's working very nicely. I've got a set of classes in C++ and a set of classes in Python that allow me in our Python console to create a GUI and link buttons, text events, etc. to Python code. All our 3D tools are also written in Python, linking back to the C++ code, of course. I'm finding Python very easy to learn and use, very easy to set up and to link back to C++. Certainly I can promise if you decide to use Python there'll be at least one other CP'er in the trenches to offer war stories and support.... Christian Secrets of a happy marriage #27: Never go to bed if you are mad at each other. It's more fun to stay up and fight.
-
We're just starting a new version of our product and cross platform is a major concern. Hence we moved from DX to OpenGL. We are also writing our own GUI classes in order to reimpliment them under other platforms, so our core code will be cross platform and we'll end up with a set of libraries for cross platform GUI development. We are scripting with Python and it's working very nicely. I've got a set of classes in C++ and a set of classes in Python that allow me in our Python console to create a GUI and link buttons, text events, etc. to Python code. All our 3D tools are also written in Python, linking back to the C++ code, of course. I'm finding Python very easy to learn and use, very easy to set up and to link back to C++. Certainly I can promise if you decide to use Python there'll be at least one other CP'er in the trenches to offer war stories and support.... Christian Secrets of a happy marriage #27: Never go to bed if you are mad at each other. It's more fun to stay up and fight.
At least I know that I'll have someone to commiserate with ;) I've never used Python but have used Perl somewhat. It looks like you can do something similar with Perl too. Did you look at Perl as well and if so, what about Python made it the winner? Do you have any good links about embedding Python? Thanks Christian.
-
At least I know that I'll have someone to commiserate with ;) I've never used Python but have used Perl somewhat. It looks like you can do something similar with Perl too. Did you look at Perl as well and if so, what about Python made it the winner? Do you have any good links about embedding Python? Thanks Christian.
The guys here tell me we chose Python because object orientation is not a bolt on, and it looked nicer to impliment. From the Python.org site, this is Perl vs. Python according to Yoda: EXTERIOR: DAGOBAH -- DAY With Yoda strapped to his back, Luke climbs up one of the many thick vines that grow in the swamp until he reaches the Dagobah statistics lab. Panting heavily, he continues his exercises -- grepping, installing new packages, logging in as root, and writing replacements for two-year-old shell scripts in Python. YODA: Code! Yes. A programmer's strength flows from code maintainability. But beware of Perl. Terse syntax... more than one way to do it... default variables. The dark side of code maintainability are they. Easily they flow, quick to join you when code you write. If once you start down the dark path, forever will it dominate your destiny, consume you it will. LUKE: Is Perl better than Python? YODA: No... no... no. Quicker, easier, more seductive. LUKE: But how will I know why Python is better than Perl? YODA: You will know. When your code you try to read six months from now. They suggest you look at Ruby as well if you're examining options. www.python.org is the site you want for Python info, including embedding information. Here is a comparison of Python to other languages on that site. Christian As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet. Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.