Subject | embedding Lua as procedural language |
---|---|
Author | woodsmailbox |
Post date | 2008-12-18T16:12:44Z |
Hi. Found strange that there's no mention of Lua in devel list,
tracker, or support list, so I'll bring this up here, sorta like a
feature request.
Pros to pl/Lua:
- Lua is *designed* for embedding, so its binding API gotta be clean
and stable (people like Adobe and Blizzard already bet on it).
- it's aligned to firebird's major design philosophy points:
fast(1a, 1b) and small(2).
- it's only data structure is the table-- that says a lot.
- it's arguably closer to lisp in expressiveness power than to php,
python or perl.
Cons:
- not a mainstream language unfortunately, so limited user target
(but advanced features always have a limited target, and that doesn't
diminish their importance, and besides, I think firebird users are
well into the league).
- you won't be getting any fancy libraries like you get with java.
- anything else? please comment.
Arguments:
(propaganda)
http://torch5.sourceforge.net/manual/Lua-1.html
http://www.lua.org/about.html
(1a)http://shootout.alioth.debian.org/gp4/lua.php
(1b)http://www.timestretch.com/FractalBenchmark.html
(2)"Lua is only 17000 lines of C code. Under Linux, the Lua
interpreter built with all standard Lua libraries takes 153K and the
Lua library takes 203K"
tracker, or support list, so I'll bring this up here, sorta like a
feature request.
Pros to pl/Lua:
- Lua is *designed* for embedding, so its binding API gotta be clean
and stable (people like Adobe and Blizzard already bet on it).
- it's aligned to firebird's major design philosophy points:
fast(1a, 1b) and small(2).
- it's only data structure is the table-- that says a lot.
- it's arguably closer to lisp in expressiveness power than to php,
python or perl.
Cons:
- not a mainstream language unfortunately, so limited user target
(but advanced features always have a limited target, and that doesn't
diminish their importance, and besides, I think firebird users are
well into the league).
- you won't be getting any fancy libraries like you get with java.
- anything else? please comment.
Arguments:
(propaganda)
http://torch5.sourceforge.net/manual/Lua-1.html
http://www.lua.org/about.html
(1a)http://shootout.alioth.debian.org/gp4/lua.php
(1b)http://www.timestretch.com/FractalBenchmark.html
(2)"Lua is only 17000 lines of C code. Under Linux, the Lua
interpreter built with all standard Lua libraries takes 153K and the
Lua library takes 203K"