Rose
Reported King humble [6542362882] to admins.​​​​​​​​​​​
.
Which book is this?
professional c++
VD
professional c++
#res The good books are mentioned there
Rose
professional c++
Please check out this channel - @Resources for information on learning sources for C and C++ (books and videos) and Frequently Asked Questions.
Ибраги́м
/ban
Rose
/ban
Another one bites the dust...! Banned King.
borealis
the original object that's being thrown will always be copied once when constructing the exception record. C++17 changes this with new rules for temporary materialisation.
no it does not > Throwing an exception copy-initializes (11.6, 15.8) a temporary object https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/n4659.pdf page 440 (or 426 if you look at the page number on the document)
VD
Copy initialisation using a temporary object does not mean a copy constructor is called
VD
Since C++17, you can also throw objects of a type which does not have an accessible copy constructor or even a deleted copy constructor
borealis
sorry, you were right indeed
John
Is c++11 or 14 still the most popular standard, for employment?
VD
Is c++11 or 14 still the most popular standard, for employment?
I think C++17 would be the most popular now that all popular compilers have been supporting it completely for close to 5 years
John
I am just not so sure, what product manage, or hr might think of...
John
and that is why I thought the most up-to-date standards might not be the most popular standards...
John
maybe I should just focus on the "classic" standards
borealis
I am just not so sure, what product manage, or hr might think of...
hr probably thinks c++ and c# are similar due to having "c" in their name so I wouldn't worry too much about that
borealis
maybe I should just focus on the "classic" standards
if someone knows c++20, I would not expect a company using c++11 for their codebase would think "no we don't want people with modern knowledge here!!" but if someone only knows c++11, and a company uses c++20, the company might think "hm, they might be stuck in the past and might not be eager to evolve. let's skip this applicant" so I think learning the newer standard is always a plus, regardless of whether someone wants developers for a c++03 codebase or a c++23 codebase
Manav
If you're hired to maintain the code base learning new standard won't do much harm.
Chat Boss
@GulyaschijYozheg sent a huge message, it has been re-uploaded as a file Hello. I'm struggling with an attack on C code, please redirect me if this is the wrong place. I..
Chat Boss
Read the pinned message regarding homework. https://t.me/programminginc/453966
Siddhanth
Hey
Siddhanth
I have some doubts regarding c++ Can someone help me
Siddhanth
What does iomanip.h mean
Siddhanth
And also math.h regarding the statement for integer typr
Danya🔥
Have you even tried googling?
Serkan
Hello member of C/C++ community. In one of our project we have dsp code which was written with Python. But due to lack of speed and memory usage concerns project manager wants the change for language. They want to know which one to use so I started to search. It will be RF based DSP which means also going to use RtlSdr for signal capture. Which one I should pick C or C++ and why? Any suggestion would be highly appreciated. Kind Regards
Serkan
What do you mean by DSP Code written in Python?
It was, let say, more of a trial or debug code. We have final structure but its written with python. About 1000-1500 lines of python code but it doesn't efficient. So we want to change the language but I am not an expertise on either C nor C++. So, which one should be better alternative
Serkan
We use numpy and scipy but Im guessing there are alternatives for both of them. My concern is RtlSdr library and overall speed
Serkan
Does it run on the DSP? Or compiles to DSP or what?
Oh, pure python code which was binded to api (from django) and running as task in background with celery. I can call with some small implementation and make it run as co-routine/async-task
Serkan
Its working in raspberry-pi like SoM module
Danya🔥
Oh, pure python code which was binded to api (from django) and running as task in background with celery. I can call with some small implementation and make it run as co-routine/async-task
Interesting. I'd always choose C++ over C. It has more abstraction capabilities thus generally easier to use because, for example, the memory management is semi-automatic and you don't need to worry about forgetting to free resources. If you use C++ correctly of course. If some features in C++ are redundant to you, then you can just not use them
Serkan
Interesting. I'd always choose C++ over C. It has more abstraction capabilities thus generally easier to use because, for example, the memory management is semi-automatic and you don't need to worry about forgetting to free resources. If you use C++ correctly of course. If some features in C++ are redundant to you, then you can just not use them
Thanks for advice. I'll check the libraries for rtlsdr usage. At the end of the day, what I need is a program that can run as background application. So, no ui is needed. And I have little idea with C but non with C++. As I said my biggest concern is RtlSdr compability. Anyway, thanks again 🙏
Dhruv
Where i can find Fibonacci series program for c++
The
Hmm, its not my call actually but I can suggest that.
C and cpp are close in terms of ABI ,you'll get more utilities in cpp.. so do cpp
Dhruv
Tumhari ma ki chut hai bhen ke lowdo.... machudao.... tumhari bhen ki chut... gand maro
Danya🔥
Thanks for advice. I'll check the libraries for rtlsdr usage. At the end of the day, what I need is a program that can run as background application. So, no ui is needed. And I have little idea with C but non with C++. As I said my biggest concern is RtlSdr compability. Anyway, thanks again 🙏
If it runs with C, it runs with C++ But the better approach is to find C++ wrapper or write it itself. It's needed to raise the abstraction level. If you need some resources to getting to know C++, and you're a professional programmer already, I suggest the following * C++ as a Second Language on YouTube by Chromium develovers * C++ Core Guidelines * C++ best practices by Turner * Books by Scott Meyers
The
Definitely a Pajeet
Imagine what'll happen when he gets to stl and beyond
Rose
Please check out this channel - @Resources for information on learning sources for C and C++ (books and videos) and Frequently Asked Questions.
Rose
Tumhari ma ki chut hai bhen ke lowdo.... machudao.... tumhari bhen ki chut... gand maro
User No competition has 1/2 warnings; be careful! Reason: stupid question and non English
Dhruv
Tumhari ma ka bhosda
Dhruv
Ok bro nom english
Rose
Tumhari ma ka bhosda
That's 2/2 warnings; No competition is banned! Reasons: 1: stupid question and non English 2: buy
Danya🔥
I meant bye
Danya🔥
Stupid English
VD
Imagine what'll happen when he gets to stl and beyond
Most of them never get to that stage. The rare few Indians who go past that are usually decent programmers. Most of them in this community are just here wanting to be spoonfed. Anyway offtopic
zahra
What should I do with this error when running the code in Ubuntu? "terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Aborted"
zahra
Don't try allocate the more memory than you physically can...
I need to optimize my code in terms of memory, but I don't know which part of the code and how
VD
See how much you are allocating.
Pavel
I need to optimize my code in terms of memory, but I don't know which part of the code and how
"What part of the code" is a really good question to start with, and "how" really depends on it. Most of the time it is unreasonable to try optimizing everything (may end up optimizing 1% of memory while 90% of it is accidentally eaten by some not-fixed bug). I recommend finding a memory profiler that suits your needs. For example, if you can use Valgrind it has "massif" memory profiler included. Valgrind also includes tools to check for memory leaks (when you allocate memory and never clean it), which may contribute to high memory consumption as well. https://postimg.cc/v1rp7S7H Here's an example from massif-visualizer that I've just run on one of my tests, I could quickly see that I have some render data that eats up most of the space, and I know that's a bug because render should be disabled so this data shouldn't even be there. Your case may be more complex than this, but having a good tool for this in your toolbox may make it much easier to reason about these problems.
Ludovic 'Archivist'
I need to optimize my code in terms of memory, but I don't know which part of the code and how
After identifying that a part of your code needs memory usage reduction, you can check if: - domain specific elements that are stored have members that are of reasonable size (do the 15000 particles in your game need to have their coordinates as double? Do the 40000 entities?), those are "easy fixes" ™️ that may take a long time to implement - check for memory that is cleaned up later than it could - check for the maximum usage of any sparce array you have (you don't want them to be mostly empty most of the time) - check for datastructures that would benefit from small size optimization among the ones you have more than 1M instance
Manav
Can I send my code and check for me?
Learn to use valgrind yourself
Pavel
Can I send my code and check for me?
No, it will be beneficial for you to find a profiler and learn how to use it
Jose
No, it will be beneficial for you to find a profiler and learn how to use it
It will beneficial for him/her someone could show an example. Not everybody will find themselves everything they need... that's why zahra asked here