Lua + libUV + jIT = pure awesomesauce
Pull request Compare This branch is 1840 commits behind luvit:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
deps
examples
include
lib/luvit
src
tests
tools
.gitignore
.gitmodules
.travis.yml
LICENSE.txt
Makefile
NOTICE.txt
README.markdown
all.gyp
api.markdown
cgi_parity.markdown
common.gypi
configure
errors.markdown
jit
luvit.gyp

README.markdown

Luvit (Lua + libUV + jIT = pure awesomesauce)

Build Status

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.2.0 is the first stable release.

Do you have a question/want to learn more? Make sure to check out the mailing list and drop by our IRC channel, #luvit on Freenode.

-- Load the http library
local HTTP = require("http")

-- Create a simple nodeJS style hello-world server
HTTP.createServer(function (req, res)
  local body = "Hello World\n"
  res:writeHead(200, {
    ["Content-Type"] = "text/plain",
    ["Content-Length"] = #body
  })
  res:finish(body)
end):listen(8080)

-- Give a friendly message
print("Server listening at http://localhost:8080/")