newLISP Fan Club

Forum => Anything else we might add? => Topic started by: Lutz on October 19, 2006, 08:03:28 AM

Title: Cormullion solves food crisis with newLISP
Post by: Lutz on October 19, 2006, 08:03:28 AM
No more hungry newLISP porgrammers:



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



post from 2006-10-18



Lutz
Title:
Post by: pjot on October 19, 2006, 10:43:42 AM
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
Title:
Post by: cormullion on October 19, 2006, 11:04:52 AM
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 ... :-)
Title:
Post by: Lutz on October 19, 2006, 11:49:24 AM
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
Title:
Post by: newdep on October 19, 2006, 11:57:55 AM
aaaa nice..... Now the only thing I need is "The CornFlakes" version ;-)
Title:
Post by: cormullion on October 21, 2006, 06:45:10 AM
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...