Jump to content
  • Advertisement
Sign in to follow this  
Muncher

the best scripting language is....

This topic is 4809 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i'm hoping to incorporate a scripting language into my projects to control the logic + content. What is the best scripting language in terms of ease of use, and performance? Currently im leaning towards lua, as its really easy to setup + use. Not sure about performance though. Muncher Note that i use C++.

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
Angelscript (angelcode.com) is really nice, very similar to C++. Don't really know about its performance, but the elegance of it makes it much better than lua :)

Share this post


Link to post
Share on other sites
Quote:
Original post by Deyja
Angelscript. And it's faster than LUA.


any benchmarks? I'm really interested in that topic.

Share this post


Link to post
Share on other sites
Quote:
Original post by Deyja
Angelscript. And it's faster than LUA.


That I did not know.

But yeah, my vote would have to go with AngelScript. I mean, there's some voodoo magic going on there or something. With my current project, others can write scripts that I basically add to my source tree when they are completed and tweaked. Very literally, the code itself generally doesn't need to be changed at all to run in my engine, just put into functions - which angelscript does support [it's just a personal style issue].

And if there's ever a problem, well, WitchLord is one of the most active developers that I've seen. And he actually listens to the suggestions of the users.

If you know C++ and can adapt tutorials, then AngelScript is really [to me at least] a no-brainer.

[edit]Did I mention that you don't need wrapper functions?[/edit]

--CJM

Share this post


Link to post
Share on other sites
Beanshell. SSE2 optimalizations.

However from my experience with Java, if you have properly done programming language you have no need for scripting languages. Actually you can use Java as scripting (and possibly realtime recompiled and tightly connected with other parts of Java program) language as well. (It's sometimes safer to use programming language, than sripts, because compiler is able to tell you about the worst mistakes.)

If you need just to control content, scripting language might be overkill, simply roll out your own simple descriptor file, and create small program for easy GUI like edit.

Game logic is best done hardwired, possibly into DLL, so it would need recompilation. It's safer against last minute changes that repairs 2 things and break 10.

Share this post


Link to post
Share on other sites
I've heard LUA is faster than Python, but I thought I'd mention how easy Python is to use in C++ if you use boost::python. It allows you to access your C++ functions and classes from Python, which is a very nice feature.

Share this post


Link to post
Share on other sites
Well, as long as we are all just throwing out opinions:

The best scripting language is any scripting language. Use .Net and you can have scripts written in any .Net language. That way your scripters can use C, C++, C#, VB.Net, Python, PHP, JScript, ADA, BF, Caml, Cobol, Eiffel, Fortran, Haskell, Java, LISP, LUA, Perl, Pascal, Ruby, Cheme, Smalltalk, and a host of even more obscure languages.

All of the languages get the benifits of running with .Net, like the security model, framework, and run-time compilation into native code. And it's cross platform these days too. Seems like a win-win to me.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!