From patchwork Thu Oct 7 18:12:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Hogan X-Patchwork-Id: 33681 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 20FB227BBE3; Thu, 7 Oct 2021 19:15:05 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 9343C27BBE1 for ; Thu, 7 Oct 2021 19:15:04 +0100 (BST) Received: from localhost ([::1]:32776 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYXv5-0006lF-L6 for patchwork@mira.cbaines.net; Thu, 07 Oct 2021 14:15:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42740) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYXt8-0004tQ-Cu for guix-patches@gnu.org; Thu, 07 Oct 2021 14:13:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36865) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mYXt8-00052R-4N for guix-patches@gnu.org; Thu, 07 Oct 2021 14:13:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mYXt8-0005dC-0W for guix-patches@gnu.org; Thu, 07 Oct 2021 14:13:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51087] [PATCH] gnu: Add simdjson. Resent-From: Greg Hogan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 07 Oct 2021 18:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51087 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51087@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163363035921616 (code B ref -1); Thu, 07 Oct 2021 18:13:01 +0000 Received: (at submit) by debbugs.gnu.org; 7 Oct 2021 18:12:39 +0000 Received: from localhost ([127.0.0.1]:48411 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYXsl-0005ca-9M for submit@debbugs.gnu.org; Thu, 07 Oct 2021 14:12:39 -0400 Received: from lists.gnu.org ([209.51.188.17]:33100) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYXsj-0005cS-Je for submit@debbugs.gnu.org; Thu, 07 Oct 2021 14:12:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42692) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYXsj-0004eg-Cw for guix-patches@gnu.org; Thu, 07 Oct 2021 14:12:37 -0400 Received: from mail-il1-x12f.google.com ([2607:f8b0:4864:20::12f]:41822) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mYXsh-0004e4-3n for guix-patches@gnu.org; Thu, 07 Oct 2021 14:12:37 -0400 Received: by mail-il1-x12f.google.com with SMTP id d11so7316131ilc.8 for ; Thu, 07 Oct 2021 11:12:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=greghogan-com.20210112.gappssmtp.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=Td5FR0/C3flMGA+WDvxZa4s4mGZTeMzGGOycpPA5Ae8=; b=A1LD83TBeFVqP06kXrGyBvfjCsCRGrzJNVX8cJHD/xNCVMljSsPGd0MpfisbRQfAKi SD5TQX7jv4pSGu6lcvLZzcOaTM8xo5AvAqcJXKyLbVBs6BSscbgqL+riMd+CJOlBFye4 LkshUKNAD8lesdj8CY9xDKWhlD70TcRWy0kEoQAR7BJsMcCQI/tcxXlEz7iSnEhUw3kS EEPbGOG3glv6IU+I9ZVW2KgyezoARmMPECQjdW3jsU/Gf0qEPRx1aeO5o+H1fze57YEe U5N9Kly7xiBk85K2aBMqWokYk5u4Y4lXBrs6c2etvAruq8WtpQGzbDKuQEoasCNM5tcA uO5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Td5FR0/C3flMGA+WDvxZa4s4mGZTeMzGGOycpPA5Ae8=; b=1NJFqlE8GVLoF2Y/flnV7bPQm5AvkS+95qixiL7+fRKu2vTs9jXcvG1gUov3m/UE9a R+f5WrJ/IxT5WrwsPD4E0Os5HxgqZjwjCVSVJ7MszZcl2W9P58b4dwRIQfVTJYyv6QyQ hHmojaCgDpz7UHk9dBXhk86ORRHBdOvWlTjzE/DZbJX7ijQvbGWGbTxuOhGPkNILJso3 NPaWY2jU3QXA8Qf+gKQXsBKNkenK7P+E6iBOHmODZvtk2rouOvn+rf+kibY61k/8Ybck iEaEP5gSWhtarwHJKdDDzFs1A/0N1kbR47jH7oXDDxOpXpdQr0o83FHPUbC0pab3Oq36 l6lw== X-Gm-Message-State: AOAM532iP+fmCvqwxluD7Rij6WsPYjRT1dQ4nfj8nDLmDWeckvduko8B L0WDRmeHpGD1cabI2vwWB1Ks6mx6pMW1d65RR8pUhNJ5K8PCyktresw= X-Google-Smtp-Source: ABdhPJwHMKTai5mzwYctUmKUP786GuFuszearnezUw36e19WyiTjNd1Nc5LYSa5MVxAwgEtoMBGjonNcBExu45yq4QA= X-Received: by 2002:a05:6e02:bc9:: with SMTP id c9mr4455751ilu.309.1633630353315; Thu, 07 Oct 2021 11:12:33 -0700 (PDT) MIME-Version: 1.0 From: Greg Hogan Date: Thu, 7 Oct 2021 14:12:21 -0400 Message-ID: Received-SPF: none client-ip=2607:f8b0:4864:20::12f; envelope-from=code@greghogan.com; helo=mail-il1-x12f.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 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 From a260708c520c744e492671914af02c5129ae9b4d Mon Sep 17 00:00:00 2001 From: Greg Hogan Date: Mon, 27 Sep 2021 14:20:03 +0000 Subject: [PATCH] gnu: Add simdjson. * gnu/packages/cpp.scm (simdjson): New variable. --- gnu/packages/cpp.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) + (license license:asl2.0))) -- 2.33.0 diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 1fb4aa481f..ccdcb3f835 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -1347,3 +1347,29 @@ of reading and writing XML.") (description "Jsonnet is a templating language extending JSON syntax with variables, conditions, functions and more.") (license license:asl2.0))) + +(define-public simdjson + (package + (name "simdjson") + (version "1.0.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/simdjson/simdjson") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "08qpsw0i8481xlyyghzyszb1vh4c8i7krzzghvr9m4yg394vf6zn")))) + (build-system cmake-build-system) + (arguments + '(#:tests? #f ; tests require downloading dependencies + #:configure-flags + '("-DBUILD_SHARED_LIBS=ON"))) + (synopsis "JSON parser for C++ using SIMD instructions") + (description + "The simdjson library uses commonly available SIMD instructions and +microparallel algorithms to implement a strict JSON parser with UTF-8 +validation.") + (home-page "https://github.com/simdjson/simdjson")