用于lua的Node.js? [英] Node.js for lua?

查看:153
本文介绍了用于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

这篇关于用于lua的Node.js?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆