C++ in Windows vs C in Linux

How come Linux is faster than Windows when it is written in C, which is apparently bloated and bad to code with according to a bunch of threads on this board.

Attached: image.jpg (400x300, 28K)

Down's Syndrome: the thread

Attached: 1498343801586.jpg (600x663, 62K)

Nigga why are you calling it "Down´s Syndrome".

windows is actually faster than linux .if linux is faster then why do all gaems run on windows instead of linux ? linux is slow thats why

Sorry, syndrome of a down*

all games run faster on linux

*the games which will actually run on linux

Made me laugh. thx.

Here, ill make you laugh even more

Attached: 1u8cl78zj0q21.jpg (1080x2003, 196K)

>Davis
+1

Seriously though, can someone explain?

Which proves the argument, thanks.

The programming language used is only one of the many factors that play a role in achieving good performance.

Because C is faster than C++

C has fewer abstractions than C++. Fewer abstractions, in general, means "harder to program with, and messier code - but better performance and easier to debug"

I'd just like to interject for a moment. What you're referring to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.

Many computer users run a modified version of the GNU system every day, without realizing it. Through a peculiar turn of events, the version of GNU which is widely used today is often called "Linux", and many of its users are not aware that it is basically the GNU system, developed by the GNU Project.

There really is a Linux, and these people are using it, but it is just a part of the system they use. Linux is the kernel: the program in the system that allocates the machine's resources to the other programs that you run. The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system. Linux is normally used in combination with the GNU operating system: the whole system is basically GNU with Linux added, or GNU/Linux. All the so-called "Linux" distributions are really distributions of GNU/Linux.

Attached: 1518226740759.png (1098x1645, 1.09M)

In C, you write the code that does the job and you're done.

What tends to happen in C++ and a lot, lot more in very baroque languages like Java is faggots first come up with a class hierarchy, inheritance etc. etc. While that may be aesthetically pleasing, every abstraction carries binary overhead with it that results in a longer runtime and a larger binary.

Attached: vlcsnap-2019-05-06-15h24m39s656.png (624x480, 162K)

Try writing a simple hello world program using the Windows API. Then you'll understand.

#include

int main() {
printf("Hello World!");
getchar();
return 0;
}

I can't believe I took the bait

Attached: 1543353347670.jpg (267x323, 7K)

That's not the Windows API.

>probably doesn't even know what API means
>doesn't know about Win32
>still posts smugface.jpg
I wouldn't have imagined people this retarded were browsing Jow Forums the whole time...

Attached: 1452053721713.jpg (349x314, 5K)

Wtf is the "Windows Api" Directx?

>Not using the NT kernel API directly
NTWriteFile (file handle: stdout -11)

Windows is written in 1990s """C++""" which would be more accurately called Java.