FFI: Fix recording of pointer arithmetic.
[luajit-2.0.git] / doc / luajit.html
blobaea5c657ca880ffe73252db5169ebada7d62f25c
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <title>LuaJIT</title>
5 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6 <meta name="Author" content="Mike Pall">
7 <meta name="Copyright" content="Copyright (C) 2005-2011, Mike Pall">
8 <meta name="Language" content="en">
9 <link rel="stylesheet" type="text/css" href="bluequad.css" media="screen">
10 <link rel="stylesheet" type="text/css" href="bluequad-print.css" media="print">
11 <meta name="description" content="LuaJIT is a Just-In-Time (JIT) compiler for the Lua language.">
12 </head>
13 <body>
14 <div id="site">
15 <a href="http://luajit.org"><span>Lua<span id="logo">JIT</span></span></a>
16 </div>
17 <div id="head">
18 <h1>LuaJIT</h1>
19 </div>
20 <div id="nav">
21 <ul><li>
22 <a class="current" href="luajit.html">LuaJIT</a>
23 <ul><li>
24 <a href="install.html">Installation</a>
25 </li><li>
26 <a href="running.html">Running</a>
27 </li></ul>
28 </li><li>
29 <a href="extensions.html">Extensions</a>
30 <ul><li>
31 <a href="ext_ffi.html">FFI Library</a>
32 <ul><li>
33 <a href="ext_ffi_tutorial.html">FFI Tutorial</a>
34 </li><li>
35 <a href="ext_ffi_api.html">ffi.* API</a>
36 </li><li>
37 <a href="ext_ffi_int64.html">64 bit Integers</a>
38 </li><li>
39 <a href="ext_ffi_semantics.html">FFI Semantics</a>
40 </li></ul>
41 </li><li>
42 <a href="ext_jit.html">jit.* Library</a>
43 </li><li>
44 <a href="ext_c_api.html">Lua/C API</a>
45 </li></ul>
46 </li><li>
47 <a href="status.html">Status</a>
48 <ul><li>
49 <a href="changes.html">Changes</a>
50 </li></ul>
51 </li><li>
52 <a href="faq.html">FAQ</a>
53 </li><li>
54 <a href="http://luajit.org/performance.html">Performance <span class="ext">&raquo;</span></a>
55 </li><li>
56 <a href="http://luajit.org/download.html">Download <span class="ext">&raquo;</span></a>
57 </li></ul>
58 </div>
59 <div id="main">
60 <p>
61 LuaJIT is a <b>Just-In-Time Compiler</b> for the Lua<sup>*</sup>
62 programming language.
63 </p>
64 <p>
65 LuaJIT is Copyright &copy; 2005-2011 Mike Pall.
66 LuaJIT is open source software, released under the
67 <a href="http://www.opensource.org/licenses/mit-license.php"><span class="ext">&raquo;</span>&nbsp;MIT/X license</a>.
68 </p>
69 <p class="indent" style="color: #606060;">
70 * Lua is a powerful, dynamic and light-weight programming language
71 designed for extending applications. Lua is also frequently used as a
72 general-purpose, stand-alone language. More information about
73 Lua can be found at: <a href="http://www.lua.org/"><span class="ext">&raquo;</span>&nbsp;http://www.lua.org/</a>
74 </p>
75 <h2>Compatibility</h2>
76 <p>
77 LuaJIT implements the full set of language features defined by Lua 5.1.
78 The virtual machine (VM) is <b>API- and ABI-compatible</b> to the
79 standard Lua interpreter and can be deployed as a drop-in replacement.
80 </p>
81 <p>
82 LuaJIT offers more performance, at the expense of portability. It
83 currently runs on all popular operating systems based on
84 <b>x86</b> or <b>x64 CPUs</b> (Linux, Windows, OSX etc.) or embedded Linux
85 systems based on <b>PPC/e500v2 CPUs</b>.
86 Other platforms will be supported in the future, based on user demand
87 and sponsoring.
88 </p>
90 <h2>Overview</h2>
91 <p>
92 LuaJIT has been successfully used as a <b>scripting middleware</b> in
93 games, 3D modellers, numerical simulations, trading platforms and many
94 other specialty applications. It combines high flexibility with high
95 performance and an unmatched <b>low memory footprint</b>: less than
96 <b>120K</b> for the VM plus less than <b>80K</b> for the JIT compiler (on x86).
97 </p>
98 <p>
99 LuaJIT has been in continuous development since 2005. It's widely
100 considered to be <b>one of the fastest dynamic language
101 implementations</b>. It has outperfomed other dynamic languages on many
102 cross-language benchmarks since its first release &mdash; often by a
103 substantial margin. In 2009 other dynamic language VMs started to catch up
104 with the performance of LuaJIT 1.x. Well, I couldn't let that slide. ;-)
105 </p>
107 2009 also marks the first release of the long-awaited <b>LuaJIT 2.0</b>.
108 The whole VM has been rewritten from the ground up and relentlessly
109 optimized for performance. It combines a high-speed interpreter,
110 written in assembler, with a state-of-the-art JIT compiler.
111 </p>
113 An innovative <b>trace compiler</b> is integrated with advanced,
114 SSA-based optimizations and a highly tuned code generation backend. This
115 allows a substantial reduction of the overhead associated with dynamic
116 language features.
117 </p>
119 It's destined to break into the <a href="http://luajit.org/performance.html"><span class="ext">&raquo;</span>&nbsp;performance</a>
120 range traditionally reserved for offline, static language compilers.
121 Have look at these <a href="http://shootout.alioth.debian.org/u32/benchmark.php?test=all&lang=all&d=data&calc=calculate&gpp=on&java=on&luajit=on&v8=on&lua=on&tracemonkey=on&box=1"><span class="ext">&raquo;</span>&nbsp;cross-language benchmarks</a>
122 to see how it ranks against the competition.
123 </p>
125 <h2>More ...</h2>
127 Click on the LuaJIT sub-topics in the navigation bar to learn more
128 about LuaJIT.
129 </p>
130 <p><p>
131 Click on the Logo in the upper left corner to visit
132 the LuaJIT project page on the web. All other links to online
133 resources are marked with a '<span class="ext">&raquo;</span>'.
134 </p>
135 <br class="flush">
136 </div>
137 <div id="foot">
138 <hr class="hide">
139 Copyright &copy; 2005-2011 Mike Pall
140 <span class="noprint">
141 &middot;
142 <a href="contact.html">Contact</a>
143 </span>
144 </div>
145 </body>
146 </html>