Git Product home page Git Product logo

Comments (3)

jugglerchris avatar jugglerchris commented on July 19, 2024 1

I've done some investigation and experimentation, and have a proof of concept using LuaRocks (and some notes) from an rlua executable: https://github.com/jugglerchris/rlua_luarocks

The example behaves enough like a lua binary to install its own copy of LuaRocks and use that (using builtin-lua54). That's not the only way - it would be possible to use a stock Lua install (with matching version) for LuaRocks, and point to the installed libraries from the application using rlua.

from rlua.

jugglerchris avatar jugglerchris commented on July 19, 2024

Hi,
I guess the discussions might be a slightly better place than issues, but this is fine (and see below).

rlua wraps a stock Lua interpreter (https://www.lua.org/), so any Lua libraries should be available (for example https://luarocks.org/, which includes lua-http).

What's missing is documentation on using (for example) LuaRocks with rlua. I think it should be straightforward (especially when using one of the system-lua options) - I will treat this issue as a documentation bug.

Note that rlua by default disables loading non-pure-Lua libraries unless you call Lua::unsafe_new_with_flags and don't include the LOAD_WRAPPERS and REMOVE_LOADLIB flags.

from rlua.

Lilith-In-Starlight avatar Lilith-In-Starlight commented on July 19, 2024

Oh my bad! I totally forgot github discussions were even a thing. I'll rename the issue more appropriately now that it's gonna be regarded as a documentation bug.

I'm using the builtin 5.4 lua option, because I don't want to make people have to install lua just to get the program to work. Since currently there is no documentation on it, how would I use LuaRocks with rlua?

from rlua.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.