Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

These are awesome! I didn't realize NeWS had been released in source form, or that Pratt had worked on it. Does it build today?

`goto straight;` sounds appalling. Can't escape heteronormativity even in NeWS!



> Does it build today In this form it won't, since that is missing the Sun PixRect library. And you also need the "operators.h" file (which is in another directory...) and the "acceptconnect" function.

On comp.windows.news Usenet group and on the NeWS book is reported that a portable codebase (called REF) exists, and Sun ported it on Ultrix (on thr VAXstation) and System V. I read it included a version of PixRect called "Generic PixRect", which should be more portable.

BitSavers put on the net a tape dump of X/NeWS 2.0, and there are some differences: a different graphics library called SHAPES replacing CScript (and it needs the Ace preprocessor to build the device dependent portion of the library), a different memory allocator, support for X11 protocol, support for Folio F3 fonts, and other things.

Fortunately I found a copy of PixRect in the leaked sources of SunOS 4.1.4 , but it's not enough, since that device dependent routines must be rewritten.

I'm slowly porting NeWS 1.1 to NetBSD (since that wscons is easier to work with) as a proof of concept. I managed to execute code and grt my screen turn blue, but the current obstacle is decoding binary fonts: the OG routines fail completely on 64 bit machines, since that the original format assumes 32 bit machine words and big endian order. More work will be needed.


Alas, it's quite dependent on old compilers and libraries, and only really useful for "educational and research purposes".

With all due respect, in that code, "goto straight;" is only for boring degenerate conics, as it should be.

There's a funny commented out line with a call to an undefined function that I love:

    /*- clearasil(buf0+1, bitlen);  /* clean out 0011/1100 pimples */




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

Search: