Alexey Zaytsev
2008-Jul-18 00:51 UTC
[syslinux] [GIT] Lua running as a com32 syslinux module
Hi. If anyone is interested, here is a working prototype: http://git.etherboot.org/?p=people/xl0/syslinux-lua.git;a=summary Os, io and math libraries are not compiled right now. Also, there are no bindings for any syslinux functions. Otherwise, everything should work just fine, like ISOLINUX 3.71 pre14-14-g8b9b72a* Copyright (C) 1994-2008 H. Peter Anvin Could not find kernel image: linux boot: lua.c32 Lua 5.1.3 Copyright (C) 1994-2008 Lua.org, PUC-Rio> print("Hello, World!")Hello, World!> f()stdin:1: attempt to call global 'f' (a nil value) stack traceback: stdin:1: in main chunk [C]: ?> c1 = coroutine.create(function () while true do print "A" coroutine.yield() end end) > c2 = coroutine.create(function () while true do print "B" coroutine.yield() end end) > while true do coroutine.resume(c1) coroutine.resume(c2) endA B A B A .... I've got no plans working on this stuff in the foreseeable future, so, if you've got an idea how this might be useful,.. you know how git-clone works. ;)
H. Peter Anvin
2008-Jul-18 05:37 UTC
[syslinux] [GIT] Lua running as a com32 syslinux module
Alexey Zaytsev wrote:> > I've got no plans working on this stuff in the foreseeable future, so, > if you've got an idea how this might be useful,.. you know how > git-clone works. ;) >Obviously, I think this would be wonderful as the long-discussed scripting facility. -hpa
Luis.F.Correia
2008-Jul-18 08:13 UTC
[syslinux] [GIT] Lua running as a com32 syslinux module
Hi!> -----Original Message----- > From: syslinux-bounces at zytor.com > [mailto:syslinux-bounces at zytor.com] On Behalf Of H. Peter Anvin > Sent: Friday, July 18, 2008 6:38 AM > To: For discussion of SYSLINUX and tftp-hpa > Subject: Re: [syslinux] [GIT] Lua running as a com32 syslinux module > > Alexey Zaytsev wrote: > > > > I've got no plans working on this stuff in the foreseeable > future, so, > > if you've got an idea how this might be useful,.. you know how > > git-clone works. ;) > > > > Obviously, I think this would be wonderful as the > long-discussed scripting facility.Once this is usable, I would really like to work on it (even bought the book on Lua and all) Gotta test that git thing then :)> > -hpaLuis Correia