unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Mark Carter <alt.mcarter@gmail.com>
To: guile-user@gnu.org
Subject: Re: Is this a good use for "compile"
Date: Tue, 20 Feb 2018 11:03:13 +0000	[thread overview]
Message-ID: <80081361-1aa9-8528-58e1-38fe8a92d8ed@gmail.com> (raw)

: 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.




             reply	other threads:[~2018-02-20 11:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-20 11:03 Mark Carter [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-02-18 21:56 Is this a good use for "compile" Mark Carter
2018-02-19 17:30 ` Matt Wette
2018-02-20  0:08 ` Vítor De Araújo
2018-02-20  9:28   ` Mark Carter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=80081361-1aa9-8528-58e1-38fe8a92d8ed@gmail.com \
    --to=alt.mcarter@gmail.com \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).