From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uP1aDfI1hWDNvQAAgWs5BA (envelope-from ) for ; Sun, 25 Apr 2021 11:27:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id UFDLCPI1hWD0ZwAAbx9fmQ (envelope-from ) for ; Sun, 25 Apr 2021 09:27:14 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A981A113B0 for ; Sun, 25 Apr 2021 11:27:13 +0200 (CEST) Received: from localhost ([::1]:38868 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lab2m-0006V2-SL for larch@yhetil.org; Sun, 25 Apr 2021 05:27:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45810) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lab2R-0006Ui-9m for guix-devel@gnu.org; Sun, 25 Apr 2021 05:26:51 -0400 Received: from mout01.posteo.de ([185.67.36.65]:44687) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lab2O-0001qa-RR for guix-devel@gnu.org; Sun, 25 Apr 2021 05:26:51 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 8217C24002A for ; Sun, 25 Apr 2021 11:26:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1619342803; bh=LMVkTp2kpc6nQehF80rPj8OZ+rghsmiDLIN63PRVSSQ=; h=From:To:Subject:Date:From; b=acsSVsFjFrj95QfatFpeLcH7wQnFlEqjBrTGRrTIlsNirfbSnhIyzZ3RQdM81A3sG um5rdfUgy+kfybE7gEBFogGX5gvY2/7p09rkvEld3XDRpbe1blZvqRuVHPfpGS6JbP PXkCVGTY13aPpJk1sapL8XeUMKvAh3WsrzBXbEsqEmEhzR1X9UTBLsJgdqAvnNVkWr 00CT8X1Mz/A6DY3aYxGUE3T+I5k+qR2H6EHnNKbtRuQGuQhzlkoHKSBNDh8giXPSZf NsdK/uzU+RfL82iog+Rgy1tRoV7KLhz/v3gFl6zYI7uwuF1tR4tPIGSOx6l+DjeM1h 3Nq1zoulXvWJQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FSjMk6Lb6z9rxN; Sun, 25 Apr 2021 11:26:42 +0200 (CEST) From: HiPhish To: Jack Hill , guix-devel@gnu.org Subject: Re: neovim and luajit? Date: Sun, 25 Apr 2021 09:23:50 +0000 Message-ID: <5704271.lOV4Wx5bFT@titan> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=185.67.36.65; envelope-from=hiphish@posteo.de; helo=mout01.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619342834; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=LMVkTp2kpc6nQehF80rPj8OZ+rghsmiDLIN63PRVSSQ=; b=NvPeaX/d3/iKWgjO8DJ5xquHaHWfLrK5VXIwA0EcUBT+k4hYFneCK0XanKIfAggy7lgBiU +/jj5tVdfDKPqczhGU2t5EERmKlovyO7AoNEjOqViz4aP1db8tW8Z6IUsOMaAvNXrCrSye 0dky1uFdTwhUhYYSopiqicFg9BMv2/paXMTPetO0aLM4MDGiSVnGbEnhRVp5FqMAzTcJeh hmXSjd1HWAhsYrbZvxRHgrDW1jnrRkEhxYby/iurFewhwi1carrxPAcc0bLvLRFyWx2dwf wai+QMjXDjVOchStCm4FCAp6DTZGe+gaiH1CgC4jmpMUs3q6yEVWTrkmHyoItg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619342834; a=rsa-sha256; cv=none; b=OjVkiZH0jYpG/2WifIZxF3yrMigBj6s0nSVC9egtD3Evkmy5cAyGxWXvqOga1a8IHObWls zTrHtwwsZqCMO2CuynjIaCA+/pDCYGcVwzHBEval9DdS9KanL4xIxUyyYKyxqNHxjCz6FQ l4JS+Z09XkldTXUplXjuGvTaxuvz/RAoWzUtE6l2dYfzo1MOLqo78w551Z4IX3I12cxoUv CkjvMFVo2Z3sVw3KnHZnxOrQaVhtCly7M0UrzYrKaVhaVORP2GoOWY6ls2c17cSX6N2FDc k0xGv5nHa/w9pIMpNmy+uMCZI0UMpLi7V0703T4lW6TEZDls0oY0Z9aZUtcbTw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=acsSVsFj; dmarc=pass (policy=none) header.from=posteo.de; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -1.64 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=acsSVsFj; dmarc=pass (policy=none) header.from=posteo.de; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: A981A113B0 X-Spam-Score: -1.64 X-Migadu-Scanner: scn0.migadu.com X-TUID: UKEb0ZktpAuF I just want to add my 2 cents to the discussion. Officially Neovim supports= only=20 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 rely= ing=20 on this functionality are strictly speaking non-portable because not all us= ers=20 might have them. I don't know if it is possible with Guix, but the ideal=20 solution would be to use LuaJIT where available and fall back on Lua 5.1=20 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, > > >=20 > > > I'm wondering why we use Lua 5.1 instead of LuaJIT for neovim? It see= ms > > > that upstream prefers LuaJIT given the non-default configure flag we > > > use[0] and their FAQ[1]. > > >=20 > > > I don't have an opinion either way. I'm learning about neovim today, = and > > > am curious how we arrived at our configuration. > > >=20 > > > [0] > > > https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/vim.scm?= id > > > =3D96a655a77bb087397a9436391e472c36ff0a2ec2#n647 [1] > > > https://github.com/neovim/neovim/wiki/FAQ#why-embed-lua-instead-of-x > > >=20 > > > Best, > > > Jack > >=20 > > 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. > >=20 > > 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. > >=20 > > 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. > >=20 > > [2] https://luajit.org/install.html > >=20 > > Best, > > Jack > >=20 > > P.S. Maybe its time to work on the Lua language of Guile =F0=9F=98=80 >=20 > 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.