[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua 5.3 with Node.js
- From: Russell Haley <russ.haley@...>
- Date: Tue, 7 Nov 2017 16:02:16 -0800
On Tue, Nov 7, 2017 at 3:51 PM, Frank Kastenholz
> I've used parts of luvit in a previous job. It was great.
Luvit has a really slick packaging/deployment system as well that I
can't seem to find right now. Further digging on the luvit site shows
lua bindings to libuv:
So basically Tim Caswell has done the hard work already and graciously
>>> On Nov 7, 2017, at 3:13 PM, Russell Haley <firstname.lastname@example.org> wrote:
>>> On Tue, Nov 7, 2017 at 11:32 AM, RAHUL KUMAR <email@example.com> wrote:
>>> Hi folks,
>>> I have an Desktop application which runs Lua 5.3 had one of the library as C
>>> dll and hence Lua loads (require) and make available all the functions.
>>> There are requests to move this application to web (existing web tools are
>>> in Node.js). Is there any binding available for Lua 5.3 with Node.js? I see
>>> there are bindings for 5.1 but not for 5.3
>> There is a library that does the same thing with Lua as Node.js does
>> https://luvit.io/. It uses the same backend C engine called libuv so
>> the looping mechanisms are compatible. I also see no reason you can't
>> should be able to yay or nay that idea.
>> I didn't use luvit because I found cqueues and lua-http which utilize
>> Lua yielding to produce the same effect. I liked it so I stuck with
>>> If not, what is best possible path i should take to port existing Lua module
>>> ( C dll) to Node.js?
>> On the back of a napkin I would say you could write a libuv extension
>> to be called from node.js to make luvit calls and drop them on the
>> same loop?