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 v4 07/10] module: Add (scheme sort). Date: Wed, 22 Nov 2023 22:25:18 -0500 Message-ID: <20231123032659.5637-8-maxim.cournoyer@gmail.com> References: <20231123032659.5637-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="39627"; 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 Thu Nov 23 04:28:39 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 1r60ON-000A6L-1n for guile-devel@m.gmane-mx.org; Thu, 23 Nov 2023 04:28:39 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r60NA-0004Si-IP; Wed, 22 Nov 2023 22:27:24 -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 1r60N9-0004Ri-EK for guile-devel@gnu.org; Wed, 22 Nov 2023 22:27:23 -0500 Original-Received: from mail-qt1-x82c.google.com ([2607:f8b0:4864:20::82c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r60N6-0004NQ-EK for guile-devel@gnu.org; Wed, 22 Nov 2023 22:27:23 -0500 Original-Received: by mail-qt1-x82c.google.com with SMTP id d75a77b69052e-41ea8debcdaso2122731cf.1 for ; Wed, 22 Nov 2023 19:27:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700710039; x=1701314839; 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=+oh/njhHZh+0j3bZ5t5d8A92LAUPXVHRgEX+suUx8ow=; b=IE9xumlBoJqZ5nTJ1RoLMLNRMZ5ccdZ18A0Pw1wLaNiVEbP8/xE2y8KkOPw+MfU+Hb wqEH3+Zidb+2oraOLlo59FUuhyYxZIg0AB9cqHbzGBbMWCqJCo77nLwN5E0dsqbwEqrf vAZHmF2vjjcxsQsB4s9th71/e3nQ3ou3gWo2FPjT9A0YLMD4M5ramjgdDZrgIx1SkbCU 4wyxavCYRP0b52lFiqsKkAcr0ZectgNJIcR6TlHyOzHWjgk/mSy8LJdnxIDm64L7P8Gp aV3AYCGsyOnAIkC3iP0tk/uAvubUT/q0EnbPQVMkQSjviV86/WRpwxwJH4RgjWkY3ahw 7lDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700710039; x=1701314839; 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=+oh/njhHZh+0j3bZ5t5d8A92LAUPXVHRgEX+suUx8ow=; b=WCWImIPHWXxpKLiTeFvmQCWRUHPY4WRrvImIouTMEjEMJbfkw742DKysi6BZdTxNHo RwYe1yMv82UROK/F3gj4CzZgH/oE1rrWwdDaTWPf7EVI2tQhleYF1a1d0qZV3Rm74DJk nYn89/R+z/ekPJFE8IiV0HL/8jiRL3Jj8X1yw04T9XAQ6Sn136HtwSYd3rJTz5L57MZc FWj6QryIWoXC4lqHIFWLNZxuaY0tJft5i3WQNjz7RbtGqhPMkTRJ4NFWOViaQKRzfzuY lMKIy3KwuOXEM+AIpTDhlHpKW/PX7ZnV5BxldrIR+OgxCb1GPbo7HMZoy2GXAICav1Wl cJVQ== X-Gm-Message-State: AOJu0YyXcucS7tYkPug0PwUHMdXWFqifFSQw0VAhifz9cqaeGFS2wjAu i6gSu+mLRqNnEyAQShxi29KeQnBIoG4= X-Google-Smtp-Source: AGHT+IH0r2jNeyFRN6cZrlBVT7xHkZ6XMOlwVkbR8OL1aiPpvfPYIFMsGd52vIjmdQx7pYFczkzZ/Q== X-Received: by 2002:ac8:580f:0:b0:423:708a:778e with SMTP id g15-20020ac8580f000000b00423708a778emr5308601qtg.58.1700710039300; Wed, 22 Nov 2023 19:27:19 -0800 (PST) Original-Received: from localhost.localdomain (dsl-205-233-124-102.b2b2c.ca. [205.233.124.102]) by smtp.gmail.com with ESMTPSA id k18-20020ac84752000000b0041a6fb444f6sm137285qtp.86.2023.11.22.19.27.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 19:27:18 -0800 (PST) X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231123032659.5637-1-maxim.cournoyer@gmail.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::82c; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x82c.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:22114 Archived-At: * module/scheme/sort.sld: New R7RS library shim for (rnrs sorting). * am/bootstrap.am (SOURCES): Register it. --- (no changes since v1) am/bootstrap.am | 1 + module/scheme/sort.sld | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 module/scheme/sort.sld diff --git a/am/bootstrap.am b/am/bootstrap.am index 2990d91c3..de5eddb58 100644 --- a/am/bootstrap.am +++ b/am/bootstrap.am @@ -289,6 +289,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..d8b560d1f --- /dev/null +++ b/module/scheme/sort.sld @@ -0,0 +1,21 @@ +;;; sorting.sld --- R7RS library exposing (rnrs sorting). + +;;; Copyright (C) 2023 Free Software Foundation, Inc. +;;; +;;; This library is free software: you can redistribute it and/or modify +;;; it under the terms of the GNU Lesser General Public License as +;;; published by the Free Software Foundation, either version 3 of the +;;; License, or (at your option) any later version. +;;; +;;; This library is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;;; Lesser General Public License for more details. +;;; +;;; You should have received a copy of the GNU Lesser General Public +;;; License along with this program. If not, see +;;; . + +(define-library (scheme sort) + (export list-sort vector-sort vector-sort!) + (import (rnrs sorting))) -- 2.41.0