Using LuaJIT with PureBasic...

Windows specific forum
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Using LuaJIT with PureBasic...

Post by DoubleDutch »

I've created a zip file containing what you need to add LuaJIT 2.0 to your PureBasic programs. It is based on this one: http://www.realsource.de/downloads/doc_ ... pb-include

Here it is:
http://sinistersoft.com/downloads/luajit.zip

LuaJIT is a JIT version of the Lua Interpreter, it can run much faster for normal Lua as it dynamically compiles as it goes.
http://luajit.org/

http://luajit.org/performance_x86.html

If you have any experience with Lua and want to add some examples or improve on the include file then please add them to this thread.
Last edited by DoubleDutch on Thu Feb 07, 2013 9:43 pm, edited 1 time in total.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Re: Using LuaJIT with PureBasic...

Post by SFSxOI »

Where were you when I needed this a few months ago? :)

Very useful, thank you DoubleDutch. :)
Last edited by SFSxOI on Thu Feb 07, 2013 9:18 pm, edited 1 time in total.
The advantage of a 64 bit operating system over a 32 bit operating system comes down to only being twice the headache.
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: Using LuaJIT with PureBasic...

Post by DoubleDutch »

No problem, glad you like it. :)
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Using LuaJIT with PureBasic...

Post by ts-soft »

@DoubleDutch

Can you please change the url in your first post.
http://www.realsource.de/downloads/doc_ ... pb-include
this one is more usefull :wink:

Greetings - Thomas
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: Using LuaJIT with PureBasic...

Post by DoubleDutch »

Done. :)
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
flaith
Enthusiast
Enthusiast
Posts: 704
Joined: Mon Apr 25, 2005 9:28 pm
Location: $300:20 58 FC 60 - Rennes
Contact:

Re: Using LuaJIT with PureBasic...

Post by flaith »

Seems it needs at least Windows Vista
Under XP I've got : "The procedure entry point FlsGetValue could not be located in the dynamic link library KERNEL32.dll." :?
“Fear is a reaction. Courage is a decision.” - WC
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: Using LuaJIT with PureBasic...

Post by DoubleDutch »

Thanks, I'll recompile it with vs2003 later today. That should sort it.

Edit: Done it now, can you re-download and test?
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
flaith
Enthusiast
Enthusiast
Posts: 704
Joined: Mon Apr 25, 2005 9:28 pm
Location: $300:20 58 FC 60 - Rennes
Contact:

Re: Using LuaJIT with PureBasic...

Post by flaith »

:D Great, it works now, just had to install msvcr71.dll :wink:
Thanks a lot DoubleDutch :D
“Fear is a reaction. Courage is a decision.” - WC
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: Using LuaJIT with PureBasic...

Post by DoubleDutch »

So did the new version not work without msvcr71.dll ?
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
flaith
Enthusiast
Enthusiast
Posts: 704
Joined: Mon Apr 25, 2005 9:28 pm
Location: $300:20 58 FC 60 - Rennes
Contact:

Re: Using LuaJIT with PureBasic...

Post by flaith »

Sorry for the late reply, it's Tết here (Vietnam)
Yes, I had to install it, seems it's the redistributable package visual c++ 2010 that need to be installed :wink:
Happy new year (Chuc Mung Nam Moi) :D
“Fear is a reaction. Courage is a decision.” - WC
Post Reply