From patchwork Sat Jul 10 20:54:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Charles X-Patchwork-Id: 31278 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 BA37E27BC83; Sat, 10 Jul 2021 21:55:11 +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, FREEMAIL_FROM,HTML_MESSAGE,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 5416327BC81 for ; Sat, 10 Jul 2021 21:55:11 +0100 (BST) Received: from localhost ([::1]:36464 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m2K0E-0003uB-F0 for patchwork@mira.cbaines.net; Sat, 10 Jul 2021 16:55:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40450) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2K06-0003tv-Nn for guix-patches@gnu.org; Sat, 10 Jul 2021 16:55:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50242) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m2K06-0000Ro-GR for guix-patches@gnu.org; Sat, 10 Jul 2021 16:55:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m2K06-0005ni-G8 for guix-patches@gnu.org; Sat, 10 Jul 2021 16:55:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49513] Add cl-cache-while Resent-From: Charles Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 10 Jul 2021 20:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49513 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 49513@debbugs.gnu.org X-Debbugs-Original-To: "guix-patches@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.162595048922273 (code B ref -1); Sat, 10 Jul 2021 20:55:02 +0000 Received: (at submit) by debbugs.gnu.org; 10 Jul 2021 20:54:49 +0000 Received: from localhost ([127.0.0.1]:33555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m2Jzt-0005nB-6M for submit@debbugs.gnu.org; Sat, 10 Jul 2021 16:54:49 -0400 Received: from lists.gnu.org ([209.51.188.17]:52194) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m2Jzr-0005n4-Th for submit@debbugs.gnu.org; Sat, 10 Jul 2021 16:54:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40432) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2Jzr-0003sS-LH for guix-patches@gnu.org; Sat, 10 Jul 2021 16:54:47 -0400 Received: from mail-40138.protonmail.ch ([185.70.40.138]:26351) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2Jzp-0000Gz-Pn for guix-patches@gnu.org; Sat, 10 Jul 2021 16:54:47 -0400 Date: Sat, 10 Jul 2021 20:54:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1625950483; bh=WSmW/hyN134LgjyzkSzE4AtKfM441PJZzV9J9JIvLdw=; h=Date:To:From:Reply-To:Subject:From; b=bpV+T1gXJZ5eKOYoM0mVE6VCr2KYZViCHslXcuqT5ADV/K5+4MpU+rn0F4Qx1CP3F QB9keLcH/u2TeVMVXi4PUwrNq2yFcCke88hRoXfHEYyJ2NA1MEwkSszWrEnJi3T0Yb m+aNpo4J3QGQZwCqbq/aoddx8JhP15MmwLWbcYkU= Message-ID: MIME-Version: 1.0 Received-SPF: pass client-ip=185.70.40.138; envelope-from=charles.b.jackson@protonmail.com; helo=mail-40138.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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" Reply-to: Charles X-ACL-Warn: , Charles via Guix-patches X-Patchwork-Original-From: Charles via Guix-patches via From: Charles X-getmail-retrieved-from-mailbox: Patches Empty Message From c4c7bf6d63fa7ef0c426eb51307951fb577fead5 Mon Sep 17 00:00:00 2001 From: Charles Date: Mon, 5 Jul 2021 08:15:12 -0500 Subject: [PATCH] gnu: Add cl-cache-while. * gnu/packages/lisp-xyz.scm (sbcl-cache-while, ecl-cache-while, cl-cache-while): Add new variables. --- gnu/packages/lisp-xyz.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm index c4c63958c9..fe1c010811 100644 --- a/gnu/packages/lisp-xyz.scm +++ b/gnu/packages/lisp-xyz.scm @@ -9820,6 +9820,34 @@ caching based on arguments (an expanded form of memoization).") (define-public ecl-function-cache (sbcl-package->ecl-package sbcl-function-cache)) +(define-public sbcl-cache-while + (let ((commit "38e9ffbdb2c894670c366c1e5802ffcc8cfd43a7") + (revision "1")) + (package + (name "sbcl-cache-while") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/charje/cache-while") + (commit commit))) + (file-name (git-file-name "cache-while" version)) + (sha256 + (base32 "1qil68rfn5irmkb0jk1f6g1zy80wgc3skl8cr4rfgh7ywgm5izx3")))) + (build-system asdf-build-system/sbcl) + (home-page "https://github.com/charje/cache-while") + (synopsis "Temporary / one-time caching macro for Common Lisp") + (description "A Common Lisp macro for defining temporary caches that +invalidate based on expressions evaluating to different values.") + (license license:llgpl)))) + +(define-public cl-cache-while + (sbcl-package->cl-source-package sbcl-cache-while)) + +(define-public ecl-cache-while + (sbcl-package->ecl-package sbcl-cache-while)) + (define-public sbcl-type-r (let ((commit "83c89e38f2f7a7b16f1012777ecaf878cfa6a267") (revision "1")) -- 2.32.0