This is a question specifically for Atilim/Gorkem, one of the good things with Gideros is that we have to compile the app ourselves for the platform that we want. Which means all the relevant lua files are also compiled into bytecode using luac before being compiled into the final app.
So If I offer a library as a mylibrary.lua (luac compiled) than the source code in text format, this would still work as would a text based source code, right? This would be so much better as in C*SDK the only way to offer the code is in full text based which is hardly any protection of the code. Are there going to be any concerns, I believe there could be issues if the file was compiled manually using luac (64-bit) while I guess the devices work well or only work with the 32-bit versions, is that right? Any light on this
Comments
i also asked at atilim the same (with private msg)
and yes you are right.
...
" luac is a 32-bit application and generates 32-bit lua bytecodes. Although these generated bytecodes will work on Windows, Android and iOS, they won't work on 64-bit Mac OS X"
Ciao
Gianluca.
www.tntengine.com
I had told OzApps already about what you had told me (how to compile and use your lua files), that is what I had written before.
Btw @Atilim, you told me that always the 32 bit version of LUAC should be used. This is contrary to what @GregBug mentioned.
Isn't that a bit of a shame, so there have to be 2 implementations, one 32 bit (for the mobile device compilation) and one 64 bit (for the desktop)?
Is there any alternative to distribute libraries written in Lua and still protecting the source code from being in Text Format (apart from Obfuscation, which I have been using on some of my C*SDK offerings)
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
Yes this 32-bit vs. 64-bit incompatibility between Lua bytecodes is also always problematic to me. I think the only way to solve this problem completely is providing 32-bit version of Gideros Studio always. I mean:
Edit: That smily I wanted to add doesn't work right.
Likes: MikeHart
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
Likes: n1cke, antix, simwhi, totebo, hotbuttered
https://deluxepixel.com