Node.js for lua?

前端 未结 9 883
走了就别回头了
走了就别回头了 2021-01-30 14:11

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

相关标签:
9条回答
  • 2021-01-30 14:35

    luvit aims to be to Lua exactly what Node.js is to Javascript. Definitely a promising project.

    0 讨论(0)
  • 2021-01-30 14:36

    You might want to take a look at Luvit or a gander at the Lua Github site. I think it takes the approach of implementing Node.js functionality right inside Lua. You write Lua code on the client side and on the server side. Here is a description of Luvit approach to doing Node.js functionality in Lua.

    0 讨论(0)
  • 2021-01-30 14:38

    You should also check out Lapis. It's a very lightweight and fast framework for OpenResty: http://leafo.net/lapis/

    I've really been enjoying it and predict it will have a bright future!

    As you would expect with anything built to leverage OpenResty, it's benchmarks are insanely good: https://www.techempower.com/benchmarks/#section=data-r12&hw=peak&test=query

    The author of Lapis also wrote a CoffeeScript-like language for Lua called MoonScript which is quite nice: http://moonscript.org/

    0 讨论(0)
提交回复
热议问题