Why are languages like C and C++ still being used today even though hardware is exponentially faster than it was when...

Why are languages like C and C++ still being used today even though hardware is exponentially faster than it was when these languages were created. Why not just do everything on Python or C#, for example?

>Why not just do everything on Python or C#, for example?

Mostly due to the rigors of rotational velocidensity, although there's a lot of debate on both sides.

You'll have to come to your own conclusions.

Because some people actually enjoy programming

(OP)
>Why not just do everything on Python or C#, for example?

The advantage with using python over c++ is that you don't have to compile.
While it might take a long time to compile a large project, it also helps with finding stupid mistakes and it makes code execution faster.

A lot of applications does not require the speed as they rely on network information or user input or other slow sources.

>While it might take a long time to compile a large project

That's just C++ and a lot of optimizations.

>Why not just do everything on Python or C#, for example?

You are everything that is wrong with today's programmers. Do the society a favour and abandon IT or hang yourself.

Two reasons:

1. A metric fuckton of legacy code ensures that C, C++ and Java will haunt us forever.

2. For applications where you need every little bit of speed (operating systems, games, graphical stuff) C or C++ still are faster. You must understand that many people put a lot of energy in optimizing stuff here, down to optimizing assembly code.


But generally I agree. If it wasn't for programs that gets more and more bloated every year we could just use sweeter languages. But people are spoiled today, nobody waits 2 minutes for your OS to boot.

>
> (OP) (OP)
>Why not just do everything on Python or C#, for example?

Every language has its role. With C/C++ you get greater control, speed, and it doesn't take up memory to emulate.

These things may not matter if you're making a dragon dildo emulator, but if you're making research/engineering grade software for analysis then you want something like C/C++.

Not sure about C but C++ gives you a level of control that is scary. Sometimes that power level is necessary for applications that need to be optimized in a very niche or specific way

my car gets on average 11mpg while having only 180hp

why they are using "complex" electronics to control it and spend hundreds of millions of dollars on r&d instead of just putting a larger gas tank?

>
>>
>>> (OP) (OP) (OP) (OP)

> ITT: I CANT GET INTO REAL PROGRAMMING.

C gives you even more control than C++, actually. There's a reason C gets chosen over C++ for core OS components, device drivers, and so on.

Maybe we want software to get exponentially faster along with the hardware instead of stagnating by introducing more overhead just because "hey, we can now!"

>why are efficient languages still used today
>we should just waste all our performance running inefficient programs

>
>>
>>>
>>>>(OP) (OP) (OP) (OP) (OP)

> >> >>> >>>> (OP)(OP) (OP) (OP) (OP) (OP) (OP)

Almost. most advancements this decade rely on massive parallelsim (GPUS anyone?)

once a c-style language lets us grok threads in a reasonably safe way, we'll hit the next plateau of software efficiency.

>c-style language
>threads in a reasonably safe way
threading isn't hard because of the syntax of the language, its hard because you need to do the thinking about how to divide tasks up into independent chunks, avoid race conditions while sharing data between them, etc.

Because only in C/C++ and ASM you can tell the CPU that data you allocated will be used once and so it should clear it from L1/L2/L3 cache