Luajit is a dynamic scripting language completely compatible to lua 5.1. the whole VM has been rewritten from the ground up
and is relentlessly optimized for performance. It combines a high-speed interpreter, written in assembler, with a state-of-the-art JIT compiler.
A substantial reduction of the overhead associated with dynamic languages allows it to break into the performance range traditionally reserved for offline,
static language compilers.
https://luajit.org/luajit.htmlhttps://github.com/LuaJIT/LuaJIT/tree/master
There was additional code needed to enable neutrino to compile against lua 5.1. This was mostly taken from the luaposix compat-headers.
There are still some minor issue that will be easy to fix but it's up and running so damn fast!
Signed-off-by: Markus Volk <f_l_k@t-online.de>
* INFOBAR_SHADOW to SHADOW because it's not only used in infoviewer
* INFOBAR_SHADOW_TEXT to MENUFOOT_TEXT because it's the proper name
This is in preparation to make footer colors configurable
- code ported from lua-llthreads2
(https://github.com/moteus/lua-llthreads2)
- code in neutrino integrated for use of lua neutrino api in threads
- add thread::cancel() function
- Set Lua api version to 1.34
- Set Lua api version to 1.28
Example:
video = video.new()
if video.getNeutrinoMode() == NMODE.TS then
messagebox.exec{title="Attention!", text="Movie player is busy.", buttons={ "ok" } }
end
- Add simple download function
- Set Lua api version to 1.24
parameter typ default
----------------------------------------
url string required
o, outputfile string when empty then save to string
as secund return value
A, userAgent string empty
v, verbose bool false
s, silent bool false
connectTimeout number 20
ipv4 bool false
ipv6 bool false
useProxy bool true (default)
followRedir bool true
maxRedirs number 20
Example:
-- simplest program call:
-- ----------------------
local curl = curl.new()
local ret, data = curl:download{url="http://example.com", o="/tmp/test.txt"}
if ret ~= CURL.OK then
print("Error: " .. data)
end
-- or --
local curl = curl.new()
local ret, data = curl:download{url="http://example.com"}
if ret == CURL.OK then
-- downloaded data
print(data)
..
else
print("Error: " .. data)
end