From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mark Carter Newsgroups: gmane.lisp.guile.user Subject: Re: Is this a good use for "compile" Date: Tue, 20 Feb 2018 11:03:13 +0000 Message-ID: <80081361-1aa9-8528-58e1-38fe8a92d8ed@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1519124521 5169 195.159.176.226 (20 Feb 2018 11:02:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 20 Feb 2018 11:02:01 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Feb 20 12:01:57 2018 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eo5gF-0000ex-Gr for guile-user@m.gmane.org; Tue, 20 Feb 2018 12:01:51 +0100 Original-Received: from localhost ([::1]:54610 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eo5iH-0005Ry-Nd for guile-user@m.gmane.org; Tue, 20 Feb 2018 06:03:57 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34945) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eo5hg-0005Of-5K for guile-user@gnu.org; Tue, 20 Feb 2018 06:03:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eo5hc-0007Mp-Uh for guile-user@gnu.org; Tue, 20 Feb 2018 06:03:20 -0500 Original-Received: from mail-wr0-x22f.google.com ([2a00:1450:400c:c0c::22f]:44337) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eo5hc-0007MX-OR for guile-user@gnu.org; Tue, 20 Feb 2018 06:03:16 -0500 Original-Received: by mail-wr0-x22f.google.com with SMTP id v65so13096929wrc.11 for ; Tue, 20 Feb 2018 03:03:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=bICxDyGFWAuankZS81mjGgsm4lBmt1yVmazQqdjreFo=; b=Napxzz9Et0227syLOeYugzx8CYeSaT8qPVny165sQSulSjft+emE0L8WvxWnNw/pY5 cpfJ0W7CVLPOLvgNzO3jj4MhUcJt8h67lj84YPiy0rEsnPvxXO0rHTeVtxDQTBCX5NWn peQMSAC9JANQgNqYigf+kFydJR46Gi1aRoYrAAvs7tqupo5akZ2zjUVo76VTFBsh3jXS LGLT2IXKieZygSsR+PYKnxKR+FYXRzQlIlkOv8WHlWFZJx7SOEJGNO0+wRMWfhkNw8X1 0VrQaTkIvH9j3dDXzJydX1TsBUr5i8FzNmRQeY70+eE7Yf85Ctvw2PLl/ZB3JUKc1nQR J0dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=bICxDyGFWAuankZS81mjGgsm4lBmt1yVmazQqdjreFo=; b=mrUJAGFGDFbM6Yt5Dy7fb2NJNqSTlafSUQUxBxCzUG33L27l7ps0iM/Xl7xEnp61ct sBu8rg2hSOYNlB6ZM5j++KfC8mLvEhF/29QkEOzS7Y8dwWuxUCwLE/hx7UGJ+P7dO830 W3GBttI0i2bTf9jzYGFr+6zUaHpUoGawZPNfiVUynPBs8o22S0nuFIFOs9IHxG6Guor9 5EXn22DLJnf23V2+3Wwd8GukiA23TiSJfxK2/SI0XSg70OEEKamwOkZL0Q98CHqm9HPE KQmb29ooHtO36cHlwmhzWFQt8OWzjFomH2qwFSS5lCXhXy88Z41RYJjoFmag8Gm9mqSB yA3g== X-Gm-Message-State: APf1xPCKG13I/HKDp11BnQFRTAspnRpwQayk1ht+JOZutn8jEuds4C1S kH+3GL8xBteeWs4+W/EOdu39JQ== X-Google-Smtp-Source: AH8x226zvqfEnMXV5Wg7M6+NzXZwVRlpRgPkxDvw2sTYRJ4mYAIhODSq7STwHnpFrGHldmlDDEzOtw== X-Received: by 10.80.137.187 with SMTP id g56mr1962423edg.225.1519124595464; Tue, 20 Feb 2018 03:03:15 -0800 (PST) Original-Received: from [192.168.0.13] ([217.155.40.178]) by smtp.gmail.com with ESMTPSA id o47sm22082649edc.10.2018.02.20.03.03.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Feb 2018 03:03:14 -0800 (PST) Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::22f X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 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:14454 Archived-At: : It is not clear to me how this will work.  First of all, compile may generate machine-dependent code. That's OK. Generated code doesn't need to be saved. Formulae are compiled as needed. : Second, how do you propose to evaluate my-cell-formulae ? To evaluate a cell, I would call ((hash-ref my-cell-formula some-cell-ref)) Formulae are compiled to parameterless lambdas, which are stored in my-cell-formulae, So all I need to do is retrieve the relevant one, and execute it.