C++ - Reddit
前往频道在 Telegram
Stay up-to-date with everything C++! Content directly fetched from the subreddit just for you. Join our group for discussions : @programminginc Powered by : @r_channels
显示更多227
订阅者
无数据24 小时
-27 天
-130 天
帖子存档
227
I need a c++ programmer
Please I need a c++ programmer that can do this school project for me
The topic is you're to investigate the translation of a sequential program in c++ to its parallel version.
Please I need help urgently
https://redd.it/li7wjs
@r_cpp
227
decltype(auto) Explanation Video
https://youtu.be/giNcc\_jTjBs
I find this channel to be very helpful in understanding some more advanced modern C++
https://redd.it/li37xs
@r_cpp
227
CppCast: Going Cross Platform
https://cppcast.com/going-cross-platform/
https://redd.it/li3h8a
@r_cpp
227
Method Chaining Base Class Methods with Derived Classes in C++
https://dariusgrant.github.io/2021/02/11/Method-Chaining-Base-Class-Methods-With-Derived-Classes
https://redd.it/lhvkzs
@r_cpp
227
co_lib - experimental asynchronous C++20 framework that feels like std library
Inspired the way how boost::fibers and Rust's async-std mimic standard library but in asynchronous way, I try to write c++20 coroutines framework that reuse std library concurrency abstractions but with co_await.
It's mostly experimental and on early stage. But I would like to share with you some results.
The library itself: https://github.com/dmitryikh/co\_lib (proceed with examples/introduction.cpp to get familiar with it). Here is an attempt to build redis async client based on `co_lib`: https://github.com/dmitryikh/co\_redis
My ultimate goal is to build `co_http` and then `co_grpc` implementations from scratch and try to push it to production.
https://redd.it/lhv0ur
@r_cpp227
Cross compiling made easy, using Clang and LLVM
https://mcilloni.ovh/2021/02/09/cxx-cross-clang/
https://redd.it/lhqkkz
@r_cpp
227
Do I have to be good at math to be a reverse engineer?
I'm learning the basics of C++ and I was wondering if I have to be a math genius to be a Reverse engineer I'm not really good at math but I find learning C++ fun
https://redd.it/lhn2c0
@r_cpp
227
IPFIX Flow Exporter Written in C++
Hello everyone,
I thought about sharing my Master's Thesis program with everyone. It is an IPFIX Flow Exporter written in C++ designed to properly process packets in network that use multiple VLANs/VXLANs or GRE. It is capable of exporting IPFIX records in such a way that they properly describe the original packet structure.
​
I was hoping that someone might have time to check it out, or maybe even use it. Any feedback is welcome.
​
Here it is: https://github.com/CSIRT-MU/flower
https://redd.it/lhneyy
@r_cpp
227
Fastest way to transpose a binary matrix?
Imagine you are given an array of 32 32-bit
ints representing the rows of a (32x32) binary matrix. What's the fastest way to transpose it (i.e. obtain a similar array which now represents the columns of the original matrix)? Can we do better than ~1024 steps?
https://redd.it/lhmrqm
@r_cpp227
C++ program
Hello, i am begginer at c++. I want to wrtie a program who is using my all 8 cores for 100%.
I have also 16GB ram. My procesor is intel i7 2700. Thanks for helping <3
https://redd.it/lhjy1z
@r_cpp
227
I've been developing in C++ on and off for ~5 years, but I can barely read the answer to this question, much less write it myself... is this normal?
Question 7(I think) on this page: https://www.toptal.com/c-plus-plus/interview-questions
>Implement a template function
IsDerivedFrom() that takes class C and class P as template parameters. It should return true when class C is derived from class P and false otherwise.
Answer:
>>!This question tests understanding of C++ templates. An experienced developer will know that this is already a part of the C++11 std library (std::is_base_of) or part of the boost library for C++ (boost::is_base_of). Even an interviewee with only passing knowledge should write something similar to this, mostly likely involving a helper class:!<
>!template<typename D, typename B>!<
>!class IsDerivedFromHelper!<
>!{!<
>!class No { };!<
>!class Yes { No no[3\]; };!<
>! !<
>!static Yes Test( B* );!<
>!static No Test( ... );!<
>!public:!<
>!enum { Is = sizeof(Test(static_cast<D*>(0))) == sizeof(Yes) };!<
>!};!<
>!template <class C, class P> !<
>!bool IsDerivedFrom() {!<
>!return IsDerivedFromHelper<C, P>::Is;!<
>!}!<
​
The part that says "Even an interviewee with only passing knowledge should write something similar to this" is especially jarring. I can barely read the code above, much less actively write it in a tense interview. I've written most of my code alone, and I very rarely use template types(and I'm almost certain any template types I use would be afterthoughts, not written during "active" writing).
In the interest of bettering myself and becoming a better developer, this raises a lot of questions for me about how I've gotten where I am without knowing this:
Do I just need to read more open source code?
Did I not work on enough group projects in college or something?
Is the main method for learning advanced techniques like this not learned on the job?
Do I just need to force some templates into a few of my projects?
https://redd.it/lhjfox
@r_cpp227
decltype of a non-static member
https://quuxplusone.github.io/blog/2021/02/10/decltype-of-member/
https://redd.it/lhh8ym
@r_cpp
227
Book “Beginning C++20”
http://www.nuonsoft.com/blog/2020/12/26/book-beginning-c20/
https://redd.it/lhhmzp
@r_cpp
227
Standard header function project.
The goal of this project is educating about the functions available in the library in more practical and concise way. It is in progress and is open source. The link to the .cpp files is given below.
https://github.com/HK2598/CppStandardHeaderExample
https://redd.it/lhfju9
@r_cpp
227
Do we have a convenient build tool for C++?
I really don't understand CMake. I'm spending more time trying to make that thing work than writing code.
I used Make. Not the friendliest thing and I don't want to return to it.
I used QMake. Don't remember serious problems with it, but now I'm going away from Qt (and as I heard Qt is also deprecating QMake) so...
What do I want?
I want an automatic build tool: I give it the names of the source files and needed libraries and get the binary. I want this tool to automatically resolve dependencies. I want it to be useful and simple.
As I understand the main problem of all those build systems is that they are language-agnostic. They are not able to resolve dependencies. Why would I want them? I can write a trivial and simple to maintain bash-script that will do the building.
But still, maybe we have a C++ convenient build system? Does anyone know one?
https://redd.it/lhfpy3
@r_cpp
227
When do you think modules will be fully implemented?
As you probably know, none of the compilers have a fully working module implementation yet (I'm using Visual Studio and even though it's officially supported it is basically unusable because of various bugs).
So my questions to the experts is simple - when do you guys think we can expect to have this feature fully working?
https://redd.it/lhf741
@r_cpp
227
I'm looking for a good data structure & algorithm text to study C++
Any recommendation?
I'm having a hard time learning stacks, queues, Link-list, hash table, implementing those and etc. Especially, I don't know how to code those, and I need to learn in order to pass the class that prof's explanation is nearly impossible to learn
thank you
https://redd.it/lh9eps
@r_cpp
227
Blog: SYCL What You Need to Know
Want to know more about SYCL and what’s new with SYCL 2020? We put together our hot list of frequently asked questions to give you more insight into SYCL, how to use it, and its benefits to developers. This list will be updated as new questions and releases appear.
https://www.khronos.org/blog/sycl-2020-what-do-you-need-to-know
https://redd.it/lh8d6s
@r_cpp
227
How to Stay Productive All Day – Coding and Scheduling Tips for Programmers
https://www.freecodecamp.org/news/how-to-stay-productive-all-day-coding-and-scheduling-tips-for-programmers/
https://redd.it/lh6hyb
@r_cpp
227
Fake Function Framework For Faking During Testing
Writing some unit tests for a C++ code base and I’m picking up Fake Function Framework for faking functions as I did a few years ago. The current company is using Catch2 instead of GoogleTest.
Here was my reasoning on tools to test C and C++•
https://redd.it/lh4ss9
@r_cpp
现已上线!2025 年 Telegram 研究 — 年度关键洞察 
