Forums

embedding Cobra

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

embedding Cobra

Postby breathe67 » Thu Apr 22, 2010 7:56 am

Hi, I'm developing a C++ app that needs scripting, and came across Cobra. My current plan is to use Lua for its speed and small size (50K I think ?). Cobra looks like an interesting language, however. I'm not familiar with .net programming so I thought I'd ask:
a) what is the minimum footprint for Cobra, embedded in C++ file (I want to "sandbox" the script, provide only my own APIs and no OS access). Could I remove unwanted features to reduce size ? Does it need the .net library/VM/whatever ?
b) do you know how it might compare theoretically to Lua, just making calls into C++ code nad
breathe67
 
Posts: 1

Re: embedding Cobra

Postby Charles » Thu Apr 22, 2010 9:37 am

Your best route would be to embed Mono and then use Cobra from there. Instructions are at http://www.mono-project.com/Embedding_Mono. With some effort, you can generally strip down an open source project, whether that's Mono or Cobra. Whether or not it's worth the effort is something you'd have to determine for yourself and your project.
Charles
 
Posts: 2515
Location: Los Angeles, CA


Return to Discussion

Who is online

Users browsing this forum: No registered users and 44 guests