News for hackers. Stuff that matters.
Re:The C juggernaut illustrated (2012) by mistrial9 on Saturday February 04, 2023 @04:41PM (#34658664)
the example about C at Apple Computer is accurate. The MPW group had a tool suite but it was a niche project at the time (mid-80s). Influential engineers had a great pascal compiler and dropped into assembler for the fine points, quite a lot. The environment at DeAnza 3 where TechSupport lived was a place of change for Apple at that time. Within a few years, C was popular as an application language, some drivers for the new Mac II, and lots of community code was generated.

edit thinking about it, the resistance to C at the time was for real reasons.. common microcomputer C famously shipped with a minimal language but the I/O and string handling libs made the environment a useful runtime. Interfaces to anything more than that on a microcomputer were adhoc. But many professionals at that time knew about the larger *nix systems, and wanted the kinds of pipes and task management interfaces that they knew. This was the wrong model for the Mac OS, which emphasized graphical user interfaces at every step. There were no terminal windows in the background at all, no pipes and no standardized processes.

It was the courage to break away from "grown up" multi-user system, incremental engineering and make a completely mouse-driven interface that made the Mac great. Later when C interfaces to ROM Toolbox calls were built, they were used to support the Mac OS, not drag in tons of technical debt and character-stream kinds of ideas to this new computer.

Re:The C juggernaut illustrated (2012) by mwcremer on Saturday February 04, 2023 @06:39PM (#34659677)
For what is is worth, K&R and UCSD Pascal were contemporaneous, so it could have gone either way. As it happened, Bill Atkinson convinced Steve Jobs to support Pascal on the Apple ][. And the Apple ][ was the original development environment for the Lisa, which was the original development environment for the Macintosh.

https://www.folklore.org/StoryView.py?story=Joining_Apple_Co...

Re:The C juggernaut illustrated (2012) by WalterBright on Saturday February 04, 2023 @07:00PM (#34659897)
UCSD Pascal was too slow to be competitive.
Re:The C juggernaut illustrated (2012) by AnimalMuppet on Saturday February 04, 2023 @10:27PM (#34661501)
Was it Pascal in general that was slow, or just USCD?

Was that the p-code system? Or was it a true compiler? Was it slow because it was p-code?

I wasn't on UCSD, but I don't recall Pascal being particularly slow compared to C. I never benchmarked them against each other, but it wasn't noticeably slower to my eyeball.

Re:The C juggernaut illustrated (2012) by WalterBright on Saturday February 04, 2023 @10:43PM (#34661602)
It was slow because the P-system was an interpreter, not native code. Java fixed that problem with the JIT. (Steve Russell created the first JIT for Java, and the result was spectacular.)
Re:The C juggernaut illustrated (2012) by fsckboy on Friday February 10, 2023 @01:50PM (#34743952)
that's not entirely true, for example, Microsoft Word for the Mac (and PC) was p-code C, because p-code is a lot smaller. I think UCSD pascal was, yes, slow because of p-code, but also pascal is a very limited language compared to C. P-code with pointers is going to be a lot faster than p-code with no pointers.
Re:The C juggernaut illustrated (2012) by mistrial9 on Sunday February 05, 2023 @01:24PM (#34667313)
the Apple compilers were good enough, with a lot of ASM.. the other comment is trying to change the subject to Sun things, which is like England vs France topic
Re:The C juggernaut illustrated (2012) by chasil on Saturday February 04, 2023 @08:00PM (#34660364)
In the DOS world, there were "near" and "far" pointers that would allow access to different memory segments. Even with this extra complexity, C did well.

I understand that Microsoft tried to get these into ANSI C, but they were forcefully kiboshed.

https://en.m.wikipedia.org/wiki/Far_pointer