Dima
thats right
Artöm
How is that a plane?
Same question. Thats obviously a spider
Artöm
It is not. Globals make debug harder and multithreading a pain
Artöm
It should be defined as local to begin with
Artöm
Is it possible to make condition variable entirely local ib your case?
Artöm
It is a general rule of programming to make variables as local as possible
Anonymous
anybody can help with passing html input to php file’s SQL Query with ajax and jquery please :/
Pavel
anybody can help with passing html input to php file’s SQL Query with ajax and jquery please :/
how does C or C++ fit this task? by the way, what you just sent looks like just a list of web terms to me :)
MᏫᎻᎯᎷᎷᎬᎠ
What's the purpose of volatile variables?! Are they important in general?!
MᏫᎻᎯᎷᎷᎬᎠ
How does the compiler mark them as "this can be read outside the program segment", how does that accommodate with virtual addresses and so on?!
MᏫᎻᎯᎷᎷᎬᎠ
How does the compiler mark them as "this can be read outside the program segment", how does that accommodate with virtual addresses and so on?!
And does the compiler guarantee that this will be a true volatile variable and definitely can be read outside the program?! Since they are so useful and important Why the new standard is deprecating it in most places?!
MᏫᎻᎯᎷᎷᎬᎠ
Is there any system call for allowing that?
MᏫᎻᎯᎷᎷᎬᎠ
But Is it guaranteed to be true volatiled or it's the same case like inline functions where the compiler will choose the best option
MᏫᎻᎯᎷᎷᎬᎠ
I don't know much about assembly But i Guess it's the same case where instructions are being loaded to the memory and read from there Also assembly sometimes uses some system calls(I think), it's not like there is another volatile keyword there
MᏫᎻᎯᎷᎷᎬᎠ
Yeah System calls are not made from outer space or somewhat lol But still assembly uses it Last time I recall, you put the system call number into a specific register for execute
MᏫᎻᎯᎷᎷᎬᎠ
Madhu is so much great source of knowledge here You don't wanna miss her presence
MᏫᎻᎯᎷᎷᎬᎠ
Nah In general there is not Assembly is a very platform-dependant language
Anunay
MᏫᎻᎯᎷᎷᎬᎠ
Will I get banned :(
Anunay
Will I get banned :(
Why though? 😂
MᏫᎻᎯᎷᎷᎬᎠ
Hahah
MᏫᎻᎯᎷᎷᎬᎠ
Why though? 😂
He reported me too 😂
Anunay
XD
MᏫᎻᎯᎷᎷᎬᎠ
Anyway Thanks a lot @lightness_races_in_orbit :)
Anonymous
i have a very strange problem
Anonymous
int flipS(int *i, short *s) { *i = 0; *s = 1; return *i; }
Anonymous
always returns 1 wtf !?!? how is this possible
Anonymous
no they are 100% not pointing to the same location
Anonymous
compiling with GCC 9.2.1
Anonymous
haha you have no idea?
Anonymous
really ? not a clue ? this is obvious
Artöm
Was it a quiz?
Anonymous
Was it a quiz?
obviously lol
Artöm
I suspect aliasing violation
Anonymous
its strict aliasing optimizer breaking it
Anonymous
lol your smarter than me, you win
Anonymous
satisfied ?
MᏫᎻᎯᎷᎷᎬᎠ
lol your smarter than me, you win
Just show us the caller code so you don't waste your time much more
MᏫᎻᎯᎷᎷᎬᎠ
And we'll gladly will help you
Alex
Are there any catalogue for c/c++ free libraries? For example, I failed to google for doc format, so I created my own. But StackOverflow does not allow to publish name of my library, so its still hard to google library to extract text from doc format
Anonymous
I was just being an asshole
MᏫᎻᎯᎷᎷᎬᎠ
MᏫᎻᎯᎷᎷᎬᎠ
Okay So you were just messing around
Alex
Did you open sourced the library?
yes, two libraries for doc and pdf. for doc I found nothing, for pdf low quality solutions for extracting text
Alex
so I created two libraries
Alex
gonna publish to catalog you provided
Alex
they are on github
Anonymous
Post the links please here
Alex
https://github.com/uvoteam/libdoc
Alex
https://github.com/uvoteam/pdf_extract
Anonymous
https://github.com/uvoteam/libdoc
Well it's C, not C++ Try to find the same list of libs for C
Alex
Well it's C, not C++ Try to find the same list of libs for C
its possible to use it for C++(actually I do it). I use extern "C" in header file
Anonymous
its possible to use it for C++(actually I do it). I use extern "C" in header file
I mean if you can use it in C++ it doesn't make it Awesome C++ because a lot of (if not all) common practices in C language are considered bad ones in C++
Alex
Alex
they can reject
Anonymous
You definitely should give a try
Alex
I am not sure, but format description is free. and linux utility cat2doc is free also
Alex
and what about libreoffice? it is possible to save document in doc format
Alex
I am talking about doc format, not docx. docx is easy to parse with XML lib
Anonymous
I dunno about DOC, but there's Apache Tika can which extract meta info about DOCX But it's in Java
Alex
do you mean there is new version of doc format which is not compatible? do you have such document?
Alex
unfortunately I don`t use Windows
Alex
I will try to ask my friends for such document. thank you
Anonymous
Oki doki
Anonymous
Is it a binary format?
Alex
docx is xml. doc is binary
Anonymous
It sucks
Anonymous
Totally agree
Alex
do you mean doc, not docx? I created doc library several years ago and did not get any correct doc file which is impossible to read
Alex
also my library is used by chinese company
olli
https://docs.microsoft.com/en-us/openspecs/data_portability/ms-dataportlp/a2bc1311-e0e7-4808-970a-4dc0a100f708 This might help with office file parsing
S@IF
In c/c++
S@IF
/get ide