[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is this a good use for "compile"

From: Mark Carter
Subject: Re: Is this a good use for "compile"
Date: Tue, 20 Feb 2018 11:03:13 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

: 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 via email to

[Prev in Thread] Current Thread [Next in Thread]