summaryrefslogtreecommitdiff
path: root/doc/extensions.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/extensions.html')
-rw-r--r--doc/extensions.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/extensions.html b/doc/extensions.html
index 7d12299c..b0e11644 100644
--- a/doc/extensions.html
+++ b/doc/extensions.html
@@ -166,6 +166,23 @@ positive infinity results in <tt>"inf"</tt> and negative infinity results
166in <tt>"-inf"</tt>. 166in <tt>"-inf"</tt>.
167</p> 167</p>
168 168
169<h3 id="string_dump"><tt>string.dump(f [,strip])</tt> generates portable bytecode</h3>
170<p>
171An extra argument has been added to <tt>string.dump()</tt>. If set to
172<tt>true</tt>, 'stripped' bytecode without debug information is
173generated. This speeds up later bytecode loading and reduces memory
174usage. See also the
175<a href="running.html#opt_b"><tt>-b</tt> command line option</a>.
176</p>
177<p>
178The generated bytecode is portable and can be loaded on any architecture
179that LuaJIT supports, independent of word size or endianess. However the
180bytecode compatibility versions must match. Bytecode stays compatible
181for dot releases (x.y.0 &rarr; x.y.1), but may change with major or
182minor releases (2.0 &rarr; 2.1) or between any beta release. Foreign
183bytecode (e.g. from Lua 5.1) is incompatible and cannot be loaded.
184</p>
185
169<h3 id="math_random">Enhanced PRNG for <tt>math.random()</tt></h3> 186<h3 id="math_random">Enhanced PRNG for <tt>math.random()</tt></h3>
170<p> 187<p>
171LuaJIT uses a Tausworthe PRNG with period 2^223 to implement 188LuaJIT uses a Tausworthe PRNG with period 2^223 to implement