Anonymous
So?
Nothing
Prince Of Persia
Anonymous
Linux too
Affirmative
Anonymous
Nothing
What's the point of just stating facts?
Anonymous
Only general knowledge
Anonymous
Either ask a question or answer to one No one needs a general knowledge
Dima
the more knowledge the better
Dima
well, not the obvious one
Anonymous
Sorry
Prince Of Persia
Either ask a question or answer to one No one needs a general knowledge
In the fact I was searching for it I mean windows have created on which language
Anonymous
The majority is in C
Prince Of Persia
Thank you But why big project have built on C?
Prince Of Persia
Why they are not in C++?
Dima
older c++ versions have a bit of overhead compared to C (well not always)
Prince Of Persia
Why they are not in C++?
Except jvm and a few
Prince Of Persia
Thank you But now Which one better for projects?
Anonymous
Except jvm and a few
Jvm is the java virtual machine
Prince Of Persia
And which one faster?
Dima
Thank you But now Which one better for projects?
everything that starts with A or C, lol
Dima
imo
Anonymous
C is faster
Igor🇺🇦
Thank you But why big project have built on C?
OSs and kernel code is almost always C. And it's not related to performance versus C++
Prince Of Persia
Anonymous
Why?
Because the jvm has to translate the instructions into bytecodes before the cpu execution
Anonymous
But java has more security
olli
Thank you But why big project have built on C?
There are several reasons to use C over C++ - static initialization is "safe" (in C++ it can cause code to run) - C gives you "better control" (more transparent) - C has no name mangling which useful when working with other languages - Compiling C is much faster - C requires (generally speaking) less runtime support Nowadays I wouldn't expect to see a performance difference between C and C++ that would justify using one language over the other.
Anonymous
Compared to C++
Anonymous
So it's negligible
olli
In different codebases using C gains a *1.1 gain
regarding perf? can you back up your statement?
Prince Of Persia
Mrym agree this one
olli
According to Linus, another reasons not to choose C++ is because there's a million ways to get it wrong and you need some experience to get it right. C is more straight forward, there is no "universal forwarding" or "move semantics"
Sanket
Can anyone please suggest me channel for JAVA related discussions?
Anonymous
پشمام💔
Anonymous
https://medium.com/nybles/c-vs-c-vs-c-14-a-running-time-comparision-bba9942923c3 The increment I noticed was on closed source code. Heavy text manipulation. In other scenarios the gain might be higher
Prince Of Persia
پشمام💔
🧐I know Farsi but please speak English
V01D
According to Linus, another reasons not to choose C++ is because there's a million ways to get it wrong and you need some experience to get it right. C is more straight forward, there is no "universal forwarding" or "move semantics"
C++ in a Kernel would be disgustang. But a web server or a game engine in C would be just as sad. C is optimized for compilers and what not. After all C++ was once called "C with extensions" or something along those lines
Anonymous
🧐I know Farsi but please speak English
به عنوان شاهزاده ایرانی توقع داشتم وطنی باشی💔😂
Nameful
C++ in a Kernel would be disgustang. But a web server or a game engine in C would be just as sad. C is optimized for compilers and what not. After all C++ was once called "C with extensions" or something along those lines
> C++ in a Kernel would be disgustang. why > But a web server or a game engine in C would be just as sad. why > C is optimized for compilers and what not. what
Anonymous
Sanket
Okay let me ask you one question JAVA and C++ are written in which language...it will answer all questions why C is faster
Prince Of Persia
Clash of clans is written on C
Sorry It's objective C
Anonymous
Sorry It's objective C
It won't run on Android
Nameful
bruh
数学の恋人
wtf is this pointless argument going on here?
数学の恋人
I don't see the point of discussing what is made with what
V01D
> C++ in a Kernel would be disgustang. why > But a web server or a game engine in C would be just as sad. why > C is optimized for compilers and what not. what
> It is more prone to errors I heard. (Linus explains why he loves C) > C is super old, and C++ is just way stronger for huge complex projects like this. Ofcourse C can handle it, but it would be boring. > C was made for low level.things specifically. Back then languages had to be made for a specific area of stuff. GP languages weren't a thing yet
Prince Of Persia
C++ just need to convert to Assembly
Alex
GCC is written in C++
initially it was written in C, only several years ago they changed language
Nameful
> It is more prone to errors I heard. (Linus explains why he loves C) > C is super old, and C++ is just way stronger for huge complex projects like this. Ofcourse C can handle it, but it would be boring. > C was made for low level.things specifically. Back then languages had to be made for a specific area of stuff. GP languages weren't a thing yet
> It is more prone to errors I heard. (Linus explains why he loves C) C++ lets you write safer code than C. > C is super old, and C++ is just way stronger for huge complex projects like this. Ofcourse C can handle it, but it would be boring. But a kernel is exempt this?
Sanket
I mean libraries
olli
Languages are program😁
No.. A programming language is a formal language comprising a set of instructions that produce various kinds of output.
V01D
The compiler makes up the language
Prince Of Persia
Any language (virtual machine or compiler) are written on a low leveler language
Prince Of Persia
Or g++
olli
What about jvm?
JVM is not a language