Lua version / Bit32 library

Post Reply
Zanthis
Posts: 23
Joined: Mon Dec 09, 2013 8:35 pm

Lua version / Bit32 library

Post by Zanthis »

I'm looking for access to the Bit32 library from Lua 5.2. Is Mudlet even using 5.2? I heard LuaJIT mentioned, and I tried access its Bit library and that doesn't work either. Or are bitwise operations there somewhere and I'm just missing them?

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: Lua version / Bit32 library

Post by Vadi »

Mudlet is nor using Lua 5.2[1], not LuaJIT. You'd want to look up how to get them working under Lua 5.1 - perhaps there is a library you can use.

[1] 5.2 breaks compatibility, and we're pretty big on not breaking people's stuff. In fact, the whole Lua world is - so Lua 5.2 adoption is expected to be slow.

Zanthis
Posts: 23
Joined: Mon Dec 09, 2013 8:35 pm

Re: Lua version / Bit32 library

Post by Zanthis »

In case anyone comes across this thread later, I've put together an all-Lua binary operator and SHA2 package.

Post Reply