Skip to content

Lua 5.1 compatibility #798

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed

Lua 5.1 compatibility #798

wants to merge 3 commits into from

Conversation

smarek
Copy link

@smarek smarek commented Aug 10, 2020

This is also related to PR kaitai-io/ci_targets#7

@ildar
Copy link

ildar commented Aug 10, 2020

Thanks for an invitation.

  1. This PR effectively replaces Lua 5.3 with Lua 5.1. Is this what's intended? Or you wanted dual-Lua compatibility?
  2. There's compat-53 library aimed to unify 5.3 features in 5.1 environment. Good for dual-targeting and migration.

@smarek
Copy link
Author

smarek commented Aug 10, 2020

@ildar thank you for review

  1. yes, i think so
  2. compat library nice, thank you, but it does not have the necessary bitwise operations, so maybe in future

@ildar
Copy link

ildar commented Aug 10, 2020 via email

@smarek
Copy link
Author

smarek commented Aug 10, 2020

oh, so similar to bitop, i'll consider re-working the PR eventually, thank you

would it somehow be even possible to backport the bitwise operators (eg. 1 << 2)
i smell it could be possible in C API maybe, but i'm totally clueless

@ildar
Copy link

ildar commented Aug 10, 2020 via email

@ildar
Copy link

ildar commented Aug 10, 2020 via email

@smarek
Copy link
Author

smarek commented Aug 11, 2020

Final solution should be compatible 5.1+ and agree, so i'll update ci_targets with matrix of testing for each specific lua version

@smarek smarek closed this Aug 18, 2020
@smarek
Copy link
Author

smarek commented Aug 21, 2020

This PR is closed since the individual submodules will get updated anyway

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants