From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 04 22:20:56 2022 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 To: guix-patches@gnu.org Subject: [PATCH v1 4/5] gnu: bqn: Add singeli-bootstrap. 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: Christopher Rodriguez 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 (--) --- 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)))) -- 2.37.1 From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 05 03:16:07 2022 Received: (at control) by debbugs.gnu.org; 5 Aug 2022 07:16:07 +0000 Received: from localhost ([127.0.0.1]:55983 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJrZ0-0001tz-7o for submit@debbugs.gnu.org; Fri, 05 Aug 2022 03:16:06 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:1071) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJrYt-0001t8-LN; Fri, 05 Aug 2022 03:16:03 -0400 Received: from lprikler-laptop.ist.intra (gw.ist.tugraz.at [129.27.202.101]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4LzcMF4HWkz1LXt0; Fri, 5 Aug 2022 09:15:53 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4LzcMF4HWkz1LXt0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1659683754; bh=rnG4PBMsdlXDXd44cQmQDWSyFfJ5M8qELxKCMCO5DdM=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=eFIj+cBNt7iqEuAuEs462PfNSPGo32JfFD+aAzPDw89OyjVEJzQA200QLMmyEuyzg Mdl3T3zQ8S78gbCjXdi8rDLWQIdAYTWf2DmjklBVmGUVL9D4SJjlqoFtKf2xoQxrLS vOYvs/LZnFH9+4oAigREJLhSSmiwm6zMKT4B2WME= Message-ID: <7742c07ce28494af40c74262277417e60fe6f500.camel@ist.tugraz.at> Subject: Re: [PATCH v2] gnu: bqn: Add bqn.scm and dbqn package. From: Liliana Marie Prikler To: Christopher Rodriguez , 56989@debbugs.gnu.org Date: Fri, 05 Aug 2022 09:15:52 +0200 In-Reply-To: <20220805054616.30620-1-yewscion@gmail.com> References: <20220805054616.30620-1-yewscion@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUG-Backscatter-control: waObeELIUl4ypBWmcn/8wQ X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control Cc: control@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 (---) merge 56989 56990 56991 56992 56993 thanks Regarding the patch title, just one level of grouping is enough. That is, use "gnu: Add dbqn." Also, you're missing a ChangeLog, i.e. * gnu/packages/bqn.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Register it here. Note that the second change is lacking from your patch. Am Freitag, dem 05.08.2022 um 01:46 -0400 schrieb Christopher Rodriguez: > Thanks to some help from upstream and on IRC (thanks, dzaima and > lilyp!) I > was able to remove the non-determinism issue. Here's an updated > patch. > > --- >  gnu/packages/bqn.scm | 102 > +++++++++++++++++++++++++++++++++++++++++++ >  1 file changed, 102 insertions(+) >  create mode 100644 gnu/packages/bqn.scm > > diff --git a/gnu/packages/bqn.scm b/gnu/packages/bqn.scm > new file mode 100644 > index 0000000000..261f29ece5 > --- /dev/null > +++ b/gnu/packages/bqn.scm > @@ -0,0 +1,102 @@ > +(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) > +  #:use-module (gnu packages compression)) > +(define-public dbqn > +  (let* ((tag "0.2.1") > +         (revision "1") > +         (commit "0bbe096fc07d278b679a8479318f1722d096a03e") > +         (hash > "1kxzxz2hrd1871281s4rsi569qk314aqfmng9pkqn8gv9nqhmph0") > +         (version (git-version tag revision commit))) Don't let-bind tag, version and hash, use them inline. > +    (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)) Note that version will be bound here even if you use the version field to do so. > +                (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. You could do (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? (for-each (lambda (known-good-test) (invoke my-glorious-bin known-good-test)) known-good-tests)))) FSVO my-glorious-bin and known-good-tests. > +             #:imported-modules `(,@%gnu-build-system-modules (guix > build > +                                                                    > syscalls) > +                                  (guix build ant-build-system)) > +             #:modules `((guix build gnu-build-system) > +                         ((guix build ant-build-system) > +                          #:prefix ant:) > +                         (guix build utils)) > +             #:phases #~(modify-phases %standard-phases > +                          (delete 'configure) > +                          (replace 'build > +                            (lambda* _ > +                              (invoke "./build"))) > +                          (add-after 'build 'strip-jar-timestamps > +                            (lambda* (#:key outputs #:allow-other- > keys) > +                              (write %standard-phases))) > +                          (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")))))) Could this be done in/before install? > +                          (add-after 'subjars 'reorder-jar-content > +                            (lambda* (#:key outputs #:allow-other- > keys) > +                              (apply (cdr (assoc 'reorder-jar- > content > +                                                 ant:%standard- > phases)) > +                                     #:outputs (list outputs)))) You can use #:rest args to bind args for apply. Also use assoc-ref rather than cdr + assoc. > +                          (add-after 'reorder-jar-content 'jar- > indices > +                            (lambda* (#:key outputs #:allow-other- > keys) > +                              (apply (cdr (assoc 'generate-jar- > indices > +                                                 ant:%standard- > phases)) > +                                     #:outputs (list outputs)))) > +                          (add-after 'jar-indices 'fix-jar- > timestamps > +                            (lambda* (#:key outputs #:allow-other- > keys) > +                              (apply (cdr (assoc 'reorder-jar- > content > +                                                 ant:%standard- > phases)) > +                                     #:outputs (list outputs))))))) > +      (native-inputs (list `(,openjdk17 "jdk") coreutils zip)) Is OpenJDK 17 required? > +      (synopsis "BQN implementation based on dzaima/APL") > +      (description "BQN implementation based on dzaima/APL.") > +      (home-page "https://github.com/dzaima/BQN") > +      (license license:expat)))) Cheers From unknown Sun Jun 22 08:08:24 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 29 Sep 2022 11:24:11 +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