[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Development
. . -> [Subject]  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] Refresh page


Posted by Kahenraz   (75 posts)  [Biography] 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.
[Go to top] top

Posted by Fiendish   USA  (2,494 posts)  [Biography] 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
[Go to top] top

Posted by Kahenraz   (75 posts)  [Biography] 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.
[Go to top] top

Posted by Nick Gammon   Australia  (22,921 posts)  [Biography] 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
[Go to top] top

Posted by Fiendish   USA  (2,494 posts)  [Biography] 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
[Go to top] 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.


13,673 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]