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))))