From patchwork Sat Sep 7 09:51:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roman Scherer X-Patchwork-Id: 67706 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 EB87327BBEA; Sat, 7 Sep 2024 10:54:42 +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=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_VALIDITY_CERTIFIED, RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE,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 AFB7F27BBE2 for ; Sat, 7 Sep 2024 10:54:42 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sms8p-0004mp-Oc; Sat, 07 Sep 2024 05:54:03 -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 1sms8o-0004mG-Hi for guix-patches@gnu.org; Sat, 07 Sep 2024 05:54:02 -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 1sms8o-00060m-7q for guix-patches@gnu.org; Sat, 07 Sep 2024 05:54:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=Kha3JdqWubk7Xd+FArj0WPVh/xMBXdNWDjfafxUnpHs=; b=TDposYbX6cH+HxFyK26Il86R29HJddC2kEN8nGVKY301kg6NpOwoNdXpy+MuOuulBkrIA2sbDI/yxqWfZNH016cqn5gUfvWwLTjkMLtjT+obTDxqjuqA6/MlhvZl+7IJ3nADkcXZWp4/Q1yqVPPVm5QEu1hfkEOGTdb2G9HhR3fejda+ARTg5GSDlZ89qTXN65vuaCru6LsJAqkE+oJeygJV/VeuIorBDtJ3b8c8V0dmsSU0s5wUGdAdr+he4RvzBzUDVKXFkZ0tA7Wkt8ZVa0jLWe9Fzk8HbJ1i3FgMN9U2uX9YY0RyS6iPQ4hAQDugM2zvxcK7QKWKuomCtZG3kQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sms8o-0000UT-Ou for guix-patches@gnu.org; Sat, 07 Sep 2024 05:54:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72463] [PATCH v2 04/10] gnu: Add clojure-core-memoize. Resent-From: Roman Scherer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 07 Sep 2024 09:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72463 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72463@debbugs.gnu.org Cc: Roman Scherer Received: via spool by 72463-submit@debbugs.gnu.org id=B72463.17257027851746 (code B ref 72463); Sat, 07 Sep 2024 09:54:02 +0000 Received: (at 72463) by debbugs.gnu.org; 7 Sep 2024 09:53:05 +0000 Received: from localhost ([127.0.0.1]:54883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sms7o-0000Qj-Cn for submit@debbugs.gnu.org; Sat, 07 Sep 2024 05:53:05 -0400 Received: from mail-ej1-f48.google.com ([209.85.218.48]:61621) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sms7k-0000PU-9t for 72463@debbugs.gnu.org; Sat, 07 Sep 2024 05:52:56 -0400 Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-a8d100e9ce0so122999766b.2 for <72463@debbugs.gnu.org>; Sat, 07 Sep 2024 02:52:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=burningswell-com.20230601.gappssmtp.com; s=20230601; t=1725702709; x=1726307509; darn=debbugs.gnu.org; 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=Kha3JdqWubk7Xd+FArj0WPVh/xMBXdNWDjfafxUnpHs=; b=zq1JROE2/02YFxvKxILdZ/xwqyYZg+dBjhMa9D6DxOAfdW2nJoQHAQg8p44n/vpnhd aJ28EmS0/4diCIrHnPf4N2qbw78E7ZWNOu90U/ELb7swxOE/D3rGuzPr4KGReIiQlETW rQMtEosyvKY1rxJaT3d9eYTncfbg7kKz/nGayvWLgMTc8IdzPQn4wSGQ8eGsS4FPRKsK tpTbu8+voJbY0IZ950PukNJzVXIG+bQW1UiLzgLy9LZEcERh4TDhzOUIpTSVqnJ1cfrV 01taDVu/L861urLiI6zE9GHLWSQZlK1QlklGEVvTe/0fl2/JT70Kx7w01a7TayNKAGZd Q+Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725702709; x=1726307509; 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=Kha3JdqWubk7Xd+FArj0WPVh/xMBXdNWDjfafxUnpHs=; b=aA5hf/v9H8xVtPy1LCS08L/vImlDCN1o5OP73jISrEAKV+f49iDlXL5WVJMuVhucA4 A4O/412Fdx04c6z/bqZDxRWa/aTwJQ6C8AVMrYQjVhpK7HMm7ZXhwQqFYwIH+NWz2Lhx imBy7yoLuZVcisO6O3oSjJWpkZBeKrvya0FfuGfUJH4T/maJXnfy6aGwl0RtKpyg98N5 Nkg2YFyO2t4lc0+SP3m/rGjVAXg2ITWT5T7ROopyL2Zva4kEg5v75GgvAyMNwmhfcUO3 CKMcgbKczJgQuo7w9JOKuZz7KkWHIRYPpdL1hATrdLlsTt/CNfNe6K9zozMIr6pmOQz5 7R8Q== X-Gm-Message-State: AOJu0YyEHVj4FtqRB4tJh2Pl4JqnP9gRVvABeFfzMLPcNxO82SMzEvuF yjoTYFjfLS+Jjx1BM4acgQBy/E2XIACJls442MRyft4wlB9q6Dnab1pmAs8YDr2wvf8wimfSgK7 X X-Google-Smtp-Source: AGHT+IE9cwR/10tOqOh4UWEUgKwwFkpI++5o6fTMiu6I8DJ+YSPbzOBv1fPbc3bdYNvShkbM1baULw== X-Received: by 2002:a17:906:f59d:b0:a8d:caa:7ffb with SMTP id a640c23a62f3a-a8d0caa92ecmr308657566b.29.1725702708639; Sat, 07 Sep 2024 02:51:48 -0700 (PDT) Received: from localhost.localdomain ([2a01:599:a06:885c:78e0:c598:8647:eb0]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a8d25a09e21sm52801566b.84.2024.09.07.02.51.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Sep 2024 02:51:47 -0700 (PDT) From: Roman Scherer Date: Sat, 7 Sep 2024 11:51:29 +0200 Message-ID: X-Mailer: git-send-email 2.45.2 In-Reply-To: <5d11790ac0fdc5c0cfe7e30fc23530f6ddaede90.1725702551.git.roman@burningswell.com> References: <5d11790ac0fdc5c0cfe7e30fc23530f6ddaede90.1725702551.git.roman@burningswell.com> 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/clojure.scm (clojure-core-memoize): New variable. --- gnu/packages/clojure.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/clojure.scm b/gnu/packages/clojure.scm index 005a7f2b4a..7323b0181f 100644 --- a/gnu/packages/clojure.scm +++ b/gnu/packages/clojure.scm @@ -370,6 +370,33 @@ (define-public clojure-core-match (home-page "https://github.com/clojure/core.match") (license license:epl1.0))) +(define-public clojure-core-memoize + (package + (name "clojure-core-memoize") + (version "1.1.266") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/clojure/core.memoize") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0nys79zrvcnwgyxb91zlyl3nb4p6r6y4n5rbdvzqkvsxxazi9ji0")))) + (build-system clojure-build-system) + (arguments + '(#:source-dirs '("src/main/clojure") + #:test-dirs '("src/test/clojure") + #:doc-dirs '("docs"))) + (propagated-inputs (list clojure-core-cache)) + (synopsis "Memoization framework for Clojure") + (description + "A manipulable, pluggable, memoization framework for Clojure implementing +some common memoization caching strategies, such as First-in-first-out, +Least-recently-used, Least-used and Time-to-live.") + (home-page "https://github.com/clojure/core.memoize") + (license license:epl1.0))) + (define-public clojure-data-codec (package (name "clojure-data-codec")