Lua 5.5 compatibility #66

Open
opened 2026-06-09 13:57:00 +00:00 by scossu · 0 comments
Owner

Make Pocket Archive compatible with Lua 5.5.

It is also possible to make it backwards incompatible with Lua 5.4, to possibly reduce future maintenance, because a stable Pocket Archive version hasn't been yet released yet.

Lua 5.5 compatibility requires a change in the http library, which has a dependency on compat53, which is only required for Lua 5.2 and older, and cannot run on Lua 5.5. compat53 is likely required to maintain backwards compatibility with older Lua versions.

Solutions:

  1. Fork off http and remove the compat53 (and while at it, also bit32 which in a comment is noted as only needed by Lua 5.1). This would impose an additional long-term maintenance burden but it's the safest and most straightforward solution.
  2. Rebuild the HTTP admin module on top of a different library. This would be a big lift, fraught with problems, especially because the module was already moved from Pegasus to lua-http recently and some significant code has been built on top of it.
Make Pocket Archive compatible with Lua 5.5. It is also possible to make it backwards incompatible with Lua 5.4, to possibly reduce future maintenance, because a stable Pocket Archive version hasn't been yet released yet. Lua 5.5 compatibility requires a change in the `http` library, which has a dependency on `compat53`, which is only required for Lua 5.2 and older, and cannot run on Lua 5.5. `compat53` is likely required to maintain backwards compatibility with older Lua versions. Solutions: 1. Fork off `http` and remove the `compat53` (and while at it, also `bit32` which in a comment is noted as only needed by Lua 5.1). This would impose an additional long-term maintenance burden but it's the safest and most straightforward solution. 2. Rebuild the HTTP admin module on top of a different library. This would be a big lift, fraught with problems, especially because the module was already moved from Pegasus to lua-http recently and some significant code has been built on top of it.
scossu added this to the v1.0.0 milestone 2026-06-10 13:31:37 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ktx/pocket_archive#66
No description provided.