From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id hnS2HAnlmGRSTAEASxT56A (envelope-from ) for ; Mon, 26 Jun 2023 03:08:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id WJ3pGwnlmGQp5AAAauVa8A (envelope-from ) for ; Mon, 26 Jun 2023 03:08:25 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0199815F76 for ; Mon, 26 Jun 2023 03:08:25 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qDai4-0007l1-Kh; Sun, 25 Jun 2023 21:08:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qDai2-0007kV-Af for guix-patches@gnu.org; Sun, 25 Jun 2023 21:08:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qDai1-0004cp-W0 for guix-patches@gnu.org; Sun, 25 Jun 2023 21:08:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qDai1-0004f4-Rh for guix-patches@gnu.org; Sun, 25 Jun 2023 21:08:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48785] [PATCH v6 1/3] gnu: Add fast-double-parser. References: <20210601220510.78230-1-monego@posteo.net> In-Reply-To: <20210601220510.78230-1-monego@posteo.net> Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 26 Jun 2023 01:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48785 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48785@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 48785-submit@debbugs.gnu.org id=B48785.168774164517843 (code B ref 48785); Mon, 26 Jun 2023 01:08:01 +0000 Received: (at 48785) by debbugs.gnu.org; 26 Jun 2023 01:07:25 +0000 Received: from localhost ([127.0.0.1]:44019 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDahR-0004dg-2w for submit@debbugs.gnu.org; Sun, 25 Jun 2023 21:07:25 -0400 Received: from mout01.posteo.de ([185.67.36.65]:40625) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDahM-0004dN-8p for 48785@debbugs.gnu.org; Sun, 25 Jun 2023 21:07:23 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id AE7B9240027 for <48785@debbugs.gnu.org>; Mon, 26 Jun 2023 03:07:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1687741633; bh=QYt00Z0Qnk7HSTC9sxFsyJfzjtsS41kVU3fJ2gYgopk=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From; b=cpfztuCml9294kZglMGwyCe5RL2ObavZ/pMsw+zYcKGWE/Ya7Ht3otWzdeCLO4je8 S4PNXVBfxuyyZQv8PIePDjc80jwjZYq9juHIQaSWR68s6cd10YAYQmwq8sGUOM6R+t 92m6UeQN8xTTfGm877tqsBvsLICni89bnFe/H4WlHFD1GwfytQdmP8/Qmp1RifX1Zo gbWd0jGOq6pmpSMD0x5fdgBFGUhJlZ9Ng4KIDoYEmjGKUoZGxlispZAAbY08f3z/od VQzu90m02XA6nPBYmTnw/zzkpIQ1tldeeVVHrt4gOSJGwCyJM59ley7O4bacDlQ4rl sTOayB3XyNjHw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Qq8nr28TNz6txP; Mon, 26 Jun 2023 03:07:11 +0200 (CEST) From: Vinicius Monego Date: Mon, 26 Jun 2023 01:06:33 +0000 Message-Id: <20230626010635.129221-1-monego@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1687741705; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=kxxWwRNVi/dOLD/FMtQAyynUjKbKt7EIE6UhSP6rE6M=; b=IBds8tLV9qrf3usK5G8fKIogyI4csncvDx+z7XJYJTLD7J/enmXJDuRyoCnaOvMug4nhX6 l4tLjaBB3PSAKgENijdQNKeiMHElqQV8EvfBMlNkyipLSUvqcT5QB3nYJfOUM7hR7pjKiu ebTl6P7Xi0kbiI54Mjsf6aeiIW1pRtHMhZ3kTsDhG+IM0NuGUSjfSDGS5zGlwjH8hVfYI+ ILgdfifBfuBHhGKM0x7DysBOfIW5cHlOUXwx2BaDcx0RvUikKmBy9BEL+Vlj0RPLp+xfEb Y6Ygtnffe+tpOcMAtyJlazH21tmnezYUBF3x7arz0ucTa4jXfPuNTnWByBxWUA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=cpfztuCm; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1687741705; a=rsa-sha256; cv=none; b=Bc/Bumn38ubchWINZYC3IoCBz3sDQjJh2pUVbcjf7wZtIfwNj40EWIpncle2x1Y2j6Dwhu ZfE0D+6bmWuzsygEDbN/kvE+txBp5BTjnSaE+ZNeTQetclMsuP2QpPGj72SU5kEEW0wqmy LDP6N5rfA8vVvdPyFLSm1jgJtYVZeR3k4yRwm9eF2LahWZUYu0Cvndk07p1pawfUvsCBAz fzxIhseR270MJLs/sJGQnSuCAigt3J1eQ46ZAzWznErrfrRZR5oyN6TdZRkZ01OaVNf/yw wKimbUJq0PU6rJu4OJ8y6cq4fN7EbbA2K49DehkshrZnpWleTyZv/UWuI7XG0Q== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -1.35 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=cpfztuCm; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 0199815F76 X-Spam-Score: -1.35 X-TUID: DDRoZrfgizKF * gnu/packages/cpp.scm (fast-double-parser): New variable. --- gnu/packages/cpp.scm | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 39a34c20dd..65e040700c 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -10,7 +10,7 @@ ;;; Copyright © 2020 Roel Janssen ;;; Copyright © 2020, 2021, 2023 Ricardo Wurmus ;;; Copyright © 2020 Brice Waegeneire -;;; Copyright © 2020, 2021, 2022 Vinicius Monego +;;; Copyright © 2020, 2021, 2022, 2023 Vinicius Monego ;;; Copyright © 2020, 2022 Marius Bakke ;;; Copyright © 2020 Michael Rohleder ;;; Copyright © 2020 Alexandros Theodotou @@ -448,6 +448,40 @@ (define-public xsimd operating on batches.") (license license:bsd-3))) +(define-public fast-double-parser + (package + (name "fast-double-parser") + (version "0.7.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/lemire/fast_double_parser") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0c3ajwm65yip61iq3ybvrkx5d3136r9dc68j1c1fmrv61n5nfmlb")))) + (build-system cmake-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + ;; There is no install target, we have to do it manually. + (replace 'install + (lambda _ + (mkdir-p (string-append #$output "/include")) + (copy-file + (string-append #$(package-source this-package) + "/include/fast_double_parser.h") + (string-append #$output + "/include/fast_double_parser.h"))))))) + (home-page "https://github.com/lemire/fast_double_parser") + (synopsis "Parse strings into double floating-point values") + (description "@code{fast-double-parser} provides a fast function to parse +strings into double (binary64) floating-point values, enforces the RFC 7159 +(JSON standard) grammar.") + ;; Dual-licensed, either license applies. + (license (list license:asl2.0 license:boost1.0)))) + (define-public google-highway (package (name "google-highway") base-commit: 41e8726c8924e9f5b79a9f44fad94ab5586bfc50 -- 2.34.1