lua-users home
lua-l archive

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


On Wed, Nov 24, 2010 at 11:11 AM, Bogdan Marinescu
<bogdan.marinescu@gmail.com> wrote:
> Hi,
>
> On Wed, Nov 24, 2010 at 12:35 PM, Jim Whitehead II <jnwhiteh@gmail.com> wrote:
>> On Wed, Nov 24, 2010 at 8:18 AM, Alex Bradbury <asb@asbradbury.org> wrote:
>>> On 24 November 2010 07:45, Axel Kittenberger <axkibe@gmail.com> wrote:
>>>> The idea is IMHO great, as far I heared the biggest challange to
>>>> tryruby was to make it safe... as it actually was a console on anoter
>>>> machine.
>>>
>>> You may be interested in the source Luiz has posted for the sandboxed
>>> Lua live demo:
>>> http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#demo
>>> http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/5.1/demo.tar.gz
>>
>> I can also make the source for http://wowprogramming.com/utils/weblua
>> available, as I have in the past.
>
> I'd like that very much.

Attached you will find the latest version of the script. It expects to
be invoked with ulimit, which handles the CPU/Memory limits of the
process. It should be easy to understand, even if its not the highest
quality code =)

- Jim

Attachment: sandbox.lua
Description: Binary data