Hi Tim, thanks for elaborating further, I think I get it slowly. I got curious by your last sentence and wet my feet a little with "pure luv", it was a real pleasure I did not expect. Plus I do not even need a "real" HTTP server for my project but rather a custom TCP server.
However I could not find any API documentation for it so I had to rely on examples I could find in the luv repository. Is there any resource I missed other than libuv documentation which is linked from luv README? Btw: thank you for this awesome piece of software :) Cheers, Tristan On Tuesday, April 2, 2019 at 12:42:43 PM UTC, Tim Caswell wrote: > > Sort of. Luvi is all the parts that have to be implemented in native C > code and not much more. There is some fairly heavyweight code in Lua, > such as the HTTP stack (luvi just exposes libuv tcp and TLS from openssl, > but no HTTP or websocket code) > > Also luvi has the bootstrap code that knows how to read Lua from a zip > file. So a luvi based app is the static luvi binary literally concatenated > with a zip file containing all the needed Lua code for the app. > > Lit is a luvi app as is luvit. lit is the package manager and a toolkit > for building luvi based apps. Luvit is a nodejs clone with similar apis > built in implemented in Lua and node style APIs. > > Personally I don't use luvit much anymore and tend to write my apps > directly as luvi based programs using lit to manage deps and package it. > > On Tue, Apr 2, 2019, 7:23 AM Tristan Kohl <[email protected] > <javascript:>> wrote: > >> Hi Ryan, >> >> thank you for your answer. So if I understand you correctly luvi does the >> heavy lifting and luvit is "syntactic sugar" on top to enable NodeJS like >> programming? >> >> That makes sense to me, thanks again for clarifying this. >> >> Cheers, >> Tristan >> >> P.S. I tried to join the IRC but Thunderbird does not connect to it even >> though a bunch of other channels on freenode work just fine. >> >> On Monday, April 1, 2019 at 4:06:59 PM UTC, Ryan Phillips wrote: >>> >>> Hey Tristan, >>> >>> Welcome! :) >>> >>> luvi is a binary that supports lua script embedding (within the binary). >>> Luvi also includes luv and other libraries (openssl, zlib, pcre) to add >>> more functionality to enable various components we enjoy (tls, compression, >>> and regexes). Luvit is written entirely in Lua, and just calls into the >>> APIs that we have included within Luvi. Some people use Luvi with the coro >>> libraries (more Lua like using coroutines), and others use Luvit which is >>> more like NodeJS. >>> >>> There is a discord (https://discord.gg/luvit) or IRC channel. See you >>> around. >>> >>> Regards, >>> Ryan >>> >>> On Mon, Apr 1, 2019 at 7:29 AM Tristan Kohl <[email protected]> wrote: >>> >>>> Hey guys, >>>> >>>> I am quite used to the Nodejs world and was super excited when I >>>> learned that the language I learned programming with - and found new love >>>> in recent times - has something that combines it with Node's awesome API. >>>> I >>>> would take Lua 10/10 times for my stuff if I had a choice. >>>> >>>> However reading and toying around I did not quite get what luvi does in >>>> particular. Here is what I (think) I know: >>>> >>>> 1. luv: low level bindings to libuv >>>> 2. lit: some package manager/builder >>>> 3. luvit: Binary containing LuaJIT + luv, pretty much Nodejs >>>> >>>> Github description talks about luvi as "A project in-between luv and >>>> luvit" but that does not explain what exactly it does or what it adds. >>>> Hope >>>> someone more seasoned can jump up and bring light to me. >>>> >>>> Cheers, >>>> Tristan >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "luvit" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "luvit" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "luvit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
