News for hackers. Stuff that matters.
Re:I love coding in C by squarefoot on Thursday December 26, 2019 @10:47AM (#21884565)
The language hasn't evolved for the same reason a transistor hasn't evolved: because it didn't need to. Adding for example string manipulation, or graphics, etc. would make it a fantastic language, but it would lose being that minimalist tool which makes it often the best choice when writing low level stuff. To me, Crystal, Nim, Rust, Go etc. already fulfill that need. About the electronics comparison, I can build a lot of complex stuff more fast and more easily using opamps or logic gates compared to discrete transistors, but if I need to do a simple basic task such as invert a logic signal or amplify an analog one I'm using a single transistor any day because it doesn't just spare all that wasted silicon in chips but also in many cases it will be more fast, more cheap and more quiet noise-wise.
Re:I love coding in C by ncmncm on Thursday December 26, 2019 @05:21PM (#21887331)
Wrong. Transistors have evolved in dozens of directions. The old transistors are still used, but decreasingly so. It is likely an op amp does better what your transistor and a bunch of other stuff did, and equally as cheaply. The op amp might have bipolar transistors in, but just as likely not.

C has not evolved because C++ has, and because the computers got a million times faster, so even Python is usually good enough. If you need something that does what C does, but better, C++ is right there waiting. Change your makefile, or rename some files, and suddenly you have a C++ program, that is then easy to improve as much as you like.

Re:I love coding in C by flavio81 on Friday December 27, 2019 @10:48AM (#21891942)
>C has not evolved

Well, it has, in a way: see the latest C standard and compare it with the Kerninghan&Ritchie edition.

Re:I love coding in C by ncmncm on Saturday December 28, 2019 @03:24AM (#21897828)
C has barely changed since 1989. It already had void and function prototypes copied from C++, back then. Only atomics and restrict make any real difference.
Re:I love coding in C by flavio81 on Friday December 27, 2019 @10:48AM (#21891938)
>The language hasn't evolved for the same reason a transistor hasn't evolved: because it didn't need to.

That's what you think. Transistors have evolved a lot, as have programming languages.

Re:I love coding in C by squarefoot on Friday December 27, 2019 @12:25PM (#21892637)
I meant functionally, ie what a single part (bjt, jfet, mosfet etc) can do. of course there are better materials and ways to produce more advanced parts.