From patchwork Sun Jul 14 11:49:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin X-Patchwork-Id: 29286 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 EE3CF27BBEA; Sun, 14 Jul 2024 12:51:24 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 7EE8D27BBE2 for ; Sun, 14 Jul 2024 12:51:24 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sSxkv-00035h-2i; Sun, 14 Jul 2024 07:51:05 -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 1sSxks-00034n-QS for guix-patches@gnu.org; Sun, 14 Jul 2024 07:51:03 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sSxks-0006Ey-IC for guix-patches@gnu.org; Sun, 14 Jul 2024 07:51:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sSxkt-00042P-Rs; Sun, 14 Jul 2024 07:51:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72107] [PATCH 2/5] gnu: Add ocaml-thread-table. Resent-From: Benjamin Original-Sender: "Debbugs-submit" Resent-CC: julien@lepiller.eu, pukkamustard@posteo.net, guix-patches@gnu.org Resent-Date: Sun, 14 Jul 2024 11:51:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72107 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72107@debbugs.gnu.org Cc: Benjamin , Julien Lepiller , pukkamustard X-Debbugs-Original-Xcc: Julien Lepiller , pukkamustard Received: via spool by 72107-submit@debbugs.gnu.org id=B72107.172095785115476 (code B ref 72107); Sun, 14 Jul 2024 11:51:03 +0000 Received: (at 72107) by debbugs.gnu.org; 14 Jul 2024 11:50:51 +0000 Received: from localhost ([127.0.0.1]:57236 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sSxkg-00041T-Vh for submit@debbugs.gnu.org; Sun, 14 Jul 2024 07:50:51 -0400 Received: from mail.uvy.fr ([146.59.197.40]:41594) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sSxkf-00041G-HE for 72107@debbugs.gnu.org; Sun, 14 Jul 2024 07:50:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=uvy.fr; s=202105; t=1720957812; bh=saM3ugpTpHDhRv1is0lMK2YgDSkPayozbasn58uWPM4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=tWubCmmoc4QT6dhJp2fv1oXWy2VqxwzT+gJ7nmBFxi0fAxR9oR7cEBgtfSFj4C7dZ Neii2pzYNw7KifwE0v8rgXTeSQM0uAXLZ4R9xNKnfqEwy7528qmJ4CVpOrp9ae5sph dFHyLPyqKqRrsRw3kURaCRXteQ+nyenpaOxf9r70tbsuhYizdZ0mEzHOPUVo/O82ZS 89WIDpbTsWVPpdo9mERu83Hk5p1/vLSl0OEcOFA0tgxRWMuAbj+t3tfgwyQDqgKsYw Pq+PevTYIC/vJWk3UdsG/kaGt2ZeI1MkRvJlRBr/C/2bWFYZ8ejQ5dtRLm182t8Bz0 k3ZXr64Y5a91Q== Date: Sun, 14 Jul 2024 13:49:49 +0200 Message-ID: <62b3c0488e059e026271c2ef4c88fa8aa3e5d00f.1720956786.git.benjamin@uvy.fr> X-Mailer: git-send-email 2.45.2 In-Reply-To: References: 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: , Reply-to: Benjamin X-ACL-Warn: , Benjamin via Guix-patches X-Patchwork-Original-From: Benjamin via Guix-patches via From: Benjamin Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/ocaml.scm (ocaml-thread-table): New variable. Change-Id: If0175f44e6959befc539a399bd8bdebdcb41ba1b --- gnu/packages/ocaml.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index fa84ea73a5..a6fb5af138 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -3133,6 +3133,29 @@ (define-public ocaml-hmap to which allows adding and looking up bindings in a type safe manner.") (license license:isc))) +(define-public ocaml-thread-table + (package + (name "ocaml-thread-table") + (version "1.0.0") + (home-page "https://github.com/ocaml-multicore/thread-table") + (source + (origin + (method git-fetch) + (uri (git-reference + (url home-page) + (commit version))) + (file-name (git-file-name name version)) + (sha256 (base32 + "05sla96m4lbfrnrjczj4xl1zbcwypir6krp4y16x50hz24ai12pc")))) + (build-system dune-build-system) + (arguments `(#:package "thread-table")) + (native-inputs (list ocaml-odoc ocaml-alcotest)) + (synopsis "A lock-free thread-safe integer keyed hash table") + (description "Ocaml library implementing a minimalist lock-free thread-safe +integer keyed hash table with zero synchronization overhead on lookups designed +for associating thread specific state with threads within a domain.") + (license license:isc))) + (define ocaml-eio (package (name "ocaml-eio")