Pippi
For example, few days ago there was a debate here about caroutines, if you are in cybersecurity and into malware development and analysis you may never use caroutines but if you are in game development you will definitely use it, you get the point now
正伟
hello,everybody。
Never Spam Bot
正伟 邓 is now approved by the group admin and can send messages without any restrictions I would like to ask everyone a question: Is the remote compilation feature of VS2019 reliable? Currently, I am using VS2019 to remotely compile Linux C++ code, but based on the gdb results, there seems to be a discrepancy between the compiled output and my code. Of course, this situation occurs very rarely. See spam? Quote the spam message in the group and reply with /spam
正伟
I would like to ask everyone a question: Is the remote compilation feature of VS2019 reliable? Currently, I am using VS2019 to remotely compile Linux C++ code, but based on the gdb results, there seems to be a discrepancy between the compiled output and my code. Of course, this situation occurs very rarely.
Aurora
秀代码
Aurora
Show your code
Rose
Purge complete.
Aurora
9
Vlad
What is "remote compilation" anyway?
Vlad
ssh'ing somewhere and git clone'ing there?
wolf
what is the feeling when u miss '\0' in your string and compiling it?
~
Does anyone has links (website or anything) that list all possible UB in C++? Both in raw pointer or C++ 11+ RAII/smart pointers, I want to learn from the mistakes, by avoiding the mistakes
Pavel
Does anyone has links (website or anything) that list all possible UB in C++? Both in raw pointer or C++ 11+ RAII/smart pointers, I want to learn from the mistakes, by avoiding the mistakes
I think UB usually described on a bit lower level than smart pointers and RAII is just an idiom, but here is the best list I've seen so far https://github.com/shafik/cpp_undefined_behavior_enumerated/blob/master/all_section.md
Pavel
Usually correct implementations of smart pointers doesn't result in UB, but you can still do wrong things with them as with any other C++ objects
Pavel
The UB related to raw pointer math is interesting though, like [expr.add] from the list states that incrementing a pointer past the end of the array is UB by itself, even without trying to dereference it.
Vlad
It has examples of ub throughout it
~
I have a confusion ;( does any segfault is UB? Or some segfault can not be UB and some can be UB?
~
Have you read core guidelines?
I have only read learncpp dot com. Which core guidelines website did you mean?
Vlad
I have only read learncpp dot com. Which core guidelines website did you mean?
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines
Pavel
Can you give example code of wrong thing in smart pointer?
Here are two examples: first one is a somewhat typical issue of passing ownership to a smart pointer in a bad way second one is a silly example of a generic wrong thing you can do with an object (any object, not only a smart pointer) https://wandbox.org/permlink/ZMCmsuyEmMqMe3DJ
Pavel
The compiler detected that stuff easily, had to obfuscate it a bit and downgrade the compiler
Mohammed
I am an Egyptian programmer in the College of Artificial Intelligence. I am in the first year and I am 18 years old. I want a basic course in software that lasts from one and a half to two years, and that is useful and reasonably priced. If it is free, it would be good. Is there anyone who can guide me or provide me with guidance, because I am still a beginner and I do not know anything. I have a very superficial knowledge of Python.
Mohammed
C++
Ujjawal
C++
Why C++ btw?
Ujjawal
Why not any other language?
正伟
Do you mean remote compilation or debugging?
sorry,i think i am wrong。 in face,there is no problem in the remote compilation in vs2019。
正伟
Show your code
The real problem I'm encountering is that dynamic library A loads dynamic library B, and both dynamic libraries depend on static library C, but the versions are different. Dynamic library B calls function F from static library C, which has been modified in the newer version of static library C. The current behavior is that function F called from dynamic library B still uses the version that dynamic library A depends on. I believe this is due to an error in g++'s search for the function symbol table. My usage is certainly incorrect; I should ensure that the global static library versions are consistent.
正伟
but in almost time,the problem is disappear。
正伟
正伟
you can edit code in windows,and compile in Linux
wolf
just carefully see through the differences in new version lib and modify the pointers of lib for dll you are using.
wolf
I can't think another way to do it
Jarkartar
Hi sir i am from myanmar I am 17 year students i want to do System programming.  Like modified os, kernal, and devices system and Andori system,  i have been java basic . Recommand me for systen programming.
Rose
Hi sir i am from myanmar I am 17 year students i want to do System programming.  Like modified os, kernal, and devices system and Andori system,  i have been java basic . Recommand me for systen programming.
These are ways you can improve the odds of someone wanting to help you. Be considerate when posting questions. • Use a search engine to check if anyone else had the same question as yours before asking. Stackoverflow is your friend. • Be straight to the point (do not ask to ask.) • Be specific, include as many details as you can. • Show what you've tried to solve the problem • We don't care if anything is "urgent" or "important" - wait patiently for someone to reply. • In addition, please check this site to learn how to ask questions in a public forum. It's good style to limit the amount of messages you send to a public forum; put effort into 1 message, rather than sending many of them, and edit messages to fix errors or to include more information.
wolf
could someone share some keyboard remapping advices for rookie? like ctrl(left)=end?
Pavel
could someone share some keyboard remapping advices for rookie? like ctrl(left)=end?
We need more details. Keyboard remapping where? Do you want to learn how to do it in your UI framework?
wolf
just some time saving advices
Vlad
just some time saving advices
Best time saving advice is to save your time and cognitive load from tinker trooning
Vlad
Learn your basic editor shortcuts and just do actual programming instead
onz
any reverse engineer?
Rose
any reverse engineer?
Don't ask meta questions. In other words, don't ask to ask. Questions like "Does anyone know XYZ?", "Has anyone used XYZ?" or "Can someone help me?" are all considered meta questions because they don't specify what your actual problem is. These questions give the impression that you want people to approach you and offer their help as if they don't have any other work to do. Now doesn't that expectation make you look like an idiot? If you have a question ask it directly. You are more likely to get a response that way.
onz
how can i recursively search subfolders by their names in c? Not cpp, pure C, PIC..
onz
windows
Vlad
https://stackoverflow.com/questions/25639874/recursively-searching-for-files-in-the-computer
onz
nearly impossible without any winapi s right? i wanted to design in memory filesystem, but not like unix, windows looks hard
onz
yes, saw that one
来财@阿里云充值就送
Hi everyone , Good Morning
来财@阿里云充值就送
Just want to ask if anyone need a server or vps ?
potato
ot
wolf
how to pronounce “Bjarne Stroustrup” ‖/bdʒʌnɪ stʃaʊstʃʌp/ or /Bjʌnei stʃʌstʃʌp/ ? I heard it differently from different people
Pavel
how to pronounce “Bjarne Stroustrup” ‖/bdʒʌnɪ stʃaʊstʃʌp/ or /Bjʌnei stʃʌstʃʌp/ ? I heard it differently from different people
It is definitely [j] and not [dz], nordic languages don't pronounce j like in English. The English page on Wikipedia has the pronunciation in English https://en.m.wikipedia.org/wiki/Bjarne_Stroustrup
Nobita
Any beginner (who literally doesn't know anything in c ) wants to start c?
wolf
don't use c,unless u want to work for old rich people
klimi
don't use c,unless u want to work for old rich people
i mean for learning low level or even working with low level devices, C is quite helpful
klimi
why?
well it is faster than to write asm
Ziky
Oh sure. I thought why not to use c++
wolf
unless u write code for rocket science or railed missile auto pilot or military shooting robot cars auto drive.that's where speed really matters,otherwise I think you aimming for reverse engineer
0100110010100010
Hi guys I'm developing own os on c and asm it is hard? What's me start?
Cayetano
Wow!! It would be a huge project, and my first task should be to look for a cross compiler that supports the target platforms. I mean, if you are planning to create a new memory management or disk file system, you must have a compiler that lets you create the "executable" that fits and can be able to used with the new memory management and the new disk file system. On the other hand, I will look for the architecture handbook of the planned supported processors to understand how they manage the protected mode, how they paginate the physical memory, etc.
Cayetano
If you are not planning to change those aspects, you can start with Minix compatible kernel and vary the features that you want ... and will result easiest task
Jojo
Sure
Yes there is
Never Spam Bot
wolf big bad is now approved by the group admin and can send messages without any restrictions but once u learned asm, everything is opensource See spam? Quote the spam message in the group and reply with /spam