Cormullion solves food crisis with newLISP

Started by Lutz, October 19, 2006, 08:03:28 AM

Previous topic - Next topic

Lutz

No more hungry newLISP porgrammers:



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



post from 2006-10-18



Lutz

pjot

#1
Looks very nice! ...but: is it working?
Quote
peter[~]$ ./render.lsp

sh: open: command not found

In the source, I see:

(exec (string "open "(env "HOME") "/Desktop/noname.ps"))

In my Linux environment I do not have a command called 'open'...



Peter

cormullion

#2
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 ... :-)

Lutz

#3
For Windows change Cormullion's render function to this:


(define (render)
    (write-file "noname.ps"
        (append [text]%!PS-Adobe-3.1
%%Creator: newLISP
[/text] buffer "showpage" "rn")))


and use ghostscript for display of the generated postscript file.



enjoy the meal,



Lutz

newdep

#4
aaaa nice..... Now the only thing I need is "The CornFlakes" version ;-)
-- (define? (Cornflakes))

cormullion

#5
Quote from: "newdep"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...