| General > General Technical Chat |
| How many people code in C these days, and if so, why? |
| << < (33/99) > >> |
| nuclearcat:
Here is big article, unfortunately in russian (not sure if google translate can do it's job) https://habr.com/ru/post/347980/ It can be condensed to fact, that they did cooperative efforts to write most efficient code to do some simple task (button and letds) , and they got much more readable C++ with OOP 400 bytes in flash and 72 bytes in stack, VS pure C much less flexible and readable 396 byte in flash and 72 bytes in stack. Assembly is near identical (no performance difference). Yes, C++ have many sweet features that is better to avoid on MCU (for example even silly vectors), but if you just use it for OOP and some "safe" features - it is not less efficient than C. |
| 0db:
Linus Torvalds "Nothing better than C" |
| maginnovision:
I'm going to take linus' opinion about as seriously as Stroustrups. They're both too invested in their languages of choice. |
| coppice:
--- Quote from: maginnovision on May 09, 2020, 04:17:56 pm ---I'm going to take linus' opinion about as seriously as Stroustrups. They're both too invested in their languages of choice. --- End quote --- Note that Linus didn't say there was nothing as good as C. He said there was nothing better. When C appeared there were languages like Coral (rather UK centric), BCPL, some variants of Algol, some variants of PL/1, and so on, targeting the same kind of "working close to the metal" style that is so necessary for systems software, and low level embedded software. There were a few proprietary ones from people like DEC, too. They all did a pretty good job. One or two had some very useful things C lacked, such as nested versions of structures, but nothing that made any of them truly stand out. C is the one we are left with in 2020. |
| engrguy42:
And while all the fanboys are one-upping each other over the finer points of their chosen language, the C# guy is gettin' shit DONE :-DD |
| Navigation |
| Message Index |
| Next page |
| Previous page |