2 ms·
That's right! Here's the source code, with meticulous comments explaining how it works, since it was meant to serve as a programming example to help people lear
by DonHopkins 7y ago
That's right! Here's the source code, with meticulous comments explaining how it works, since it was meant to serve as a programming example to help people learn how to use TNT / OOP / NeWS / PostScript.
https://www.donhopkins.com/home/archive/NeWS/pizzatool.txt https://www.donhopkins.com/home/archive/NeWS/pizzatool.txt
I even wrote a manual entry (it shipped with Solaris 2.0, so documentation was required):
https://www.donhopkins.com/home/archive/NeWS/pizzatool.6.txt https://www.donhopkins.com/home/archive/NeWS/pizzatool.6.txt
I just posted more here:
https://news.ycombinator.com/item?id=21383697 https://news.ycombinator.com/item?id=21383697
PizzaTool was written in Sun's "NeWS" dialect of PostScript (which James Gosling made after Emacs but before Java), which it has all kinds of extensions for multiple drawing surfaces (canvases), events, light weight threads, networking, object oriented programming, etc.
So for example PizzaTool would fork off a light weight thread to handle spinning the pizza, and another one to draw toppings, and the user interface had its own thread of course. So the user interface would not freeze up while it drew toppings and spun the pizza, all at the same time!
https://en.wikipedia.org/wiki/NeWS https://en.wikipedia.org/wiki/NeWS
>NeWS was architecturally similar to what is now called AJAX, except that NeWS coherently:
> - used PostScript code instead of JavaScript for programming.
> - used PostScript graphics instead of DHTML and CSS for rendering.
> - used PostScript data instead of XML and JSON for data representation.