用于lua的Node.js?

问题描述:

过去几天我一直在使用node.js(nodejs),这真是太棒了.据我所知,lua没有libev和libio的类似集成,这让我们避免了几乎所有阻塞调用并以异步方式与网络和文件系统进行交互.

I've been playing around with node.js (nodejs) for the past few day and it is fantastic. As far as I can tell, lua doesn't have a similar integration of libev and libio which let's one avoid almost any blocking calls and interact with the network and the filesystem in an asynchronous manner.

我正在缓慢地将Java实现移植到nodejs,但令我震惊的是luajit比v8 JavaScript快得多,并且使用的内存更少!

I'm slowly porting my java implementation to nodejs, but I'm shocked that luajit is much faster than v8 JavaScript AND uses far less memory!

我想在这样的环境(非常快速,响应迅速,非常低的内存使用率,非常有表​​现力)中编写服务器将极大地改善我的项目.

I imagine writing my server in such an environment (very fast and responsive, very low memory usage, very expressive) will improve my project immensly.

作为lua的新手,我不确定是否存在这样的事情.我将不胜感激任何指针.

Being new to lua, I'm just not sure if such a thing exists. I'll appreciate any pointers.

谢谢

请参见 lualibevent lua-ev 以及 Lua Gem#27