🍌 C++ Feed
305 subscribers
218 photos
12.7K links
Агрегатор всего подряд про C++.

Для связи: @smertig

Powered by https://github.com/Smertig/banana
Download Telegram
C++
Resource for learning c++ for an experienced python developer

Hello everyone! I am a master’s student studying Computational Modeling and Simulation. Whenever I start looking at Computer Vision job descriptions I come across C++ as a requirement, so I have decided to learn it. The problem is that I have some experience in Java and python so I need a resource which doesn’t focus more on the barebones (basic oop) and I am facing hard time finding one. This community has a lot of experienced developers, can you suggest a good resource to start with? submitted by /u/kaafilit
[link] [comments]
C++ – Типизированный язык программирования
Как скрестить Clion, Emscripten и Cmake

В этой статье я хотел бы пройтись и показать основные моменты того, как настроить IDE CLion для компиляции CMake проекта средствами Emscripten. Когда я занимался этим скрещиванием мне пришлось потратить день или два на эксперименты. И в этой заметке я собираюсь собрать некое "how to", которое в итоге сработало. Читать далее
C++
Question about "Internal Variable "Result""

Hey folks, Kinda stumped by what this question means, here is it: "Modify stub( ) so that it now takes all three variables as input (arguments) and returns true/false value associated with an internal variable "result" that is initialised as 0" I *think* it's asking me to declare a variable named "result" inside function "stub", declare as bool false, check it against values of args, if args = bool true, then "result" = bool true I'm only a couple weeks new to C++ so still getting to grips with the terminology, cheers folks ✌️ submitted by /u/Outragedbird
[link] ...

Read full post
C++
"High res" mac trackpad input?

[x-post from QtFramework subreddit since I didn't get an answer there] Hi all, I'm working on a FPS game, currently using Qt 5.12.6, and I'm struggling to get smooth mouse (and therefore camera) movement. As an example, if I place one finger on the trackpad and 'roll' my fingertip around (not moving it, but moving my hand around it so different parts of my fingertip touch the trackpad), my mac mouse cursor moves slowly but fluidly the whole time. Meanwhile, my app only gets integer updates when the cursor has moved 'far enough' for the delta to be 1. This causes much jumpier camera movements than I believe should be possible with the trackpad, if I was getting whatever 'partial' delta must be behind the normal mac...

Read full post
The Pasture
The Community

Against all of my self-preservation instincts, I decided to do one last conference talk. Originally, I was set up to do 11 conferences, and every single Committee meeting – both C and C++ – this year. Of course, those plans have were railroaded by Sublime Mother Nature. Still, I mustered my strength over the last 32 days since I left Twitter to make one last video. Leaving Twitter was not the cause of this, it was actually the argument I got into after I left with my friends. Or… well, ex-friends now, probably. Even if they invite me back I don’t think there is a way I can mentally bring myself to go back there and participate…

But first, the conference.

The Conference

It’s called “[[derpconf]] 2020”, but it’s just me, the Derp. Or well, the entire The Phantom Derpstorm (ThePhD, that’s where it comes from, not a degree in case you were...

Read full post
C++
Did a mod really just post their own video and lock the thread so that no one could comment?

https://www.reddit.com/r/cpp/comments/j68ylq/the_c_community_thephd/ What is this? Disregarding the video completely, why would a mod think it is fine to post something, leave a "it's time to listen" post, then lock the thread? This is pretty gross. Creeping mod abuse is a way to ruin a good forum (which I think this is). If you think there is something worth saying, why wouldn't you want to interface with people? (Also please don't reply to this thread, this is a time to listen) submitted by /u/WrongAndBeligerent
...

Read full post
C++
This is a time to listen, not to talk, blelbach

The original post is below. It was locked then deleted because it was critical of creating a post then locking out all comments. I don't think that the comments were beyond the ability to be handled by user moderation, yet that is the justification for locking it, deleting it, and posting a moderator comment that can't be challenged. That was also the justification for preemptively locking out all comments on the first post. This is a discussion forum. If you don't want discussion, don't post. No one else gets the option to kill discussions with a flimsy rationalization. Forums that let moderators use their moderation to stop criticism of their moderation devolve quickly. Original post: ...

Read full post
C++
Analyzing RSS memory leak for a C++ application

I am currently looking into what seems like a memory leak with a multithreaded C++ 11 application. The weird part about this is that when I use Valgrind Massif or Heaptrack I do not see a leak in the heap. The heap memory stays at about 15 MB but what I am noticing is that when I continue to use the application, I see that the RSS memory keeps increasing. I have also analyzed the number of threads to see if there is a thread leak, but the total number of threads does remain constant ( though the application does create and join threads a bunch of times) Could someone give me pointers on how I can go about exploring this leak. I have used pmap to list out the pages and I do see few blocks marked as [anon] that are contributing for the increased RSS. But I am not sure how to ...

Read full post
C++
There is a need for more organized, open system with standard proposals

Once again there is a question "Does anyone know what is the status of XXX proposal?" posted on this subreddit. Myself, I had such a question about different proposals many times, and always found it hard to answer. The information seems to be all over the place - reddit posts, meeting reports, mailing lists... I think there is a dire need for system, where one can find all ongoing / closed proposals with their statuses, current revisions, and links to all the previous revisions. One could argue, that papers on https://www.open-std.org/ have all the information, but it is impossible to: - find the newest revision of given paper, - search for any particular paper, without knowing the year it was published, - filt...

Read full post
C++
Other than generators, what do coroutines solve better?

I posted to cpp_questions and got answers about what coroutines do: split a thread’s execution from its state. But I still don’t understand when they are the right tool. I wrote a chess engine. I have an alpha-beta pruned minimax tree. I don’t need a full list of child nodes (chess moves) at every depth (board), only a few up to an alpha-beta cutoff. Generators solve this problem elegantly. I’m struggling to come up with any other situations where coroutines are the right tool. When is polling, std::async, a thread-pool, a functor, or a thread-safe container a not a more performant or simple option? In other words, co_yield is great. But why co_await? submitted by /u/XiPingTing
...

Read full post
Standard C++ (Twitter)

More Convenience Functions for Containers with C++20--Rainer Grimm bit.ly/3nqY7ML #cpp
Standard C++ (Twitter)

std::format in C++20--Peter Gottschling bit.ly/33EbWjd #cpp