Skip to content
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

[lua] Modify default lua native bitops library from bit to bit32 #10923

Merged
merged 2 commits into from
Jan 21, 2023

Conversation

inklit
Copy link
Contributor

@inklit inklit commented Jan 9, 2023

This PR modifies the default lua native bitops library from bit to bit32.

This resolves a bug with some Lua 5.1 runtimes. In general, on Lua 5.1 the "official" bitops library is bit32 (installed from Luarocks). Some runtimes have backported versions of the 5.2 "bit" library, but these are generally not recommended to use.
Accidentally using the backported version of bit can cause unexpected issues in some Lua runtimes such as Cobalt

Modify default lua native bitops library from bit to bit32
@skial skial mentioned this pull request Jan 11, 2023
1 task
@Simn Simn merged commit 39d98a4 into HaxeFoundation:development Jan 21, 2023
@Simn
Copy link
Member

Simn commented Jan 21, 2023

Thanks!

tobil4sk added a commit to tobil4sk/HaxeManual that referenced this pull request Apr 2, 2023
Lua 5.1 requires installing bit32 manually. [0]

Lua 5.2 provides bit32 natively. [1]

Lua 5.3 still has it natively, though it is deprecated in favour of
native operators. [2]

Lua 5.4 removes this library from the standard installation, so it must
be installed again. [3]

[0]  HaxeFoundation/haxe#10923
[1] https://www.lua.org/manual/5.2/manual.html#6.7
[2] http://www.lua.org/manual/5.3/manual.html#8.2
[3] http://www.lua.org/manual/5.4/manual.html#3.4.2
tobil4sk added a commit to tobil4sk/HaxeManual that referenced this pull request Apr 5, 2023
Lua 5.1 requires installing bit32 manually. [0]

Lua 5.2 provides bit32 natively. [1]

Lua 5.3 still has it natively, though it is deprecated in favour of
native operators. [2]

Lua 5.4 removes this library from the standard installation, so it must
be installed again. [3]

[0]  HaxeFoundation/haxe#10923
[1] https://www.lua.org/manual/5.2/manual.html#6.7
[2] http://www.lua.org/manual/5.3/manual.html#8.2
[3] http://www.lua.org/manual/5.4/manual.html#3.4.2
Simn pushed a commit to HaxeFoundation/HaxeManual that referenced this pull request Apr 5, 2023
* Update bit dependency docs for lua

Lua 5.1 requires installing bit32 manually. [0]

Lua 5.2 provides bit32 natively. [1]

Lua 5.3 still has it natively, though it is deprecated in favour of
native operators. [2]

Lua 5.4 removes this library from the standard installation, so it must
be installed again. [3]

[0]  HaxeFoundation/haxe#10923
[1] https://www.lua.org/manual/5.2/manual.html#6.7
[2] http://www.lua.org/manual/5.3/manual.html#8.2
[3] http://www.lua.org/manual/5.4/manual.html#3.4.2

* Add luasec dependency

HaxeFoundation/haxe#10593

* Remove environ dependency

HaxeFoundation/haxe@9d75bec

* Add hx-lua-simdjson dependency

HaxeFoundation/haxe#9885
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