Can we update Lua?

Is there a reason why the version of Lua is so terribly old? Version 5.1.5 dates back to 2012.

Is there way to upgrade it to v5.4?

YOU as in we can work on updating it. There actually is lua 535 in next directory.

1 Like

Likely because it's no longer used generally.

2 Likes

by luci maybe .... many of us still use it.

this was done long ago ,...

2 Likes

+1. Still using LUA to write apps for openwrt. Small, fast, easy to debug, lot of libraries (mqtt, modbus …) .

Yep, and more being added all the time. I myself just created lua blindings for the entire mongoosee c networking library. It will be available for very soon. You could do away with luci altogether with a little ambition :wink:

You should give ucode a go. It’s very intuitive and easy to write in.

Given that nothing critical in OpenWrt still requires lua (there probably are still some no longer necessary bindings that might get into the way though), there isn't really an obstacle against updating lua (again, bindings might still cause concerns) - so it's probably indeed 'just' a question of someone being motivated to go through with it (which probably includes going back to a single lua version and making sure that it doesn't cause major issues).

What is this screenshot of? I am not following, sorry. I did not find presence of a newer interpreter in the file system, nor anything in the official packages.

Roll your own firmware.

Screenshot from “make menuconfig” - “Languages” - “Lua” when building your custom firmware from src. For a start: https://openwrt.org/docs/guide-developer/toolchain/use-buildsystem

strange ...

2 Likes

Indeed… Maybe my opkg update did not succeed or something, but now it’s installed and seems to work. Thanks!

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.