Lua version used for Hollywood?

Discuss any general programming issues here

Lua version used for Hollywood?

Postby SamuraiCrow » Tue Apr 18, 2017 1:41 pm

Hello!

In an effort to try to make Hollywood faster on the 68k Amiga models I wanted to try different compiler options on the Lua that was used as the basis for Hollywood. Specifically, I wanted to try out https://github.com/bebbo/amigaos-cross-toolchain which is based on GCC 6.2 with some custom passes added to the backend. I found a mention on Lua: user projects website that claims it is 5.0.2 so that is what I'm going to tinker with for now. I've been googling for a while so I'd better start testing. I see that 5.0.3 is out now too if there is a bugfix in it I'll check it out.

Cheers!
SamuraiCrow
 
Posts: 46
Joined: Fri May 15, 2015 5:15 pm
Location: Ft. Collins, Colorado USA

Re: Lua version used for Hollywood?

Postby p-OS » Tue Apr 18, 2017 5:26 pm

The entry in Lua user projects seems to be quite old.
But according to HW7 docs (chapter Credits) ist is still Lua 5.02
p-OS
 
Posts: 67
Joined: Tue Nov 02, 2010 12:56 am

Re: Lua version used for Hollywood?

Postby SamuraiCrow » Tue Apr 18, 2017 5:42 pm

Thanks! Now I just have to figure out how to run the cross-compiler-toolchain build script. The installer is in Python but lacks the plugin to unpack an LHa file at this time.
SamuraiCrow
 
Posts: 46
Joined: Fri May 15, 2015 5:15 pm
Location: Ft. Collins, Colorado USA

Re: Lua version used for Hollywood?

Postby airsoftsoftwair » Tue Apr 18, 2017 6:40 pm

Yes, it is still Lua 5.0.2 but with lots of modifications, see here for an overview.
User avatar
airsoftsoftwair
 
Posts: 2025
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany

Re: Lua version used for Hollywood?

Postby SamuraiCrow » Wed Apr 19, 2017 12:30 pm

Thanks airsoftsoftwair!

I've gotten the M68k GCC 6.2 cross-toolchain to compile on my Linux box. Now that I know which version of Lua to use as a benchmark to test the C compiler I'll have to clear up a duplicated definition in the default includes in the toolchain and compare to the VBCC code. I hope this produces some cleaner code so Hollywood will work better on a 68k Amiga.
SamuraiCrow
 
Posts: 46
Joined: Fri May 15, 2015 5:15 pm
Location: Ft. Collins, Colorado USA

Re: Lua version used for Hollywood?

Postby SamuraiCrow » Wed May 31, 2017 6:50 pm

After having looked into LuaJIT, I see that it requires Lua 5.1 syntax for variable argument (vararg) formatting. How hard would it be to switch to LuaJIT 2.0.5? If it's easier than I think, it might be practical for a third party (like some friends and I) to write a 68k backend for it. If it's hard we won't even bother.
SamuraiCrow
 
Posts: 46
Joined: Fri May 15, 2015 5:15 pm
Location: Ft. Collins, Colorado USA

Re: Lua version used for Hollywood?

Postby airsoftsoftwair » Thu Jun 01, 2017 11:56 pm

I don't think a switch to LuaJIT is feasible because the 5.0.2 VM used by Hollywood has been massively hacked. That's also why it's pretty much stalled at 5.0.2. The goal was to be completely compatible with my custom VM which was used before Hollywood 2.0. That's why Hollywood's Lua VM supports all kinds of exotic stuff like Goto() and Gosub() and internally it's really a major hack. So a switch to LuaJIT isn't possible without going to great pains.
User avatar
airsoftsoftwair
 
Posts: 2025
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany


Return to General programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron