Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Development
➜ Updating Lua from 5.1 to something newer
Updating Lua from 5.1 to something newer
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Kahenraz
(75 posts) Bio
|
Date
| Sat 14 Apr 2018 01:56 AM (UTC) |
Message
| I have read this thread:
http://www.gammon.com.au/forum/?id=14028
I would be willing to assist in updating libraries to work with a newer version (5.2 or 5.3).
If this could be a real thing I'm sure there are others who would be willing to help as well. | Top |
|
Posted by
| Fiendish
USA (2,534 posts) Bio
Global Moderator |
Date
| Reply #1 on Sat 14 Apr 2018 03:51 PM (UTC) Amended on Sat 14 Apr 2018 04:02 PM (UTC) by Fiendish
|
Message
| Why? "Because it's newer" isn't a compelling reason to break compatibility with everything. LuaJIT 2.1 incorporates the most useful features of later versions without needlessly breaking compatibility. You can just swap in its DLL yourself without making any changes to MUSHclient or existing scripts except to fix previously-silently broken string escapes. |
https://github.com/fiendish/aardwolfclientpackage | Top |
|
Posted by
| Kahenraz
(75 posts) Bio
|
Date
| Reply #2 on Sat 14 Apr 2018 08:16 PM (UTC) Amended on Sat 14 Apr 2018 08:17 PM (UTC) by Kahenraz
|
Message
| My argument isn't simply because it's newer. I asked because there are new features in Lua that I would like to use.
Whether it's compelling or not is up for discussion as it's not up to just me; that's why I proposed assisting in the update and left it open for others to offer as well. | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #3 on Sun 15 Apr 2018 05:55 AM (UTC) |
Message
| Unfortunately, the changes made to Lua 5.2 will simply break a lot of existing code, in particular the stuff described here:
http://www.gammon.com.au/forum/?id=4960
By removing setfenv, anyone who has followed the guidelines for serializing tables will have their code fail. Fixing this is not just a case of updating libraries.
We would have a massive mis-match of plugins, scripts, functions built into triggers, etc. which would fail for many users.
In March 2018 alone there were 1725 downloads of the older version of MUSHclient (4.94). Based on that I would estimate 20000+ downloads a year. Unbelievably high though that may seem, I don't want to be fielding thousands of complaints about how MUSHclient's plugins or tutorials have stopped working when a new release comes out with a new version of Lua.
The current version of Lua works, and there are no known major issues with it. Fiendish uses LuaJIT in the Aardwolf download, which is a drop-in alternative that would be faster and almost 100% compatible, as he notes.
The downsides are just too great. You are one person that wants extra features. I am one developer that doesn't want to field hundreds or thousands of complaints from other users.
Since the source code is publicly available you are certainly welcome to re-jig the client to your satisfaction, and use whatever version of Lua you like.
You might say "well, people don't have to download the improved version", which would be true. But when a bug is found (as you have been finding recently) then there would need to be a way of making the fix for the old and the new version. This would basically be doubling my workload. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Fiendish
USA (2,534 posts) Bio
Global Moderator |
Date
| Reply #4 on Sun 15 Apr 2018 10:39 PM (UTC) Amended on Sun 15 Apr 2018 10:52 PM (UTC) by Fiendish
|
Message
| Would you share which new features you're looking for? We might be able to find reasonable polyfills for unmet needs. |
https://github.com/fiendish/aardwolfclientpackage | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
17,451 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top