Learn PostScript by Doing (2005) [pdf]
staff.science.uva.nl
staff.science.uva.nl
I also found a bug in libtiff by studying produced PostScript. I don’t think anybody looks at this anymore.
Wishing I could find a more interactive environment for using it than a lualatex document open in a TeX IDE and getting a preview as a PDF which can't be interacted with.
I used to dream in PostScript I was coding in it so much -- the experience was dreaming about stack-oriented coding, as opposed to vector visuals, for clarity. I got started coding in PS on the NeXT in '91 doing data driven graph visualizations. PS was great for some algorithmically-generated logos too. Really fun were some fractals which strained the imagesetters and printers they ran on. Learning PS really paid off though when I ended up using it to create a database publishing engine for real-estate listings. It used Python for data wrangling and orchestration and then PostScript for the dynamic book generation and layout. It was used back when real estate agents relied on giant books printed daily, which this engine generated for dozens of markets across Western Canada. These documents were pretty gnarly too, including property-type-specific templates, various indexes, property images, market-specific variations, etc -- and doing all that with the absolute control which PostScript permitted was fantastic. It would have been nightmarish to try to do such things in LaTeX, Word or the DTP tools of the era. PDF rendering was automated with GhostView so the whole toolchain was open source.
I'd suggest that if extreme precision, detail and complexity are your requirements and especially if rendering to PDF and screen bitmaps are needed then PostScript is still very relevant. It's also quite fun as a developer.
If your browser can preview postscript, have a look at my signature https://tromp.github.io/img/sig.pdf :
%!PS % -John Tromp http://tromp.github.io/
42 42 scale 7 9 translate .07 setlinewidth .5 setgray/c{arc clip fill
setgray}def 1 0 0 42 1 0 c 0 1 1{0 3 3 90 270 arc 0 0 6 0 -3 3 90 270
arcn 270 90 c -2 2 4{-6 moveto 0 12 rlineto}for -5 2 5{-3 exch moveto
9 0 rlineto}for stroke 0 0 3 1 1 0 c 180 rotate initclip}for showpage
(when using ghostview make sure to turn off Antialias under State/gv Options or the colors won't show correctly) or this one https://tromp.github.io/img/pinwheel.pdf : %!PS % -John Tromp http://tromp.github.io/
/t{dup 1 sub gsave dup 0 gt{[.4 .2 -.2 .4 .4 .2]concat t currentgray
.8 mul .2 add setgray -1 1 scale t -1 2 translate t 1 -1 scale t[0 1
1 0 0 2]concat t pop}{0 moveto 1 0 lineto 0 2 lineto closepath clip
fill}ifelse grestore}def 10 10 translate 600 600 scale 5 t showpage
The first is a logo for a Go club I co-founded in my home town, while the second shows an aperiodic tiling known as the https://en.wikipedia.org/wiki/Pinwheel_tilinghttps://coding-and-computers.blogspot.com/2022/12/postscript...
Someone already mentioned NeXT and NeWS. I loved Solaris and NeXTSTEP when I was in college in the 1990's. At the time every computer lab had an HP printer with built in PostScript. When I got my first job after graduation in 1997 I convinced my new manager to spend $3000 on an HP 5 Si MX with built in PostScript. It was fast and the output looked great.
I've run Linux since 1994 and I remember most programs would create a .ps file but you could use the Red Hat printer config to automatically use GhostScript to convert it and print.
I assume GhostScript converted it to whatever format the cheap $100 printer needed because they couldn't afford PostScript and a separate processor to run it?
These days computers are so fast is there any need for PostScript inside printers?
I found this article saying its still in high end printers but I haven't printed anything at work in 5 years so I don't even know if ours supports it.
https://www.gohackworth.com/what-is-postscript-and-why-do-al...
Then I gave up. Creating images in another tool like Visio/Powerpoint was much easier...