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

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

谢谢

推荐答案

参见 lualibeventlua-ev 以及 Lua Gem #27

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

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