olli
otherwise a mcve would be needed to find the issue
BinaryByter
for some reason it works now
BinaryByter
I don't remember what I changed
Dima
I don't remember what I changed
thats how development works kek
Ибраги́м
Classic Ludovic
Ибраги́м
This should be kept well
Ибраги́м
C++ however makes it easy to write suboptimal code
u don't find C++ devs using strlen() in loops huh?
olli
u don't find C++ devs using strlen() in loops huh?
but i find several unwanted copies everywhere. And subtle memory leaks that barely one notices.
BinaryByter
u don't find C++ devs using strlen() in loops huh?
does GCC even optimize the predicate of for loops out?
BinaryByter
iirc it doesnt
BinaryByter
while g++ does
BinaryByter
❤️
BinaryByter
What? why?
because C++ prefers using good things
Ибраги́м
Blame yourself
BinaryByter
olli
Perhaps u need to learn more
ofc, everyone needs to learn more. I bet you as well :) At least i spot them without tools..
olli
Even those in ISO C++ Committee haha
yeah, they might be expert in their field. But C++ is to large to completely master
Ибраги́м
Any useful language is large enough
olli
Any useful language is large enough
I consider C and Rust (to name two examples) useful as well and they are not closely comparable to C++ regarding their complexity
olli
I'd replace your C and Rust with D instead
But well, that's one of the things I like about C++, learn something new everyday! :)
Ибраги́м
And the fact that it is moving forward
Ибраги́м
Not stagnant like C
Ибраги́м
By C++20 or 23, legacy codes must've reduced immensely
olli
However, I think it is not fair to compare these aspects of those languages. C does not want to move forward. I wants to be a "high"-level abstraction that is easy to port to new architectures
Anonymous
C vs C++ is illogical. Both different.. way too different
Anonymous
C++ is way high level
olli
C vs C++ is illogical. Both different.. way too different
exactly, both are great at what they want to be (imo)
Ибраги́м
exactly, both are great at what they want to be (imo)
C is not great in that regard. Because if compiler can do a lot, lang should make updates, necessary updates.
BinaryByter
C vs C++ is illogical. Both different.. way too different
They aren't different. Cpp can do everything C does and more. Only extreme edge cases benefit from c over cpp
olli
C is not great in that regard. Because if compiler can do a lot, lang should make updates, necessary updates.
What should happen to esoteric platforms? Who will maintain and update their compilers?
Ибраги́м
https://c2lang.org
Ибраги́м
olli
Don't code for esotheric platforms
Why? And that's not always your choice
BinaryByter
Why? And that's not always your choice
Sure. Then go ahead and use C
Anonymous
They aren't different. Cpp can do everything C does and more. Only extreme edge cases benefit from c over cpp
To be fair, CPP can do way more... and that's the thing. It also saves programmer's ass a bit
olli
Sure. Then go ahead and use C
I do, if I feel it's the right choice
Dima
use js
olli
https://c2lang.org
what's that?
Anonymous
Using c nowadays is ridiculous
I am fine with CPP — minus OOP thing
BinaryByter
I am fine with CPP — minus OOP thing
Cpp without oop is a bit... Empty
olli
Good mentality
Always use the right tool, discussing C++ vs C is kind of senseless without contex
BinaryByter
Always use the right tool, discussing C++ vs C is kind of senseless without contex
We are talking about normal context, not about esotherical shits
BinaryByter
In those normal contexts, cpp is better
BinaryByter
.
olli
what's normal anyways
Ибраги́м
What should happen to esoteric platforms? Who will maintain and update their compilers?
Rip them. But C++ is catching up that space which mostly embedded. I once switch from C to C++ even when vendor says C is allowed or supported. But they included a C++ compiler, happy me
Ибраги́м
what's that?
A revolution of C. How C is supposed to look and feel in 201x
BinaryByter
Dear kde stop producing bug ridden software
Anonymous
Cpp without oop is a bit... Empty
I don't understand OOP paradism.. seriously... Maybe I am too old now, dunno
Anonymous
I heard it is good for bigger project management
BinaryByter
D
I heard it is good for bigger project management
Depends !!! Even I dont like it very much... For small projects, it is awesome... It is more like each person has his or her way of getting things done.
D
Cpp without oop is a bit... Empty
It is exactly what C should have been !!!
Ибраги́м
That's alright. I mentioned it before but try to write ASIL-D rated code in C++...
Well well well "C++ Coding Standards for the Joint Strike Fighter" http://www.stroustrup.com/JSF-AV-rules.pdf
Rahul
Can anyone send me the turbo c soft not turbo c ++
Dima
dinosaurs
Rahul
Why?
For use
Ибраги́м
still no asil rating
U mean C++ can be programmed to meet ASIL-D rating ?
Ибраги́м
For use
Bad Idea
Ибраги́м
Turbo whatever is bad for your health
Ибраги́м
Rahul
Bad Idea
What a fucking task
Ludovic 'Archivist'
Amusing isn't it
Once I had a memory space leak, this was hard to spot
Ludovic 'Archivist'
But it was in C
olli
Memory leaks in C++? Subtle? How
e.g. using smart pointers.. There are several people who though that would not be possible.. and exceptions ofc