Hacker News new | past | comments | ask | show | jobs | submit login
PS-HTTPD: A web server written in PostScript (2010) (pugo.org)
64 points by todsacerdoti 42 days ago | hide | past | favorite | 17 comments



The source is actually rather nicely laid out. For example, using a dictionary to map between file extensions and mime types:

  /txt  (Content-type: text/plain\n) def


My favorite PostScript program I wrote calculated the Mandelbrot set on the printer which would give me a reason to knock on the door at the computer center and ask was what taking my printout so long.


I'm still sad that when Apple bought NeXT we didn't get Display PostScript --- it was so nice being able to for example program a custom line stroke in Altsys Virtuoso to display the length of the line and see it on-screen --- doing that in Mac OS (or Windows) required writing out a .eps or .ps file and then distilling to a PDF using Acrobat.

I really wish that there was a graphical programming/drawing program which would allow one to seamlessly switch between programming .ps (or other --- METAFONT would be way cool for this) code and selecting and moving the nodes/objects which would then cause the code to update.


Seems like the potential for an endless wack-a-mole of security issues.


There is that --- the guy who made the pstill.app had a "project akira" demonstrating some of the (potential) security issues.


This is surely either derived from the Alchemist Owl's POC||GTFO musings, or destined to be included in them at some point in the very near future.

https://www.alchemistowl.org/pocorgtfo/

I'll never get my head around the fact that a language that started life as a way to accurately draw things on a printer and on a screen, is capable of being used for full-fledged applications such as this - although I suppose it makes sense, its still just too weird to me.

What's next? A full-blown desktop OS in Postscript, which is also the User Manual?

I sure freakin' hope so .. ;)


SimCity, Cellular Automata, and Happy Tool for HyperLook (nee HyperNeWS (nee GoodNeWS))

HyperLook was like HyperCard for NeWS, with PostScript graphics and scripting plus networking. Here are three unique and wacky examples that plug together to show what HyperNeWS was all about, and where we could go in the future!

https://donhopkins.medium.com/hyperlook-nee-hypernews-nee-go...

The Shape of PSIBER Space: PostScript Interactive Bug Eradication Routines — October 1989

https://donhopkins.medium.com/the-shape-of-psiber-space-octo...

Open Window Manager: An X11 ICCCM Tabbed Window Manager written in Object Oriented PostScript, for X11/NeWS

https://donhopkins.com/home/archive/NeWS/owm.ps.txt


Oh, this is so great - thanks for sharing, I'm going to dive deep into this crazy, weird, Postscript rabbit hole ..

(Been reading POC||GTFO for years, but now I finally think its time to write something..)


Hi Don, have you ever been tempted to reimplement the Hyperlook system in the browser (similar to the revival of the old Smalltalk systems pre Smalltalk-80)?


My brain involuntarily assembled these letters into PTSD.

If there is a single programming language that rewired my the brain, it's PostScript. I used that a bit two decades ago when I wanted to programmatically generate a variant of Fresnel zone plates.


Me too. The project should be called PSPTSDHTTPD


Is it really that bad, or is it just different from the typical OOP? At a glance to me it looks like any old stack oriented language... Why does Forth get hailed as an experience of spiritual enlightenment, yet PS always gets dunked on?


The language is quite elegant and has some really good concepts, but it lacks many of the things that make programming an enjoyable activity for serious work in the modern day. While the language is incredibly dynamic, it works like a low-level language for everything but displaying 2D vector graphics (where it is actually good). If you want to concatenate two strings, you'll have to implement that function.

IMHO, the real problem with PostScript is that the language has not evolved at all for like 25 years. That's a lot of time during which it could have transformed into something truly spectacular.


Careful, you'll summon a lot of cats...


Same for me when I was working at some preprint software in the 90s. shudder


"PostScript" could be a synonym of "Cursed". Few things evoke dread like executable printer files.


Same here, I think it's a sign...




Consider applying for YC's first-ever Fall batch! Applications are open till Aug 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: