From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 CAjuC/kBamRqMwEASxT56A (envelope-from ) for ; Sun, 21 May 2023 13:35:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id UBXVC/kBamS5xgAA9RJhRA (envelope-from ) for ; Sun, 21 May 2023 13:35:21 +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 D6973101FE for ; Sun, 21 May 2023 13:35:20 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q0hL8-00021P-N8; Sun, 21 May 2023 07:35:06 -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 1q0hL5-00021B-Ai for guix-patches@gnu.org; Sun, 21 May 2023 07:35:03 -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 1q0hL4-0008Ep-G6 for guix-patches@gnu.org; Sun, 21 May 2023 07:35:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q0hL4-0001oT-Al for guix-patches@gnu.org; Sun, 21 May 2023 07:35:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63609] [PATCH 1/4] gnu: Add ocaml-parmap. References: <20230520124838.35588-1-jean@foundationdevices.com> In-Reply-To: <20230520124838.35588-1-jean@foundationdevices.com> Resent-From: Jean-Pierre De Jesus DIAZ Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 21 May 2023 11:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63609 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63609@debbugs.gnu.org Cc: Jean-Pierre De Jesus DIAZ Received: via spool by 63609-submit@debbugs.gnu.org id=B63609.16846689016960 (code B ref 63609); Sun, 21 May 2023 11:35:02 +0000 Received: (at 63609) by debbugs.gnu.org; 21 May 2023 11:35:01 +0000 Received: from localhost ([127.0.0.1]:60138 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q0hL3-0001oB-3Y for submit@debbugs.gnu.org; Sun, 21 May 2023 07:35:01 -0400 Received: from mail-wm1-f49.google.com ([209.85.128.49]:57361) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q0hL0-0001nt-Sf for 63609@debbugs.gnu.org; Sun, 21 May 2023 07:34:59 -0400 Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-3f42769a0c1so50085415e9.2 for <63609@debbugs.gnu.org>; Sun, 21 May 2023 04:34:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1684668893; x=1687260893; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=yIpD4plby8wifcK+deFdtdDW0nGBJMLl47UCTqGo7zI=; b=fG5NfyHeFohZibulrkUax67YCuJ+jjH00/1Z3UM8DP9SazN82U44mZdLVsfW13h2Oq UFQLnskvwpYFhtqT1OkBHYuuL9FPoKoMRJ6D2iDXIijJyh0uFoI1yXwvSjAnOSlUQvt9 J2qUKTDqVMt6M5Gb3I+N0O1fObiohvsJKjTmM+bUo9b/OQKZzaHkcOEFkpSpcZqrQT6t 1/8G54A5K8BZo5u932ALENIDTwMErk6YUNmiZdQi6XvQeLBltz7Hf4V+Ch/ecjd7+Chm nNua6j9bOlr1jrBHPi96lX4KzmpjEjbGoVcHkYA7mni27VheqmUuCKWdJi5letk+zSuW U3TA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684668893; x=1687260893; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yIpD4plby8wifcK+deFdtdDW0nGBJMLl47UCTqGo7zI=; b=Z/q1qTsliiJjVUCyBvtGo2vcoCHwKTs+vxQrOBPYtRi06FKHYgXm3NiI58cKh4dGDt 4e0z2pDArw/L4VgHs/nT9EKLNt6iZL4zjFNgh2Hl+GugsOybA0+m90skYdDIGLmv9YC4 UEZw2+ACgguaAx13FwaToHGJMLmmzckekBHZgVgoMzD+4gSneL7EAjcO2GYKVPz8SKip ABW8wM8pN/l1oOw0m8rZ693O7NjMlsjVYDSEwPVrpU16jx5keB/MEwT3AO5rUcGNnsbR RwXuZoP0AnW6Sa1M+jzeOOnnzcCMsURR8dCeM5x1iZnJwOxXp4o/jSgGFI4QMnkcgWlV nTfA== X-Gm-Message-State: AC+VfDz794tisEg5ruR/jxtzG+mmzD6LSa1lMreAREg5N6VSAo4qxikm WoD68zf7JHwxH/d2yMPNABUYYHjlxuMVr63Jk6zUkA== X-Google-Smtp-Source: ACHHUZ7clqqDKeGJDVilyafziNny1hJtvxc2mHu04dXYc9/v31Ag0xQFpviplsHi9gBep/YXs1K7RQ== X-Received: by 2002:a1c:7505:0:b0:3f4:20bd:ba46 with SMTP id o5-20020a1c7505000000b003f420bdba46mr5213811wmc.5.1684668892655; Sun, 21 May 2023 04:34:52 -0700 (PDT) Received: from omen15.home ([89.131.29.87]) by smtp.gmail.com with ESMTPSA id l20-20020a7bc454000000b003f42e008c8dsm8153124wmi.44.2023.05.21.04.34.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 May 2023 04:34:52 -0700 (PDT) Date: Sun, 21 May 2023 13:34:14 +0200 Message-Id: <20230521113417.76939-1-jean@foundationdevices.com> X-Mailer: git-send-email 2.34.1 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: , Reply-to: Jean-Pierre De Jesus DIAZ X-ACL-Warn: , Jean-Pierre De Jesus DIAZ via Guix-patches From: Jean-Pierre De Jesus DIAZ via Guix-patches via 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-Seal: i=1; s=key1; d=yhetil.org; t=1684668920; a=rsa-sha256; cv=none; b=WlCLfzTA0IchQTLowGmVLdjYwgCHvot7BIEZMqMUN+aa2JSp/JCXTYl5LDWh98Kk6aSbbQ Cj3N5KPNpPPDsmS076BJWOXHzzplwsK9GJC5lTSGhxlBtlLlZnV07Tz/UsXjQup3MjYC4b 82JRpKwCDpOxRgVvXpgge4eLsKCpguNyzauZ3+WRdzCME+fsc/8BBgBaPmF1BwwBbR1oCH ky6JCHh4WBn4XfJCC3IOwo3cNBdvHYidfn0DRRrK7vYv2J1FBbZwF3l9Oqhs1BbTrpHwdg V4bt9rklAL2d7TfL/czQjsSrtBJ8dZ4w4qdwst44YcL2aY0OxTq77OVBk6HQ1Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=foundationdevices.com header.s=google header.b=fG5NfyHe; dmarc=pass (policy=none) header.from=gnu.org; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1684668920; h=from:from:sender:sender:reply-to: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=yIpD4plby8wifcK+deFdtdDW0nGBJMLl47UCTqGo7zI=; b=V3m3jlkTzCASjs7sK/oP7qPgV6VZtXfDSf5xiF12GQne5FdBUVfIcUHoWjQatepIpK8Yxx WLEbIhDXas7OSXAVed2ePCG9uOThG7WyYQqDGeURtAEgUhDF3kptnBLljS8sqG7HSOknlW bOBXD6PUURYJYOLIBr4UQUrN/zDTKW6JvHMhbT+hg2q5qKoSNUkVrIL1f3dDC0nWvnrPfh 98WE4Foc5GFbAAlL2Hkw8H+tmJeTj5R5gCRhypN0jipnd9aO8S735cSHRZU7re6mjiwOdZ feeCyZ6uXaeG7D6Kb+bO/Al0qiXvPOmzRdhLBcekLDVYASnFVB+3ELvIqSNXiw== X-Migadu-Spam-Score: -5.07 X-Spam-Score: -5.07 X-Migadu-Queue-Id: D6973101FE X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=foundationdevices.com header.s=google header.b=fG5NfyHe; dmarc=pass (policy=none) header.from=gnu.org; 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-TUID: bl3wy7M++fl6 * gnu/packages/ocaml.scm (ocaml-parmap): New variable. Signed-off-by: Jean-Pierre De Jesus DIAZ --- gnu/packages/ocaml.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index f0b8f9e912..08036ba401 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -28,6 +28,7 @@ ;;; Copyright © 2022 John Kehayias ;;; Copyright © 2022 Garek Dyszel ;;; Copyright © 2023 Csepp +;;; Copyright © 2023 Foundation Devices, Inc. ;;; ;;; This file is part of GNU Guix. ;;; @@ -2698,6 +2699,42 @@ (define-public ocaml-ppx-tools syntactic tools.") (license license:expat))) +(define-public ocaml-parmap + (package + (name "ocaml-parmap") + (version "1.2.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/rdicosmo/parmap") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0x5gnfap9f7kmgh8j725vxlbkvlplwzbpn8jdx2ywfa3dd6bn6xl")))) + (build-system dune-build-system) + (propagated-inputs + (list ocaml-odoc)) + (home-page "https://github.com/rdicosmo/parmap") + (synopsis "Parallel map and fold primtives for OCaml") + (description + "Library to perform parallel fold or map taking advantage of multiple +core architectures for OCaml programs. Drop-in replacement for these +@code{List} operations are provided: + +@itemize +@item @code{List.map} -> @code{parmap} +@item @code{List.map} -> @code{parfold} +@item @code{List.mapfold} -> @code{parmapfold} +@end itemize + +Also it allows specifying the number of cores to use with the optional +parameter @code{ncores}.") + (license (list license:lgpl2.0 + (license:fsdg-compatible "file://LICENSE" + "See LICENSE file for details"))))) + (define-public ocaml-react (package (name "ocaml-react") -- 2.34.1