From patchwork Tue Jun 1 20:22:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: pukkamustard X-Patchwork-Id: 29760 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 7FC0927BC81; Tue, 1 Jun 2021 21:26:06 +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, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,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 3157727BC78 for ; Tue, 1 Jun 2021 21:26:06 +0100 (BST) Received: from localhost ([::1]:59020 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loAxh-00028R-9a for patchwork@mira.cbaines.net; Tue, 01 Jun 2021 16:26:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42666) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loAwn-0007ya-N5 for guix-patches@gnu.org; Tue, 01 Jun 2021 16:25:09 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54553) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1loAwm-0000Cc-Jx for guix-patches@gnu.org; Tue, 01 Jun 2021 16:25:09 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1loAwm-0006uL-Gb for guix-patches@gnu.org; Tue, 01 Jun 2021 16:25:08 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47768] [PATCH v3 15/42] gnu: Add ocaml-bigstringaf. Resent-From: pukkamustard Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 01 Jun 2021 20:25:08 +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: Xinglu Chen Cc: pukkamustard , 47768@debbugs.gnu.org Received: via spool by 47768-submit@debbugs.gnu.org id=B47768.162257909426361 (code B ref 47768); Tue, 01 Jun 2021 20:25:08 +0000 Received: (at 47768) by debbugs.gnu.org; 1 Jun 2021 20:24:54 +0000 Received: from localhost ([127.0.0.1]:37833 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1loAwY-0006r2-JL for submit@debbugs.gnu.org; Tue, 01 Jun 2021 16:24:54 -0400 Received: from mout01.posteo.de ([185.67.36.65]:50957) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1loAwX-0006qL-U9 for 47768@debbugs.gnu.org; Tue, 01 Jun 2021 16:24:54 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 64223240026 for <47768@debbugs.gnu.org>; Tue, 1 Jun 2021 22:24:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1622579088; bh=jVgGvrEG+EclxIvTON2zUqlboE1HtzC8UgQl9BrXyJs=; h=From:To:Cc:Subject:Date:From; b=h8daZvuD6MwIOXaj/vEtcCWgEppHEWFbnuxG7u/hnK4yidwqVSWGUTl32/1Vs1Cpd JIxrQ4W1oaxs8F1LT7GBUUnNBQ1KLBIr3FeB9qS91jet0u4WaZeIAxptMb0X4gLUXd xnWgxByBv0TNGCdXUeN0H7R+IaOq1bBdGnMISWK8NZQJERq/fbMwEnU8wsLJXs383f VmJplHDMW2JacX6dHD4OCd90+vC0RhEKbpegK9ZawlqHSIlpmMSeHMtKMms6blm3tn vXa4xRhXLIXSOjHv+nab/hb0NKkrrSDvRkamdEhYvCMPVHuBuaDNCM1teUTdL3Eu7T 1hGL0V2ZMtAOw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FvkCy4s3Hz9rxF; Tue, 1 Jun 2021 22:24:46 +0200 (CEST) From: pukkamustard Date: Tue, 1 Jun 2021 20:22:58 +0000 Message-Id: <20210601202325.8777-16-pukkamustard@posteo.net> In-Reply-To: <87lf82hasx.fsf@yoctocell.xyz> References: <87lf82hasx.fsf@yoctocell.xyz> MIME-Version: 1.0 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 * 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 9847990d18..a2a3a78ea7 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -6592,3 +6592,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)))