From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: What's missing in ELisp that makes people want to use cl-lib? Date: Thu, 16 Nov 2023 16:24:48 +0000 Message-ID: References: <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> <22e4cb4d-a8f3-1530-881d-b8c59c5d969b@gutov.dev> <339b58d6-5a44-8393-c2cd-4c935147dde3@gutov.dev> <877cmhrcsf.fsf@gmail.com> <87jzqhlm9q.fsf@web.de> 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="7746"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 16 17:22:59 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 1r3f8t-0001su-El for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Nov 2023 17:22:59 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3f81-0007GR-9J; Thu, 16 Nov 2023 11:22:05 -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 1r3f7u-0007Dz-JY for emacs-devel@gnu.org; Thu, 16 Nov 2023 11:21:59 -0500 Original-Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r3f7s-00017u-BJ for emacs-devel@gnu.org; Thu, 16 Nov 2023 11:21:57 -0500 Original-Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-507cd62472dso2358473e87.0 for ; Thu, 16 Nov 2023 08:21:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700151713; x=1700756513; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=utqkktO3oFJG/Dn4C/t/7FhUWjnFbSPYAa1sLVcos/Q=; b=ml8Pbjam+sfpkGEuw0aum5sWeBPaRgcVGOwVeJGn0py8iHQacOReCdcjwxd3QfNOCN cbrGf6LD3N45iUWyJo/SvMWVe6vN9Uoj54Q7o3jxAR+rNHeThfNtmiHzSp6ArVqnZCYo 3FmBRq+wVuM6OA+b3yQqCA+WqGkcq7bPp4b7NV6M9NuY4FimRIq5yWzIkuoQRX4LNjXM 38oiQXn+tEwdaNt2RfVNsNxeKQNNNt9odrvYyHX2KGxN7Ok0xgxnq0XZR3AcfivRz6of Ovo9mE4ymhHKl7QUN+DW2z5gbE3/79t+y1wmKkYVtR2hJSfkgDxY9U3VfhyqSFZDoHuj zymw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700151713; x=1700756513; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=utqkktO3oFJG/Dn4C/t/7FhUWjnFbSPYAa1sLVcos/Q=; b=AOSONTMxewXHg8YfbC2V7q8Gr8U3N4T7yiW6dlcbIpUceBehs9VdDzcrmpic7kb3Oe Gk+a7jJYtUJqqFuyrq1YKy6IKD2Rm5+8R+hrEgUow2BA3+8RZX0eneCyq/5GmCuvYDxW hX/P3O56e/skoS1UpnGJtiZVYSZa7z3rl26nC4x7nPNcfeoK684qJRigpB+iIRLJbNv+ MbjTZWzJ0dxAalF6ig/zByZavMGRUMfbHQPbGxnVas3cwLwdMqlYBfZGatYb67vh9T1s Hw2U0hbkIDpGLqNIyzg9Tme/TGk2ImE0TMV9oBZqhRkFlNw2aBCCOW8Zp1PhKR4sykW2 TDgg== X-Gm-Message-State: AOJu0YzqGFEinf+Y+cRJDFseg95p6bBUtfBMYoNxSfJXtovN7F8PU+ax BpbLTlBXMZZSNOh4iE1umvgKvd2lHG3WHd80veWIgLSqr+Y= X-Google-Smtp-Source: AGHT+IHCAdlnxu3KQm2AwkGCKu0Mz1Sxh+FXsijkZTmI4QcDQsQIiufmPdrcd6ZLi14uLx6x6tlqOg3oD7R29CWcXC0= X-Received: by 2002:ac2:4906:0:b0:509:5176:3040 with SMTP id n6-20020ac24906000000b0050951763040mr857687lfi.8.1700151713318; Thu, 16 Nov 2023 08:21:53 -0800 (PST) In-Reply-To: <87jzqhlm9q.fsf@web.de> Received-SPF: pass client-ip=2a00:1450:4864:20::12e; envelope-from=joaotavora@gmail.com; helo=mail-lf1-x12e.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:312810 Archived-At: On Thu, Nov 16, 2023 at 4:02=E2=80=AFPM Michael Heerdegen wrote: > > Jo=C3=A3o T=C3=A1vora writes: > > > > (("destructuring" (cl-destructuring-bind "FASTEST" 0.010157632 0 0.0) > > (pcase-let "1.3x SLOWER" 0.013152518000000002 0 0.0) > > (seq-let "14.8x (rel 11.4x) SLOWER" 0.15057331499999999 > > 6 0.04785139399999849)) > > Isn't seq-let directly translated into a pcase-let call (it's a > simplistic macro)? How is this possible? Yes, but look closely at the expansion ;-) And you can also think. How can that pcase-let call know at at runtime whether it's dealing with a bare list, a vector/string, or a custom sequence. Only through runtime indirection obviously! Based on what? Generic functions no less, seq-elt in this case, which become slower when added to. Jo=C3=A3o