Hacker News new | ask | show | jobs
by phicoh 3369 days ago
I disagree that C was looking for spotlight.

C was the system programming language of Unix. Many people wanted Unix, so they started programming in C, because that was the best supported language. In the late 70s, byte code interpreted Pascal was also popular on Unix because it allowed for bigger programs on the then current 16-bit systems.

It's pity that Modula-3 never got much traction. I guess that's part do to Modula's overly verbose syntax.

C works as long as the platform is sufficiently like Unix.

For example, in the MS-DOS world with near and far pointers, programming in C becomes utterly confusing.

These days, linker scripts and ELF hide a lot of stuff C cannot express.

1 comments

> For example, in the MS-DOS world with near and far pointers, programming in C becomes utterly confusing.

C can still be really "interesting" on Harvard architectures (many popular micros, PIC and AVR for example). Though it isn't that bad, since the compiler sorts constants and the like automatically out and loads them into memory (which means that by default constants that are not optimized out - like strings - will be deduced from the available memory ... 64 to 2048 bytes on typical SKUs).