[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lua-l
Subject:    Cross-platform Lua Interpreter
From:       Jim Whitehead II <jnwhiteh () gmail ! com>
Date:       2009-01-26 15:09:40
Message-ID: 5fe281d40901260709m20109499g71de1f85a462b602 () mail ! gmail ! com
[Download RAW message or body]

For a project I am working on I have a need for a simple
cross-platform Lua interpreter that will "just work" on a reasonably
standard Mac/Windows system.  Some specific points:

* I want the experience for the user to be similar on both Mac and
Windows machines.
* The Lua core has to be customized a bit, so I have to have some
control over building the libraries/interpreter
* The resulting program should be available for Windows, Intel Mac OS
X and PPC Mac OS X.
* I don't have much experience cross-compiling on Mac OS X to ensure
something runs with prior versions/PPC.

Does anyone have any suggestions or ideas about the best way to go
about implementing this?  I've thought of a number of different
solutions, but none stick out in my mind as the best approach, so I
figured I would ask the experts.  The specific configuration/changes
that need to be made to the core are as follows:

* Includes rrt's bitlib
* Includes string.trim string.split, string.concat and a few other utilities
* Defines global aliases to a number of library functions
* string.format can use argument selection from Lua 4.0
* Ignores the UTF-8 Byte Order Mark at the beginning of a file
* Max stack size increased to 4096

Thanks for any help you can provide

- Jim
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic