Sign in to follow this  
WitchLord

AngelScript 1.9.1 FINAL (2004/09/21)

Recommended Posts

I've uploaded the latest version of AngelScript. The changes for this one are:
  • bug fix: The switch case wasn't working correctly for unsorted cases
  • bug fix: The ternary operator ?: should now work correctly with registered types as well
  • Support for the calling convention asCALL_CDECL_OBJFIRST has been added
  • String constants are now concatenated by the compiler
  • The value of AngelScript's boolean true is now configurable. Default is set to 1 like Visual C++
In addition to those changes I've also added many optimizations making the execution about 30% faster. I've been told that this improvement brings the speed of AngelScript up to almost that of Lua. It's now only 16% slower. Of course this was measured in only one test case. More tests are needed to truly compare the performance. I'm not good with Lua so I would appreciate your help with coming up with good tests. I'll continue to optimize the library as I have all reasons to believe that AngelScript should be faster than Lua since it is more closely integrated with C++. There are for example no need for wrapper functions etc. I could of course be wrong, but I will at least try. I'm pretty happy already, considering that Lua has a 5 year headstart on my library.

Share this post


Link to post
Share on other sites
You say that every time [wink]

It seems that your e-mail doesn't work. I'm receiving a bounce from @raptorentertainment.com everytime I send out a news letter on AngelScript releases.

I hope you have collected most of your code interfacing with AngelScript in one place, that should make it easier to upgrade.

For a future version I'll try to create backwards compatible interfaces for AngelScript. These interfaces will wrap the latest version in order to allow compilation with code that uses an older version. They will be slightly slower because of the overhead, but at least they should work.

Share this post


Link to post
Share on other sites
It's a good idea to keep backward compatibility.
Maybe some define (like KEEP_COMPATIBLE or so) should allow us to sometimes try to switch to new version, to get benefit from
latest improvements.

Thanks for this release.
Lbas

Share this post


Link to post
Share on other sites
I hear you. [smile]

I've been thinking about someway of writing a wrapper that is compatible with older versions. That way I can keep the main library as clean as possible, while still allowing for backwards compatibility (although with a slight overhead).

Share this post


Link to post
Share on other sites
Yeah i fixed it.....thanks for letting me know.....it was deleted by mistake.

I was trying to update it to 1.9.1 but i couldn't. it doesnt seem to create an import library for the release version(there in DEBUG though). and the whole .LIB file would'nt compile with my code. i want to use the latest version...but i am hardpressed on time as well. but i need the speed now :D (update loop is dropping below 60fps - not sure of it is AS)

There are HUGE amount of changes between 1.7.1 and 1.9.1....i hope i can make it. will come with feedback

Share this post


Link to post
Share on other sites
Quote:
Original post by EddHead
Yeah i fixed it.....thanks for letting me know.....it was deleted by mistake.

I was trying to update it to 1.9.1 but i couldn't. it doesnt seem to create an import library for the release version(there in DEBUG though). and the whole .LIB file would'nt compile with my code. i want to use the latest version...but i am hardpressed on time as well. but i need the speed now :D (update loop is dropping below 60fps - not sure of it is AS)

There are HUGE amount of changes between 1.7.1 and 1.9.1....i hope i can make it. will come with feedback


This is why I decided to adopt new versions as early as possible - it kan get kinda tricky if you're switching from a very old to a very new version :)
I rather do small changes each time than having to do a major rewrite every couple of months..

Share this post


Link to post
Share on other sites
I probably won't be able to write the wrapper interface for backwards compatibility so instead I decided to start writing on a document that will help with the upgrades. Below is the current draft. It's a little rough, but hopefully it's understandable. Maybe it can help you with the upgrade:

Upgrade instructions for AngelScript

[Edited by - WitchLord on September 24, 2004 12:21:47 PM]

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