News for hackers. Stuff that matters.
Re:Some of the error messages produced by Apple's MPW C comp... by Veserv on Sunday February 06, 2022 @09:10PM (#30239330)
Just for some context, the MPW C compiler that produced those messages was actually not developed internally at Apple, but was rather done by Green Hills Software [1] under contract as mentioned on the wikipedia page [2] and its source [3] which is funnily enough about this exact same topic.

[1] https://en.m.wikipedia.org/wiki/Green_Hills_Software

[2] https://en.m.wikipedia.org/wiki/Macintosh_Programmer%27s_Wor...

[3] https://web.archive.org/web/20140528005901/http://lists.appl...

Re:Some of the error messages produced by Apple's MPW C comp... by kabdib on Sunday February 06, 2022 @09:47PM (#30239656)
I forget what happened to the Green Hills folks, but the official MPW C compiler was an offshoot of the MPW Pascal compiler, and was written by Roger Lawrence at Apple in about a year (around 1987-1988) largely as a reaction to what he thought was a terrible contract.

The Green Hills folks were likewise upset at Roger's effort. "Anyone who says they can write a compiler in a year should be fired." Roger himself held the same opinion, a couple of years later :-)

I sat next to Roger while he wrote that thing, he was in the next cubie over (I was working on the MPW linker and some other tools). He types really fast.

Re:Some of the error messages produced by Apple's MPW C comp... by jsrcout on Sunday February 06, 2022 @11:06PM (#30240277)
Hello from a guy who used your and Roger's work every day back then. Still one of my favorite developer experiences. (I ported an old-school AI application from its original Sun workstation environment to the Macintosh. Had a blast but our product crashed and burned with the AI winter).
Re:Some of the error messages produced by Apple's MPW C comp... by wglb on Sunday February 06, 2022 @10:13PM (#30239861)
> Anyone who says they can write a compiler in a year should be fired." Roger himself held the same opinion, a couple of years later

Nonsense.

Three of us did it in a year compiling a language similar to PL/M written in Bliss 36 on a PDP-10. And that was when compilers were much harder to do then than they are now.

Re:Some of the error messages produced by Apple's MPW C comp... by moonchild on Sunday February 06, 2022 @09:49PM (#30239676)
> Anyone who says they can write a compiler in a year should be fired.

...why?

Re:Some of the error messages produced by Apple's MPW C comp... by kabdib on Sunday February 06, 2022 @09:55PM (#30239725)
Well, they were clearly upset at losing the contract.

But mostly they were trying to say, "Okay, you probably have a guy who can do that. But it will be a buggy mess and it will go better if you don't give that dev permission to be a hero."

Re:Some of the error messages produced by Apple's MPW C comp... by moonchild on Monday February 07, 2022 @07:27PM (#30253489)
I still don't follow. A year seems like plenty of time to build a c compiler. Maybe it won't generate the best code, but no compiler did, back in the day.
Re:Some of the error messages produced by Apple's MPW C comp... by dls2016 on Sunday February 06, 2022 @09:27PM (#30239490)
I forget why I went into their building, but I always remember a giant T-rex skull in their entryway. I'm not making this up, am I?

I did find this press release, but it really just raises more questions than answers anything. https://www.prnewswire.com/news-releases/ubm-electronics-and...

Re:Some of the error messages produced by Apple's MPW C comp... by jsrcout on Sunday February 06, 2022 @11:03PM (#30240248)
I found a Green Hills page with a little more info.

https://www.ghs.com/news/20110427_esc_silicon_valley11.html

Sounds like GH's founder just really likes dinosaurs. (To be clear, if I was in that kind of financial position, I'd absolutely have a T-rex skull, or better yet the whole dinosaur, on display in the lobby).