diff mbox series

[bug#56991,v1,4/5] gnu: bqn: Add singeli-bootstrap.

Message ID 20220805022023.5044-4-yewscion@gmail.com
State New
Headers show
Series [bug#56989,v1,1/5] gnu: bqn: Add bqn.scm and dbqn package. | expand

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git-branch success View Git branch
cbaines/applying patch success View Laminar job
cbaines/issue success View issue

Commit Message

Christopher Rodriguez Aug. 5, 2022, 2:20 a.m. UTC
---
 gnu/packages/bqn.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
diff mbox series

Patch

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