From patchwork Fri Aug 5 02:20:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Christopher Rodriguez X-Patchwork-Id: 41285 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id D789A27BBEA; Fri, 5 Aug 2022 03:21:24 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 0DF3A27BBE9 for ; Fri, 5 Aug 2022 03:21:24 +0100 (BST) Received: from localhost ([::1]:41638 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJmxn-00015h-6m for patchwork@mira.cbaines.net; Thu, 04 Aug 2022 22:21:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46134) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJmxT-00015I-6N for guix-patches@gnu.org; Thu, 04 Aug 2022 22:21:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37538) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJmxS-0007lE-W4 for guix-patches@gnu.org; Thu, 04 Aug 2022 22:21:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oJmxS-0006MI-Ku for guix-patches@gnu.org; Thu, 04 Aug 2022 22:21:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56989] [PATCH v1 1/5] gnu: bqn: Add bqn.scm and dbqn package. Resent-From: Christopher Rodriguez Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 05 Aug 2022 02:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56989 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56989@debbugs.gnu.org Cc: Christopher Rodriguez X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165966603624332 (code B ref -1); Fri, 05 Aug 2022 02:21:02 +0000 Received: (at submit) by debbugs.gnu.org; 5 Aug 2022 02:20:36 +0000 Received: from localhost ([127.0.0.1]:55508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJmx2-0006KO-9R for submit@debbugs.gnu.org; Thu, 04 Aug 2022 22:20:36 -0400 Received: from lists.gnu.org ([209.51.188.17]:57140) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJmwz-0006KE-C2 for submit@debbugs.gnu.org; Thu, 04 Aug 2022 22:20:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46024) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJmwz-00011Q-4C for guix-patches@gnu.org; Thu, 04 Aug 2022 22:20:33 -0400 Received: from mail-qk1-x72c.google.com ([2607:f8b0:4864:20::72c]:39858) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJmwx-0007hQ-9Q for guix-patches@gnu.org; Thu, 04 Aug 2022 22:20:32 -0400 Received: by mail-qk1-x72c.google.com with SMTP id m7so996995qkk.6 for ; Thu, 04 Aug 2022 19:20:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=AkfLc2XC8kVdmdxF8aD/1LQbVfONG3JeJFV9zeTzfXU=; b=dFwynUIv6xlhDixqioBw3Wn1mWPqtqvXvbJ8/4hFwOWNMcEy/PAQNygbQeZEaTArkM 2r94mkMOcup/PEXnnJbVANt62+RRcwtYV0KZonHXsC68aigzmiHyOxK+X0UKE1nip1Jl 71Eli31NE5X+iidgmrp2n/LDrepIAYUNtbFYnfjt6GO/xYVXwOJePklyJ6vqi+Vml2p+ y3JVJHDH/di+L5gY+YY5PzME+5wI61Ri58QXyP+VSV/6LZekPOQhtZmBNKzEqFBIiWh9 JVeZoL2fRSVbQC2FW+bYxZzA0CoH++xIPPqx/s+Rq7WXFFUVi3uYCGDUb6eQuClBKEIl Xs9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=AkfLc2XC8kVdmdxF8aD/1LQbVfONG3JeJFV9zeTzfXU=; b=JNR77PBql/rASD8QGoCecDMeUEs6CcxaWBghdlRUem6xgMWWr4IYJoeX1YEvKjO9BV VBg95XRzRhZIit5mt/CGHJrz9BqG4l1uo3iomWRNsz8i3cXOwHiO59nJbKYlRXnr1Ai1 RnQvHhah6cMjbkDVew4VG1OyIKdOXz4O5uHwOWUEPycGNj+vU0KV0UOQSSJ0vq+VCegg Tg3WjwFi17d+W4HYw4TdFB+SGoNY3wHQ2GLWew8R5ANn0izKDVAMqIlPbKxHKOvez4DP PcygUEjkzZONEECWCHP07rheQ3JUrpcf2BrGUwhMiV8fgCCr5cBSyJ0vAeRHPPmdh5G/ Wg7g== X-Gm-Message-State: ACgBeo0du/diw3gvf5EhzU+HPP36/03ZJXuvTuACOp4nTVe+IMD3wLjt ehsKQay6e7PSSfJEcqB3G3i3LtP7zNCp4g== X-Google-Smtp-Source: AA6agR4yUSnPf8aSJnCmuRXg2xpavVerV6Rthp7WmKlvj60E/RasxkA+nso9Iz+GKKPSrP9jtX2eHA== X-Received: by 2002:a05:620a:24d4:b0:6b6:2fb2:428d with SMTP id m20-20020a05620a24d400b006b62fb2428dmr3596275qkn.206.1659666029385; Thu, 04 Aug 2022 19:20:29 -0700 (PDT) Received: from gmail.com ([2601:547:a00:7720::7bb0]) by smtp.gmail.com with ESMTPSA id bk4-20020a05620a1a0400b006b89a19a32dsm1897877qkb.69.2022.08.04.19.20.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Aug 2022 19:20:29 -0700 (PDT) From: Christopher Rodriguez Date: Thu, 4 Aug 2022 22:20:19 -0400 Message-Id: <20220805022023.5044-1-yewscion@gmail.com> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::72c; envelope-from=yewscion@gmail.com; helo=mail-qk1-x72c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hello all, This is a set of patches to add CBQN (and the packages required to build it from source) to the official Guix repository. CBQN is the recommended implementation of the BQN language, which is a new array programming language in the same vein as APL, K, Q, J, Dyalog APL, etc. Even better than most of those, it carries a FSDG compatible license (the implementation is even under single-license GPL!) and so I feel as though it should definitely be a part of GNU Guix. While there are still a few outstanding issues I hope to address with those upstream eventually (all documented in the comments), I believe I have followed the guidelines in the manual. Please let me know what I can improve, and how I might expedite this awesome language's inclusion in GNU Guix. --- gnu/packages/bqn.scm | 92 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 gnu/packages/bqn.scm base-commit: 116c0268ffd387c88b6b47135203fb330eb422f0 diff --git a/gnu/packages/bqn.scm b/gnu/packages/bqn.scm new file mode 100644 index 0000000000..53e2f0a057 --- /dev/null +++ b/gnu/packages/bqn.scm @@ -0,0 +1,92 @@ +(define-module (gnu packages bqn) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix gexp) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix git-download) + #:use-module (guix build-system copy) + #:use-module (guix build-system gnu) + #:use-module (guix utils) + #:use-module (guix deprecation) + #:use-module (gnu packages) + #:use-module (gnu packages libffi) + #:use-module (gnu packages base) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages llvm) + #:use-module (gnu packages java)) + +;; Currently this package is non-deterministic due to random generation in +;; some of the primitives. This is marked as a TODO in the source code, but +;; per the maintainer this package almost solely exists for the purpose of +;; building CBQN at this point, and therefore is not a high priority. Git +;; reports this here: +;; +;; src/BQN/types/callable/builtins/fns/EpsBuiltin.java:45:71: +;; … // TODO these (and in ⊐) shouldn't be random numbers +;; +;; Reported Upstream Here: https://github.com/dzaima/BQN/issues/14 +;; +;; This issue therefore means that none of the packages for bqn can be checked +;; for non-determinism at this time, as dbqn is a prerequisite for all of +;; them. +(define-public dbqn + (let* ((tag "0.2.1") + (revision "1") + (commit "0bbe096fc07d278b679a8479318f1722d096a03e") + (hash "1kxzxz2hrd1871281s4rsi569qk314aqfmng9pkqn8gv9nqhmph0") + (version (git-version tag revision commit))) + (package + (name "dbqn") + (version version) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dzaima/BQN") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + hash)))) + (outputs '("out")) + (build-system gnu-build-system) + (arguments + (list #:tests? #f ;While there is a "test" directory, there is no + ;; mechanism to run the tests other than to feed the files into the + ;; binary and check for an error. This is outside the scope of a + ;; packaging workflow, and would need to be fixed upstream + ;; instead. Issue Reported: https://github.com/dzaima/BQN/issues/12 + ;; Maintainer says many of the tests fail, and so they will remain off + ;; until this is sorted out. + #:phases #~(modify-phases %standard-phases + (delete 'configure) + (replace 'build + (lambda* _ + (invoke "./build"))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (dest-bin (string-append out "/bin")) + (dest-jar (string-append out + "/share/java"))) + (mkdir-p dest-bin) + (mkdir-p dest-jar) + (copy-recursively "BQN" + (string-append dest-bin + "/dbqn")) + (chmod (string-append dest-bin "/dbqn") 493) + (install-file "BQN.jar" dest-jar)))) + (add-after 'install 'subjars + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (dest-bin (string-append out "/bin")) + (dest-jar (string-append out + "/share/java"))) + (substitute* (string-append dest-bin "/dbqn") + (("BQN.jar") + (string-append dest-jar "/BQN.jar"))))))))) + (native-inputs (list `(,openjdk17 "jdk") + coreutils)) + (synopsis "BQN implementation based on dzaima/APL") + (description "BQN implementation based on dzaima/APL.") + (home-page "https://github.com/dzaima/BQN") + (license license:expat)))) From patchwork Fri Aug 5 02:20:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Rodriguez X-Patchwork-Id: 41286 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 562E027BBEB; Fri, 5 Aug 2022 03:21:33 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 89D7627BBE9 for ; Fri, 5 Aug 2022 03:21:32 +0100 (BST) Received: from localhost ([::1]:41650 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJmxv-00016n-Lf for patchwork@mira.cbaines.net; Thu, 04 Aug 2022 22:21:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46136) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJmxT-00015R-NW for guix-patches@gnu.org; Thu, 04 Aug 2022 22:21:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37540) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJmxT-0007lL-HS for guix-patches@gnu.org; Thu, 04 Aug 2022 22:21:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oJmxT-0006MX-B8 for guix-patches@gnu.org; Thu, 04 Aug 2022 22:21:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56990] [PATCH v1 2/5] gnu: bqn: Add bqn-bytecode-sources. Resent-From: Christopher Rodriguez Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 05 Aug 2022 02:21:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56990 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56990@debbugs.gnu.org Cc: Christopher Rodriguez X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165966605424366 (code B ref -1); Fri, 05 Aug 2022 02:21:03 +0000 Received: (at submit) by debbugs.gnu.org; 5 Aug 2022 02:20:54 +0000 Received: from localhost ([127.0.0.1]:55511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJmxJ-0006Ku-QC for submit@debbugs.gnu.org; Thu, 04 Aug 2022 22:20:54 -0400 Received: from lists.gnu.org ([209.51.188.17]:57172) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJmxH-0006Kn-Nv for submit@debbugs.gnu.org; Thu, 04 Aug 2022 22:20:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46080) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJmxH-00014b-IR for guix-patches@gnu.org; Thu, 04 Aug 2022 22:20:51 -0400 Received: from mail-qv1-xf29.google.com ([2607:f8b0:4864:20::f29]:35826) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJmxF-0007kN-KD for guix-patches@gnu.org; Thu, 04 Aug 2022 22:20:50 -0400 Received: by mail-qv1-xf29.google.com with SMTP id b7so949580qvq.2 for ; Thu, 04 Aug 2022 19:20:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=fRon4sZtyzO2EZ20u7fPu2UUJWQ24EE+FEgA9OGVRbs=; b=IF/TRglkOJD314jO6UZ5pAOP6YnTTTZGs7+WZikJJOyRBVtlZAigXZUBjAeuxZYW7R msGqCmKN1xQ8jUbR+PliQS4sU82mmTvCZimVv2b15wgQXy9FupfgZnsy/EwRYkpJ9RuD quFt8nsD6jSeRzcFzusDVU2hK6G6FO70+5iCRlo8Au2hWjhTAIQBSbbd0y67p6y9Weoy qWu+1BosCcq4UWcAX6Kwv1lJg/KwF9wl2VeZzo9F2lDuCO1kBN1Lez1Os+YXhe+cONGg Q95TveYKxOCwkkaAg98YA3KdVrFK+eZeIFPK3IjkxH0K76M7a181/e72f5MaMPXU34wV ix7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=fRon4sZtyzO2EZ20u7fPu2UUJWQ24EE+FEgA9OGVRbs=; b=Q4ekNyoL18rP2VP2dmKLdrY3f7mkEDDYJxVnwlyPlEaIb+EWtVA6yFpoyeGl8c45P0 8z5U4FOrD/pXMFH6MgIjN6J+8cBUqAun7NaYM1orglQB4iMtIR3AmZNS7A7JPQQzlEDT J4Ci3GuNHtd6pc7E8Vzm/9BWZCbyVfeBrnD8fl4JIWNJn/8h6vxsK/BG3uKBYp3xetYQ lc7fRcHuJZSXCto3wUA/V9nAMb6r+49b6QYLK9fObwbHNbjZFBoyEqNx+t9/sY1M4buA mtvaeDgUoPTRZsPDvHA/ZX7TkyMKU+7NTG6QHE1kh+rrdlyorHearGTCbBycjYGUX3RB 9j8w== X-Gm-Message-State: ACgBeo3DJRnNnp7OYi0pzvpaJkrHJrz83gpp6NFKGYYXZV5PYJq3CIaR 9hbs6N0rpYPZPdmHmVeEY78V6BvIomnTbA== X-Google-Smtp-Source: AA6agR4mUfOncFJG6OptZQaC3POjLNQx/vIQdxbymXchADhAHTS0j61QIWt8TFRu04uGAVpdaXtHww== X-Received: by 2002:a05:6214:529e:b0:476:93ab:155c with SMTP id kj30-20020a056214529e00b0047693ab155cmr4063439qvb.25.1659666048288; Thu, 04 Aug 2022 19:20:48 -0700 (PDT) Received: from gmail.com ([2601:547:a00:7720::7bb0]) by smtp.gmail.com with ESMTPSA id o14-20020ac8428e000000b0031ece8b6666sm1838675qtl.43.2022.08.04.19.20.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Aug 2022 19:20:48 -0700 (PDT) From: Christopher Rodriguez Date: Thu, 4 Aug 2022 22:20:20 -0400 Message-Id: <20220805022023.5044-2-yewscion@gmail.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220805022023.5044-1-yewscion@gmail.com> References: <20220805022023.5044-1-yewscion@gmail.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::f29; envelope-from=yewscion@gmail.com; helo=mail-qv1-xf29.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches --- gnu/packages/bqn.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/bqn.scm b/gnu/packages/bqn.scm index 53e2f0a057..221ed9eaaa 100644 --- a/gnu/packages/bqn.scm +++ b/gnu/packages/bqn.scm @@ -90,3 +90,38 @@ (define-public dbqn (description "BQN implementation based on dzaima/APL.") (home-page "https://github.com/dzaima/BQN") (license license:expat)))) +(define bqn-bytecode-sources + (let* ((tag "0") + (revision "1") + (commit "e219af48401473a7bac49bdd8b89d69082cf5dd8") + (hash "0r6pa9lscl2395g4xlvmg90vpdsjzhin4f1r0s7brymmpvmns2yc") + (version (git-version tag revision commit))) + (package + (name "bqn-bytecode-sources") + (version version) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mlochbaum/BQN") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + hash)))) + (outputs '("out")) + (build-system copy-build-system) ;This package pulls down needed source + ;; files for CBQN's build process. They + ;; will be compiled during that build; + ;; none of them are prebuilt binaries. + (arguments + (list #:install-plan '(list (list "src/" "share/src" + #:exclude '("README.txt" "doc/")) + (list "test/" "share/test" + #:exclude '("README.txt"))))) + (synopsis "Official BQN sources in BQN") + (description + "The collection of sources needed for building a +BQN-based BQN implementation. These are included here for bootstrapping +purposes.") + (home-page "https://github.com/mlochbaum/BQN.git") + (license license:gpl3)))) From patchwork Fri Aug 5 02:20:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Rodriguez X-Patchwork-Id: 41288 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 629EB27BBEA; Fri, 5 Aug 2022 03:21:45 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id AC79427BBE9 for ; Fri, 5 Aug 2022 03:21:44 +0100 (BST) Received: from localhost ([::1]:42258 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJmy7-0001XN-Rt for patchwork@mira.cbaines.net; Thu, 04 Aug 2022 22:21:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46140) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJmxU-00015l-Sy for guix-patches@gnu.org; Thu, 04 Aug 2022 22:21:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37544) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJmxU-0007lY-Mn for guix-patches@gnu.org; Thu, 04 Aug 2022 22:21:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oJmxU-0006N0-HX for guix-patches@gnu.org; Thu, 04 Aug 2022 22:21:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56992] [PATCH v1 3/5] gnu: bqn: Add cbqn-bootstrap. Resent-From: Christopher Rodriguez Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 05 Aug 2022 02:21:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56992 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56992@debbugs.gnu.org Cc: Christopher Rodriguez X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165966605724395 (code B ref -1); Fri, 05 Aug 2022 02:21:04 +0000 Received: (at submit) by debbugs.gnu.org; 5 Aug 2022 02:20:57 +0000 Received: from localhost ([127.0.0.1]:55518 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJmxM-0006LJ-H0 for submit@debbugs.gnu.org; Thu, 04 Aug 2022 22:20:56 -0400 Received: from lists.gnu.org ([209.51.188.17]:57174) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJmxJ-0006Kw-Rz for submit@debbugs.gnu.org; Thu, 04 Aug 2022 22:20:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46102) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJmxJ-00014k-La for guix-patches@gnu.org; Thu, 04 Aug 2022 22:20:53 -0400 Received: from mail-qt1-x833.google.com ([2607:f8b0:4864:20::833]:36412) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJmxI-0007kc-5l for guix-patches@gnu.org; Thu, 04 Aug 2022 22:20:53 -0400 Received: by mail-qt1-x833.google.com with SMTP id h22so1199077qta.3 for ; Thu, 04 Aug 2022 19:20:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=0ryJG8FKFCMusEEETyBeyPxnRZTPuQN8MFwxZqKJjnE=; b=l8NP9QJ8NzQednffC/gb7KLXtcsGg3zoPgdLrB0KknObwtmfqmYJ9mKs0utGXpg3Un EdAAVq+JGE2610IgP1aK/tQ0ehr0BHh2KHY7cCnzDnt84ZrA0KtXQY5JF+gepfYk5sz7 zmMZ8mGjnsMY5eYumk+0x8jtpvC51Bp4G1bRjHtlFivx3rry/YoUjEuonFCgzdGLdfF1 H8eMigh4xzv6JVluZtXVmdKcGayw9hLvWs7mHzj+vIEIIilKZDnUl8jNR3xpw3kJF9rv Ei/eqYYNVM/OdtlDWKxa2ahsLkmnp50TVcQOVsdFOrupQNgkyl5su/vnLjnmlFnQ85YP dUIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=0ryJG8FKFCMusEEETyBeyPxnRZTPuQN8MFwxZqKJjnE=; b=3GnTfKpECocigcTd6vP9Pc0pnoHv1x0fot16GmnoxZ+dW0Lw7PT/sQb4oNub75R8eH TL243kgbNHTEqWP63oZDscqKWoyW8+O+jnfI3bpO6S8w5oLVsPQvDBKa8knYxedb2ybA wKNDHE1i7CrxNCyYr+CUbHTp4x4YE9FNbKNioE7EppDFaSpOcI/Z/7r5QoXBQPsRyew4 cArHJ57q6blbDQdQdiuBsZ2RdWFR4GneYQiCrAAx00V/ja1VaFArqpZVCY74ZssN4pV9 Bk9vKDaxfhZef2Tr7x9gcm53AXaeivy+fkjD3/0WcOEHut+GfOjhf8eq2fgj6AcLlYiH HQ5A== X-Gm-Message-State: ACgBeo2rWuLkPdenR7I/5ZNZNXLsz1XAimgqmjvW50tEIPoZB4TsKVQt 9qDI0vhMkFNq3JNrJTCyh0Zv2KPTTTH8cA== X-Google-Smtp-Source: AA6agR56D+hAw6XkCrMuh6aWQU8TndroNku16YZEUCfwxffFuYZ28YtODCpd5zmGcg9BbUJqP0pwgg== X-Received: by 2002:a05:622a:1487:b0:31f:4cbf:ba8c with SMTP id t7-20020a05622a148700b0031f4cbfba8cmr4147801qtx.3.1659666050808; Thu, 04 Aug 2022 19:20:50 -0700 (PDT) Received: from gmail.com ([2601:547:a00:7720::7bb0]) by smtp.gmail.com with ESMTPSA id g3-20020a05620a40c300b006b919c6749esm186386qko.91.2022.08.04.19.20.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Aug 2022 19:20:50 -0700 (PDT) From: Christopher Rodriguez Date: Thu, 4 Aug 2022 22:20:21 -0400 Message-Id: <20220805022023.5044-3-yewscion@gmail.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220805022023.5044-1-yewscion@gmail.com> References: <20220805022023.5044-1-yewscion@gmail.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::833; envelope-from=yewscion@gmail.com; helo=mail-qt1-x833.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches --- gnu/packages/bqn.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/bqn.scm b/gnu/packages/bqn.scm index 221ed9eaaa..0e26706476 100644 --- a/gnu/packages/bqn.scm +++ b/gnu/packages/bqn.scm @@ -125,3 +125,49 @@ (define bqn-bytecode-sources purposes.") (home-page "https://github.com/mlochbaum/BQN.git") (license license:gpl3)))) +(define cbqn-bootstrap + (let* ((tag "0") + (revision "1") + (commit "88f65850fa6ac28bc50886c5942652f21d5be924") + (hash "0bqwpvzwp2v20k2l725cwxx4fkvisniw9nls3685wd0fa3agpb47") + (version (git-version tag revision commit))) + (package + (name "cbqn-bootstrap") + (version version) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dzaima/CBQN") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + hash)))) + (build-system gnu-build-system) + (outputs '("out")) + (arguments + (list #:tests? #f ;Skipping Tests for Bootstrap. + #:phases #~(modify-phases %standard-phases + (delete 'configure) + (add-before 'build 'generate-bytecode + (lambda* (#:key inputs #:allow-other-keys) + (system (string-append #$(this-package-native-input + "dbqn") + "/bin/dbqn ./genRuntime " + #$(this-package-input + "bqn-bytecode-sources") "/share/")))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (mkdir-p (string-append #$output "/bin")) + (chmod "BQN" 493) + (copy-recursively "BQN" + (string-append #$output + "/bin/bqn"))))))) + (native-inputs (list dbqn openjdk17 clang-toolchain)) + (inputs (list bqn-bytecode-sources libffi)) + (synopsis "BQN implementation in C") + (description + "The expected implementation for the BQN language, +according to the official documentation of that specification.") + (home-page "https://mlochbaum.github.io/BQN/") + (license license:gpl3)))) From patchwork Fri Aug 5 02:20:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Christopher Rodriguez X-Patchwork-Id: 41287 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id A529D27BBE9; Fri, 5 Aug 2022 03:21:33 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id A7DA027BBEA for ; Fri, 5 Aug 2022 03:21:32 +0100 (BST) Received: from localhost ([::1]:41664 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJmxv-00017c-P1 for patchwork@mira.cbaines.net; Thu, 04 Aug 2022 22:21:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46138) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJmxU-00015Z-Cq for guix-patches@gnu.org; Thu, 04 Aug 2022 22:21:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37542) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJmxU-0007lR-6U for guix-patches@gnu.org; Thu, 04 Aug 2022 22:21:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oJmxT-0006Mm-Tr for guix-patches@gnu.org; Thu, 04 Aug 2022 22:21:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56991] [PATCH v1 4/5] gnu: bqn: Add singeli-bootstrap. Resent-From: Christopher Rodriguez Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 05 Aug 2022 02:21:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56991 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56991@debbugs.gnu.org Cc: Christopher Rodriguez X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165966605624388 (code B ref -1); Fri, 05 Aug 2022 02:21:03 +0000 Received: (at submit) by debbugs.gnu.org; 5 Aug 2022 02:20:56 +0000 Received: from localhost ([127.0.0.1]:55516 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJmxM-0006LH-5Z for submit@debbugs.gnu.org; Thu, 04 Aug 2022 22:20:56 -0400 Received: from lists.gnu.org ([209.51.188.17]:57176) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJmxK-0006L3-Nr for submit@debbugs.gnu.org; Thu, 04 Aug 2022 22:20:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46114) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJmxK-00014p-IZ for guix-patches@gnu.org; Thu, 04 Aug 2022 22:20:54 -0400 Received: from mail-qt1-x829.google.com ([2607:f8b0:4864:20::829]:42675) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJmxJ-0007ki-2M for guix-patches@gnu.org; Thu, 04 Aug 2022 22:20:54 -0400 Received: by mail-qt1-x829.google.com with SMTP id w6so701022qtv.9 for ; Thu, 04 Aug 2022 19:20:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=WMYg049LGF/JTJfdsa0m/wZUGlGnq3cM1w8+lxsLvPg=; b=SLGt5D0EDl0aCFW2Jmkbt/jGM1sm/CmxZLcwzaVSU6K32Y3KwIerlxdQNF+A4vO058 e/dLEAaBlwvLLXtP5OENAPajD6EbAnuj5J/vdqUpXIQGp0dqLet30bOO89z1VEUK2af2 i3168XJhXccb0HcCKdqVsbnzWwgapIcy6Z7zLxwHgdzGzMznwOQ8iswIb8xwZol9ZFZC f9P6fAdt9WRopQm1+DjGrg8UVi6jYBnh95VVadiWv99b26ozdfd00LYrKs9Abal0dqty 03bXH0tXNXzau9EfmBy2tYTFNlVDuI5/9Gv9Mw+RbS+x3DNZeVNHTKffpcuW5OSyiU2d cp3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=WMYg049LGF/JTJfdsa0m/wZUGlGnq3cM1w8+lxsLvPg=; b=poxDWLB95akb7ecOtg2g4hf4s5X+S6/KbiNRUbR9fOYUW9E8MfXOuYiSrKtbXAT7UY rWELfaf7129ImQv/3IXrA4dNmaW3AhmZk+6bS3UcCjF8tOBibKcP0yepde2uWMjVPUku Qjw2LxtiEP/0571iCvhzwwJ98l+CSeb1rS0RhrYSZOlcVtWm28pviKCSFu2Pf+koDp90 yBnTdSK29yMwhd8w16s3l932fiSbxrkcxCUUS13euMsSYPnhS7XN2whn8lJU43bV/AjX esE88/lorAhIAKBp3adNky+5b9mJsQWWYb1HF6/K3ecQeHwvFVz4sXYW1LJvh46BjQ8X iwKw== X-Gm-Message-State: ACgBeo1jwiQxj0T7I8aOAgdOB9HynuuF2TrmnE65PfYyjC00QZQuarC2 /NpFVzRcd/kuM6bUk8YJDHvUFkJWP6PaGA== X-Google-Smtp-Source: AA6agR6Mizoq+wKc+o1wLYfEfQfysVxA1tcjgvhAL4vpq6+9Q46CwpRUYoxIBrB15JMsS9DqxwdQlw== X-Received: by 2002:ac8:5c0f:0:b0:31f:39de:987 with SMTP id i15-20020ac85c0f000000b0031f39de0987mr4226789qti.77.1659666051834; Thu, 04 Aug 2022 19:20:51 -0700 (PDT) Received: from gmail.com ([2601:547:a00:7720::7bb0]) by smtp.gmail.com with ESMTPSA id u17-20020a05622a011100b003051ea4e7f6sm1884051qtw.48.2022.08.04.19.20.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Aug 2022 19:20:51 -0700 (PDT) From: Christopher Rodriguez Date: Thu, 4 Aug 2022 22:20:22 -0400 Message-Id: <20220805022023.5044-4-yewscion@gmail.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220805022023.5044-1-yewscion@gmail.com> References: <20220805022023.5044-1-yewscion@gmail.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::829; envelope-from=yewscion@gmail.com; helo=mail-qt1-x829.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches --- gnu/packages/bqn.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/bqn.scm b/gnu/packages/bqn.scm index 0e26706476..3616067d87 100644 --- a/gnu/packages/bqn.scm +++ b/gnu/packages/bqn.scm @@ -171,3 +171,38 @@ (define cbqn-bootstrap according to the official documentation of that specification.") (home-page "https://mlochbaum.github.io/BQN/") (license license:gpl3)))) +(define singeli-bootstrap + (let* ((tag "0") + (revision "1") + (commit "fd17b144483549dbd2bcf23e3a37a09219171a99") + (hash "1rr4l7ijzcg25n2igi1mzya6qllh5wsrf3m5i429rlgwv1fwvfji") + (version (git-version tag revision commit))) + (package + (name "singeli-bootstrap") + (version version) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mlochbaum/Singeli") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + hash)))) + (outputs '("out")) + (build-system copy-build-system) + (arguments + (list + ;; cbqn needs the layout of singeli to stay the same for its tests. + #:install-plan '(list (list "./" "share/singeli")))) + (native-inputs (list cbqn-bootstrap)) + (synopsis "High-level interface for low-level programming") + (description + "Singeli is a domain-specific language for building SIMD + algorithms with flexible abstractions and control over every instruction + emitted. It's implemented in BQN, with a frontend that emits IR and a + backend that converts it to C. Other backends like LLVM or machine code + are possible—it should be easy to support other CPU architectures but + there are no plans to target GPUs.") + (home-page "https://github.com/mlochbaum/Singeli") + (license license:isc)))) From patchwork Fri Aug 5 02:20:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Rodriguez X-Patchwork-Id: 41289 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id E55A727BBEA; Fri, 5 Aug 2022 03:21:50 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 6A00927BBE9 for ; Fri, 5 Aug 2022 03:21:50 +0100 (BST) Received: from localhost ([::1]:42344 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJmyD-0001aT-0U for patchwork@mira.cbaines.net; Thu, 04 Aug 2022 22:21:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46142) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJmxV-00016j-Fu for guix-patches@gnu.org; Thu, 04 Aug 2022 22:21:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37546) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJmxV-0007lf-9S for guix-patches@gnu.org; Thu, 04 Aug 2022 22:21:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oJmxV-0006NF-44 for guix-patches@gnu.org; Thu, 04 Aug 2022 22:21:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56993] [PATCH v1 5/5] gnu: bqn: Add cbqn. Resent-From: Christopher Rodriguez Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 05 Aug 2022 02:21:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56993 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56993@debbugs.gnu.org Cc: Christopher Rodriguez X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165966605924409 (code B ref -1); Fri, 05 Aug 2022 02:21:04 +0000 Received: (at submit) by debbugs.gnu.org; 5 Aug 2022 02:20:59 +0000 Received: from localhost ([127.0.0.1]:55520 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJmxP-0006Ld-0i for submit@debbugs.gnu.org; Thu, 04 Aug 2022 22:20:59 -0400 Received: from lists.gnu.org ([209.51.188.17]:57178) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJmxM-0006LG-2J for submit@debbugs.gnu.org; Thu, 04 Aug 2022 22:20:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46132) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJmxL-00014w-TU for guix-patches@gnu.org; Thu, 04 Aug 2022 22:20:55 -0400 Received: from mail-qk1-x72e.google.com ([2607:f8b0:4864:20::72e]:36535) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJmxJ-0007kn-Vu for guix-patches@gnu.org; Thu, 04 Aug 2022 22:20:55 -0400 Received: by mail-qk1-x72e.google.com with SMTP id w6so1010524qkf.3 for ; Thu, 04 Aug 2022 19:20:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=WffWN0cGEBFA/pTnXz7UclLUNoa/rItGqPkfzyY+514=; b=BbFIUVCcEauwO8aF/ALTQQihM/oEiVhC+JoQyrh8SFIux/u6iuLDsrTY7kpL+b3S4l TnY4ZdPRs5dC/oAJIUcWLq4CAqCUgR3ymPBsT1Fm1T+uHyxgnwXjSjRy0irUE/N2TIks IGXzIj00j7OH8RkKs6X+SWIRXwhfCODgDPxuErC6gb5NXaVCdebr7zkKsNIyYTRVa0xM 5Je7hbcTj9Ayrk6mdotelkev60Byy16MdAmRpdYKoUqI70G9aDJX/yOQBRpNct7mT/ft rpiX9yVrucJdtY0/m0NXMmQwXV6bYXyuTPcqm8Fz9LW7lFl4k5+18YWXVPeG+lPGDTYS IFYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=WffWN0cGEBFA/pTnXz7UclLUNoa/rItGqPkfzyY+514=; b=kA8kv0I3r87k/a6EJ4Te1jMyNAYPwXK2lD9h//7i71YSRFWSze8/QA1cFYd5LwGgOH lr5zr+7OQwSACnKADhaqksatTMfHdZmvcJ0HIc58rGsHSjVAW12XWV3WSAnTxXTe33Dr 2tQimM5VKybLWou5fbxy7UiJ3YZmJdIsA+Z/sl7s0y8pzhz336lbsYy2aBp6f88GOG+n gdoJ04Ne/gk5woF8wUTnaXFwZMTTEUMO+ksxAVaL+x1IGpO30tUZGIjMlqDaMKX95vRc LNun1FC4EUo2IMkySgdLXg01FdGXFlYdvXI5v9MA7RH0kuWsk5r2ribYV7iEFcxDxphP lBDQ== X-Gm-Message-State: ACgBeo1fSZMHCNdMrM5hzsJC03sRiZGEq5BNibe63vBD9pLXmV1eI9uN 43pk0N8pzvau/EBO3lelnboADHPvA2LNrQ== X-Google-Smtp-Source: AA6agR5kYjJpov5DNyGf8pb4HF0OSRI6Czy2mx8djix5Pj/R16pkjiO8drsnFsSP1G1kiGNjEkKQ1Q== X-Received: by 2002:a05:620a:4627:b0:6b8:fd66:77e6 with SMTP id br39-20020a05620a462700b006b8fd6677e6mr3499238qkb.764.1659666052825; Thu, 04 Aug 2022 19:20:52 -0700 (PDT) Received: from gmail.com ([2601:547:a00:7720::7bb0]) by smtp.gmail.com with ESMTPSA id v18-20020a05620a0f1200b006b60f5f53ccsm2061606qkl.25.2022.08.04.19.20.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Aug 2022 19:20:52 -0700 (PDT) From: Christopher Rodriguez Date: Thu, 4 Aug 2022 22:20:23 -0400 Message-Id: <20220805022023.5044-5-yewscion@gmail.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220805022023.5044-1-yewscion@gmail.com> References: <20220805022023.5044-1-yewscion@gmail.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::72e; envelope-from=yewscion@gmail.com; helo=mail-qk1-x72e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches --- gnu/packages/bqn.scm | 52 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/gnu/packages/bqn.scm b/gnu/packages/bqn.scm index 3616067d87..cebf3acd13 100644 --- a/gnu/packages/bqn.scm +++ b/gnu/packages/bqn.scm @@ -206,3 +206,55 @@ (define singeli-bootstrap there are no plans to target GPUs.") (home-page "https://github.com/mlochbaum/Singeli") (license license:isc)))) +(define-public cbqn + (package + (inherit cbqn-bootstrap) + (name "cbqn") + (outputs '("out" "lib")) + (arguments + (list #:make-flags '(list "shared-o3" "o3n-singeli") + #:phases #~(modify-phases %standard-phases + (delete 'configure) + (add-before 'build 'link-singeli + (lambda* (#:key inputs #:allow-other-keys) + (symlink (string-append #$(this-package-input + "singeli-bootstrap") + "/share/singeli") + "Singeli"))) + (add-before 'build 'generate-bytecode + (lambda* (#:key inputs #:allow-other-keys) + (system (string-append #$(this-package-native-input + "dbqn") + "/bin/dbqn ./genRuntime " + #$(this-package-input + "bqn-bytecode-sources") + "/share/")))) + (replace 'check + (lambda* (#:key inputs tests? #:allow-other-keys) + (when tests? + (map (lambda (x) + (system (string-append "./test/" x ".sh " + #$(this-package-input + "bqn-bytecode-sources") + "/share/"))) + '("mainCfgs" "x86Cfgs" "moreCfgs")) + (map (lambda (x) + (system (string-append "./BQN ./test/" x + ".bqn"))) + '("cmp" "equal" "copy" "bitcpy" "random")) + (system "make -C test/ffi")))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((bin (string-append (assoc-ref outputs + "out") + "/bin")) + (lib (string-append (assoc-ref outputs + "lib") + "/lib"))) + (mkdir-p bin) + (mkdir-p lib) + (chmod "BQN" 493) + (copy-recursively "BQN" + (string-append bin "/bqn")) + (install-file "libcbqn.so" lib))))))) + (inputs (list bqn-bytecode-sources libffi singeli-bootstrap))))