From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Israelsson Tampe Newsgroups: gmane.lisp.guile.user,gmane.lisp.guile.devel Subject: Re: Python on guile version 1.2 Date: Sun, 26 Apr 2020 20:21:41 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="10831"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Guile User , guile-devel To: zimoun Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sun Apr 26 20:22:21 2020 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 1jSlv3-0002gS-Av for guile-user@m.gmane-mx.org; Sun, 26 Apr 2020 20:22:21 +0200 Original-Received: from localhost ([::1]:41808 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSlv2-0006Fw-Bh for guile-user@m.gmane-mx.org; Sun, 26 Apr 2020 14:22:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36532) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSluo-0006DT-Dw for guile-user@gnu.org; Sun, 26 Apr 2020 14:22:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jSlun-00058t-V6 for guile-user@gnu.org; Sun, 26 Apr 2020 14:22:06 -0400 Original-Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:33339) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jSlub-000524-Gi; Sun, 26 Apr 2020 14:21:53 -0400 Original-Received: by mail-wr1-x432.google.com with SMTP id s10so17895362wrr.0; Sun, 26 Apr 2020 11:21:51 -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=k4lpAx3CBErQ7OgME3FHrJAuYZzO6jgXQGAsFy9373w=; b=MC7B0OKZfXxB2u97MrMvUggus74hYuzFdlT0jZwBId5a/crAC0679Tu1C1nW1+Ag1f FzwXa68IHeIGKDQjHjklvt9wHMWq/lv2FRRpyALCm6248ID7RWiA+ffRUpVTs1ILSijq AOAVhwr7NwzhLgAU1Ber7kj4Ztzt1vuzSXfSRDFD2eHWILSJ79RUWOoVaAg7zvrU518r ywQxj4bYH+Owz/0g/iDHbBKCu7t7vjeVdcixuIX5gw6a0WTzjE+yWo95DOgUG0N0IxYL 81qM6WQr3aV0oAsKEP36XX4zJT3DJjTnP5Xa3yF0n+FAcnLEkDW7FsPZhEEUa73dcVc9 +Jvw== 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=k4lpAx3CBErQ7OgME3FHrJAuYZzO6jgXQGAsFy9373w=; b=eGfil5g8swFWB7/oHVNTRmVpUrkIwAVw4QSn3DHFBqJeLQvh+DWliQmFgyaEn1duy2 0h5mCQbPsUkswnR0jQ97nVTZr4auoFiEnO2EltsxMcp4VJGq1EYgD6DUG9d5Yh49Krmy oGQWwr2OXSIezoBzhIJUMQ9WXJ//ZL90Ff7zfpLbZQwDR/dp/i9jGgRn90ZL8CAdwc9c IipXgXr/CF9Aj+30norBiQ9tZoelCotycBWik7EJryI/HhIcx3MBfGWTLplearZBnjmJ LAnPqbOlsJIThYlBDIdcoiriVK6o3/NyFXPWeQoV/2lM8xsgQUy8SWMpjZ6+As8oV7Pd X7Qg== X-Gm-Message-State: AGi0Pua0QXxh4DMhBiDjlhW2twkpNlMF0mpl1qtSL/oTt6uStv+qMbEP BHleVwi1qv8X275i48CSFrUP30gaIxLgMrg/bCE= X-Google-Smtp-Source: APiQypJfc2XKcf4hJNgQglzgkYbAgTkDk39+QC1GCtgay1sh7FUSPGrEa6VpAlnrDwn+vSpjXQPUgVAvnIGLzqwzGOM= X-Received: by 2002:adf:bb94:: with SMTP id q20mr25006690wrg.105.1587925310043; Sun, 26 Apr 2020 11:21:50 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=stefan.itampe@gmail.com; helo=mail-wr1-x432.google.com X-detected-operating-system: by eggs.gnu.org: Error: [-] PROGRAM ABORT : Malformed IPv6 address (bad octet value). Location : parse_addr6(), p0f-client.c:67 X-Received-From: 2a00:1450:4864:20::432 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:16405 gmane.lisp.guile.devel:20495 Archived-At: yes we can compile to module ast python-on-guile compiles to macros in scheme that can be used without compiling python from scheme. It targets good or excellent interoperability between scheme and python Yes works on guile 3.0. Also you need the most current dependencies see readme On Sat, Apr 25, 2020 at 6:27 PM zimoun wrote: > Dear, > > Thank you for this interesting work. > > > On Fri, 10 Apr 2020 at 15:41, Stefan Israelsson Tampe > wrote: > > > I'm pleased to announce python on guile 1.2. This version increases the > > correctness of the parser as well as adding quite a number of system py > > files that compiles as an example the we can now generate python ast from > > the compiler. Also some work to improve speed have been done. > > What do you mean by "now generate python AST from the compiler"? > Do you mean that now python-on-guile can compile the python module > named ast ('import ast')? > > > > Python on guile is both a python clone and a macro framework where python > > objects and methods can be used in pure scheme code. There is some > > significant speed penalty due to this and a perfect match between python > > modules and guile modules has not been achieved. > > Nice! > If I understand correctly, python-on-guile is a first step similar to > Hy [1] but using the Guile compiler tower instead of one of the Python > interpreters, right? > > [1] https://docs.hylang.org/en/stable/ > > > > Sources (make sure to use the latest dependencies): > > https://gitlab.com/python-on-guile/python-on-guile > > The current version in Guix is 0.1.0-3.00a51a2 using Guile 2.2. > Does it work on Guile 3? > > And are the latest dependencies? > > > All the best, > simon >