luajit.html 4.9 KB

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