Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.swapon.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: scott@alfter.diespammersdie.us (Scott Alfter) Newsgroups: comp.misc Subject: Re: Why Johnny can?t code Date: Thu, 4 Sep 2014 15:24:31 +0000 (UTC) Organization: USS Voyager NCC-74656, Delta Quadrant Lines: 31 Message-ID: References: Injection-Date: Thu, 4 Sep 2014 15:24:31 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="554b5a57e612c8eb5d677fe61471f97f"; logging-data="27913"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX194JB2V0SMipHdMQuUkAiq5" Originator: scott@alfter.diespammersdie.us (Scott Alfter) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Cancel-Lock: sha1:Xb7+NgzhrU8qdoZgy3zzFXpwU60= Xref: csiph.com comp.misc:4702 In article , Michael Black wrote: >Isn't it supposed to be kind of like FORTH? It is a stack-based language. Consider this example: /Times-Roman findfont 72 scalefont setfont 1 72 mul 9.5 72 mul moveto (Hello, world) show showpage Values get pushed onto the stack. Operators (findfont, mul, etc.) pull them off and (optionally) push return values back on. Fans of HP calculators would appreciate how PostScript handles math. >The closest I've come is to patch a postscript file so it prints multiple >copies, right at the beginning there's a line about that, easy to find >once you know what to look for. I've mostly used it to do manual duplexing on printers that don't support it in the driver, or occasionally to do n-up printing...been a while since I've needed it for that, as there's almost always an option nowadays to do that. Probably the fanciest I've gotten with it is this Bitcoin note generator: https://github.com/salfter/btcnotes _/_ / v \ Scott Alfter (remove the obvious to send mail) (IIGS( http://alfter.us/ Top-posting! \_^_/ >What's the most annoying thing on Usenet?