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 MIu+OmbCmGDTVgEAgWs5BA (envelope-from ) for ; Mon, 10 May 2021 07:19:34 +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 MItZNmbCmGD8bgAAB5/wlQ (envelope-from ) for ; Mon, 10 May 2021 05:19:34 +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 ACD4835962 for ; Mon, 10 May 2021 07:19:34 +0200 (CEST) Received: from localhost ([::1]:41714 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfyKL-0004np-SB for larch@yhetil.org; Mon, 10 May 2021 01:19:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46922) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfyJ7-0008Sd-De for guix-patches@gnu.org; Mon, 10 May 2021 01:18:17 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45552) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lfyJ7-0003cs-4B for guix-patches@gnu.org; Mon, 10 May 2021 01:18:17 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lfyJ6-0000W3-WB for guix-patches@gnu.org; Mon, 10 May 2021 01:18:17 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47768] [PATCH v2 16/43] gnu: Add ocaml-bigstringaf. Resent-From: pukkamustard Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 10 May 2021 05:18:16 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47768 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47768@debbugs.gnu.org Cc: pukkamustard , divoplade , Maxime Devos Received: via spool by 47768-submit@debbugs.gnu.org id=B47768.16206238821673 (code B ref 47768); Mon, 10 May 2021 05:18:16 +0000 Received: (at 47768) by debbugs.gnu.org; 10 May 2021 05:18:02 +0000 Received: from localhost ([127.0.0.1]:57040 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfyIs-0000Qj-1y for submit@debbugs.gnu.org; Mon, 10 May 2021 01:18:02 -0400 Received: from mout02.posteo.de ([185.67.36.66]:35669) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfyIQ-0000Jx-GF for 47768@debbugs.gnu.org; Mon, 10 May 2021 01:17:35 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 2C6522400FC for <47768@debbugs.gnu.org>; Mon, 10 May 2021 07:17:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1620623846; bh=MqjUW5n445BEsgkg5qZznLSWe0GAiA5XtuBGFsztzls=; h=From:To:Cc:Subject:Date:From; b=HVZWmmiAu9BGqe4UboDY7rOvnkmgBCMPvo+NEwecyqqYJl/n3FvjKg8uYRSvQCiNe GeZEuyOZ9O8ECUenvrQXYyB/tyOpbt0oUmYneqSi5kRRoI8FL1Kfze5U8+Rry0UdiO ta52AYXL5WShTluT0FcOCIRWG7Z5Av1TI4JCYVOfT7wBRlW2Zk/gdXzZrLXdy3y73M rfcWfTFihT3WHG1W7vZfqF4ODovE6U6QjxTYMdNiLEt0M1yLqkePeDUHg4LkhtyiY8 0LpNjageqmG4xQcpI3zhoevYYPhXFsJtz1xYwgtSKxNIKccr78N8oKtYuRhf7LnkFW lHfJgZ0lvXkuw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Fdq794C5Rz9rxg; Mon, 10 May 2021 07:17:25 +0200 (CEST) From: pukkamustard Date: Mon, 10 May 2021 05:16:01 +0000 Message-Id: <20210510051628.15359-17-pukkamustard@posteo.net> In-Reply-To: <20210510051628.15359-1-pukkamustard@posteo.net> References: <20210414090800.6458-1-pukkamustard@posteo.net> <20210510051628.15359-1-pukkamustard@posteo.net> MIME-Version: 1.0 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=1620623974; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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=0Ir1R89zVnU6inxj+SLyUSvnQ6Yn790ITftxU1xB3dg=; b=sGhPmOA2+DU+3kaSudKPNlcqaKyHbYoE4xu7ZrVGJ2PDwB6AYOwcFB6JQDh2CPnp2/GOaf 5OYyDjIUPNOG8mIwhmv7Woe3B8UlbTS20EsKE+NUz/A+go04qAuthBec4sRh0WIBkbQ2Xf I0sIWDZKKbrBaRk84z2DgG+WfB6Ixw5VMMGiNNxfKJxcNdfz2bq6nkcOqjUNp309bVYy/H w2OMatswtjFAk2N8huNOKzQxGMtg8HhMlXHXo1zjT1AAbWbANqW3WAofewmh0eY11tVPRi Fzwg4aVGO7TW3NHJDPEixJ8ICfbd8ebKy25qLWi5ZAAYVPTNwzqFdidCl2IBbw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620623974; a=rsa-sha256; cv=none; b=qunOp98wErbLbkQA0+yKymgYrLKTD+CbXFfsMEw/jBO/2bLQjg9FunNfud+jNEr+0zoLIL lcCXrWLu7u2jI6DK6xI0ukwRlchgC8uZBu9ARKDaUU4iWZACVODNIb3oJdj4ri8DYGm+/D UO2SC/UuFWcEhQKTi9Eiqv8nX2PAlXMcc9mVASVdFSI5uHTUc9RkQS90pSFeUXzkwjEG2C XxeE2wI28lC7ygYbMauXqvkx0VDenrIQDq5ZMT17m+/J8PLHOWmP4WhOoRvc3cbTO4EjLj ebEF2FSjhTY/hJw9O1meMBkG3rvdF093r3fK0pjY/OQtPuCqS3LHPYMeD4NKLw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=HVZWmmiA; 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: 3.65 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=HVZWmmiA; 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: ACD4835962 X-Spam-Score: 3.65 X-Migadu-Scanner: scn0.migadu.com X-TUID: mae3m6ry2FbF * gnu/ocaml/packages.scm (ocaml-bigstringaf): New variable. --- gnu/packages/ocaml.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index 823cb00afd..f252fb53fa 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -6579,3 +6579,37 @@ provides support to program with time varying values: declarative events and signals. React doesn't define any primitive event or signal, it lets the client chooses the concrete timeline.") (license license:lgpl2.1+))) + +(define-public ocaml-bigstringaf + (package + (name "ocaml-bigstringaf") + (version "0.7.0") + (home-page "https://github.com/inhabitedtype/bigstringaf") + (source + (origin + (method git-fetch) + (uri (git-reference + (url home-page) + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1q1sqxzdnlrpl95ccrhl7lwy3zswgd9rbn19ildclh0lyi2vazbj")))) + (build-system dune-build-system) + (arguments + '(#:test-target ".")) + (propagated-inputs + `(("ocaml-bigarray-compat" ,ocaml-bigarray-compat))) + (native-inputs + `(("ocaml-alcotest" ,ocaml-alcotest) + ("pkg-config" ,pkg-config))) + (synopsis + "Bigstring intrinsics and fast blits based on memcpy/memmove") + (description + "The OCaml compiler has a bunch of intrinsics for Bigstrings, but they're +not widely-known, sometimes misused, and so programs that use Bigstrings are +slower than they have to be. And even if a library got that part right and +exposed the intrinsics properly, the compiler doesn't have any fast blits +between Bigstrings and other string-like types. @code{bigstringaf} provides +these missing pieces.") + (license license:bsd-3))) -- 2.31.1