Re: ANNOUNCE: luachunk-0.1
Kristopher Micinski <krismicinski <at> gmail.com>
2012-10-08 01:18:42 GMT
Oh, this is nice, we have our undergrads implement a compiler to Lua
bytecode as part of their term projects, and currently use a homebrew
OCaml package. This seems to be pretty complete, however, and it
would be interesting for me to reimplement some stuff with this..
Unfortunately the Lua bytecode isn't really documented or intended to
be generated, meaning that you essentially have to reverse engineer
it. (Maybe not "unfortunately;" it's not meant to be used like that,
but unfortunately for people looking to find projects to assign
On Fri, Oct 5, 2012 at 9:51 AM, Anupam Jain <ajnsit <at> gmail.com> wrote:
> Hi all,
> I just released luachunk-0.1 on Hackage
> (http://github.com/ajnsit/luachunk). Luachunk is a small library to
> read and write Lua 5.1 bytecode chunks. It is modeled after
> ChunkSpy.lua (http://luaforge.net/projects/chunkspy/) though the code
> is written from scratch. A pretty listing printer for lua bytecode is
> in the works.
> I used LuaChunk in a project to generate Lua bytecode via a DSL, and
> then interpret it with HsLua. I hope to release the DSL itself
> sometime in the future.
> -- Anupam