lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> Is the `lit install ... creationix/uv ...` redundant? I don't need that if I LuaRocks installed "luv" correct? This was just for the example.

Actually, it's not redundant, as the article describes later on:

> The deps/uv.lua shim is literally nothing more than `return require 'luv'` that redirects any requires to the luarocks version

In luvi based apps (luvit and lit), the luv module is required as "uv", but in the luarocks land, it's "luv".  Most modules published to lit assume the "uv" spelling.  So this shim makes them continue to work even though we're using the luarocks version.

> Also why did we need LuaBitOpts installed. It is not used in any of the examples? If it is a dependency for luv why not include that in your LuaRocks dependency list?

Again most luvit modules are written for luvit, which means luajit where the bit library is a built-in.  But in this example we were using plain lua so we needed to add the bitop library manually on the luarocks side so that it would be compatible.  It's not listed as a dependency since it's part of luajit normally.


On Fri, Apr 22, 2016 at 12:12 PM, Ryan Pusztai <rpusztai@gmail.com> wrote:
Tim,

I really learned a lot about Luv from the article. 

I have a couple simple questions, Is the `lit install ... creationix/uv ...` redundant? I don't need that if I LuaRocks installed "luv" correct? This was just for the example.
Also why did we need LuaBitOpts installed. It is not used in any of the examples? If it is a dependency for luv why not include that in your LuaRocks dependency list?

Thanks again.

--
Regards,
Ryan

On Sat, Apr 16, 2016 at 11:12 AM, Andrew Starks <andrew@starksfam.org> wrote:

On Thu, Apr 14, 2016 at 13:22 Tim Caswell <tim@creationix.com> wrote:
For a while I've been promising a blog post explaining how luvit and lit packages can be used with plain lua or luajit (as opposed to the luvit binary).  It's finally out.

Pure Luv - Using Luvit Without Luvit
https://luvit.io/blog/pure-luv.html

-Tim Caswell


Tim,

This is very helpful. Thanks, Tim.