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.devel,gmane.lisp.guile.user Subject: Re: Python-on-guile Date: Sat, 24 Apr 2021 13:26:36 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000028337605c0b63069" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40891"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user , guile-devel To: Mikael Djurfeldt Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Sat Apr 24 13:27:26 2021 Return-path: Envelope-to: guile-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 1laGRa-000AW0-6D for guile-devel@m.gmane-mx.org; Sat, 24 Apr 2021 13:27:26 +0200 Original-Received: from localhost ([::1]:50036 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1laGRZ-0000JU-63 for guile-devel@m.gmane-mx.org; Sat, 24 Apr 2021 07:27:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58102) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1laGR8-0000Ir-RE; Sat, 24 Apr 2021 07:26:58 -0400 Original-Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]:41711) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1laGR1-0007xN-74; Sat, 24 Apr 2021 07:26:58 -0400 Original-Received: by mail-pg1-x52e.google.com with SMTP id f29so637994pgm.8; Sat, 24 Apr 2021 04:26:49 -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=9c5mM4rSfFKtOm0z7g9NFVl/i37u7GxyXWVXvv99Al8=; b=AvZDtSD95CbwtdcC4+XeGcNTNs5zkhp6tirvceSTnXJdx0Px0QL6DGIYsoyEI1l2Rs LFCusZN55OkBReKaWAOOqjb2tAiNHJlXyZ/yzF1cmMYuWT35L6xAvCp2m9oCuDDTVALU O/ljNUuLnd9Mv7zrlcr7TzoQ9BHbm98jwhNqGfq555L7gJPo70w6FWX9mm2HgvMgy6OD grXzJfcSOrMC/oZLTqfcsXiM7gd7CxK89IARMv9tOkQT47Qg7a3wRPXDAjefhPaXyll/ G5YtOpGK+gUqBK4AREszArrpHsAGArbME18PxQfowZszZ0tlA9jJ2CfFCBA3+Hr223Z2 WFGA== 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=9c5mM4rSfFKtOm0z7g9NFVl/i37u7GxyXWVXvv99Al8=; b=QjJe4Qo/Mu0uh7yBtR/WjDxagJumeWpAdPX/4uTVWk6eHCpABdxrFSuI3Rt84801OM mqcWN1VI0CVFV/HiP84bHNTk9SEtHcNkBOvhujCJgp4olQ2O0pNq5lw+9FN8JuyEU6wT 2NiEc+/oYmYYUTvmz4rxdwHQ5IEUVG82PTOukunkYdA/giRA6czD2nBY7u0uiSAjClco McGStnxHin07IqQRI+dVifQXUOh9T5TsFZFKDsac0cJAG58yScEeaP54Vu9HUhg0e+/B bK6vjJ8nc/hMTH7zRXLtWWYxia0H0f/ZzexuTQoShTH5xHDMjbgAiFi4nsV2ntlMI8Hj HrZA== X-Gm-Message-State: AOAM530Vl9MgMPZ/3g79Xa1b4zVZaGB0CrcwVUnCGzVA36TmXXc+hGXt ZjoLeTfx1TVYgOJjag5NSXOsH/cDgUxZZ4p4PyQlkd32 X-Google-Smtp-Source: ABdhPJxLHs98v3WNy58jFZ5UtEswkPlYIjZaYK/I0hOr1gUhsvIclP3t5Ihi/04D55eX++AyTT051XzOb/gCFYV9hdI= X-Received: by 2002:a63:e90c:: with SMTP id i12mr7779075pgh.116.1619263608074; Sat, 24 Apr 2021 04:26:48 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::52e; envelope-from=stefan.itampe@gmail.com; helo=mail-pg1-x52e.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-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.io gmane.lisp.guile.devel:20745 gmane.lisp.guile.user:17442 Archived-At: --00000000000028337605c0b63069 Content-Type: text/plain; charset="UTF-8" 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 >> >> --00000000000028337605c0b63069 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Pro tip, when running this on guile the scheme code that i= t 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=C2=A0
d= elays the code execution.

On Sat, Apr 24, 2021 at 12:04 PM Mikael Djur= feldt <mikael@djurfeldt.com&= gt; wrote:
(I should perhaps add that my script doesn't benchmark the= object system but rather loops, conditionals and integer arithmetic.)
Den f= re 23 apr. 2021 17:00Mikael Djurfeldt <mikael@djurfeldt.com> skrev:
Hi,

Yesterday, Andy committed new code to the compiler, so= me of which concerned skipping some arity checking.

Also, Stefan meanwhile committed something called "reworked object s= ystem" to his python-on-guile.

Sorry for comi= ng with unspecific information (don't have time to track down the detai= ls) but I noticed that my benchmark script written in Python, and which com= putes the 20:th Ramanujan number, now runs 60% faster than before these cha= nges.

This means that python-on-guile running on g= uile3 master executes python code only 2.6 times slower than the CPython py= thon3 interpreter itself. :-)

Have a nice weekend = all,
Mikael

--00000000000028337605c0b63069--