From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tim Meehan Newsgroups: gmane.lisp.guile.user Subject: Re: trace-calls-to-procedure Date: Fri, 25 Dec 2020 19:23:28 -0600 Message-ID: References: <3c36067b-5247-03a0-ab64-b4241a8fea30@posteo.de> 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="23392"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user@gnu.org To: Zelphir Kaltstahl Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat Dec 26 02:23:54 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 1ksyJG-0005yF-7b for guile-user@m.gmane-mx.org; Sat, 26 Dec 2020 02:23:54 +0100 Original-Received: from localhost ([::1]:54784 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ksyJF-0002ak-4g for guile-user@m.gmane-mx.org; Fri, 25 Dec 2020 20:23:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47042) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ksyJ4-0002ac-Uy for guile-user@gnu.org; Fri, 25 Dec 2020 20:23:42 -0500 Original-Received: from mail-qv1-xf35.google.com ([2607:f8b0:4864:20::f35]:44379) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ksyJ3-000664-1Q for guile-user@gnu.org; Fri, 25 Dec 2020 20:23:42 -0500 Original-Received: by mail-qv1-xf35.google.com with SMTP id d11so2673509qvo.11 for ; Fri, 25 Dec 2020 17:23:40 -0800 (PST) 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=d6OL3PR7ilouF6wqMC/pJ1FUrT6cF2Ei2wXbbATvp1M=; b=b79SrpAVI3fdHOhryxSmL128RO16/p2aEuho2hJ6wD0TOUu1BjYzqLaxG3eztdn/1v XdwAOQhaDY1CLDSL3vQqiz06I5SN11Qe5Qb0vCQ7dxPyFPdKrsWg1T+SP2jbCfP67KrH 0aoTBNym0r+1KB/Ibu7Yu8nkG6xtVf/GrCA/4tUbRHKG6lQarJu2XA6I/NYPqd5ckS6n Kg13G2uEFQvEvuAdMscmfOAOre3GsoQRPlDVu0Azv5lkQsT3/sWjf4bnxIUhF6JJ8pSj 0B33CjHb6sdT+sxXqCPfqpIY1Cfl2u5N4VjS5JH4s9YcqIJUSaYgn0KsB7FwecJRW/Kw FDAA== 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=d6OL3PR7ilouF6wqMC/pJ1FUrT6cF2Ei2wXbbATvp1M=; b=ZqeRoXOXuB0W1v+W41cjFPTNi4foluzbruloKwZU8Soo9xqJbo+Cjv3QtHsKqYu5wF lHZ+BWWMuMx8OfuZyQ97ZT6LqbPJzZoDEEUyKo+qz97GPk9zgukPZtVH/eS1vepQA78b 8hMApk7fFbcluPSogwSyT5EsQl7KuzZREBxGwIcnhoQONkD5wBE0VTh1EzswJej+PBhT 5FniAozkwrl0CmCPXvMCDVa0Oey51HrhYZw4lHVoGnChoypQ9pGeqjngwhPcubYdLoOR /HyjXVgBZWBWoVfYo6bhb1PcnuH046PyI9Y9/D8OvYIxACMyWjXz7gb44V2sUE/kgQQp KXmQ== X-Gm-Message-State: AOAM532EPiXUdnM8RW6lNgSxkbIsl6mgVKTRzYoihu4m+93cOZTHUhLx PfE0TftpJ9c9dR/zshMxjjrGGBHpkEpX+r+ep0o= X-Google-Smtp-Source: ABdhPJwYlXt/iKYpUMR3KH8yly75HBKA2bGfVfBMbo8p8c7piI0V7B/6d/ekaRnbMie2sOkJJggkWrUzF1sKxN0EdDY= X-Received: by 2002:a0c:edab:: with SMTP id h11mr37592312qvr.23.1608945820063; Fri, 25 Dec 2020 17:23:40 -0800 (PST) In-Reply-To: <3c36067b-5247-03a0-ab64-b4241a8fea30@posteo.de> Received-SPF: pass client-ip=2607:f8b0:4864:20::f35; envelope-from=btmeehan@gmail.com; helo=mail-qv1-xf35.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:17109 Archived-At: Neat! I didn't notice that (even though I am sure that I saw it come up on the REPL). It is indeed weird ... Looks like a time to read some of the source for "(system vm trace)" ... On Thu, Dec 24, 2020 at 11:58 PM Zelphir Kaltstahl < zelphirkaltstahl@posteo.de> wrote: > Hi Tim! > > I do not know the answer to your question, but I noticed something else: > trace-calls-to-procedure returns a procedure. That procedure and its return > value can be applied infinitely, it seems: > > ~~~~ > scheme@(guile-user)> (import (system vm trace)) > scheme@(guile-user)> (define (sqr x) > (* x x)) > scheme@(guile-user)> (trace-calls-to-procedure sqr) > $1 = # > scheme@(guile-user)> ((trace-calls-to-procedure sqr) 9) > $2 = # > scheme@(guile-user)> (((trace-calls-to-procedure sqr) 9)) > $3 = # > scheme@(guile-user)> ((((trace-calls-to-procedure sqr) 9))) > $4 = # > scheme@(guile-user)> > ~~~~ > > Not sure if that helps :D > > Regards, > Zelphir > On 12/25/20 5:51 AM, Tim Meehan wrote: > > I have used ",trace" before and get what it is supposed to do, but I am not > sure what "trace-calls-to-procedure" is supposed to do ... > > ;; Using Guile 3.0.4 > (use-modules (system vm trace)) > > (define (sqr x) > (* x x)) > > (trace-calls-to-procedure sqr) > > (sqr 3) > > ;; ... and nothing happens ... is something supposed to happen? > > -- > repositories: https://notabug.org/ZelphirKaltstahl > >