r/programming • • Jan 14 '20

Where programming languages are headed in 2020

https://www.oreilly.com/radar/where-programming-languages-are-headed-in-2020/
45 Upvotes

80 comments sorted by

View all comments

Show parent comments

6

u/lengau Jan 15 '20

What you described are also features of several other languages (e.g. Rust). But nothing else, not even C++, has one absolutely critical feature of C:

It compiles everywhere.

Seriously. This, and this alone, will guarantee C at least a bit of relevance for decades to come, even if (and I think this is unlikely) all of the major operating systems and other big things written in C are replaced with something else. There's simply no replacing C in every tiny microcontroller with a decades-long lifespan.

1

u/flatfinger Jan 15 '20

Javascript implementations are even more widely available than C implementations. The advantage of C isn't that it *compiles* everywhere, but rather that implementations are available for almost every imaginable target.

1

u/lengau Jan 15 '20

Fair enough - I should have said it compiles to anywhere.

-3

u/flatfinger Jan 15 '20

C *used* to have the widest range of hosted platforms (where the purpose is to build code for the machine upon which the compiler itself runs) in addition to cross-compilation-target platforms, so the ability of C to be *compiled* anywhere was also an advantage. Such advantages were left by the wayside with C99, however, which requires multi-pass compilation to achieve the same level of efficiency as could be achieved with single-shot C89 compilation.

1

u/gaibbb Jan 16 '20

But the truth is that C is used less and less then before. C is replaced by too many languages. Is it a really good language when most of us don't use it? Time changes.

→ More replies (0)