[syslinux] [GIT] Lua running as a com32 syslinux module
Alexey Zaytsev
alexey.zaytsev at gmail.com
Thu Jul 17 17:51:23 PDT 2008
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) end
A
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. ;)
More information about the Syslinux
mailing list