From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Chen Zhaoyang Newsgroups: gmane.emacs.help Subject: Re: stats say SBCL is 78 875 % faster than natively compiled Elisp Date: Tue, 14 Feb 2023 23:04:16 -0600 Message-ID: <87cz6b8qpb.fsf@gmail.com> References: <87bklw7ka3.fsf@dataswamp.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8824"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 15 06:05:04 2023 Return-path: Envelope-to: geh-help-gnu-emacs@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 1pS9yZ-00020C-RA for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 15 Feb 2023 06:05:03 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pS9xu-0002L8-6M; Wed, 15 Feb 2023 00:04:22 -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 1pS9xt-0002Gg-DO for help-gnu-emacs@gnu.org; Wed, 15 Feb 2023 00:04:21 -0500 Original-Received: from mail-il1-x134.google.com ([2607:f8b0:4864:20::134]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pS9xr-0001fM-T5 for help-gnu-emacs@gnu.org; Wed, 15 Feb 2023 00:04:21 -0500 Original-Received: by mail-il1-x134.google.com with SMTP id t7so5446850ilq.2 for ; Tue, 14 Feb 2023 21:04:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:to:from:from:to:cc:subject:date:message-id:reply-to; bh=+NpkIQLLkftY5pv+JWl4lLop40de/CEAFyrRhW/R2Y0=; b=F7zpOMJCDbwhETyGEOcF4dop6DGYBx5gVoKibIMByeZzzntYIhsx2HOq6t8dV2dX2k wy69JORNoeZekAW1dWbE0HTVeQnJaYfqwGYnObVMDKaO6q5TUEQIk3OGlH8E45JyZ57f dEQX3zMCngLvv0VZ6eabyvO9irre8wJk2X0Myyok2nDfZEMz/8jRP4GyWy/ulSM8eFG9 aW7lt8bwo8GD4i+kCv8E3LtQzpS1iM9F/2qjbq+whcYMk9Zt5CXbg/xHxOU7u3Jk/ZUJ 4IdU/qRQZEeOPnBMXUrnEUQOL61zlcbBKW/hWAenAbLKPK9WFISNtcKqAT0TJ6xboL2c 8FPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=+NpkIQLLkftY5pv+JWl4lLop40de/CEAFyrRhW/R2Y0=; b=2qrR3DhfkfDwcjrODEqZf0U7khcFFsjOr2rgPuJRfCooPMVnZoF7ivkTJQ7QvDsTAV rD4T9PtUuj01TMNDprlrfQUGzPlDB5rvTkp7oismsRaWWN15Ff884s5PI8ORhHgUkF5p 4MY6AZpCxDuWw6yp/Y2jba+GMhM//94FT4a6Ad/8wI6d09jdi8TJEIgwRIMBdy0Z+WL6 ldDE0cZe8tM1csqpWCU4craj5NXMbDmh/l/rdXRvy/vnQytq/UbQip6qfKvHyfa3l0CV KRbKRWWfSpQQ3SPp2kTj8BPC4/Akjb2kcGoHphHzMOeg0GF1ftEkBHYD7BotyuYOIwHr 593g== X-Gm-Message-State: AO0yUKUtZAp2tABl5IUlenQVl7fUkJNIWoVf9PJSDwpSFW/wm+qmej2J xZkJF4C/kYNOKUknY6JgD1B/Lz+f0qDwNw== X-Google-Smtp-Source: AK7set/CKdI8kL2pbeAC94Oa1WK2CSLn9xK/XtZ8YzSDYYCmNaY6+3bxKWqs3IeQe3yH5TWRPbAAYw== X-Received: by 2002:a05:6e02:1807:b0:315:6e7f:f413 with SMTP id a7-20020a056e02180700b003156e7ff413mr911808ilv.4.1676437457690; Tue, 14 Feb 2023 21:04:17 -0800 (PST) Original-Received: from campania (host-140-21.ilcub310.champaign.il.us.clients.pavlovmedia.net. [50.30.140.21]) by smtp.gmail.com with ESMTPSA id h4-20020a02c4c4000000b003c4eb5cb22csm303735jaj.134.2023.02.14.21.04.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Feb 2023 21:04:17 -0800 (PST) In-Reply-To: <87bklw7ka3.fsf@dataswamp.org> (Emanuel Berg's message of "Tue, 14 Feb 2023 08:56:04 +0100") Received-SPF: pass client-ip=2607:f8b0:4864:20::134; envelope-from=chenzhauyang@gmail.com; helo=mail-il1-x134.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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:142751 Archived-At: Emanuel Berg writes: > (defun fib (reps num) > (let ((z 0)) > (dotimes (_ reps) > (let ((p1 1) > (p2 1)) > (dotimes (_ (- num 2)) > (setf z (+ p1 p2) > p2 p1 > p1 z)))) > z)) Maybe try out (named-let)? It should be fun to rewrite it with tail calls. CZY