From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Israelsson Tampe Newsgroups: gmane.lisp.guile.user,gmane.lisp.guile.devel Subject: Re: Python-on-guile Date: Sat, 24 Apr 2021 14:59:42 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17034"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user , guile-devel To: Mikael Djurfeldt Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat Apr 24 15:00:40 2021 Return-path: Envelope-to: guile-user@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 1laHto-0004KS-Fg for guile-user@m.gmane-mx.org; Sat, 24 Apr 2021 15:00:40 +0200 Original-Received: from localhost ([::1]:44270 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1laHtm-0006QZ-PG for guile-user@m.gmane-mx.org; Sat, 24 Apr 2021 09:00:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48498) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1laHt7-0006QP-JJ; Sat, 24 Apr 2021 08:59:57 -0400 Original-Received: from mail-pj1-x1036.google.com ([2607:f8b0:4864:20::1036]:51808) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1laHt5-0005yp-OH; Sat, 24 Apr 2021 08:59:57 -0400 Original-Received: by mail-pj1-x1036.google.com with SMTP id lt13so15623185pjb.1; Sat, 24 Apr 2021 05:59:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=I94GsV6ziwvKvpfvr7hm92rCct3BDNEy7wg9ME6Q6Go=; b=Rf2B1wdGJZ553aXAYprztvTgVeK2X4QWJPU4t2t9DW3CfKa3KRjX3WCL2rjYFe62Vf dOLOi8Ohw1SrOvpqr5N9eCFkiZfHy6txf9d+3RAogvjp4cTavqrKuhMlKJLQE3R7augQ kZjJCRPS8D1pLJXs86To+f/lX63mKPDEqSIejC6IC+ROBSnzmzOHJqq9MgScaCJJvEeK e3wtp/kMKuDlJ1+6N9Q8JZfJezDUPeAXF9+O7qvPiUTv9elIB+e4gPVo6tnRBwPzZ89P NMMqV0QLIgU5ES+X6IRVHY3ZwWIyvmkQz/ZNVZ4kkYFd9fuIyPhcJ7wPdDhO+FK8zeh7 7XFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=I94GsV6ziwvKvpfvr7hm92rCct3BDNEy7wg9ME6Q6Go=; b=nhqM1cof4JKRe0GNfisiCaoQCj3d7OMLex6XZ/U0MslJFJyS5hDb5b9euXTZEcHRfe NRCt6BfdwC6NVl34mFn5TMRm770qG2r0cfDDhu846sIXcFEbG83qGt23aWgi4LiSxw45 /ZsFG4KRIK3YNgAUya2jhbnfIxP8IJMgk1ihDiAP5JWzYAKRMR75EgcnBYlccRjfmeTo sYIfJYriu+bKSvKO56tDRQlOWoZ32DYybE4WIN5ZRq2O6PeOzmK4Bem2qpJ7moF5gwhh IXwgI5GkgXolX+q2XMskT9VrkIiORXyLqasnwF6xrCroXDHZPV4/rSh2LbV4Hrhg/KVT yWgg== X-Gm-Message-State: AOAM5327YMtLXKyNKCpY9ve29og5srJDmuQekID16UBeRLTahx8dmrp3 sB63mhqjWUd5R8NSM5ivQrTazbUF4eicgL97lW5GjOZyt2E= X-Google-Smtp-Source: ABdhPJzR+flb6Z3lqChAkEcDsZh/od1QwR0EuUXxkF3Wi0DnSXHMgBOnwnPDnc2aW1EDcRUXA1SyPi+xIgpHQN0FjuQ= X-Received: by 2002:a17:902:e9c4:b029:eb:4626:feba with SMTP id 4-20020a170902e9c4b02900eb4626febamr9161384plk.39.1619269193507; Sat, 24 Apr 2021 05:59:53 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::1036; envelope-from=stefan.itampe@gmail.com; helo=mail-pj1-x1036.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, HTML_MESSAGE=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-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:17443 gmane.lisp.guile.devel:20746 Archived-At: Actually changing in (language python compile), (define (letec f) (let/ec x (f x)))) To (define-syntax-rule (letec f) (let/ec x (f x)))) Actually lead to similar speeds as python3. On Sat, Apr 24, 2021 at 1:26 PM Stefan Israelsson Tampe < stefan.itampe@gmail.com> wrote: > Pro tip, when running this on guile the scheme code that it compilse to is > located in log.txt. > If you ,opt the resulting code in a guile session you might be able to > pinpoint issues that > delays the code execution. > > On Sat, Apr 24, 2021 at 12:04 PM Mikael Djurfeldt > wrote: > >> (I should perhaps add that my script doesn't benchmark the object system >> but rather loops, conditionals and integer arithmetic.) >> >> Den fre 23 apr. 2021 17:00Mikael Djurfeldt skrev: >> >>> Hi, >>> >>> Yesterday, Andy committed new code to the compiler, some of which >>> concerned skipping some arity checking. >>> >>> Also, Stefan meanwhile committed something called "reworked object >>> system" to his python-on-guile. >>> >>> Sorry for coming with unspecific information (don't have time to track >>> down the details) but I noticed that my benchmark script written in Python, >>> and which computes the 20:th Ramanujan number, now runs 60% faster than >>> before these changes. >>> >>> This means that python-on-guile running on guile3 master executes python >>> code only 2.6 times slower than the CPython python3 interpreter itself. :-) >>> >>> Have a nice weekend all, >>> Mikael >>> >>>