Horde3D

Next-Generation Graphics Engine
It is currently 21.11.2024, 23:57

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Angel Script
PostPosted: 12.09.2008, 09:13 
Offline

Joined: 18.05.2008, 17:47
Posts: 96
I wonder why people are obsessed with lua. I don't know its speed but it is definitely easier to implement and it looks like C/C++
http://www.angelcode.com/angelscript/
(its license is nice too)


Top
 Profile  
Reply with quote  
 Post subject: Re: Angel Script
PostPosted: 12.09.2008, 09:56 
Offline

Joined: 21.08.2008, 11:44
Posts: 354
Wow :shock: , it's very good !
IMHO it competes with both lua and python very well !
Thanks a lot for this topic kal. :idea:

In a few words : It's a great tool and there is no need to another JIT utilities !


Last edited by Siavash on 12.09.2008, 13:44, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Angel Script
PostPosted: 12.09.2008, 11:30 
Offline

Joined: 21.08.2008, 11:44
Posts: 354
Hi, I have some problems in compiling AngelScript with CodeBlocks (MinGW)

1.There isn't any pthread.h or sched.h , so I've downloaded them from koders.com and included them.
2.There is another problem in compiling with sched.h
Release MinGW wrote:
sched.h|25|error: expected constructor, destructor, or type conversion before "int"|
signal.h|46|error: expected constructor, destructor, or type conversion before "typedef"|
pthread.h|30|error: expected constructor, destructor, or type conversion before "typedef"|
pthread.h|49|error: `_pthread_descr' does not name a type|
pthread.h|101|error: `_pthread_descr' does not name a type|
as_thread.h|67|error: expected constructor, destructor, or type conversion before "class"|
as_thread.h|130|error: `asCThreadCriticalSection' does not name a type|
as_module.h|227|error: `asCThreadCriticalSection' does not name a type|
as_context.h|208|error: `asCThreadCriticalSection' does not name a type|
as_scriptengine.h|315|error: `asCThreadCriticalSection' does not name a type|
as_scriptengine.h|316|error: `asCThreadCriticalSection' does not name a type|
||=== Build finished: 11 errors, 0 warnings ===|



Top
 Profile  
Reply with quote  
 Post subject: Re: Angel Script
PostPosted: 12.09.2008, 13:53 
Offline

Joined: 18.05.2008, 17:47
Posts: 96
http://www.angelcode.com/angelscript/sd ... iling.html
angelscript_2.13.1.zip\sdk\angelscript\source\as_config.h
you need to modify it for mingw it sets threads to posix_threads for gnuc (regardless of the os)
Code:
      #endif
       #define AS_POSIX_THREADS
   // Free BSD

you can try it with AS_WINDOWS_THREADS
or you can use http://sourceware.org/pthreads-win32/#download


Top
 Profile  
Reply with quote  
 Post subject: Re: Angel Script
PostPosted: 12.09.2008, 14:27 
Offline

Joined: 21.08.2008, 11:44
Posts: 354
Thanks a lot dear kal, the problem has been solved by changing "AS_POSIX_THREADS" to the "AS_WINDOWS_THREADS" :idea:


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 92 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group