Update docs and changelog.
[luajit-2.0/celess22.git] / doc / luajit.html
blob58dfa32e294928ffa9027306001fc948389a0490
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-2010, 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><li>
28 <a href="api.html">API Extensions</a>
29 </li></ul>
30 </li><li>
31 <a href="status.html">Status</a>
32 <ul><li>
33 <a href="changes.html">Changes</a>
34 </li></ul>
35 </li><li>
36 <a href="faq.html">FAQ</a>
37 </li><li>
38 <a href="http://luajit.org/download.html">Download <span class="ext">&raquo;</span></a>
39 </li></ul>
40 </div>
41 <div id="main">
42 <p>
43 LuaJIT is a <b>Just-In-Time Compiler</b> for the Lua<sup>*</sup>
44 programming language.
45 </p>
46 <p>
47 LuaJIT is Copyright &copy; 2005-2010 Mike Pall.
48 LuaJIT is open source software, released under the
49 <a href="http://www.opensource.org/licenses/mit-license.php"><span class="ext">&raquo;</span>&nbsp;MIT/X license</a>.
50 </p>
51 <p class="indent" style="color: #606060;">
52 * Lua is a powerful, dynamic and light-weight programming language
53 designed for extending applications. Lua is also frequently used as a
54 general-purpose, stand-alone language. More information about
55 Lua can be found at: <a href="http://www.lua.org/"><span class="ext">&raquo;</span>&nbsp;http://www.lua.org/</a>
56 </p>
57 <h2>Compatibility</h2>
58 <p>
59 LuaJIT implements the full set of language features defined by Lua 5.1.
60 The virtual machine (VM) is <b>API- and ABI-compatible</b> to the
61 standard Lua interpreter and can be deployed as a drop-in replacement.
62 </p>
63 <p>
64 LuaJIT offers more performance, at the expense of portability. It
65 currently runs on all popular operating systems based on <b>x86 CPUs</b>
66 (Linux, Windows, OSX etc.). A port to x64 CPUs is currently ongoing &mdash;
67 you can follow its progress in the <a href="http://luajit.org/download.html"><span class="ext">&raquo;</span>&nbsp;git repository</a>.
68 Other platforms will be supported in the future, based on user demand
69 and sponsoring.
70 </p>
72 <h2>Overview</h2>
73 <p>
74 LuaJIT has been successfully used as a <b>scripting middleware</b> in
75 games, 3D modellers, numerical simulations, trading platforms and many
76 other specialty applications. It combines high flexibility with high
77 performance and an unmatched <b>low memory footprint</b>: less than
78 <b>120K</b> for the VM plus less than <b>80K</b> for the JIT compiler.
79 </p>
80 <p>
81 LuaJIT has been in continuous development since 2005. It's widely
82 considered to be <b>one of the fastest dynamic language
83 implementations</b>. It has outperfomed other dynamic languages on many
84 cross-language benchmarks since its first release &mdash; often by a
85 substantial margin. In 2009 other dynamic language VMs started to catch up
86 with the performance of LuaJIT 1.x. Well, I couldn't let that slide. ;-)
87 </p>
88 <p>
89 2009 also marks the first release of the long-awaited <b>LuaJIT 2.0</b>.
90 The whole VM has been rewritten from the ground up and relentlessly
91 optimized for performance. It combines a high-speed interpreter,
92 written in assembler, with a state-of-the-art JIT compiler.
93 </p>
94 <p>
95 An innovative <b>trace compiler</b> is integrated with advanced,
96 SSA-based optimizations and a highly tuned code generation backend. This
97 allows a substantial reduction of the overhead associated with dynamic
98 language features. It's destined to break into the performance range
99 traditionally reserved for offline, static language compilers.
100 </p>
102 <h2>More ...</h2>
104 Click on the LuaJIT sub-topics in the navigation bar to learn more
105 about LuaJIT.
106 </p>
107 <p><p>
108 Click on the Logo in the upper left corner to visit
109 the LuaJIT project page on the web. All other links to online
110 resources are marked with a '<span class="ext">&raquo;</span>'.
111 </p>
112 <br class="flush">
113 </div>
114 <div id="foot">
115 <hr class="hide">
116 Copyright &copy; 2005-2010 Mike Pall
117 <span class="noprint">
118 &middot;
119 <a href="contact.html">Contact</a>
120 </span>
121 </div>
122 </body>
123 </html>