From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id mOvvMV9DW2VIvQAA9RJhRA:P1 (envelope-from ) for ; Mon, 20 Nov 2023 12:30:39 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id mOvvMV9DW2VIvQAA9RJhRA (envelope-from ) for ; Mon, 20 Nov 2023 12:30:39 +0100 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 71204532B4 for ; Mon, 20 Nov 2023 12:30:39 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=JaNSLtvC; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1700479839; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=yK1V1kOm2Satg+hgGFiSWIixtg+Pl7LZTgkGkmokfRM=; b=uqX0XDuzxihIP62d44XGGXkUbNP5roF48QJ4d7SKqETbe8UKXEx1uA4uAYkqPhqR/VDeIK o5KMzM24nbBLmtZCL3/9CZkwx+XQkJSk7DnjWuxE4XZZjisyicrezO0vkXBPVXe0UvMs8d 8RCE+rltWHxTdvVQaIerdaSPZyCgjZH0M8M+OjH9M1e37pPpe3jCQZcoRRY8dAc8XKsCeX Jrvvg8sunqYvP7dnscieM+4Pi9Xzv+fGhBL+k9otQv0nkb11qv/2wQ3NIJg2n7wN2tjnLP tPmDq8gm52TInQsN0+Dd6a8hFbP0vOe8hl/hDqLgKffKTIHu40Jqm8BMVUp11w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=JaNSLtvC; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1700479839; a=rsa-sha256; cv=none; b=G9qcPvpDDRetCVFzn8f6+4xmB2W95hjUxAhXn4uNNn9nge6fDes9hHWkZG9D6Tyeoe66wd ywwND8e00nW17/WXNVtn/PIY3YFMnxbkUpw3knVWpo9eETVAZA21BSl1UAMlZJyH1e7rD5 NIETFsgplLHMQqf6geHP/vVS2cQscZSqAfdCThRi/GVEJqQq8hpqSPt+JV0x2XI22LX+XS 8LRoKLcIMz+/9p3iwV6uRKW2btGfv+EE+zVjHebZ98lCAfs39F1QrvLQPXUuQ6z/5J7tgC 0T+HTOliZeF37+qTff+yEZk35tGvuOuWt7Aj252N7vFZZvPzGXdl5wYkT71Rug== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r52Tf-0006EA-Ro; Mon, 20 Nov 2023 06:30:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r52Td-0006Di-Go for guix-patches@gnu.org; Mon, 20 Nov 2023 06:30:06 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r52TY-00013C-Uw for guix-patches@gnu.org; Mon, 20 Nov 2023 06:30:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r52Ta-000181-Lm for guix-patches@gnu.org; Mon, 20 Nov 2023 06:30:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#65935] [PATCH] gnu: Add ngn-k. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 20 Nov 2023 11:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65935 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch wontfix To: "B. Wilson" Cc: 65935@debbugs.gnu.org Received: via spool by 65935-submit@debbugs.gnu.org id=B65935.17004797584259 (code B ref 65935); Mon, 20 Nov 2023 11:30:02 +0000 Received: (at 65935) by debbugs.gnu.org; 20 Nov 2023 11:29:18 +0000 Received: from localhost ([127.0.0.1]:52606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r52Sr-00016d-HK for submit@debbugs.gnu.org; Mon, 20 Nov 2023 06:29:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50944) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r52Sm-00016N-PP for 65935@debbugs.gnu.org; Mon, 20 Nov 2023 06:29:15 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r52Sd-0000yV-5r; Mon, 20 Nov 2023 06:29:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=yK1V1kOm2Satg+hgGFiSWIixtg+Pl7LZTgkGkmokfRM=; b=JaNSLtvC5qjUQiNmVVQu 7k4KVie8K8D1d3dRNaYTZNZixA9a/5mIezzCH4bw50z12g8CMrOfLsao1Bl7Drp1ElHUXJT7uhsg5 UtwxNWhLRS5oh5pRXKLfu3RFg+OGMA3mo2lzBTv3r6ae9D1RtTfla5bD5Qkt55qHD4VtNUxp+LCwI RklKD05Ocs/pT8XAFMYZ+HDLXax8eqdy/F/mx+9ICwHnXuEy0PEhqy2sBGwTPiT8v4nTHl9OVDtKQ gFd52AfoF2B7qosEvFy8rhFnYNfKyMcZUkU+hmt1RZ9Kcbm6mgBYML7hBcyhucdEsVWHTrp+7PrAw OX5R753k/QxVDw==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <2IJP3PDMP581H.2003KELWBJOER@wilsonb.com> (B. Wilson's message of "Fri, 20 Oct 2023 17:06:15 +0200") References: <20230914054006.18356-1-elaexuotee@wilsonb.com> <87zg0f4pwn.fsf@gnu.org> <2IJP3PDMP581H.2003KELWBJOER@wilsonb.com> Date: Mon, 20 Nov 2023 12:28:56 +0100 Message-ID: <877cmcr7d3.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.81 X-Spam-Score: -6.81 X-Migadu-Queue-Id: 71204532B4 X-Migadu-Scanner: mx13.migadu.com X-TUID: g4OycBr8uxrh Hi! "B. Wilson" skribis: >> This package cannot be included in Guix because what we have above is >> not source code: it=E2=80=99s deliberately obfuscated code, it=E2=80=99s= not =E2=80=9Cthe >> preferred form of the work for making modifications to it=E2=80=9D (as t= he GPL >> puts it) in any way. >>=20 >> I hope that makes sense. > > I agree that it's super weird, but it's not obfuscated code. Rather, it's= the > famously terse Arthur Whitney style. The APL/J/K family of array-oriented > languages all famously have implementations strongly influenced by Whitne= y, and > ngn-k is just following in that tradition. Those with the relevant domain > knowledge tend to agree that the code is pretty readable. Not being familiar with APL & co., I lack domain knowledge. However I do know C, and things like this (from ): --8<---------------cut here---------------start------------->8--- #include"a.h" // ngn/k, (c) 2019-2023 ngn, GNU AGPLv3 - https://codeberg.or= g/ngn/k/raw/branch/master/LICENSE I rnk(Ax/*0*/){X(RA(Iv=3Drnk(xx);P(v<0,v)i(xn,P(v-rnk(xa),-1))v+1)RmM(rnk(x= y))RT_A(1)R_(0))}//-1 for mixed rank I urnk(Ax/*0*/){X(RA(urnk(xx)+1)RmM(urnk(xy))RT_A(1)R_(0))}//assuming unira= nk S L fG(OV*p,Nn,Lv)_(O G*a=3Dp,q=3Dv;P(v-q,NL)Ii=3D0,g=3DHD/SZ(*a),f=3D0;W(i= > 7&1),x)Ay=3DaL(xn);Mx(i(xn,yl= =3Dxg<0?NL:xg))y) //S A1(fHN,Q(xtH)Hv=3D0;i(xn,v|=3Dxg)P(!(v>>15&1),x)Ay=3DaL(xn);Mx(i(xn,yl= =3Dxh<0?NL:xh))y) //S A1(fIN,Q(xtI)Iv=3D0;i(xn,v|=3Dxg)P(!(v>>31&1),x)Ay=3DaL(xn);Mx(i(xn,yl= =3Dxi<0?NL:xi))y) S L t[256]; S X1(fndGx,RmMA(e1f(fndGx,x))Rzc(Lv=3Dgl(x);az(v=3D=3D(C)v?t[(UC)v]:NL))RE(= fndGx(gZ(x)))R_(fN(x)) RZC_E(Nm=3Dxn;Ay=3DaL(m);Mx(S4(xw,i(m,yl=3Dt[(UC)xc]),i(m,Hv=3Dxh;yl=3Dv= =3D=3D(C)v?t[(UC)v]:NL),i(m,Iv=3Dxi;yl=3Dv=3D=3D(C)v?t[(UC)v]:NL),i(m,Lv=3D= xl;yl=3Dv=3D=3D(C)v?t[(UC)v]:NL)))sqzZ(y))) [...] --8<---------------cut here---------------end--------------->8--- =E2=80=A6 I find it hard to believe they=E2=80=99re =E2=80=9Creadable=E2=80= =9D to anyone in the sense of being the =E2=80=9Cpreferred form=E2=80=9D for modifications or even just s= tudying it. (Heck, even the Makefile has optional whitespace removed, as if trying hard to make it unreadable!) I don=E2=80=99t think we have a precedent here; I wouldn=E2=80=99t want to = make a decision based on a personal judgment, and I understand I know nothing about the APL language family, but someone will have to clarify how those 1.2K lines of C were written/generated. I=E2=80=99d love to hear what others think! Thanks, Ludo=E2=80=99.