lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Apple's move to x86 creates a need for compiled scripts that can be
byte-swapped at load time. Admittedly, we've got PPC and x86 code to deal
with, but it would be nice not to share the compiled Lua code.

We've restored the byte-swap logic from 5.1 alpha to our copy of the
sources.

Mark

on 1/5/06 1:46 AM, Adam D. Moss at adam@gimp.org wrote:

> Luiz Henrique de Figueiredo wrote:
>>> What became of the byte swapping at load time support for pre-compiled Lua
>>> files? I thought this was going to at least be available as an option in Lua
>>> 5.1 but it doesn't seem to be included in luaconf.h.
>> 
>> We have moved towards the simplest dump/undump pair, with the intention
>> of providing an external tool that could rewrite precompiled files,
>> which would include byte swapping and more.
> 
> Just IMHO: I can't help feeling that although, as is The Lua Way,
> this may turn out to be the simplest approach, it's also steering
> rapidly away from offering the most practical solution to the real-
> world situation that I suspect prompted the question.  That is, an
> application on platform B simply wants to load scripts compiled on
> platform A.  In this case there's little benefit (in fact it's
> pretty inconvenient) to have a tool that converts from one format
> to another - the app really just wants to load them, ideally (in
> the case of big data-scripts) in one pass.
> 
> Kinda regards,
> --Adam