From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 14 01:40:39 2023 Received: (at submit) by debbugs.gnu.org; 14 Sep 2023 05:40:39 +0000 Received: from localhost ([127.0.0.1]:36566 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgf5j-0001hi-7W for submit@debbugs.gnu.org; Thu, 14 Sep 2023 01:40:39 -0400 Received: from lists.gnu.org ([2001:470:142::17]:33150) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgf5d-0001hR-G1 for submit@debbugs.gnu.org; Thu, 14 Sep 2023 01:40:37 -0400 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 1qgf5S-0006dg-DG for guix-patches@gnu.org; Thu, 14 Sep 2023 01:40:22 -0400 Received: from m42-5.mailgun.net ([69.72.42.5]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qgf5K-0007cm-NS for guix-patches@gnu.org; Thu, 14 Sep 2023 01:40:22 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.wilsonb.com; q=dns/txt; s=krs; t=1694670011; x=1694677211; h=Content-Transfer-Encoding: Content-Type: MIME-Version: Message-ID: Date: Subject: Subject: Cc: To: To: From: From: Sender: Sender; bh=7WbK7TDocjeVIHehWozTfUj8OJzIE8FP7UObiEhHO7Y=; b=JdHmdiiF0gNP6quVEIoRN/OOiCaR5jf4PmmzuhsvzCBDrYtja8JNrEswKO9c/yBlxFcqIw6c884ktBsVa3CKbSWAZ8dJuDogRQ4+65toEbGf3NLb4AsSh/hueBDkWdMgwUvHBL18YyMdaR5zYtuRp6UJB57ZPOuwj1qerWmnzju4NmObRjXe4hDdBkMUanNDIY6zioZjc0KafaOYlc0MeIn/uzkmpuFeoWnZPr9iuV14YQXTsNMzqVWYeSHoZe3L1GDZSDloqn8pd1r6VTUTFzUDzxSa8MvvKW/MLcXK5J034WE/p7ungQ/nW7uG1mvM9ZXl0sKlWXsO1Pb9at87Eg== X-Mailgun-Sending-Ip: 69.72.42.5 X-Mailgun-Sid: WyI5MmEzMyIsImd1aXgtcGF0Y2hlc0BnbnUub3JnIiwiMDg1NDdhIl0= Received: from wilsonb.com (wilsonb.com [104.199.203.42]) by 23c026529696 with SMTP id 65029cbb0f6a57f81a24a987 (version=TLS1.3, cipher=TLS_AES_128_GCM_SHA256); Thu, 14 Sep 2023 05:40:11 GMT Received: from localhost (199.147.145.153.ap.dti.ne.jp [153.145.147.199]) by wilsonb.com (Postfix) with ESMTPSA id 2B137A0586; Thu, 14 Sep 2023 05:40:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wilsonb.com; s=201703; t=1694670009; bh=7WbK7TDocjeVIHehWozTfUj8OJzIE8FP7UObiEhHO7Y=; h=From:To:Cc:Subject:Date:From; b=XTMKZrUhxEzjM8BfAPl2LGP9hrpgzrzEkl70DsLs6hCAST7cq3z9MGJvvz6hnQNPc ZJdXJdUBm8pAfE/axXrwzh3EnCG8YRv5KWKGz6szCLnSwF112tWjdFNe8Te7jXmjLX ErxBEYQAUKMmwF01WB0aZgHfLeN5Z8ECCqJEG7Pui0IitPXFgrLJalfUzkG+i4Rw5X a5vVyDcnavXasaOMKDXu0NXB3UGBZ+dDnWVtwmScBfOv+8VMEwc1WpPC6ckkVE7rQK 6EOrHwWFzTtjJNmkHpd/LLJmXI6YEg+BAS1ULkuewYqeBg5PMlQ0VqiUrn+QU1VOkZ 4TGptmvzbjUUrkWAeLzwdhR719WvnCz/YBBM8Ny/83Ay+0MobGPD50LtT3+cMaQhZd 2/yARJFfYQHJZg9xJd4ICA70CpCrz7nqPY8Ztjuz/RquXYZnmHtMBV69BYEckj+LGe pamB7H86Ui/PhMnu2wN2oXgrTrOqBwuKIMOrusRMpnvosgeLEgwolCLeYWmNmEorx3 0WGUED9HAB63h7JYHHCVODMZw4NojQtp6U/5RPvm87WbC5vCvrd9HbHeqUizWVBMbC qKh7mexJHwOdlPt+B1oLn91Z4uCsrV9E3kX5LJpuWpxUCdsCVvV83Dlt5NFnTET1BK 16k8/wQ7ClpaLdudA58dx0D0= From: "B. Wilson" To: guix-patches@gnu.org Subject: [PATCH] gnu: Add ngn-k. Date: Thu, 14 Sep 2023 14:39:54 +0900 Message-ID: <20230914054006.18356-1-elaexuotee@wilsonb.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=69.72.42.5; envelope-from=bounce+686de0.08547a-guix-patches=gnu.org@mg.wilsonb.com; helo=m42-5.mailgun.net X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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_BL_SPAMCOP_NET=1.347, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 2.2 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: * gnu/packages/k-lang.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. --- gnu/local.mk | 1 + gnu/packages/k-lang.scm | 89 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 90 inse [...] Content analysis details: (2.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 1.2 RCVD_IN_BL_SPAMCOP_NET RBL: Received via a relay in bl.spamcop.net [Blocked - see ] X-Debbugs-Envelope-To: submit Cc: "B. Wilson" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: * gnu/packages/k-lang.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. --- gnu/local.mk | 1 + gnu/packages/k-lang.scm | 89 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 90 inse [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.2 RCVD_IN_BL_SPAMCOP_NET RBL: Received via a relay in bl.spamcop.net [Blocked - see ] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager * gnu/packages/k-lang.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. --- gnu/local.mk | 1 + gnu/packages/k-lang.scm | 89 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 gnu/packages/k-lang.scm diff --git a/gnu/local.mk b/gnu/local.mk index 924d497057..a4c2c8cda9 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -362,6 +362,7 @@ GNU_SYSTEM_MODULES = \ %D%/packages/julia-jll.scm \ %D%/packages/julia-xyz.scm \ %D%/packages/jupyter.scm \ + %D%/packages/k-lang.scm \ %D%/packages/kawa.scm \ %D%/packages/kde.scm \ %D%/packages/kde-frameworks.scm \ diff --git a/gnu/packages/k-lang.scm b/gnu/packages/k-lang.scm new file mode 100644 index 0000000000..0c49168639 --- /dev/null +++ b/gnu/packages/k-lang.scm @@ -0,0 +1,89 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2023 B. Wilson +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages k-lang) + #:use-module (gnu packages readline) + #:use-module (guix build-system gnu) + #:use-module (guix git-download) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix packages) + #:use-module (guix utils)) + +(define-public ngn-k + (let ((commit "cb36213657b6c5b2fe3bb1c88c4de7fe975f84ed") + (revision "1")) + (package + (name "ngn-k") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://codeberg.org/ngn/k.git") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1140avqsqaa1pyh937rcd04snbkcgngmkg3dkmsbj6kw0jnrgf1z")))) + (build-system gnu-build-system) + (inputs (list rlwrap)) + (arguments + `(#:make-flags (list (string-append "CC=" ,(cc-for-target))) + #:test-target "t" + #:phases + (modify-phases %standard-phases + (replace 'configure + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (k (string-append out "/k"))) + (substitute* "repl.k" + (("^#!k") (string-append "#!" k "\n")))))) + (replace 'build + (lambda* (#:key make-flags #:allow-other-keys) + (let ((build-target "k")) + (apply invoke "make" `(,@make-flags ,build-target))))) + (replace 'install + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin")) + (k (string-append bin "/k")) + (rlwrap (string-append + (assoc-ref inputs "rlwrap") + "/bin/rlwrap"))) + + (define* (rlwrap-prog prog #:key rlwrap (sh (which "bash"))) + (let* ((real-prog (string-append (dirname prog) "/." + (basename prog) "-real")) + (prog-tmp (string-append real-prog "-tmp"))) + (link prog real-prog) + (call-with-output-file prog-tmp + (lambda (port) + (format port + "#!~a~%exec -a \"$0\" \"~a\" \"~a\" \"$@\"~%" + sh rlwrap (canonicalize-path real-prog)))) + (chmod prog-tmp #o755) + (rename-file prog-tmp prog))) + + (mkdir-p bin) + (copy-file "repl.k" (string-append bin "/krepl")) + (copy-file "k" k) + (rlwrap-prog k #:rlwrap rlwrap))))))) + (home-page "https://codeberg.org/ngn/k") + (synopsis "Implementation of the K6 vector programming language") + (description "ngn/k is a simple fast vector programming language, an +implementation of the K6 dialect of K.") + (license license:agpl3)))) -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 18 16:50:08 2023 Received: (at 65935) by debbugs.gnu.org; 18 Oct 2023 20:50:08 +0000 Received: from localhost ([127.0.0.1]:34752 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtDUW-00063Y-4N for submit@debbugs.gnu.org; Wed, 18 Oct 2023 16:50:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45936) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtDUR-00062r-P2 for 65935@debbugs.gnu.org; Wed, 18 Oct 2023 16:50:06 -0400 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 1qtDTw-0002k0-07; Wed, 18 Oct 2023 16:49:32 -0400 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=I7RLNUH81Ur2bZE9SOS5KqfZXGLJcyFVPkgKpqGvM7Y=; b=ee+OIsuFj7Ox5vcMWjxj YnLWBhmYA6qBWw453ocNkISJgqyDClJic6/iTsU90915asqySvmlg/wL6zftdkNTcHN/SOC8COR7/ QhNmVXIai57DfZVQ3mX2ARKNTLm9y4asd31C5dDOKRXJpQ/t7fx2+p0jUr/DlkJZ62pi1jYETHPPS vpHzX+4ON1aTB+9ODiBVxgKgJPTUnbZQc4BJZWfV+Bd8jPFaPc1YNG5YNVxPanyRXuJtDqfzldjIk MEwv+gyuNEZ3v4M6IzJ9yWUGClhJFDEaxqKArVDOdvSFcj+tkxduFSnpHPXtRANU/TEucO5/Xwlm3 /T7t4GXZ3Mc/aQ==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: "B. Wilson" Subject: Re: [bug#65935] [PATCH] gnu: Add ngn-k. In-Reply-To: <20230914054006.18356-1-elaexuotee@wilsonb.com> (B. Wilson's message of "Thu, 14 Sep 2023 14:39:54 +0900") References: <20230914054006.18356-1-elaexuotee@wilsonb.com> Date: Wed, 18 Oct 2023 22:49:28 +0200 Message-ID: <87zg0f4pwn.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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 65935 Cc: 65935@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, "B. Wilson" skribis: > * gnu/packages/k-lang.scm: New file. > * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. [...] > + (url "https://codeberg.org/ngn/k.git") 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 no= t =E2=80=9Cthe preferred form of the work for making modifications to it=E2=80=9D (as the = GPL puts it) in any way. I hope that makes sense. Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 18 16:50:14 2023 Received: (at control) by debbugs.gnu.org; 18 Oct 2023 20:50:14 +0000 Received: from localhost ([127.0.0.1]:34756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtDUc-00063r-Ez for submit@debbugs.gnu.org; Wed, 18 Oct 2023 16:50:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43644) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtDUa-00063T-0k for control@debbugs.gnu.org; Wed, 18 Oct 2023 16:50:12 -0400 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 1qtDU4-0002ks-FB for control@debbugs.gnu.org; Wed, 18 Oct 2023 16:49:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:Subject:From:To:Date:in-reply-to: references; bh=UVXWNG26RJdVJs3N04eZWXDVk+ScGdriy4qU1c6ozg8=; b=CqUVIaUyd0NquA RJaRH1POH9bfVTYzJ3aceFJIOg1OWU7RjIoICuIc1CHFr7nlTkC6iV/s5zFozaZHaE8mvEwCCWKq7 T+lMU/7rMOYelHKHOKmyBZTfAKiYhsmgAcERinO5vPrSJJbiHB42+dhv/+7Kc2zd206KvQTEWhhGS 8+5fN7hXdo26M37cJ/w1wXCPxvy9gFxOwGhuTtFtqMjv99/uLgy3BffZDnV2zxhhlme2mYVR2+CzD wMifFuPInR4nwPjfVZXCkGGBbp9VqVoZUhSG7jOpGfX927pvFCAWpBzrWdRH//V7IvkQh5vpXOPRM ovs4Wquy4Qd1ilvFv2hw==; Date: Wed, 18 Oct 2023 22:49:38 +0200 Message-Id: <87y1fz4pwd.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #65935 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 65935 wontfix close 65935 quit From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 20 11:07:55 2023 Received: (at 65935) by debbugs.gnu.org; 20 Oct 2023 15:07:55 +0000 Received: from localhost ([127.0.0.1]:41160 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtr6N-0008Cb-N5 for submit@debbugs.gnu.org; Fri, 20 Oct 2023 11:07:55 -0400 Received: from m42-5.mailgun.net ([69.72.42.5]:29719) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtr6I-0008CK-M2 for 65935@debbugs.gnu.org; Fri, 20 Oct 2023 11:07:50 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.wilsonb.com; q=dns/txt; s=krs; t=1697814433; x=1697821633; h=Content-Transfer-Encoding: Content-Type: MIME-Version: Message-Id: In-Reply-To: References: From: From: Subject: Subject: Cc: To: To: Date: Sender: Sender; bh=GIvsspwB/71wEdYlwsdZ74yN8o5Y7zVSkvm34lvYqsk=; b=pETVz6oQF9Z5ppSEP22DqXxMzKXGPwwZVe5p0zZ2/iiEztEZk8cxP+3e0cYSaJC5vvECCsxH/xfqrAH0eCCrnJTjHHGDOx/Ctv4AxNxoWHcs4sKBgQh7g21P0G6tPGkD6F7FVS4wL2mXEXxfbYot8jmm1wpJZiwHQ1K+upzJXrM3I8T/ZqPtTkbldQBxyKd7I7azU+iRrRXCWc1giQk08iZG3kibL6tJ8iEdvHHoRn61dZpvo7y3gijujFALpOXcVnYeR5Jmix1eW3AmqnLcI/g5oy/iyPXYdNCtlUErPcgmxBGUjS3zO1O0ouKqVMWaOjnE/PmTbh1CBLRdsUSS7Q== X-Mailgun-Sending-Ip: 69.72.42.5 X-Mailgun-Sid: WyI0Y2RiOCIsIjY1OTM1QGRlYmJ1Z3MuZ251Lm9yZyIsIjA4NTQ3YSJd Received: from wilsonb.com (wilsonb.com [104.199.203.42]) by cfd78fef9933 with SMTP id 653297a0305f79e6558ab80b (version=TLS1.3, cipher=TLS_AES_128_GCM_SHA256); Fri, 20 Oct 2023 15:07:12 GMT Received: from localhost (unknown [213.158.55.130]) by wilsonb.com (Postfix) with ESMTPSA id D2547A1E1B; Fri, 20 Oct 2023 15:07:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wilsonb.com; s=201703; t=1697814429; bh=GIvsspwB/71wEdYlwsdZ74yN8o5Y7zVSkvm34lvYqsk=; h=Date:To:Cc:Subject:From:References:In-Reply-To:From; b=dUxGN4zvKLvEoH9l6WtOboq6BFbHmHmflTnmZGrav4YmX5ubN7rKdvg9/AlU0EJku oqZlwwG9x5+UUwj4N1gG/giQRbMQGF0qpDZEAdI0yOBJKYRml+KqHHXKzEQ18rEcW2 Koyc2g+kl8aa/sg6N1HK/jtQsTol7ztV0oxDT/fAXaO+fXr4oVcrBYWMHGDmhcieUm +9p2/GGXg2aFVwb8g5OEcuytD/R/uDcmsgihzSzIqVZ2BT3O4/EoQJgw/s/BozNiIT MH0HArI1RLZ9j8qq8yw1n2ltxMSg0WTqoIAjW6ZPW+/LYpZfAtNYcDvwFBXW2n4ZEF wl32maHu9fovbBQoMeTEoiV4iN+6wq6EX/J289pSNZRTwBOFRAVHHgpnUCi9xRFWMA tCoxu6MklZhfCMpegAXfQ8oSDWdZsrkj2X39fdhTO/2FjURCuDWpycpdcssiuTWF5a bQ4bbgjzHGANTOXc+EsZJQ3ZnDq73yQe6HMtf3qMKIy+kfyFwWHAsqwi/X6wPHxhGY EUjnUlMoqR081EdqAndNHomOryY/JQUTRtvbJDeNwD8dC5Et9D237JCBSooPs6xHKB sJCOfuqiUttxlAqaY+qEPqfZGT+zy94/zQGjzUOuK4xZHjbP48oPkHMaP6iHf0oCY4 EJNLfBj7zzLPmoecJjSw5ofY= Date: Fri, 20 Oct 2023 17:06:15 +0200 To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: Re: [bug#65935] [PATCH] gnu: Add ngn-k. From: "B. Wilson" References: <20230914054006.18356-1-elaexuotee@wilsonb.com> <87zg0f4pwn.fsf@gnu.org> In-Reply-To: <87zg0f4pwn.fsf@gnu.org> Message-Id: <2IJP3PDMP581H.2003KELWBJOER@wilsonb.com> User-Agent: mblaze/1.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 65935 Cc: 65935@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > 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 th= e 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 t= he famously terse Arthur Whitney style. The APL/J/K family of array-oriented languages all famously have implementations strongly influenced by Whitney,= and ngn-k is just following in that tradition. Those with the relevant domain knowledge tend to agree that the code is pretty readable. If you want other examples, see - Whitney's B interpreter: https://github.com/tlack/b-decoded - Jsoftware's J interpreter: https://github.com/jsoftware/jsource The latter is both GPL-3 and actively maintained. From unknown Fri Aug 15 03:57:26 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 18 Nov 2023 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 20 06:19:21 2023 Received: (at control) by debbugs.gnu.org; 20 Nov 2023 11:19:21 +0000 Received: from localhost ([127.0.0.1]:52599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r52JF-0000iJ-7t for submit@debbugs.gnu.org; Mon, 20 Nov 2023 06:19:21 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:56517) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r52JB-0000i2-Sk for control@debbugs.gnu.org; Mon, 20 Nov 2023 06:19:19 -0500 Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=ludo@gnu.org; dmarc=fail (p=none dis=none) d=gnu.org X-IronPort-AV: E=Sophos;i="6.04,213,1695679200"; d="scan'208";a="137334214" Received: from unknown (HELO ribbon) ([193.50.110.117]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Nov 2023 12:19:09 +0100 Date: Mon, 20 Nov 2023 12:19:09 +0100 Message-Id: <87jzqcr7te.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #65935 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) unarchive 65935 quit From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 20 06:29:18 2023 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: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: "B. Wilson" Subject: Re: [bug#65935] [PATCH] gnu: Add ngn-k. 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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 65935 Cc: 65935@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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. From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 20 07:01:36 2023 Received: (at 65935) by debbugs.gnu.org; 20 Nov 2023 12:01:36 +0000 Received: from localhost ([127.0.0.1]:52655 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r52y7-0004kh-Vk for submit@debbugs.gnu.org; Mon, 20 Nov 2023 07:01:36 -0500 Received: from m42-5.mailgun.net ([69.72.42.5]:26022) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r52y2-0004kP-BF for 65935@debbugs.gnu.org; Mon, 20 Nov 2023 07:01:34 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.wilsonb.com; q=dns/txt; s=krs; t=1700481682; x=1700488882; h=Content-Transfer-Encoding: Content-Type: MIME-Version: Message-Id: In-Reply-To: References: From: From: Subject: Subject: Cc: To: To: Date: Sender: Sender; bh=3zjE90pDUo90WKWDZG4or3bBfMuZsoQPvJV0D0KjpJ8=; b=IpQGYEv2i1bQEBv3B0ARDDHUt8S1/BqK2WjuZg+vIoyYpiH2S5RRN3IykyEZC2LerbT7/PQwZVBDC5ghIiADj1hHs0koIG0UqpUYf+/Z24G7X/Iq+UoV6Ko2anQ/h3a2KqGlmfHFuh0Ia632zhY8NPIouUHcIK9MxmGMwAOGg4eBkymIIfp8wB5K2QKZhMc8Oc0NdjLa0t/KMP8Gc55qC8v0xueOarDcRj5/az3EYvEP9Xx0Z4T/9mgwtiGaMlA0kb4IHQekWGqEDeuAu9YsA4Tq0ONmiHUwPtJFDaPNDhcHrsJW9KBtziYx56/NUFzUa5ndZy6dIby2nO1Em7cGaw== X-Mailgun-Sending-Ip: 69.72.42.5 X-Mailgun-Sid: WyI0Y2RiOCIsIjY1OTM1QGRlYmJ1Z3MuZ251Lm9yZyIsIjA4NTQ3YSJd Received: from wilsonb.com (wilsonb.com [104.199.203.42]) by b46ef976549d with SMTP id 655b4a929fca35b024f3ef8d (version=TLS1.3, cipher=TLS_AES_128_GCM_SHA256); Mon, 20 Nov 2023 12:01:22 GMT Received: from localhost (KD106155003068.au-net.ne.jp [106.155.3.68]) by wilsonb.com (Postfix) with ESMTPSA id A3DC6A0735; Mon, 20 Nov 2023 12:01:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wilsonb.com; s=201703; t=1700481680; bh=3zjE90pDUo90WKWDZG4or3bBfMuZsoQPvJV0D0KjpJ8=; h=Date:To:Cc:Subject:From:References:In-Reply-To:From; b=Ow5spo4iMuTG7WiHG29r4iCB6i6VWtA1NQNuVcMMBLqJXeBPwYkbMvTjBXZphsIuU HM/69D/nFzDXj1jFms5K12Wl0e9Nw9ZxgEX5qApbRNbBuZMHX+8+SUk4FN0LOqkdd+ etJBIf7HuR4HOKappIiEP8PkTXo6886nk8r+B6K92i8n7EzkLYHZAsRsfxtFMiwuFP gDAzXvTidRSiSuvHxyILlgAaxJkXb4hIjxlvABkKUaYeosBEwc6P6XxT08hHSVsXZB pDa1GuoDxhbL/ovB59/mcMBoWQMGB+/LpmodKVQpfVwnNwCFqn2+YkKsMGKxxdiqLC ew5ZLut6D1nG90+uBjMrz2B6EowQ9Bd7Hzaf7RmhtvsQ2DaJC4u2dCAGa8QIEc1eLk QBupBRZUirPkduTrZv03sr9QEgRYh6FeeWb7EXw7m2NXjlQp14rnYE1kL6PbkR8dFj rYoIz8SQmDR7MVKhPZDRn6PJ0xL7cFw0J5mYJAJi6I5eqX26OrnU/It7nyet5gctdc 5oBpr5t5NaQBDTxxzfth0nPCbOlxCthG6bDXrxb6gd3dRN3XdYY6AY9XwYC1SIf1HM xXp5TBJsUnwl+xqf5V/0Sq/ckGpu3HEEO9Nm97Oo86cMRMH3Pxv4lZRYcJaKPzX84B YWAQaWemAgTl+VHjo0vpyjDg= Date: Mon, 20 Nov 2023 20:52:04 +0900 To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: Re: [bug#65935] [PATCH] gnu: Add ngn-k. From: "B. Wilson" References: <20230914054006.18356-1-elaexuotee@wilsonb.com> <87zg0f4pwn.fsf@gnu.org> <2IJP3PDMP581H.2003KELWBJOER@wilsonb.com> <877cmcr7d3.fsf@gnu.org> In-Reply-To: <877cmcr7d3.fsf@gnu.org> Message-Id: <2JTFTAZZGPVJ8.2RLE458OBECS0@wilsonb.com> User-Agent: mblaze/1.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 65935 Cc: 65935@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Ludovic Court=C3=A8s wrote: > =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= studying it. > (Heck, even the Makefile has optional whitespace removed, as if trying > hard to make it unreadable!) It's definitely a gawker at first sight. For comparison, take a look at thi= s in progress YAML parser of mine: https://github.com/xelxebar/dayaml/blob/22d20b335bfc99e8e140fee8ca5e7f5f132= 0f72d/Y.apln I swear that I sweat blood on this making it as brutally direct and clear a= s possible! > I don=E2=80=99t think we have a precedent here; I wouldn=E2=80=99t want t= o 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. =46rom indirectly knowing the dev, my understanding is that the code is hand-written. The motivation is basically to decrease the cognitive dissona= nce between writing K and writing C. Ideally, you'd want to just write a K interpreter using K, but that's a whole different can of worms. The de facto K interpreter, Shakti, is proprietary and expensive, but from talking to some people on the inside, I gather that it's also written in th= is extremely terse style. > I=E2=80=99d love to hear what others think! >=20 > Thanks, > Ludo=E2=80=99. Anyway, thanks for reviving this. From unknown Fri Aug 15 03:57:26 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 18 Dec 2023 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator