Re: Is this a good use for "compile"

2018-02-20 Thread Mark Carter
On 20/02/18 00:08, Vítor De Araújo wrote: We can try this out: scheme@(guile-user)> (use-modules (system base compile)) scheme@(guile-user)> (define exp '(lambda (n)     (let loop ([i n] [total 0])   (if (= i 0)  

Re: Is this a good use for "compile"

2018-02-19 Thread Vítor De Araújo
On 18/02/2018 18:56, Mark Carter wrote: New scheme user here. Suppose I'm writing a spreadsheet. The user inputs a formula for a cell. The plan is to use guile's peg parser to convert the formula into a lambda expression, which I then compile in order to speed-up subsequent processing. So,

Re: Is this a good use for "compile"

2018-02-19 Thread Matt Wette
On 02/18/2018 01:56 PM, Mark Carter wrote: New scheme user here. Suppose I'm writing a spreadsheet. The user inputs a formula for a cell. The plan is to use guile's peg parser to convert the formula into a lambda expression, which I then compile in order to speed-up subsequent processing.