From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.devel Subject: Re: What's missing in ELisp that makes people want to use cl-lib? Date: Mon, 20 Nov 2023 15:56:36 +0100 Message-ID: <87h6lg323f.fsf@gmail.com> References: <87r0kuqxbf.fsf@gmail.com> <54e115a2-fc36-3056-a030-0dbf32416ddb@gutov.dev> <43f290b0-4119-597b-c89a-0fb4c7db1665@gutov.dev> <1e7fe1ef-af7d-3222-7b9e-b569b3c97ccf@gutov.dev> <22e4cb4d-a8f3-1530-881d-b8c59c5d969b@gutov.dev> <339b58d6-5a44-8393-c2cd-4c935147dde3@gutov.dev> <877cmhrcsf.fsf@gmail.com> <56accb10-2a3c-7670-1687-4ae1d7e374e8@gutov.dev> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4644"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Stefan Monnier , Dmitry Gutov , =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= , Eli Zaretskii , michael_heerdegen@web.de, emacs-devel@gnu.org To: Gerd =?utf-8?Q?M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 20 15:57:29 2023 Return-path: Envelope-to: ged-emacs-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 1r55iK-00012M-BO for ged-emacs-devel@m.gmane-mx.org; Mon, 20 Nov 2023 15:57:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r55hj-0006jj-08; Mon, 20 Nov 2023 09:56:51 -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 1r55hi-0006jb-7q for emacs-devel@gnu.org; Mon, 20 Nov 2023 09:56:50 -0500 Original-Received: from mail-qt1-x836.google.com ([2607:f8b0:4864:20::836]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r55ha-0002OA-Ox; Mon, 20 Nov 2023 09:56:49 -0500 Original-Received: by mail-qt1-x836.google.com with SMTP id d75a77b69052e-41e1921da84so27710501cf.1; Mon, 20 Nov 2023 06:56:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700492198; x=1701096998; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=cU1vIOYUZRO5z+xWOOADWiUqCdA1fQaRHbc8iU3GFb0=; b=euNf2eUr9uN+AR02v2RNct+M0j5ftNCvmbm2CdJSXEFiafgi+WCJtKtl8s9s6pYz0g hxsGXaTKROaOXu0pRe0BRzd7Eq0EamWbuT3C/k07E/vrnYagi/v3oHuFDpnXT78eOt9O SoROfCXQNfBNN9uxAGXVZASObHR4UDXWFXb4yF7lXJF0Id91+Z+QvUxD2sFUDgnGEkGn yaZVVhBUhaeook1P7oPSuJUXhGH1xW962lF9ok7Kq8wTZyJxGYr2KcY+7rkmER12/17B A32yyXurufKMUsdRq90G4rI5vvH/N6AiVMGv3Yvs7SOD4fTZEXRLUEfrnym9P5higAsk cm0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700492198; x=1701096998; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=cU1vIOYUZRO5z+xWOOADWiUqCdA1fQaRHbc8iU3GFb0=; b=O9ETLxifhTxRGN2ffFMMBmDhIM87ciIR3sf285zFTeHlK4zlDALSbWwKBI1UdCt+lZ zsM0gzJCCwUMUQuOW/IJwXDe5zjeKuneiJPQplq+KqmLltwIswwOrsD7M9Hdcnv13Rxb MkSmZ4e4ISBPdScwQt8YbVS3FFUI4pgHe7YiyGlWZmW1skkVT0vjJs58PbuTKUdaHnXs 3Ut7sqN9kIqEFxHSohQMQGszhWDcKZWlreF2BvAXIpzPLOKmEWjV0srOlGuqWFoK98BP s/uMZGXWvThqR2/kY4Tn4Qqovw1tVeOoSE4+EqvGkx90ZwQcIq3QBoEa/nJbqLohHpAa 98wA== X-Gm-Message-State: AOJu0YzDV8oWhiaKZq4OmMt/AAVnl6wy/u5AnChrArZT2AoTXKKakPsN sndY/SAYQiAF0fl4HQXE36yjUaCvIC2+ow== X-Google-Smtp-Source: AGHT+IEmx1wq7GwhNvcNC7fnNreXN4U+O3L22xf3jy9zcGf6sGr5tuRUonIsizF08dNg63xzH9FBhg== X-Received: by 2002:a05:622a:1707:b0:418:f70:df1 with SMTP id h7-20020a05622a170700b004180f700df1mr10875682qtk.42.1700492198453; Mon, 20 Nov 2023 06:56:38 -0800 (PST) Original-Received: from ars3 ([2601:193:8201:6b70:ce48:802c:b8ef:d777]) by smtp.gmail.com with ESMTPSA id b3-20020ac86783000000b004196a813639sm2693447qtp.17.2023.11.20.06.56.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 06:56:37 -0800 (PST) In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llmann?= =?utf-8?Q?=22's?= message of "Sat, 18 Nov 2023 06:58:33 +0100") Received-SPF: pass client-ip=2607:f8b0:4864:20::836; envelope-from=arstoffel@gmail.com; helo=mail-qt1-x836.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: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:313053 Archived-At: On Sat, 18 Nov 2023 at 06:58, Gerd M=C3=B6llmann wrote: > And of course we're not a millimeter closer to answering the question > why seq.el should replace cl-lib. I think the original question was, why do you need an extra library of basic list processing functions in a LISt Processing language... Also, assuming performance is indeed crucial, shouldn't they be implemented in C? The vocabulary missing from the built-ins is pretty small. The following are the fundamental ones IMO: - filter aka remove-if-not - some (reduce is also academically fundamental, but I guess dolist is the more idiomatic replacement.) The following I would count as nice-to-haves: - drop (already exists under a funny name) - drop-while (basically like `member' with a different TESTFN) - take-while - perhaps find and position (those are small variations on `some') The rest of seq I would count as "sporadically handy" (seq-partition, seq-mapn, etc) or "pretty much unnecessary" (seq-difference, seq-intersection, etc).