Git Product home page Git Product logo

Comments (9)

RyanSquared avatar RyanSquared commented on September 7, 2024 1

If you want to get around the require error you can install luabitop from luarocks for your corresponding version of lua.

I now remember why I wrote a wrapper library for this purpose - you actually can't do that. The dependencies of luabitop requires lua >= 5.1, lua < 5.3.

I wrote this a while ago for minimal support. I can rebase it from the latest master and people can specify that in their rockspecs until then.

from pgmoon.

Fale avatar Fale commented on September 7, 2024

This seems to be related: luarocks/luarocks#526

from pgmoon.

leafo avatar leafo commented on September 7, 2024

btw, when we do fix this, we need to turn on lua5.3 on ci:

https://github.com/leafo/pgmoon/blob/master/.travis.yml#L14

If you enable it and run ci now you can see why it's currently not working

from pgmoon.

Fale avatar Fale commented on September 7, 2024

I'm pretty new to Lua, but from my understanding, this line should not contain the word 'require'.
Also, the following line probably needs some small changes since - from what I read - the integrated "bit" library is not a drop in replacement for the external one.
I tried to propose a patch for this today, but I did not found anywhere an example on how to identify the lua version at runtime. I think the clean way to support 5.1, 5.2, and 5.3 would be to identify the version and behave differently based on that

from pgmoon.

leafo avatar leafo commented on September 7, 2024

Sorry, I left out some information. There are other reasons why specs don't pass on 5.3, it's not a simple change to require to fix it. If you want to get around the require error you can install luabitop from luarocks for your corresponding version of lua.

It's listed as a dependency: https://github.com/leafo/pgmoon/blob/master/pgmoon-dev-1.rockspec#L16

I'm guessing you didn't install pgmoon via luarocks?

from pgmoon.

ttfkam avatar ttfkam commented on September 7, 2024

Should pgmoon migrate from luabitop to bit32 now that Lua 5.2+ supports native 32 integers and related ops?

from pgmoon.

RyanSquared avatar RyanSquared commented on September 7, 2024

https://github.com/AlberTajuelo/bitop-lua looks like a neat library that includes a luabitop compatibility layer

from pgmoon.

tholu avatar tholu commented on September 7, 2024

I would support a fix for this as well, this blocks Lua 5.3 compatibility e.g. for https://github.com/Kong/kong.

from pgmoon.

leafo avatar leafo commented on September 7, 2024

Closing old issues. Lua 5.3 support has been available for quite some time now, test suite has been updated to reflect that.

from pgmoon.

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.