From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Maxim Cournoyer Newsgroups: gmane.lisp.guile.devel Subject: [PATCH v9 11/18] module: Add (scheme sort). Date: Tue, 12 Dec 2023 23:37:50 -0500 Message-ID: <20231213044217.14093-12-maxim.cournoyer@gmail.com> References: <20231213044217.14093-1-maxim.cournoyer@gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24619"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Maxim Cournoyer To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Wed Dec 13 05:43:34 2023 Return-path: Envelope-to: guile-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rDH5q-0006FB-5q for guile-devel@m.gmane-mx.org; Wed, 13 Dec 2023 05:43:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rDH51-0004KY-Ha; Tue, 12 Dec 2023 23:42:43 -0500 Original-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 1rDH50-0004Je-3h for guile-devel@gnu.org; Tue, 12 Dec 2023 23:42:42 -0500 Original-Received: from mail-qt1-x835.google.com ([2607:f8b0:4864:20::835]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rDH4y-00073h-Nd for guile-devel@gnu.org; Tue, 12 Dec 2023 23:42:41 -0500 Original-Received: by mail-qt1-x835.google.com with SMTP id d75a77b69052e-4258e0a0dc1so38575001cf.2 for ; Tue, 12 Dec 2023 20:42:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702442559; x=1703047359; darn=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=q3cswiAvFAfJjawxj8tHcoZiGZZhRXl92f2Tgx39/6Q=; b=E5eZ+G36onEL6m/NogOPrjxVTYX9MZAX3gQXomKh7tu5lZlumQ1J5XMLfc17Kvqe89 pQxAHpbFTdkKuLZMoXazi797ctT9uoUmVpjrkoJuf78Q6Cgi2EonNbBu/oPs1RrV4w6h XSLRMaEfm+XD8P+OJgSxcYHzkEIDbOoEyuHXvQU+MnaYFwBsCZJo0nmu1QQ418Xpjug+ mhyV2xA6IrDEeucK1/49KD/GIlBcoLHLbN5GQOinbTeIXgujtH7fg+M6kraEX0nPkN/x +fYVOBv2c6b7eCJbPL3taKCpIISAX+4di0+7qh6KcEpJykYx8mqLXxAHBx9IYSj0RKWX c94Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702442559; x=1703047359; 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=q3cswiAvFAfJjawxj8tHcoZiGZZhRXl92f2Tgx39/6Q=; b=j/rddIpjJ0WdZVBvjOOeTW8y5+zdHNCiPORwt4rxG+ptqsR5kbttUxxSd2iEUc4NCY ssejY5CGOzwQEhX/vD3IUcB0G/wtim9cMhXfYegYktYgfZ4AKd6d+yIRkyiLc5Zt8rAy tmn2Ir/5ShW91ixgzzy25PFR6dM6siGWOcr3pTcTPeSf8KZNhwpLDIfCb24lcpG8Hoqr wWTPuJw/xE6nKaw/LoIlwcyqXd6deOQbihcA67+JE1EukOglihS8hOQ0Yk8YQmLhWli7 +iMp4nmckiPIHhiPEiRZzXKNSQJUuGMgNpRV+vQtguXa9IqMBBFEjHAhfWtJMWoI3iip IX0A== X-Gm-Message-State: AOJu0YzNay5ev4GQ4DUKc3y7G4CvyYCPvnMqHgyRBAiVlVykYeuWQljR l26Djwwn7NoyBv0Okn8j/CBpRWvszNWO2Q== X-Google-Smtp-Source: AGHT+IH21YfPc5aKGgxO37TaxgepZwcZRLca4fhPUpeMZu9s6OUvdP1+kx/31lTiDjAhfxKYT6nbTA== X-Received: by 2002:ac8:5802:0:b0:418:1ce4:72ae with SMTP id g2-20020ac85802000000b004181ce472aemr9260006qtg.54.1702442559359; Tue, 12 Dec 2023 20:42:39 -0800 (PST) Original-Received: from localhost.localdomain (dsl-157-186.b2b2c.ca. [66.158.157.186]) by smtp.gmail.com with ESMTPSA id s7-20020ac87587000000b004181138e0c0sm4621719qtq.31.2023.12.12.20.42.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 20:42:38 -0800 (PST) X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231213044217.14093-1-maxim.cournoyer@gmail.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::835; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x835.google.com 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.devel:22233 Archived-At: * module/scheme/sort.sld: New R7RS-large library shim for (rnrs sorting). * am/bootstrap.am (SOURCES): Register it. * NEWS: Update NEWS. --- (no changes since v5) Changes in v5: - Update NEWS NEWS | 1 + am/bootstrap.am | 1 + module/scheme/sort.sld | 9 +++++++++ 3 files changed, 11 insertions(+) create mode 100644 module/scheme/sort.sld diff --git a/NEWS b/NEWS index 45023d9fb..614a2bc7f 100644 --- a/NEWS +++ b/NEWS @@ -24,6 +24,7 @@ the compiler reports it as "possibly unused". ** Add (srfi 126), a hash tables library ** Add (srfi 128), a comparators library ** Add (scheme comparator) +** Add (scheme sort) * Bug fixes diff --git a/am/bootstrap.am b/am/bootstrap.am index a335782ff..3dd8ec65b 100644 --- a/am/bootstrap.am +++ b/am/bootstrap.am @@ -294,6 +294,7 @@ SOURCES = \ scheme/r5rs.scm \ scheme/read.scm \ scheme/repl.scm \ + scheme/sort.sld \ scheme/time.scm \ scheme/write.scm \ \ diff --git a/module/scheme/sort.sld b/module/scheme/sort.sld new file mode 100644 index 000000000..c1e77a736 --- /dev/null +++ b/module/scheme/sort.sld @@ -0,0 +1,9 @@ +;;; sorting.sld --- R7RS library exposing (rnrs sorting). +;;; +;;; SPDX-FileCopyrightText: 2023 Free Software Foundation, Inc. +;;; +;;; SPDX-License-Identifier: LGPL-3.0-or-later + +(define-library (scheme sort) + (export list-sort vector-sort vector-sort!) + (import (rnrs sorting))) -- 2.41.0