Page 1 of 1

Cormullion solves food crisis with newLISP

Posted: Thu Oct 19, 2006 3:03 pm
by Lutz
No more hungry newLISP porgrammers:

see here: http://newlisper.blogspot.com/

post from 2006-10-18

Lutz

Posted: Thu Oct 19, 2006 5:43 pm
by pjot
Looks very nice! ...but: is it working?
peter[~]$ ./render.lsp
sh: open: command not found
In the source, I see:

Code: Select all

(exec (string "open "(env "HOME") "/Desktop/noname.ps"))
In my Linux environment I do not have a command called 'open'...

Peter

Posted: Thu Oct 19, 2006 6:04 pm
by cormullion
really sorry about that, Peter. I had been browsing Lutz's PostScript.lsp code module, lifted out the bits which i could test on my MacOS machine and forgot that you'll probably need to go via GhostScript if you don't have a built-in PostScript interpreter.

lucky I'm not a developer ... :-)

Posted: Thu Oct 19, 2006 6:49 pm
by Lutz
For Windows change Cormullion's render function to this:

Code: Select all

(define (render)
    (write-file "noname.ps" 
        (append [text]%!PS-Adobe-3.1
%%Creator: newLISP
[/text] buffer "showpage" "\r\n")))
and use ghostscript for display of the generated postscript file.

enjoy the meal,

Lutz

Posted: Thu Oct 19, 2006 6:57 pm
by newdep
aaaa nice..... Now the only thing I need is "The CornFlakes" version ;-)

Posted: Sat Oct 21, 2006 1:45 pm
by cormullion
newdep wrote:aaaa nice..... Now the only thing I need is "The CornFlakes" version ;-)
Ha! But when did this obsession with cornflakes start? :-)

I think cornflakes will be difficult. Too much PostScript, and not enough newLISP...