all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: HiPhish <hiphish@posteo.de>
To: Jack Hill <jackhill@jackhill.us>, guix-devel@gnu.org
Subject: Re: neovim and luajit?
Date: Sun, 25 Apr 2021 09:23:50 +0000	[thread overview]
Message-ID: <5704271.lOV4Wx5bFT@titan> (raw)
In-Reply-To: <YIUXLWkFFSTFd8co@3900XT>

I just want to add my 2 cents to the discussion. Officially Neovim supports only 
Lua 5.1 as its extension language according to the manual (`:h lua-intro`):

> The Lua 5.1 language is builtin and always available.

Using LuaJIT allows the use of some extensions to Lua 5.1, but plugins relying 
on this functionality are strictly speaking non-portable because not all users 
might have them. I don't know if it is possible with Guix, but the ideal 
solution would be to use LuaJIT where available and fall back on Lua 5.1 
otherwise.

On Sunday, 25 April 2021 09:15:57 CEST Efraim Flashner wrote:
> On Thu, Apr 22, 2021 at 01:33:58AM -0400, Jack Hill wrote:
> > On Fri, 31 Jul 2020, Jack Hill wrote:
> > > Hi Guix,
> > > 
> > > I'm wondering why we use Lua 5.1 instead of LuaJIT for neovim? It seems
> > > that upstream prefers LuaJIT given the non-default configure flag we
> > > use[0] and their FAQ[1].
> > > 
> > > I don't have an opinion either way. I'm learning about neovim today, and
> > > am curious how we arrived at our configuration.
> > > 
> > > [0]
> > > https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/vim.scm?id
> > > =96a655a77bb087397a9436391e472c36ff0a2ec2#n647 [1]
> > > https://github.com/neovim/neovim/wiki/FAQ#why-embed-lua-instead-of-x
> > > 
> > > Best,
> > > Jack
> > 
> > I've returned to the above question. With the attached patch, neovim
> > builds
> > on x86_64 and performs basic editing functions. I did not test it with any
> > extra packages or plugins.
> > 
> > In addition to what I said before, I'm also interested in LuaJIT because
> > it
> > supports the 5.1 language and still seems to be developed upstream. Lua is
> > no longer developing the 5.1 series and the newer series have an
> > incompatible language.
> > 
> > A downside to using LuaJIT is that it doesn't support all the
> > architectures
> > that Guix supports [2]. In particular, it looks like aarch64 and ppc64el
> > are missing.
> > 
> > [2] https://luajit.org/install.html
> > 
> > Best,
> > Jack
> > 
> > P.S. Maybe its time to work on the Lua language of Guile 😀
> 
> Our copy of luajit supports aarch64 so I don't think that's a problem.
> (Last I checked) Debian has a patch to replace powerpc support with
> 64-bit ppc support. I'd go ahead with the change if that's the direction
> that neovim is going and let the powerpc64le people decide between using
> lua5.1 or just removing lua support on a per-architecture basis for
> ppc64le.






  reply	other threads:[~2021-04-25  9:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-31 20:26 neovim and luajit? Jack Hill
2021-04-22  5:33 ` Jack Hill
2021-04-25  7:15   ` Efraim Flashner
2021-04-25  9:23     ` HiPhish [this message]
2021-04-29 22:28       ` Jack Hill

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5704271.lOV4Wx5bFT@titan \
    --to=hiphish@posteo.de \
    --cc=guix-devel@gnu.org \
    --cc=jackhill@jackhill.us \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.