* [gentoo-user] Which Lua should I choose?
@ 2021-01-19 13:51 Gerion Entrup
2021-01-19 14:21 ` Miles Malone
2021-01-19 14:33 ` [gentoo-user] " Ionen Wolkens
0 siblings, 2 replies; 3+ messages in thread
From: Gerion Entrup @ 2021-01-19 13:51 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 804 bytes --]
Hi,
with the recent Lua changes in Gentoo, I now must somehow choose, which Lua version I should prefer.
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.
However, all (slotted) Lua versions in the current tree are keyworded.
Portage on its own seems to choose Lua 5.1.
Is there a recommendation which Lua version is a wise choice?
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?
Regards,
Gerion
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] Which Lua should I choose?
2021-01-19 13:51 [gentoo-user] Which Lua should I choose? Gerion Entrup
@ 2021-01-19 14:21 ` Miles Malone
2021-01-19 14:33 ` [gentoo-user] " Ionen Wolkens
1 sibling, 0 replies; 3+ messages in thread
From: Miles Malone @ 2021-01-19 14:21 UTC (permalink / raw
To: gentoo-user
At this point I'd choose nothing until it's settled down, unless
you've got a strong reason not to. They've literally only JUST
managed to get the majority of ebuilds even working with slotted lua
at all, give it six months.
Regards,
Miles
On Tue, 19 Jan 2021 at 23:52, Gerion Entrup <gerion.entrup@flump.de> wrote:
>
> Hi,
>
> with the recent Lua changes in Gentoo, I now must somehow choose, which Lua version I should prefer.
> 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.
> However, all (slotted) Lua versions in the current tree are keyworded.
>
> Portage on its own seems to choose Lua 5.1.
> Is there a recommendation which Lua version is a wise choice?
>
> 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?
>
> Regards,
> Gerion
^ permalink raw reply [flat|nested] 3+ messages in thread
* [gentoo-user] Re: Which Lua should I choose?
2021-01-19 13:51 [gentoo-user] Which Lua should I choose? Gerion Entrup
2021-01-19 14:21 ` Miles Malone
@ 2021-01-19 14:33 ` Ionen Wolkens
1 sibling, 0 replies; 3+ messages in thread
From: Ionen Wolkens @ 2021-01-19 14:33 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1420 bytes --]
On Tue, Jan 19, 2021 at 02:51:49PM +0100, Gerion Entrup wrote:
> Hi,
>
> with the recent Lua changes in Gentoo, I now must somehow choose, which Lua version I should prefer.
> 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.
> However, all (slotted) Lua versions in the current tree are keyworded.
>
> Portage on its own seems to choose Lua 5.1.
> Is there a recommendation which Lua version is a wise choice?
>
> 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?
The point of slotted lua is to be able to have many at once. There's
packages that only support 5-1, and others only 5-3 (like darktable),
so pick 1 or many based on what you need/use.
lua5-1 still has the most compatibility so it makes sense as default for
now.
lua5-4 is on the opposite end with too little support.
Not fond of luajit, it feels kind of like a old hack to me while normal
lua been moving forward.
Personally use lua5-3 where possible, and fall back on the next lower
version if needed.
--
ionen
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-01-19 14:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-19 13:51 [gentoo-user] Which Lua should I choose? Gerion Entrup
2021-01-19 14:21 ` Miles Malone
2021-01-19 14:33 ` [gentoo-user] " Ionen Wolkens
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox