Code Monkey home page Code Monkey logo

vida's People

Contributors

kant avatar nwhitehead avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

vida's Issues

vida-git-1.rockspec doesn't set "inspect" module as dependency

Running on LuaJIT I had this problem:

$ luarocks install vida
Installing https://luarocks.org/vida-v1-8.src.rock...
Using https://luarocks.org/vida-v1-8.src.rock... switching to 'build' mode
Updating manifest for /usr/local/lib/luarocks/rocks
vida v1-8 is now built and installed in /usr/local (license: MIT )

$ cat > vida-example.lua
local vida = require('vida')

local fast = vida.compile(
    vida.interface [[
        // C interface
        int func(int, int);
    ]],
    vida.code [[
        // C implementation
        EXPORT int func(int a, int b) {
            return a + b;
        }
    ]])

print(fast.func(3, 5)) -- prints out 8
$ luajit vida-example.lua
luajit: /usr/local/share/lua/5.1/vida.lua:197: module 'inspect' not found:
        no field package.preload['inspect']
        no file './inspect.lua'
        no file '/usr/local/share/luajit-2.1.0-alpha/inspect.lua'
        no file '/usr/local/share/lua/5.1/inspect.lua'
        no file '/usr/local/share/lua/5.1/inspect/init.lua'
        no file './inspect.so'
        no file '/usr/local/lib/lua/5.1/inspect.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
        [C]: in function 'require'
        /usr/local/share/lua/5.1/vida.lua:197: in function 
        [C]: in function 'require'
        vida:1: in main chunk
        [C]: at 0x10006284

I solved it with:

$ luarocks install inspect
Installing https://luarocks.org/inspect-3.0-1.rockspec...
Using https://luarocks.org/inspect-3.0-1.rockspec... switching to 'build' mode
Updating manifest for /usr/local/lib/luarocks/rocks
inspect 3.0-1 is now built and installed in /usr/local (license: MIT )

$ luajit vida-example.lua
8

Therefore I'd add inspect as a dependency.

System Info: luarocks also running LuaJIT on PPC64le machine (POWER8)

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.