Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pguillory
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
pguillory
12y 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.
2.
▲
by
pguillory
12y 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 OpenR
3.
▲
by
pguillory
12y ago
Thanks, I've added it to the list. In luajit-libuv, when Lua code makes an async request to libuv, it passes async.resume as the callback. Then it calls async.yield(), which stores the current coroutine in a global lookup table by uniq
4.
▲
by
pguillory
12y 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 en
5.
▲
Show HN: LuaJIT FFI binding to libuv with coroutines
(github.com)
101 points
by
pguillory
12y ago
|
35 comments