From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Israelsson Tampe Newsgroups: gmane.lisp.guile.user Subject: python-on-guile Date: Tue, 9 Jul 2019 19:15:14 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="249316"; mail-complaints-to="usenet@blaine.gmane.org" To: Guile User Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Jul 09 19:22:57 2019 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hktpR-0012j1-EF for guile-user@m.gmane.org; Tue, 09 Jul 2019 19:22:57 +0200 Original-Received: from localhost ([::1]:52278 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hktpP-0004pP-Tn for guile-user@m.gmane.org; Tue, 09 Jul 2019 13:22:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53931) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hktiK-0001yq-7E for guile-user@gnu.org; Tue, 09 Jul 2019 13:15:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hktiI-0004U9-AS for guile-user@gnu.org; Tue, 09 Jul 2019 13:15:36 -0400 Original-Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:35496) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hktiF-0004Pz-P8 for guile-user@gnu.org; Tue, 09 Jul 2019 13:15:33 -0400 Original-Received: by mail-wm1-x32b.google.com with SMTP id l2so4072915wmg.0 for ; Tue, 09 Jul 2019 10:15:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=X/ZHPpcswVBl2ixFNkIvjBecTO2+fJ+SRXUZ2ODnjkg=; b=i8F2UeNRf58o/EllCzXbdj2cIrc7ptuklOWM5dj7fF5Coex8S/Ytn7/yr4IPfLT8h9 41f/OKH868tqZ4JWvQxSxQTI1iP2E4YOw47uEQa7YKSD5Gei7eAqPvBqcOImXpyMSxEa zJ2NgoS4MQmf5Nrqrh5nvMP5qjl/x5sgATpQBlNHv2MgEKuW2VPxa9DDJGnKaziKOf2l Bn88Vz1DspYhPGkRVil95y0rdrK1v8PUmii3t6MGnMN0DwdJ0mxDPMH3qqsuLZ5h8f0w 48PaAOv5MvvRtEyDYLRdTk2ASsoiy9rJ4Ou0hUpKUmRTPH8Fm+zgsblZIBHULzdaMR3R IZlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=X/ZHPpcswVBl2ixFNkIvjBecTO2+fJ+SRXUZ2ODnjkg=; b=q4O8YWJWapjNA8swgBbwamYxueLbQHHtN3AROyNToaw0PvW3nlUshi8l5jjjxxvOcL VEFrp6fOcibWhEAOJUTszZG/pvj+kSbqtWl72zqNABthtzWrQuOKgS59E2+FCmMhcuu0 07Ho0Ukk0KKu0/wHNcdDyaSJRWcmA9cRJL96Z1VEkDbtAAQbJ54CO6Gz0JKs5iS4BhpE AGrm98IvkqcQcAKtUDxbChZYUpg45LrOIOdC6s3wJr2QL40ulvJddSa6MgJKMh3YUvJ5 Nb1xDdDysbZx0yw/xtf+EL2IvdKS4IEIqgfEf3WDwgpi9EZ4XIwI2MEOMfXTyR3CqW3C PNPw== X-Gm-Message-State: APjAAAUhavGHi+Yx/8wyTeGDRUjHhnkwXB754rUwVu4FXsaVAiRBdIXv /hW8cmuu13HpFRnxkh/8A7pLiOEsv1UnJGqpkpESo/Pm X-Google-Smtp-Source: APXvYqzoC3GbbM60nXILuNSKcYkPzMw+AXp9djPWI/UIVwd1awzTxONc40bGOGKfe/9QJpYMG7pYUd+369dVzJ8Hyus= X-Received: by 2002:a1c:4d05:: with SMTP id o5mr811484wmh.63.1562692525731; Tue, 09 Jul 2019 10:15:25 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::32b 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.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:15623 Archived-At: Latest developments on python on guile is to make python's generator deep copyable. This means copying delimited continuations and I'm happy to acknowledge to a certain degree this works. Both pcomming 3.0 works as well as current stable 2.4. There is a problem and that is it assumes no data is put on the stack in raw format. Python's implementation is to set variables with set! so I expect it to work for python programs. However scheme code can store stack elements in raw data and hence that optimizartion needs to be turmed off to be sure. Also if one want to serialize continuations currently this does not work with the jit function and more work must be done to assure that it works together with the jit engine. Note: deep copying of generators is not suported by cpython see http://c-lambda.se/deep-copy.html for an example Happy hacking