From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uHd7Jw6zX2G8GQAAgWs5BA (envelope-from ) for ; Fri, 08 Oct 2021 04:55:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id sJssIw6zX2FPDAAAB5/wlQ (envelope-from ) for ; Fri, 08 Oct 2021 02:55:10 +0000 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 37F5C1836F for ; Fri, 8 Oct 2021 04:55:10 +0200 (CEST) Received: from localhost ([::1]:57746 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYg2P-00077U-83 for larch@yhetil.org; Thu, 07 Oct 2021 22:55:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40920) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYg2I-000775-If for guix-patches@gnu.org; Thu, 07 Oct 2021 22:55:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37281) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mYg2I-0005yS-B3 for guix-patches@gnu.org; Thu, 07 Oct 2021 22:55:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mYg2I-0008Gz-84 for guix-patches@gnu.org; Thu, 07 Oct 2021 22:55:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48785] [PATCH v3 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: Fri, 08 Oct 2021 02:55:02 +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.163366167731755 (code B ref 48785); Fri, 08 Oct 2021 02:55:02 +0000 Received: (at 48785) by debbugs.gnu.org; 8 Oct 2021 02:54:37 +0000 Received: from localhost ([127.0.0.1]:48821 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYg1o-0008Fr-AP for submit@debbugs.gnu.org; Thu, 07 Oct 2021 22:54:37 -0400 Received: from mout01.posteo.de ([185.67.36.65]:47971) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYg1j-0008FW-8x for 48785@debbugs.gnu.org; Thu, 07 Oct 2021 22:54:31 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 77843240026 for <48785@debbugs.gnu.org>; Fri, 8 Oct 2021 04:54:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1633661660; bh=8cROjl+jM4DxxCglaFG+O8nPdRbaOZDSv9D7KVCWrlo=; h=From:To:Cc:Subject:Date:From; b=cmp5XLm5KYC0uk+m0s6JxSx/QO6boEepKuBOONK7J4lPFxb1B7DEikjDcHQI1V0YK C5XnPMxNDkt8Fpkes1wDygK5LAXQjBS8m6x7j//WyY+2SexZby1aEJYd7jbGwHLoD9 aGjUDiEPu5568HNwHUhwSNRLOGvzYbRkqbf4JTWPwxqf5bRKgA6OSeSyweCd9yiOFW nhIvW56BnArpeKUnDF5WmWS6W9pr4/LssBE8IoQZKEB/MYjuORRNDIKDtZ9CbDOMpX V9ttg0TvdNDxV1REdUyO1l+gl8UHM+0Z3ehVFPLkc37abFBnSgcbLQRjszCmKAqqGP gFdn7GBCXog4Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HQXpM1lm1z9rxG; Fri, 8 Oct 2021 04:54:18 +0200 (CEST) From: Vinicius Monego Date: Fri, 8 Oct 2021 02:54:07 +0000 Message-Id: <20211008025409.80602-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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633661710; 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=cih+C+nkGcxh2sVkIRgxHMnTnTwYgbKt9GccnploxUY=; b=Wi3Mv9Fe82oHe87PbPzDF838dU9CYkCScBrKcIApxKFOqkYo/BJSrUpGQPN8uGkR2lchto ApqmwFozSOLfVWJhwWrz2XTYNP7ABPylK7gitTVZ9UbH/j5KMUYFZtF8r7YZssWggNnuBP nRe9fs9A4jPHQ9WJAQs2QzZCh6Bsq5a6HAL/21tv1+d7lPew1NKn4xk0o54SvF9DHPCxPU qfoug+wxa5PO9tWqvSe5O1Y4+v1doBm1aD9KjBYAHUOGWhbTD/iPmRk8Euipo8S7ZkPw1a mznx6vi0Byqdg1XevZ5KwfosbqMSIMSourXsZQSlOftbsdqnTiSKVUfW7Mh0aw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633661710; a=rsa-sha256; cv=none; b=c7vkFD1Bxre9/UVLJ5YfXf2r8pKLgZcrT7BygQWIWCGKef8CaXL87Kw6C9mYtlHEO1G+uG 2gv9wRhZYZ3ZPCBAnE7KRGnKC8B702qyqkyh/udoYG/Uq81T5DEK1V+E++91Cf2fE6xucc WEhCpgJ+pQynOz5PAyZ9K8R5Auu//hyHodT8cXcYYGpjRmeo/Z2wah9dF1minKr1tZ5n0Q PYxJOD1k3FkoXwbSZfmb67kKqdv9rjHQIcXH4LlOGkyAGVL+3+wlew7jUVnswOFhD/xHhY aVzxnjjwe4HNE1ri86LR5hCfWFnCbrDfkrmtikZxU5zlBWbe8kA4dExTma+5kQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=cmp5XLm5; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 1.18 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=cmp5XLm5; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 37F5C1836F X-Spam-Score: 1.18 X-Migadu-Scanner: scn0.migadu.com X-TUID: DF+Gttx18brg * gnu/packages/cpp.scm (fast-double-parser): New variable. --- Changed string to @code{} in description. gnu/packages/cpp.scm | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 4af71ba93a..4a8cd3a120 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -10,7 +10,7 @@ ;;; Copyright © 2020 Roel Janssen ;;; Copyright © 2020 Ricardo Wurmus ;;; Copyright © 2020 Brice Waegeneire -;;; Copyright © 2020 Vinicius Monego +;;; Copyright © 2020, 2021 Vinicius Monego ;;; Copyright © 2020 Marius Bakke ;;; Copyright © 2020 Michael Rohleder ;;; Copyright © 2020 Alexandros Theodotou @@ -331,6 +331,42 @@ functions, class methods, and stl containers. @end enumerate\n") (license license:bsd-3))) +(define-public fast-double-parser + (package + (name "fast-double-parser") + (version "0.5.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 "10mfpy4i7lpavghb15s4d0920nlwsac1ri2sxkcqbrj9iq94qj71")))) + (build-system cmake-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'install ;no install target, have to do it manually + (lambda* (#:key outputs #:allow-other-keys) + (let ((out-include (string-append (assoc-ref outputs "out") + "/include"))) + (mkdir-p out-include) + (copy-file "../source/include/fast_double_parser.h" + (string-append out-include + "/fast_double_parser.h")))))))) + (home-page "https://github.com/lemire/fast_double_parser") + (synopsis "Parse strings into double (binary64) floating-point values") + (description "Fast function to parse strings containing decimal numbers +into double-precision (binary64) floating-point values. That is, given the +string @code{1.0e10}, it should return a 64-bit floating-point value equal to +10000000000. The function will match exactly (down the smallest bit) the +result of a standard function like @code{strtod}.") + ;; Dual-licensed, either license applies. + (license (list license:asl2.0 + license:boost1.0)))) + (define-public fifo-map (let* ((commit "0dfbf5dacbb15a32c43f912a7e66a54aae39d0f9") (revision "0") -- 2.30.2