Early adopters of luvit

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.