Official Website: http://luvit.io/
Luvit is an attempt to do something crazy by taking node. js 'awesome architecture and dependencies and seeing how it fits in the Lua language.
This project is still under heavy development, but it's showing promise. in initial benchmarking with a hello World server, this is between 2 and 4 times faster than node. JS. version 0.8.2 is the latest release version.
Luvit is a crazy experiment project to transplant node. js architecture to the Lua language platform. It is still in active evolution and is not completely stable, but it is very effective. The very simple hello World server provides two to four times faster performance than node. js.
Windows Compilation
The current version is 0.8.2.
Get package:
Directly use git to synchronize the latest source code package, or you can access
Http://luvit.io/dist/latest/luvit-0.8.2.tar.gz
Download the full source code package, excluding. Git history.
Compilation steps:
1. Open git. Bash.
2. Run
D: \ luvit-0.8.2
Python configure # I have installed the Gyp component in my current python. I don't know if an error will be reported if I don't install it.
3. Use Visual Studio to open the all. sln project file and build all (my Vs is 2010)
4. You can see it in the DEBUG directory.
Buildvm.exe buildvm. PDB lib luajit.exe luajit. PDB luvit. Exp luvit. Lib minilua.exe minilua. PDB
Buildvm. ilk echo-server.lua Lua luajit. ilk luvit.exe luvit. ilk luvit. PDB minilua. ilk OBJ
In a simple test:
Save the echo-client and echo-server scripts on the official website as client. Lua, server. Lua, and then use luvit.exe server. Lua
Run another CMD and run luvit.exe client. Lua.
Success.
Why luvit?
Lua is relatively simple and widely used in script language. It is more likely to understand Lua interpreter than to understand Python interpreter and Java interpreter.
Luajit is very fast ~ Er, of course, this is just to talk about. In fact, the program I am involved in and I am writing is far from the degree of efficiency that requires attention to Python, V8, and luajit.