Gentoo Archives: gentoo-user

From: Ionen Wolkens <sudinave@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Which Lua should I choose?
Date: Tue, 19 Jan 2021 14:33:17
Message-Id: YAbtpDxzutu/HnHp@eversor
In Reply to: [gentoo-user] Which Lua should I choose? by Gerion Entrup
1 On Tue, Jan 19, 2021 at 02:51:49PM +0100, Gerion Entrup wrote:
2 > Hi,
3 >
4 > with the recent Lua changes in Gentoo, I now must somehow choose, which Lua version I should prefer.
5 > I have heard that every Lua version is mostly different (incompatible) from each other and in addition to that there is Luajit which is much faster an also supported.
6 > However, all (slotted) Lua versions in the current tree are keyworded.
7 >
8 > Portage on its own seems to choose Lua 5.1.
9 > Is there a recommendation which Lua version is a wise choice?
10 >
11 > For Python it is usually a good choice to set nothing and you get a high compatibility (3.7 is the default currently, I think). If you choose newer Python versions, you get more features but also more work with regard to setting some useflags for packages that don't support the new version yet. Is there something comparable with Lua?
12
13 The point of slotted lua is to be able to have many at once. There's
14 packages that only support 5-1, and others only 5-3 (like darktable),
15 so pick 1 or many based on what you need/use.
16
17 lua5-1 still has the most compatibility so it makes sense as default for
18 now.
19
20 lua5-4 is on the opposite end with too little support.
21
22 Not fond of luajit, it feels kind of like a old hack to me while normal
23 lua been moving forward.
24
25 Personally use lua5-3 where possible, and fall back on the next lower
26 version if needed.
27
28 --
29 ionen

Attachments

File name MIME type
signature.asc application/pgp-signature