Roberto Ierusalimschy
|
f9c3d6fdbe
|
use test mode to test the interpreter without jump tables
|
7 years ago |
Roberto Ierusalimschy
|
762baf0548
|
detail (trim constants are unsigned)
|
7 years ago |
Roberto Ierusalimschy
|
b8a04658b2
|
PRNG changed from 'xoroshiro128+' to 'xoshiro256**' + "I' renamed 'Rand64'
+ implementation can use integer types larger than 64 (or 32) bits
|
7 years ago |
Roberto Ierusalimschy
|
b44787652b
|
using 'xoroshiro128+' for PRNG
(plus a rotate at the final result to have better lower bits)
|
7 years ago |
Roberto Ierusalimschy
|
03c6a05ec8
|
no more nil-in-table
|
7 years ago |
Roberto Ierusalimschy
|
3d0b5edfe4
|
using unsigned comparison in 'l_intfitsf' (avoids one comparison)
|
7 years ago |
Roberto Ierusalimschy
|
8d50a998e3
|
definition for LUA_UNSIGNEDBITS (number of bits in a LUA_UNSIGNED)
|
7 years ago |
Roberto Ierusalimschy
|
bdd10a08b1
|
in 'random', uses high-order bits instead of low-order
(better statistical properties)
|
7 years ago |
Roberto Ierusalimschy
|
c5e3b2f814
|
in random/'project', remove the special case for "small" intervals;
it is slower than the general case.
|
7 years ago |
Roberto Ierusalimschy
|
6486762463
|
missing LUAI_FUNC in prototype for 'luaK_patchgoto'
|
7 years ago |
Roberto Ierusalimschy
|
4907444db9
|
'fTransfer' -> 'ftransfer' / 'nTransfer' -> 'ntransfer'
(keep the standard of names in lower case)
|
7 years ago |
Roberto Ierusalimschy
|
c3cb31fa9a
|
some extra goodies for 'readline'
('rl_readline_name' and 'rl_inhibit_completion')
|
7 years ago |
Roberto Ierusalimschy
|
0c7738240e
|
FALLTHROUGH comment must be last "statement"
(so it does not work when inside a block)
|
7 years ago |
Roberto Ierusalimschy
|
7b0b6b3b39
|
cannot use 'defined' inside a macro +
call to 'luaT_keydef' must be protected
|
7 years ago |
Roberto Ierusalimschy
|
89da4168df
|
avoid functions named 'pack'
(name too common, may collide when doing 'onelua.c')
|
7 years ago |
Roberto Ierusalimschy
|
6b01b6cf6a
|
'lu_int32' may not be 'int'
|
7 years ago |
Roberto Ierusalimschy
|
e3388ebfad
|
more explicit casts when converting an integer to a random float
(to ensure computations are done with all bits)
|
7 years ago |
Roberto Ierusalimschy
|
9e3db70482
|
details (casts between 'lua_Number' and 'double')
|
7 years ago |
Roberto Ierusalimschy
|
dbec41f34c
|
random floats of different sizes get exactly needed number of random bits
(up to 64)
|
7 years ago |
Roberto Ierusalimschy
|
0b3db69e41
|
slight simplification in 'xorshift128plus'
|
7 years ago |
Roberto Ierusalimschy
|
80ae1c1c16
|
fairer projection of random integers into an integer interval
|
7 years ago |
Roberto Ierusalimschy
|
40683b4934
|
added definition for LUA_MAXUNSIGNED
|
7 years ago |
Roberto Ierusalimschy
|
6480e73599
|
details (avoid using non-C89 '//' comment)
|
7 years ago |
Roberto Ierusalimschy
|
4a1612ff9b
|
new experimental syntax using reserved word 'undef'
|
7 years ago |
Roberto Ierusalimschy
|
464658b16a
|
better modularization of the code for the REPL
|
7 years ago |
Roberto Ierusalimschy
|
bdcde45d05
|
updated to use jump tables
|
7 years ago |
Roberto Ierusalimschy
|
8b0434e5e6
|
both 'fTransfer' and 'nTransfer' may not fit in a 'char'
|
7 years ago |
Roberto Ierusalimschy
|
8b0b675149
|
added casts (warnings in VS)
|
7 years ago |
Roberto Ierusalimschy
|
8c429311a3
|
typo in comment
|
7 years ago |
Roberto Ierusalimschy
|
66b7b075a6
|
'math.random' using the xorshift128+ algorithm
|
7 years ago |
Roberto Ierusalimschy
|
62a392ff46
|
using jump tables when available
|
7 years ago |
Roberto Ierusalimschy
|
893f382e94
|
Jump Table for the interpreter
|
7 years ago |
Roberto Ierusalimschy
|
0eb10c6303
|
'LUA_USE_READLINE' moved to the make file
|
7 years ago |
Roberto Ierusalimschy
|
00008b8ed0
|
back to one format per argument
|
7 years ago |
Roberto Ierusalimschy
|
df49384516
|
year in copyright changed to 2018
|
7 years ago |
Roberto Ierusalimschy
|
fbea553ca2
|
'lua_setiuservalue' removes value from the stack even in case of error
|
7 years ago |
Roberto Ierusalimschy
|
34b00c16e2
|
removed compatibility code with older versions
|
7 years ago |
Roberto Ierusalimschy
|
12110dec0e
|
module has been deprecated.
|
7 years ago |
Roberto Ierusalimschy
|
4105cafb84
|
no more 'bitlib'
|
7 years ago |
Roberto Ierusalimschy
|
76ff55750e
|
no optimizations in test mode + no more compat with 5.2 + a few more
options in comments
|
7 years ago |
Roberto Ierusalimschy
|
b7edf5d2d8
|
metamethods for 'removekey'/'keyin'
|
7 years ago |
Roberto Ierusalimschy
|
ef8263f81f
|
better names for macros for tags and types.
rttype -> rawtt; ttyperaw -> withvariant; ttype -> ttypetag;
tnov -> ttype
|
7 years ago |
Roberto Ierusalimschy
|
2952bc5fc9
|
special compact representation for userdata with no user values
(a common case)
|
7 years ago |
Roberto Ierusalimschy
|
38d3bc8909
|
using 'offsetof' to compute the size of parts of a structure
|
7 years ago |
Roberto Ierusalimschy
|
75efc6722b
|
avoid variant tags with the same value of the original type
(to expose bugs more easily)
|
7 years ago |
Roberto Ierusalimschy
|
d766e2ae17
|
first (parcial) implementation of 'keyin'/'removekey'
(still no metamethods, no raw verssions)
|
7 years ago |
Roberto Ierusalimschy
|
f055a9dffd
|
added check in 'obj2gco' to prevent its use in non Lua-object pointers
(otherwise its cast is blind, casting any value given to it)
|
7 years ago |
Roberto Ierusalimschy
|
4a7fe61806
|
in 'clearbykeys', clear keys of just-removed entries too
|
7 years ago |
Roberto Ierusalimschy
|
9243c414d9
|
first version of empty entries in tables
(so that, in the future, tables can contain regular nil entries)
|
7 years ago |
Roberto Ierusalimschy
|
477ca2fe8c
|
some reorganization in 'lobject.h'
(just moving stuff around)
|
7 years ago |