Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Choosing embedded scripting language for C++

I want to choose an embedded scripting language that i will use on C++. It should connect a database such as Oracle. My host application is a server application. That will pass raw data to script. The script will parse and do some specific logics. Also updates database. Then script will returns raw data as result. Can you help me to choose it? Thanx

like image 713
suyuti Avatar asked May 31 '11 14:05

suyuti


2 Answers

Lua is intended to be an embedded language and has a simple API. Python and Ruby are much more general purpose and are (for embedding at least) significantly more complicated. This alone would lead me to using Lua.

like image 194
Jeff Foster Avatar answered Sep 22 '22 23:09

Jeff Foster


I've had a lot of success adding embedded scripting to my C++ applications using AngelScript. I've found it very easy to bind and the syntax to be very comfortable, but it depends on your target audience. I found Lua to be very fast and relatively easy to bind, but the syntax was a bit uncomfortable to me. AngelScript is very C/C++ like which I find very easy to understand and maintain, but to someone who spends more of their time working with CSS or HTML, might find it cumbersome and the language idioms might not translate well..

http://www.angelcode.com/angelscript/

http://www.gamedev.net/forum/49-angelcode/

Just realized I had answered a similar question here:

https://stackoverflow.com/questions/191222/what-is-a-good-embeddable-language-i-can-use-for-scripting-inside-my-software

like image 32
Scott Dillman Avatar answered Sep 19 '22 23:09

Scott Dillman