Ludovic 'Archivist'
Negative overhead abstraction
Ariana
Ohhhhh
Ariana
Wow i didn’t know that qsort whyyy
Ludovic 'Archivist'
Wow i didn’t know that qsort whyyy
Dealing with the syntax limitations of C
Ludovic 'Archivist'
I think Linux often have dedicated sorting algorithms per type to leverage that
Ludovic 'Archivist'
Because Cr. Torvalds likes his code duplication
Ludovic 'Archivist'
Hopefully, a kernel doesn't sort much stuff
Ludovic 'Archivist'
Which reminds me I have to find out a good way to do async on openbsd
Ariana
tbh im just more comfortable with C cuz i use too much assembly though C++ does seem a lot easier&better
Ludovic 'Archivist'
tbh im just more comfortable with C cuz i use too much assembly though C++ does seem a lot easier&better
Well, some test showed me that sometimes, assembly was strangely slower than C++
Ludovic 'Archivist'
Since then I do mostly C++
Ariana
Cuz optimizations is lit
Ariana
Compiler can optimise an insane amount
Ludovic 'Archivist'
That is because you may have some assembly instructions you may never think of using
Ariana
Also that
Ludovic 'Archivist'
My test case was the memcpy of glibc
Ariana
And also out of order computing
Ludovic 'Archivist'
Which is implemented as a sse2 memory copy
Ariana
In assembly human would do like mov ax, 0 mov bx, 1 mov cx, 0 while its faster cuz outoforder to xor ax,ax mov bx,1 xor cx,cx
Ludovic 'Archivist'
Also, by doing C++ (or C for that matter) I can use gcc's -march=native on my servers
#define CLEAR_BUFFER while ( getchar ( ) != ’ \n ’ )
Well, a challenge that I can not manage for a few hours: Write a program that creates processes as shown in the photo
Ariana
how i that difficult?
Ariana
as in like what difficulties do you face
Ludovic 'Archivist'
#define CLEAR_BUFFER while ( getchar ( ) != ’ \n ’ )
Ludovic 'Archivist'
Will be a pain tho
Ariana
doable in a few mins tho
Ludovic 'Archivist'
doable in a few mins tho
Half those few minutes
#define CLEAR_BUFFER while ( getchar ( ) != ’ \n ’ )
But i not get this tree
Ludovic 'Archivist'
So much ifs
Ludovic 'Archivist'
But i not get this tree
fork, if you get 0 you are P, else you are 1. if you are P, fork, if you get 0, you are P, else, you are 2 if you are P, fork, if you get 0,you are P, else you are 3 if you are 1, fork, if you get 0 you are 1, if you get 1 you are 4
Ludovic 'Archivist'
Go on until you have your whole graph
#define CLEAR_BUFFER while ( getchar ( ) != ’ \n ’ )
Ludovic 'Archivist'
It is P for parent
#define CLEAR_BUFFER while ( getchar ( ) != ’ \n ’ )
Yes
#define CLEAR_BUFFER while ( getchar ( ) != ’ \n ’ )
Okay, i'm going try again
Ludovic 'Archivist'
Go on to make the whole graph
Ludovic 'Archivist'
Just walk the graph left to right
#define CLEAR_BUFFER while ( getchar ( ) != ’ \n ’ )
Just walk the graph left to right
It's like that the process create
#define CLEAR_BUFFER while ( getchar ( ) != ’ \n ’ )
Left to right
Ludovic 'Archivist'
It's like that the process create
Organisation is key, do things one step at a time
Ludovic 'Archivist'
If you want help, you can try to pm me but my internet is scarce at the moment, will be better in a few hours
#define CLEAR_BUFFER while ( getchar ( ) != ’ \n ’ )
Okay
Ludovic 'Archivist'
Also, I am a native French speaker if you have doubts on your english
#define CLEAR_BUFFER while ( getchar ( ) != ’ \n ’ )
BinaryByter
Daniel
hi, guys. help me, pls. I have an error "no suggestions for member of class" in Clion. what is wrong with my CMakeLists.txt so Clion don't know about class members? p.s. class is declared in main
BinaryByter
show me your code
BinaryByter
pm me the link
BinaryByter
There it is: https://hastebin.com/kejezupode.cpp I'll separate interface from realization. I gonna find out what is wrong
BinaryByter
BinaryByter
line 271
Daniel
i haven't just deleted it. Clion don't suggest me class-members in code complete
BinaryByter
maybe its confused
Daniel
like here. In main it won't work. I know that it's a problem of CMakeLists.txt. I should сpecify files there, but it doesn't work. I did a mistake in it, i think
Anonymous
Hello guys
Anonymous
How do I start building projects in c++
BinaryByter
Like you start building a house
BinaryByter
start with one line of code
BinaryByter
then add another one
BinaryByter
and one more
BinaryByter
and after you do that a few (or many) thousand times you are done
Anonymous
But I didn't get an idea of what to make and how to
BinaryByter
But I didn't get an idea of what to make and how to
if you don't know what to build, don't build anything
BinaryByter
If you want or need to build something, start with finding ideas
BinaryByter
... and mayonaise is spicy
Anonymous
Will u give me some of the sites where I find better knowledge of language
BinaryByter
yes
BinaryByter
google.com
BinaryByter
cplusplus.com
BinaryByter
cppreference.com
BinaryByter
https://www.godbolt.org/
Anonymous
Thanks brother
MᏫᎻᎯᎷᎷᎬᎠ
https://www.godbolt.org/
These days I hear a lot about this language Rust
BinaryByter
Sure :D