From patchwork Sat Jul 1 13:49:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: gemmaro X-Patchwork-Id: 51485 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 C5DC427BBEA; Sat, 1 Jul 2023 14:54:19 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS 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 0D00727BBE2 for ; Sat, 1 Jul 2023 14:54:18 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qFb36-00024L-Jv; Sat, 01 Jul 2023 09:54:04 -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 1qFb35-000240-0j for guix-patches@gnu.org; Sat, 01 Jul 2023 09:54: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 1qFb34-0005Q3-O6 for guix-patches@gnu.org; Sat, 01 Jul 2023 09:54:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qFb34-0002ba-4x for guix-patches@gnu.org; Sat, 01 Jul 2023 09:54:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#61678] [PATCH v3 1/2] gnu: Add massivethreads. References: In-Reply-To: Resent-From: gemmaro Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 01 Jul 2023 13:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61678 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61678@debbugs.gnu.org Cc: gemmaro Received: via spool by 61678-submit@debbugs.gnu.org id=B61678.16882196149983 (code B ref 61678); Sat, 01 Jul 2023 13:54:02 +0000 Received: (at 61678) by debbugs.gnu.org; 1 Jul 2023 13:53:34 +0000 Received: from localhost ([127.0.0.1]:56989 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFb2c-0002aw-Ge for submit@debbugs.gnu.org; Sat, 01 Jul 2023 09:53:34 -0400 Received: from mail-pj1-f45.google.com ([209.85.216.45]:55791) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFb2a-0002al-1u for 61678@debbugs.gnu.org; Sat, 01 Jul 2023 09:53:33 -0400 Received: by mail-pj1-f45.google.com with SMTP id 98e67ed59e1d1-262dc1ced40so1951809a91.3 for <61678@debbugs.gnu.org>; Sat, 01 Jul 2023 06:53:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688219606; x=1690811606; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=xbSJL6H8otdImC9XUYMFpEwdRW4is/PRSpyYqy2EJMQ=; b=U5D2Rci6LtFCh9sxayzg8o3Ww9NWuzsocwVoW2vkgw3+PfWXzQk2UGyxxMuMSWF0tR m81rFkEsIRu4udKAeUM4nVwNVfeHvtNO0iSgWkXqARf4ZVgPCDB+i9/379s07gNcTrbl SxRh8DH4auE7hYKibd1VE2gdN8Bch31deFJBu2T+Ql/8nXSs55dVgu5cNT3sBZIpv7Rp z2VjmtBGe/gRDNegHexqSrAMbIXTaj7OYskJyU9bxm5L8XFQ7Gv1/mjlvdv+CxgkfOB/ 4ccIBxqcU/V45N0ieoDeUI4iY8i0O76fZtAQZBaaNodRnUuDY/I0FEdk7fG2T2NpoOWM 2OrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688219606; x=1690811606; 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=xbSJL6H8otdImC9XUYMFpEwdRW4is/PRSpyYqy2EJMQ=; b=kwriTJOgBh4l5Chn9nC4H/d+8gmHVZUQMfwBTCSGbddXIybD3y4l3B63fGx+wMd/FR m1wyN421zCwUcWuVtZ9K4js2g+OpRyYMlPAd3i706YmierWPrBMaJAP0yZ+et1EX3iy1 DUBSlWWunazd5BSsJL/q4NDBrVmBzUbaM8zFDl4vEd4R5jHIBGAFeIxouFhRGOBvH7mz UPkhL7RBTkZzeqjkYaiJ/sPLU+IVVEg2NTgnvG45fc7RJl+as2RNRjm6c1kSZU7c6WPC bgwnLP16MJlNoUXkArKV6vOQ3dd/T2x+I6CX4b67/91J5cNUQNLJCZWdVPF9vrNm2vfb e8zQ== X-Gm-Message-State: ABy/qLbd2gsiao4jCV8vv7JRDGBkjMiYRfHs+fmXvKgUqA/ZIHrKIHjd CJwYDUDDHzpRAWLk7ybp+esxuI1CQgk= X-Google-Smtp-Source: APBJJlFwIIFJo8TRsTeiFHxa+1q88ccHtoMFtp/Kc3+VpW6MEAcye/4DIUh0qg7K88ZUwV2XTgAyew== X-Received: by 2002:a17:90a:19ca:b0:25e:f6bf:badb with SMTP id 10-20020a17090a19ca00b0025ef6bfbadbmr5175239pjj.4.1688219605999; Sat, 01 Jul 2023 06:53:25 -0700 (PDT) Received: from mac.gemmaro.name ([240f:74:d1f0:1:ba1:e787:c9e:b1dc]) by smtp.gmail.com with ESMTPSA id c3-20020a17090a490300b0026307fa0442sm9083540pjh.49.2023.07.01.06.53.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Jul 2023 06:53:25 -0700 (PDT) From: gemmaro Date: Sat, 1 Jul 2023 22:49:04 +0900 Message-Id: X-Mailer: git-send-email 2.40.1 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/parallel.scm (massivethreads): New variable. --- gnu/packages/parallel.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) base-commit: 889e1dbae3b0d4ac2300b524b3dd6b8f0499ff5e diff --git a/gnu/packages/parallel.scm b/gnu/packages/parallel.scm index 569e98430c..a5c297b04a 100644 --- a/gnu/packages/parallel.scm +++ b/gnu/packages/parallel.scm @@ -12,6 +12,7 @@ ;;; Copyright © 2019-2022 Ludovic Courtès ;;; Copyright © 2020 Roel Janssen ;;; Copyright © 2021 Stefan Reichör +;;; Copyright © 2023 gemmaro ;;; ;;; This file is part of GNU Guix. ;;; @@ -48,6 +49,7 @@ (define-module (gnu packages parallel) #:use-module (gnu packages documentation) #:use-module (gnu packages flex) #:use-module (gnu packages freeipmi) + #:use-module (gnu packages gcc) #:use-module (gnu packages linux) #:use-module (gnu packages maths) #:use-module (gnu packages mpi) @@ -552,3 +554,29 @@ (define-public psimd "This header-only C++ library provides a portable interface to single-instruction multiple-data (SIMD) intrinsics.") (license license:expat)))) + +(define-public massivethreads + (package + (name "massivethreads") + (version "1.00") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/massivethreads/massivethreads") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0d93xf2zknq92wlcm7xc7zbja2fh3qyl543xx2qc64k3rslmf8yh")))) + (build-system gnu-build-system) + ;; Cannot built with glibc 2.34 or later. + ;; https://github.com/massivethreads/massivethreads/pull/15 + (inputs (list glibc-2.33 gcc-10)) + (home-page "https://www.eidos.ic.i.u-tokyo.ac.jp/research/massivethreads/") + (synopsis "Lightweight thread library") + (description + "MassiveThreads is a thread library that can spawn threads two orders of +magnitude faster than native operating system threads. It provides three APIs +to use: native intefrace, pthread-compatible interface, and TBB-like +interface.") + (license license:bsd-2))) From patchwork Sat Jul 1 13:49:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: gemmaro X-Patchwork-Id: 51486 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 558A927BBE9; Sat, 1 Jul 2023 14:56:33 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=unavailable 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 AEF5327BBE2 for ; Sat, 1 Jul 2023 14:56:28 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qFb57-0002H6-4q; Sat, 01 Jul 2023 09:56:09 -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 1qFb54-0002Gc-FH for guix-patches@gnu.org; Sat, 01 Jul 2023 09:56:06 -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 1qFb50-000687-SM for guix-patches@gnu.org; Sat, 01 Jul 2023 09:56:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qFb50-00030O-Ib for guix-patches@gnu.org; Sat, 01 Jul 2023 09:56:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#61678] [PATCH v3 2/2] gnu: Add smlsharp. Resent-From: gemmaro Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 01 Jul 2023 13:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61678 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61678@debbugs.gnu.org Cc: gemmaro Received: via spool by 61678-submit@debbugs.gnu.org id=B61678.168821972310467 (code B ref 61678); Sat, 01 Jul 2023 13:56:02 +0000 Received: (at 61678) by debbugs.gnu.org; 1 Jul 2023 13:55:23 +0000 Received: from localhost ([127.0.0.1]:57287 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFb4N-0002iI-0W for submit@debbugs.gnu.org; Sat, 01 Jul 2023 09:55:23 -0400 Received: from mail-pl1-f181.google.com ([209.85.214.181]:57377) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFb4I-0002eA-P6 for 61678@debbugs.gnu.org; Sat, 01 Jul 2023 09:55:21 -0400 Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-1b7f92b764dso14338395ad.2 for <61678@debbugs.gnu.org>; Sat, 01 Jul 2023 06:55:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688219712; x=1690811712; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=tCM9p58Lh6a8FWs7F3bXabOcoUeubb2UsOT8xfBvJ5I=; b=eGbA3IFnWn1Hp3faG1Kb4DzhCmvOmxK2PIRtBrtyT95ENHhCa5ckZMs+YAJAqHy9W6 WjIGLCzFQA8AXsolskWgC8RSeO2RhXVQH/jFWyam6fmjBJFznKdRzP52BKbp8W2JKgz4 AxdUTpeW6n80RTcpi5703cKC/h5Z7aeOEi+VTVnfE3pCdSVnUNpaTB03iiOIKruDa/ft IGekedhBJVRBoEd6lhxD4xoTURlefnV2/VgNX/YQ+PKA1Wr3SIgvE+GAiJEjPItUgsCh yxa6YtXN42L1BPlg6s/wseWOfHXmO/xYnUvors0CRcwHfdxMBK2WX6l8m62CZvtHjgUh b/oQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688219712; x=1690811712; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tCM9p58Lh6a8FWs7F3bXabOcoUeubb2UsOT8xfBvJ5I=; b=YA46eiypJ/Be9LQ6fXSSDp0ebKXrK8XJvbGMux68UlH3oVxzVfkX+omEPswZTS0xcC MoumJc4H1n5NmO9Gwb2AIs5aZW8k3mvII50TllO7/Q1AaYBr1Wk/AyZpUddGd3TkyONe SljDGp3uknMGugaQIfvF+TEQpmmfnTCEiRPIfQo+1da1AHyW2+27fKl0UrBfWB6EsoTN V3KDDRIpQbYX4EnHapgja6iBFwnyDxJY8DEAD+bfN73etXQ/o9OZztuP8t8neTIZIm/H 0IHaU6BpYFWfNjRSKmFSYH2rFuoMRMXyEW78pclnfmrcR7n1M+WTHEIswcBXn4AZdrGV Uoqw== X-Gm-Message-State: ABy/qLawvcp/QH29qdGYsPmNH2LLtf1Gm9szPpa2klFNybNfCBuzeLZP s6dYAOGhnT2C3YjM+ZXaNOhHdqJy4v4= X-Google-Smtp-Source: APBJJlGHxm4KEL8FpJN3IGKGnsNfAH5JRFQhev3+LBCjlDacYsS7uV4mT7V8+VcRhZOM6f/dhoWtrw== X-Received: by 2002:a17:90b:14e:b0:25e:d013:c22c with SMTP id em14-20020a17090b014e00b0025ed013c22cmr3532421pjb.47.1688219712470; Sat, 01 Jul 2023 06:55:12 -0700 (PDT) Received: from mac.gemmaro.name ([240f:74:d1f0:1:ba1:e787:c9e:b1dc]) by smtp.gmail.com with ESMTPSA id c3-20020a17090a490300b0026307fa0442sm9083540pjh.49.2023.07.01.06.55.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Jul 2023 06:55:12 -0700 (PDT) From: gemmaro Date: Sat, 1 Jul 2023 22:49:06 +0900 Message-Id: X-Mailer: git-send-email 2.40.1 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: , 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/sml.scm (smlsharp): New variable. --- gnu/packages/sml.scm | 57 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/gnu/packages/sml.scm b/gnu/packages/sml.scm index 368abf6cfa..81fa20e7ce 100644 --- a/gnu/packages/sml.scm +++ b/gnu/packages/sml.scm @@ -4,6 +4,7 @@ ;;; Copyright © 2018 Ricardo Wurmus ;;; Copyright © 2019, 2020 Brett Gilio ;;; Copyright © 2021, 2022 Foo Chuan Wei +;;; Copyright © 2023 gemmaro ;;; ;;; This file is part of GNU Guix. ;;; @@ -21,12 +22,17 @@ ;;; along with GNU Guix. If not, see . (define-module (gnu packages sml) + #:use-module (gnu packages base) + #:use-module (gnu packages bash) #:use-module (gnu packages lesstif) #:use-module (gnu packages libffi) + #:use-module (gnu packages llvm) #:use-module (gnu packages multiprecision) + #:use-module (gnu packages parallel) #:use-module (gnu packages xorg) #:use-module (guix build-system gnu) #:use-module (guix download) + #:use-module (guix gexp) #:use-module (guix git-download) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) @@ -340,3 +346,54 @@ (define-public smlnj (license (license:fsf-free "https://www.smlnj.org/license.html" "https://www.gnu.org/licenses/license-list#StandardMLofNJ")))) + +(define-public smlsharp + (package + (name "smlsharp") + (version "4.0.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/smlsharp/smlsharp") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0cwpp4azkr79vf3c0w3g3zxv1rdcbi4gs7kp80b7aa1b5cqv04bj")))) + (build-system gnu-build-system) + (arguments + (list #:parallel-build? #t + #:parallel-tests? #t + #:test-target "test" + #:phases #~(modify-phases %standard-phases + ;; NOTE: Needed for running SML# executables + (add-after 'install 'wrap-programs + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (libs (map (lambda (name) + (string-append (assoc-ref + inputs name) + "/lib")) + '("gmp" "massivethreads" "glibc")))) + (with-directory-excursion (string-append out + "/bin") + (for-each (lambda (file) + (wrap-program (basename file) + `("LIBRARY_PATH" prefix + ,libs)) #t) + (find-files "."))))))))) + (inputs (list llvm-11 gmp massivethreads glibc bash-minimal)) + (home-page "https://smlsharp.github.io/en/") + (synopsis + "New language in the Standard ML family") + (description + "SML# is a new generation of the Standard ML family. The main features +of SML# include the following: +@itemize +@item record polymorphism +@item integration with SQL +@item interoperability with C +@item separate compilation and linking +@item multithread support +@end itemize") + (license license:expat)))