Pavel
But memory-unpredictable
I think at least the same predictable as with C arrays
Hayk
read about how it works and then call \n “shit"
I still didn't understand why do we need to flush the buffer.
Badugar
So .. int[2][3][4] would be int(*+2)(*+3)(*+4) ?
BinaryByter
But memory-unpredictable
the problem with std::vector is that the compiler will generate a full set of functions for each template
Badugar
So .. int[2][3][4] would be int(*+2)(*+3)(*+4) ?
Or however pointer-arithmetic is done. 😅
BinaryByter
+ classes are bloat
BinaryByter
+ classes are bloat
memory unpredictability is the least of your problems
Pavel
Pavel
I mean these things are minor
BinaryByter
Memory is cheap, at least if you not working with some embedded stuff
People thinking like you are the reason we need this much RAM to begin with
BinaryByter
BinaryByter
BinaryByter
either you do int b[2][3][4] ; or you do int[] <=> int*
Mihail
int [2][3][4] is invalid
It's a example
BinaryByter
if you meant b[2][3][4], then it would be what mihail said
Mihail
He said int[2][3][4] not int [2][3][4]
Mihail
Which shows that it is just an example name
BinaryByter
True
BinaryByter
was kinda ambiguous
BinaryByter
But ¯\_(ツ)_/¯
Pavel
THEY ARE NOT
Well, I would like to see the list of your priorities regarding software, if unused functions generated by templates are so important
Pavel
No offence by the way, I really would like to
BinaryByter
No offence by the way, I really would like to
1) get it to run 2) get it to run fast in the least amount of space possible 3) get the code clean
BinaryByter
something like that
Pavel
Well, in my case 2 and 3 would be swapped
BinaryByter
Most of the time, clean code is super slow to write
Mihail
No
Some are
BinaryByter
Most of the time, clean code is super slow to write
And it usually wont end up cleaner than what you'd do normally
Mihail
klimi
Some are
Ye but ....they are not teachers.... Because they can't teach anything
BinaryByter
https://github.com/Wittmaxi/JASM
Mihail
Just start off with 3 and do it cleanly the whole way
BinaryByter
this compiler I wrote in 2-3 is an example of how efficient code can be done cleanly while being functional
Dima
I like
BinaryByter
Just start off with 3 and do it cleanly the whole way
This is how Slack came to become the RAM beast we know and love!
BinaryByter
#noobdevs
Thats what I see when I look into the standard library of C++
BinaryByter
It litterally just fixes fuckups C devs commonly make 😂
Dima
previous std devs made*
Mihail
Thats what I see when I look into the standard library of C++
"the standard library of C++" The standard library?
Dima
don’t blame c/c devs
BinaryByter
lol the C community is full of dumbasses 😂
Pavel
This is how Slack came to become the RAM beast we know and love!
Its because users don't care. I mean if you can write can slow code fast it's usually more appreciated now than just write fast code.
Mihail
which other library?
? There is no one standard library
BinaryByter
Also, the entire "slack abuses ram" memes show that users DO care
Pavel
But they use it anyway, if they refuse and go to some lighter alternatives, it would change something
Mihail
I can write fast code quickly
And break it even quicker
Mihail
Sure
Mihail
Lol?
No?
Pavel
I mean I can brag a lot about the smartphones getting worser, but if I buy the new ones, I actually do support them. Well, not a good analogy.. but I think you get it
BinaryByter
but the apps on them are bad
BinaryByter
so the smartphones are forced to upgrade their hardware
BinaryByter
May I remind you C++ guys that you block the CPU in order to copy memory from spot one to spot two, while another process could use the CPU in the meanwhile?
Mat
Most of the time, clean code is super slow to write
Faster to maintain, faster to test, faster to push into prduction
Mat
People however are not used t write it
Dima
Don’t talk to this guy, he doesn’t know what is a production stage 😂
BinaryByter
Faster to maintain, faster to test, faster to push into prduction
Maybe we should get our definitions straight:
BinaryByter
I call modern clean code that fancy modern stuff with classes, and design patterns and templates etc
BinaryByter
Sure, having small functions with good names and good variables is INDEED very important
olli
+ classes are bloat
no, a class is not bloat
BinaryByter
no, a class is not bloat
Except for when the compiler fucks up at optimizing it or can't optimize it because you cannot just create half of the class
BinaryByter
No
BinaryByter
believe what you want ¯\_(ツ)_/¯
olli
thought so... Torvalds strikes again "Talk is cheap. Show me the code."
BinaryByter
Though torvalds agrees with me that C++ is shit 😉
Mat
I call modern clean code that fancy modern stuff with classes, and design patterns and templates etc
That's not the definition of modern nor clean code imo. Modern and clean code is the one using the last technologies, it's only the needed code, and it's totally covered by useful and well written tests. The use of the right pattern in the right place and context is more useful than anything else in creating code easily readable, maintainable and sharable while contributing to improve a wide accepted way of doing stuff
Mat
Though torvalds agrees with me that C++ is shit 😉
Torvalds agrees about C++ being useless for a kernel