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
Forums
embedding Cobra
2 posts
• Page 1 of 1
Re: embedding Cobra
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
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 44 guests