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: Wed, 15 Nov 2023 15:41:09 +0100 Message-ID: <87fs172i62.fsf@gmail.com> References: <87bkcbrgnr.fsf@posteo.net> <25924.21015.19614.951576@orion.rgrjr.com> <87bkc4jpja.fsf@dataswamp.org> <12da6bcb-1818-7fbe-12af-8d4607724332@gutov.dev> <87il6bt4z0.fsf@yahoo.com> <8734xetjkk.fsf@yahoo.com> <87cywhsrcf.fsf@yahoo.com> <87cywgx1z0.fsf@web.de> <83wmuowwp3.fsf@gnu.org> 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="21552"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , Michael Heerdegen , emacs-devel@gnu.org To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 15 15:42:07 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 1r3H5g-0005O3-D5 for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Nov 2023 15:42:04 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3H4z-0001lT-A0; Wed, 15 Nov 2023 09:41:21 -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 1r3H4v-0001lD-U9 for emacs-devel@gnu.org; Wed, 15 Nov 2023 09:41:17 -0500 Original-Received: from mail-oi1-x22d.google.com ([2607:f8b0:4864:20::22d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r3H4t-00075S-2Q; Wed, 15 Nov 2023 09:41:17 -0500 Original-Received: by mail-oi1-x22d.google.com with SMTP id 5614622812f47-3b6c31e604cso4152441b6e.2; Wed, 15 Nov 2023 06:41:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700059272; x=1700664072; 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=uVsdk0XIbsyD8MQohGw+fF3i966cylh8XaIcuPBhv5o=; b=nDqEwbCsf7JFre2NyTFiRRL73c3gi5PnRj7uW5y/dSp0DiZ2oivFoYGJUDI1qKnVii erI0VfrZuZq/Feq18iF8LZ3j8fcEVY7QezlNhfQaJ7l493NXW5Nu4NaMJG71r+yWLmEe gDdOeCmYt+l6XEV8TcW9WXzLUBannaRDfI5NlUkWntW4CZAjd05AhEzqakGb8dOU908M NIGPWuvbjGItJd7qImv1ZhoqxDS/4ZCO/viTjDQtyMqzXBVUuGbRlxB95tqyUITyV08O NXaAto+Yo2wsKp1gI7BaKVso3vmMrXFxMXaYfDhen2+X01leHPwkPVhZryevvPv3NKhj 6EGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700059272; x=1700664072; 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=uVsdk0XIbsyD8MQohGw+fF3i966cylh8XaIcuPBhv5o=; b=mRHu5yhiOmZ8sIrMDupeuCU/fenmEUG5THO0l2cZrGDH5qPYOvuyQYkRrfdvZuvU25 KOnHLWQ/Ke9A+aEJtWgaPh8KTyD8yf+b26iN2yL0ZIX/GEjAua1FVmIJLjdwhid29x5k EOMy6uYG9f5YWV4OucvcfJ101jELdolGGbeHXtonjz1bD5jmeCt5vWyRotUxhOAF7Ld9 rKppIMARnN2c1qaQcGvp4jGdLwhgejofRmZdAOYcxXoinmF1iTiNYC+OKYc6JyJ3qyVX eb8NpIysd9ZE91SNSbw4YlecV2c0uBPmdhdnPvrdTVZOi4R/Q1gKkTdhVxrpjRokRAC8 I+kQ== X-Gm-Message-State: AOJu0Yw8fOas/TFv+tLDPbOddeZVyd/JqrAghPRVaH0DdDvH8ZZylVl8 vPqjjutasa8JOQHN5BxsjrTD3T6a0C0= X-Google-Smtp-Source: AGHT+IGianAsp59qRBfkvaXidDMUak7EYVLI/dV/fq0lUuwK3TgMgkYVAR07aYMPTo7LgUtTCo/54g== X-Received: by 2002:a05:6359:a22:b0:16c:499:bbbd with SMTP id el34-20020a0563590a2200b0016c0499bbbdmr2724146rwb.21.1700059271907; Wed, 15 Nov 2023 06:41:11 -0800 (PST) Original-Received: from ars3 ([2601:193:8201:6b70:ce48:802c:b8ef:d777]) by smtp.gmail.com with ESMTPSA id dw15-20020a0562140a0f00b0067079ecca05sm574339qvb.108.2023.11.15.06.41.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 06:41:11 -0800 (PST) In-Reply-To: (=?utf-8?Q?=22Jo=C3=A3o_T=C3=A1vora=22's?= message of "Sat, 11 Nov 2023 13:09:11 +0000") Received-SPF: pass client-ip=2607:f8b0:4864:20::22d; envelope-from=arstoffel@gmail.com; helo=mail-oi1-x22d.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:312763 Archived-At: On Sat, 11 Nov 2023 at 13:09, Jo=C3=A3o T=C3=A1vora wrote: > seq.el strength over cl-lib.el is that it is a generic sequence > processing library. IMO it _should_ be used if there is the suspicion > that the sequences being in that data being processed by a given > function can be custom seq.el sequences. Or when there is good > reason to suspect that one they might be such custom sequences. > > I think that seq.el _should_ be used in those situations because > it expresses exactly this fact, so it becomes self-documenting. > > I think the argument that Gerd is making in his economic > contributions is that very often seq.el is overkill. > > For example, in its current form should _not_ be used when > there is certainty that the sequences are Lisp listsm because as I > showed elsewhere here, seq-some is significantly slower than > cl-some and cl-loop when processing lots of small lists. FWIW, I don't really use seq for its polymorphism. Rather, I just care about miscellaneous operations such as seq-some, seq-filter, seq-uniq where a list-only built-in is not available. >From what I see in other people's code, this is by far the most frequent reason to use seq- functions.