Jump to content
xisto Community
Sign in to follow this  
Giniu

What Scripting Language? Java/Python/Ruby?

What scripting language is best in integration with C++?  

You do not have permission to vote in this poll, or see the poll results. Please sign in or register to vote in this poll.

Recommended Posts

Hi...First of all I know that this place isn't best for this, but this fits into 3 different categories so I decided to place it in main category... If it fits somewhere else better, I don't mind moving it somewhere else...So now the case.We (I and few other people I know) are working on 3D engine... exactly we want to create engines for 3 platforms (Linux, Windows, Mac OS) that would have one scripting interface so we decided to integrate one of those three script languages with C++ engine to make it more portable. I was searching for some infos that would compare those 3 scripts, but with no luck... (probably I was searching to short)...Please help me - which language should I choose to get best results (especialy it's about speed but also easy of use). If you can write pros and cons while you vote I would be greatfulThanks.PS.: I know java and python but never was using them with C++, so this is new land for me...

Share this post


Link to post
Share on other sites

Even though it's not an option on your poll, I would really recommend using ECMAScript (a superset of JavaScript, i.e. JavaScript is an implementation of it) . It's syntax is the easiest to learn, IMHO, especially because it is so similar to Java and C(++). As for an ECMAScript engine, SpiderMonkey is definately the way to go. It is really comformant, and always on the cutting edge of the new EMCAScript specs (I think it already supports a bit of E4X), probably because it was written by Brendan Eich, the inventor of JavaScript, and is overrun by the Mozilla Foundation.

I've never tried Ruby, but I would never go with Java, primarily because I hate the language for some unknown reason, but it's also really bloated for what you're trying to do. Python is a really great language though, and also very lightweight (a 3D engine is bloated as it is).

 

BTW, I think you shouldn't go around making a new 3D engine, but rather contribute your efforts to OGRE. I know that such a project could be really fun, but a 3D engine is a huge project, and from my experience with these types of projects, it won't go a long way. If you guys are talented 3D developers, I think you should help progress OGRE, which is already at a very stable stage, with lots of applicants. Sorry for not supporting you guys on this. :D

Share this post


Link to post
Share on other sites

Hi...
First of all I know that this place isn't best for this, but this fits into 3 different categories so I decided to place it in main category... If it fits somewhere else better, I don't mind moving it somewhere else...

So now the case.

We (I and few other people I know) are working on 3D engine... exactly we want to create engines for 3 platforms (Linux, Windows, Mac OS) that would have one scripting interface so we decided to integrate one of those three script languages with C++ engine to make it more portable. I was searching for some infos that would compare those 3 scripts, but with no luck... (probably I was searching to short)...

Please help me - which language should I choose to get best results (especialy it's about speed but also easy of use). If you can write pros and cons while you vote I would be greatful

Thanks.

PS.: I know java and python but never was using them with C++, so this is new land for me...


My vote is for python. First of all, similar application exists - blender, and internally uses python. Second, create binding to external library is very easy using SWIG.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.