diff options
author | Justin Boffemmyer | 2012-12-22 10:06:45 +0900 |
---|---|---|
committer | Justin Boffemmyer | 2012-12-22 10:06:45 +0900 |
commit | 3b5adf4582fa01385e83f6ba9e35918d69e19bcd (patch) | |
tree | cdc3b75e930faf3c17a06fb3e3e9c3da3837841f /lua-forge | |
parent | 6176c1f0f9b29dfde126bbb4af8188c0c6c0fb00 (diff) |
lua-forge/luajit: new spell
LuaJIT is a Just-In-Time full implementation of Lua, including both a
compiler and VM. It does not conflict with Lua itself, as it installs to
luajit rather than lua, but it can otherwise act as a drop-in
replacement for Lua 5.1 (with some features from 5.2 that work safely
with 5.1).
There is a compatibility option to enable more 5.2 features, at the
expense of (likely) breaking some 5.1-specific end-user code.
Diffstat (limited to 'lua-forge')
-rwxr-xr-x | lua-forge/luajit/BUILD | 1 | ||||
-rwxr-xr-x | lua-forge/luajit/CONFIGURE | 6 | ||||
-rwxr-xr-x | lua-forge/luajit/DEPENDS | 2 | ||||
-rwxr-xr-x | lua-forge/luajit/DETAILS | 36 | ||||
-rw-r--r-- | lua-forge/luajit/HISTORY | 3 | ||||
-rwxr-xr-x | lua-forge/luajit/INSTALL | 1 |
6 files changed, 49 insertions, 0 deletions
diff --git a/lua-forge/luajit/BUILD b/lua-forge/luajit/BUILD new file mode 100755 index 0000000000..19519c2895 --- /dev/null +++ b/lua-forge/luajit/BUILD @@ -0,0 +1 @@ +make "PREFIX=$INSTALL_ROOT/usr" "XCFLAGS=$LUAJIT_CONFIG" diff --git a/lua-forge/luajit/CONFIGURE b/lua-forge/luajit/CONFIGURE new file mode 100755 index 0000000000..1c519e78c5 --- /dev/null +++ b/lua-forge/luajit/CONFIGURE @@ -0,0 +1,6 @@ +config_query_option LUAJIT_CONFIG \ + "Build extra Lua 5.2 compatibility (breaks some 5.1 compatibility)?" \ + 'n' \ + '-DLUAJIT_ENABLE_LUA52COMPAT' \ + '' + diff --git a/lua-forge/luajit/DEPENDS b/lua-forge/luajit/DEPENDS new file mode 100755 index 0000000000..97a76ba880 --- /dev/null +++ b/lua-forge/luajit/DEPENDS @@ -0,0 +1,2 @@ +depends ncurses && +depends readline diff --git a/lua-forge/luajit/DETAILS b/lua-forge/luajit/DETAILS new file mode 100755 index 0000000000..c541e9b55b --- /dev/null +++ b/lua-forge/luajit/DETAILS @@ -0,0 +1,36 @@ + SPELL=luajit + VERSION=2.0.0 + SOURCE=LuaJIT-$VERSION.tar.gz +SOURCE_DIRECTORY="$BUILD_DIRECTORY/LuaJIT-$VERSION" + SOURCE_URL[0]="http://luajit.org/download/$SOURCE" + SOURCE_HASH=sha512:7aee798e68d0a5b2f1aaaf61b558e0734d48f2501a255d8e3c7208c1319586fdec1ebc4f80238ab1f58dfd3c9d0042b806a567ccce5b769ab4d6345f70844b36 + WEB_SITE="http://luajit.org/" + ENTERED=20121222 + LICENSE[0]=MIT + SHORT="a just-in-time compiler for Lua" +cat << EOF +LuaJIT has been successfully used as a scripting middleware in games, 3D +modellers, numerical simulations, trading platforms and many other specialty +applications. It combines high flexibility with high performance and an +unmatched low memory footprint: less than 125K for the VM plus less than 85K +for the JIT compiler (on x86). + +LuaJIT has been in continuous development since 2005. It's widely considered to +be one of the fastest dynamic language implementations. It has outperformed +other dynamic languages on many cross-language benchmarks since its first +release often by a substantial margin. In 2009 other dynamic language VMs +started to catch up with the performance of LuaJIT 1.x. Well, I couldn't let +that slide. ;-) + +For LuaJIT 2.0, the whole VM has been rewritten from the ground up and +relentlessly optimized for performance. It combines a high-speed interpreter, +written in assembler, with a state-of-the-art JIT compiler. + +An innovative trace compiler is integrated with advanced, SSA-based +optimizations and a highly tuned code generation backend. This allows a +substantial reduction of the overhead associated with dynamic language +features. + +It's destined to break into the performance range traditionally reserved for +offline, static language compilers. +EOF diff --git a/lua-forge/luajit/HISTORY b/lua-forge/luajit/HISTORY new file mode 100644 index 0000000000..651ddc341a --- /dev/null +++ b/lua-forge/luajit/HISTORY @@ -0,0 +1,3 @@ +2012-12-22 Justin Boffemmyer <flux@sourcemage.org> + * DETAILS, BUILD, CONFIGURE, DEPENDS, INSTALL: spell created + diff --git a/lua-forge/luajit/INSTALL b/lua-forge/luajit/INSTALL new file mode 100755 index 0000000000..95a70a10ec --- /dev/null +++ b/lua-forge/luajit/INSTALL @@ -0,0 +1 @@ +make PREFIX=/usr install |