pguillory

Joined 12 years ago

Karma
96
Submissions
5
Member since
Aug 28
At gmail dot com.
View on Hacker News

Recent submissions

Comment · 12 years ago
I've only tried building it on OS X and Linux so far. As far as I know, basically everything but the build process is compatible with Windows. I'll look into it when I get a chance.
Comment · 12 years ago
This would get toasted by Nginx right now. I'm on step 2 of "make it work, make it right, make it fast." There's a lot of low hanging fruit, like string concatenation, small mallocs, etc.

I started out working with OpenResty, and it still makes the most sense for a project that leans heavily on the functionality of Nginx.

Comment · 12 years ago
Comment · 12 years ago
In addition to what benjaminva said, luv uses callbacks (like Node.js), whereas this uses coroutines. So for example with luv you might do something like:

    fs.readFile(filename, function(err, data)
      -- remember to check err
    end)
With this binding the code would look like:

    local data = fs.readfile(filename)
    -- err was raised if one occurred
With coroutines, you can use exceptions and for/while loops and they continue to work as you would expect.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton