Christian Koch

Lua Bundler

Mon February 24, 2014

Download bundler.lua Last update: 2014-02-24

What’s this?

$ cat hello.lua
-- my little script
print("hello from a lua script!")
$ lua bundler.lua hello.lua | clang -xc -o hello - -lm -llua
$ ./hello
hello from a lua script!

The Lua Bundler is a little Lua script which generates a minimal C program that does nothing but execute another Lua script. I wish I had a better name for this (it reminds me too much of Ruby’s Bundler), but anyway, here are some of its cool features:


comments powered by Disqus