[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Simple lua code crashing...
- From: Paige DePol <lual@...>
- Date: Sat, 28 Jun 2014 06:05:49 -0500
On Jun 28, 2014, at 4:28 AM, Austin Einter <austin.einter@gmail.com> wrote:
> On Sat, Jun 28, 2014 at 2:40 PM, Paige DePol <lual@serfnet.org> wrote:
>>> On Jun 28, 2014, at 4:00 AM, Austin Einter <austin.einter@gmail.com> wrote:
>>>
>>> With all your help, I got it working.
>>>
>>> It is really a pleasure to work with C/Lua combination as frequent C code modification can be avoided.
>>>
>>> Austin
>>
>> Unless you embed your Lua code into your C code, then you still have to compile your C code for your Lua changes to take effect. Frequently there is a separation of coding duties between C-land and Lua-land, which is why it can be helpful for your program to be able to dynamically load the scripts externally. This way the scripts can be modified without requiring the program to be recompiled, at least for debugging builds. For release builds you can do any number of things, including embedding pre-compiled Lua scripts if you do not require the scripts to change at run time.
>>
>> Happy to hear you got your script up and running, good luck with your future Lua endeavours! :)
>>
>> ~pmd
>
> Hi Paige DePol
> "including embedding pre-compiled Lua scripts if you do not require the scripts to change at run time"
>
> Above thing is in my task list. Now I am on my way to make sure all my requirements are satisfied.
> Embedding pre-compiled Lua script, I really need to learn how to do it, as I hope it will increase the performance.
>
> Austin
Pre-compiling scripts will only decrease load-time, it will not increase performance. Using something like LuaJIT would increase your performance, but it would probably be good to get a solid foundation in Lua and C before venturing into that territory.
~pmd
- References:
- Simple lua code crashing..., Austin Einter
- Re: Simple lua code crashing..., Tim Hill
- Re: Simple lua code crashing..., Coda Highland
- Re: Simple lua code crashing..., Tim Hill
- Re: Simple lua code crashing..., Austin Einter
- Re: Simple lua code crashing..., Paige DePol
- Re: Simple lua code crashing..., Sean Conner
- Re: Simple lua code crashing..., Austin Einter
- Re: Simple lua code crashing..., Paige DePol
- Re: Simple lua code crashing..., Austin Einter