From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: What's missing in ELisp that makes people want to use cl-lib? Date: Wed, 15 Nov 2023 16:05:42 +0200 Message-ID: <22e4cb4d-a8f3-1530-881d-b8c59c5d969b@gutov.dev> References: <8334xcwank.fsf@gnu.org> <320999cc-6c83-2315-0044-cc0403400af3@gutov.dev> <9ab5d2bd-a648-cae0-a4a7-ae86be10af0f@gutov.dev> <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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23554"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: =?UTF-8?Q?Gerd_M=c3=b6llmann?= , Eli Zaretskii , michael_heerdegen@web.de, 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:06:56 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 1r3GXe-0005ll-Vn for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Nov 2023 15:06:55 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3GWu-0005QN-97; Wed, 15 Nov 2023 09:06:08 -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 1r3GWr-0005Q4-40 for emacs-devel@gnu.org; Wed, 15 Nov 2023 09:06:05 -0500 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r3GWb-0005za-0P; Wed, 15 Nov 2023 09:05:50 -0500 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 5D2C25C0131; Wed, 15 Nov 2023 09:05:47 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 15 Nov 2023 09:05:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1700057147; x=1700143547; bh=mgWNdV8L9ZAuC3Vag2hdC9qiX86rtSSnLjT zWv9ODOg=; b=Zv7GsMPNOMDmpzoODQ4Ugac6yGWXqMxVs/Hi5DvzRy1uEDSKML/ quSBEOnIPBGFWbpzxHxO1LzTLj4O2K2+D2hV1vU/BHUbzLq9LS642F8ggyqWmQa0 yxaETskNVRLPbxRH9GWrNd5nTYXCn3mtXM1K2w/0QLIAMK403V91XBXny6S46hkJ uWHr6b6r8jH1JCeRDTt41A0MVfYgM9g492emE9E68zsNZYN1yIBJS8AnWm2EBx3G TemiptF14JDBUGlVIMCCxWO7pC+wfprOEpLKKtZsXktJvB6O/9Gv0ojZhQrk37Dx HU+8xkyk6knLqhJ3N2/pp3+9IbqBs1cf23Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1700057147; x=1700143547; bh=mgWNdV8L9ZAuC3Vag2hdC9qiX86rtSSnLjT zWv9ODOg=; b=G6w00zVKeMq2maZQwdqrMdiW3X1eC12E2ke0JeJ/kGfnUHOYRKA qzaBMwBiFOnj9IiaAY2VtYEaKaoLLcLRCy5Up6Bt2+VPCDRu8jsu+yw60EtStog+ UUJuOAhKIqLOVHglfwP78CeMQoLcvo7HkkaNvYsJdSfiO/9qBYf12NG1Yi4MhIg4 QxV6BVBI1rIv5k29OWOOX80laZDjMKoj5UkBdlvdF/Wxu+e+Skl4hFWdacx81bNU 1wtPQWG/JxUWBBHalYez9SqzyaX4GJQpTEoHG5zq9N8q7DeT6MCrl0t1Ih6TL2EE 54F69Xk0BsKLxyc3vnnyFLAPSSl31W0nFkA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudefiedgheegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhephfffheeljeffgeffueeghfekkedtfffgheejvdegjeettdduheeufffggfef jeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 15 Nov 2023 09:05:45 -0500 (EST) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=66.111.4.26; envelope-from=dmitry@gutov.dev; helo=out2-smtp.messagingengine.com X-Spam_score_int: -46 X-Spam_score: -4.7 X-Spam_bar: ---- X-Spam_report: (-4.7 / 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, NICE_REPLY_A=-1.895, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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:312762 Archived-At: On 15/11/2023 14:14, João Távora wrote: >>> But say I did that seq-do, then what is the seq-contains-p generic good >>> for then? Why some many redundant generics that the user learns the >>> hard way have to be consistent with each other? >> So any new type gets a lot of functions implemented very easily, and >> could add specialized implementations for performance. > Fair enough. Except, as you noted, those optimizations can be > completely nullified overnight, when trying to optimize something > else. I don't see where they would be "completely nullified". The gains seem consistent, even if they don't extend as much to certain scenarios, like custom test-fn. Even that one should be improved, though. More importantly, I'm not seeing any meaningful regressions, in any related or different scenario. >> the switchover would tank the performance of its callers. >> As long as the observable behavior stays the same (aside from >> performance), that seems fine. > I don't think this is "fine" at all to tank user code performance, > not from any library, much less such a basic foundation library. If that is the only drawback we can find, it is an unavoidable one. But that is the price one has to pay for correcting a design mistake. We're not going to do this every Tuesday.