logoalt Hacker News

pjmlptoday at 5:37 AM3 repliesview on HN

Or fully embracing the Pascal programming model.

I think it was in one of the On the Metal interviews where one of the guests mentions MPW was a submarine project, from UNIX background engineers, to eventually replace Pascal with C++.


Replies

musicaletoday at 9:07 PM

> MPW was a submarine project, from UNIX background engineers, to eventually replace Pascal with C++.

According to Wikipedia, the first commercial C++ implementation came out in October of 1985, MPW was released in September of 1986, and MPW C was released in July of 1987.

C++ seems to have been added sometime in ~1988 (??)

Think C 4.0 (later Symantec C/C++) with (C++ like) object extensions seems to have been released for the Mac in 1989.

musicaletoday at 7:17 PM

Well they did exactly that - rewriting the Finder in C++, etc.

But it's unfortunate that losing Pascal/Object Pascal also meant losing bounded strings and array bounds checking, even if people turned the latter off in the 1980s because they thought that the performance cost wasn't worth the reliability improvement. That was probably the wrong trade-off then (at least for most regular application code) and even more so today (especially for the vast amount of legacy C code.)

WillAdamstoday at 12:34 PM

Yes, but that could be problematic given the memory constraints of that time:

https://www.folklore.org/Puzzle.html

To this day, one of my favourite word processors is WriteNow, which was ~100,000 lines of assembly.

show 1 reply