Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

What happens to .lua files upon building a project?
Started by XeduR @Spyric Oct 08 2019 02:28 PM

- - - - -
2 replies to this topic
corona build compile compilation lua lua files

Best Answer Rob Miracle , 08 October 2019 - 02:40 PM

We compile the .lua files to byte code and then it gets packed into a single resource file. It's performance related with a little bit of obscurity. 

 

Rob

[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

XeduR @Spyric

[GLOBAL: userInfoPane.html]
XeduR @Spyric
  • Contributor

  • 981 posts
  • Corona SDK

Just out of curiosity. What happens to all .lua files upon building a project on Corona?

 

If I'm not mistaken, the Lua code gets converted to Lua bytecode, but where are these bytecode files then located and how does Corona access them? Is this some sort of protection mechanism, is it about performance or something entirely different?



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,300 posts
  • Enterprise

  Best Answer

We compile the .lua files to byte code and then it gets packed into a single resource file. It's performance related with a little bit of obscurity. 

 

Rob



[TOPIC: post.html]
#3

XeduR @Spyric

[GLOBAL: userInfoPane.html]
XeduR @Spyric
  • Contributor

  • 981 posts
  • Corona SDK

Thanks, that's good to know.

 

When I learned yesterday/today that the files were simply gone, my immediate questions were "ok, but where and why?"

Another day, another fact learned.




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: corona, build, compile, compilation, lua, lua files