BinaryByter
C++ can do system level just as well
BinaryByter
If not better
klimi
klimi gonna purrrrrr-gee
Anonymous
C is faster
BinaryByter
Anonymous
Than cpp
BinaryByter
klimi
Don't
klimi wants to purr
Anonymous
Wrong
No. C is actually faster
BinaryByter
BinaryByter
in average, four programs will be slower
BinaryByter
If you code sloppy c vs sloppy cpp
Mihail
No. C is actually faster
got any arguments to that statement?
Mihail
because it isn't
BinaryByter
My man!
klimi
PURGEEe
Anonymous
got any arguments to that statement?
High level languages usually provide additional layers of abstraction
BinaryByter
BinaryByter
BinaryByter
Anonymous
BinaryByter
Extra runtime
HOW DOES IT MAKE THEM SLOWER?
Mihail
Compared to C
not really
klimi
this is making me sick
Anonymous
not really
Wutttt how?
BinaryByter
Wutttt how?
Cpp is indeed a bit higher level than C
Anonymous
Yeah
Mihail
Cpp is indeed a bit higher level than C
i guess you're talking about things like the string library here?
Mihail
kinda agree there
BinaryByter
BinaryByter
Yeah
DOESNT MAKE IT SLOWER
Anonymous
DOESNT MAKE IT SLOWER
Alright. Let's say you use virtual functions in cpp and do the same thing with pointer to pointer function in c, which one will be faster?
klimi
JS ROCKS
klimi
Anonymous
They are not the same
Yeah. No virtual function in c
BinaryByter
Yeah. No virtual function in c
THEY ARE NOT THE FUCKING SOME YOU IDIOT SANDWICH, DO YOU EVEN KNOW WHAT THEY ARE?
BinaryByter
Tf they can do the same thing
I can build a class in C using function pointers, it's still not the same fucking thing
BinaryByter
I hate moronic people
Anonymous
I can build a class in C using function pointers, it's still not the same fucking thing
You aren't getting it. They aren't the same thing but they get the same thing done. Pointer to pointer functions would be faster than virtual functions.
BinaryByter
if I use a screwdriver to fasten a nail
BinaryByter
it gets the job done
BinaryByter
is it as fast?
BinaryByter
GET THE PROBLEM?
Anonymous
K
BinaryByter
btw: who tells you that function pointers are slower than virtual functions?
BinaryByter
a compiler could implement virtual functions as f-pointers
BinaryByter
(assuming that they are the same)
BinaryByter
BinaryByter
guess which was which
BinaryByter
@Saffron123987
klimi
LANG=C
Anonymous
You've written both in cpp?
BinaryByter
BinaryByter
You've written both in cpp?
both were compiled with exactly the same compiler, exactly the same optimization level
BinaryByter
they are pretty much identical
Anonymous
Erm
BinaryByter
do you still hold your claim
BinaryByter
of C++ being slower than C because it's more abstract?
Anonymous
You're using classes, no such feature in c. You would have to use struct.
BinaryByter
it's exactly the same thing
klimi
im balck
BinaryByter
but alright
BinaryByter
if you want me to do it
Anonymous
struct is slightly faster
klimi
fast as fuck boii
BinaryByter
BinaryByter
IT IS EXACTLY THE SAME THING
BinaryByter
BinaryByter
my gosh what do they teach you in uni?
BinaryByter
keep in mind that time is not very precise
BinaryByter
besides, my computer is moving, so time passes a bit faster than for an astronaut who doesn't move at all