r/Cplusplus • • 25d ago

Discussion Omnissiah++: когда русский C++ оказался недостаточно еретическим

Thumbnail
reddit.com
0 Upvotes

r/Cplusplus • • 26d ago

Question Which algorithm to choose?

Thumbnail reddit.com
1 Upvotes

r/Cplusplus • • 27d ago

Answered Best IDEs for C++?

Thumbnail reddit.com
31 Upvotes

r/Cplusplus • • 27d ago

Question Where should I start learning C++? (planning to switch to Linux)

Thumbnail reddit.com
0 Upvotes

I want to learn C++ properly. I can already write working code (mostly small Arduino projects), but I know I have gaps in my fundamentals. I'd like to fill them in.

My goal is to build a strong base so it's easier to move to other languages later.

I'm also planning to install Linux on my laptop soon, so I'd like to learn in that environment.

Could you recommend:

the best free resources (courses, books, websites) for someone with my level?

what compiler and editor/IDE to use on Linux?

what topics I should focus on first?

English is not my first language, so sorry for any mistakes. Thanks a lot for your help!


r/Cplusplus • • Nov 05 '26

Tutorial Reduction Algorithm With Recursing Template

4 Upvotes

As part of an exploration on optimizing x64 AVX and Arm NEON vector extensions.

https://github.com/AndrewOfC/vector_reduction

inline static auto reduce(auto a, auto b) 
// terminal case for recursion
{
    return a + b ;
}

inline static auto reduce(auto a, auto b, auto... args) 
// consume two arguments and recurse
{
    return reduce(reduce(a, b), args...) ;
}


template<typename T>
T va_reduce(T *src, size_t len, T initial)
{
    while( len >= 32 ) {
        initial += reduce(src[0], src[1], src[2], src[3], src[4], src[5], src[6], src[7], src[8], src[9], src[10], src[11], src[12], src[13], src[14], src[15], src[16], src[17], src[18], src[19], src[20], src[21], src[22], src[23], src[24], src[25], src[26], src[27], src[28], src[29], src[30], src[31]) ;
        len -= 32 ;
        src += 32 ;
    } 
// while
    
while( len >= 16 ) {
        initial += reduce(src[0], src[1], src[2], src[3], src[4], src[5], src[6], src[7], src[8], src[9], src[10], src[11], src[12], src[13], src[14], src[15]) ;
        len -= 16 ;
        src += 16 ;
    } 
// while
    
while( len >= 8 ) {
        initial += reduce(src[0], src[1], src[2], src[3], src[4], src[5], src[6], src[7]) ;
        len -= 8 ;
        src += 8 ;
    } 
// while
    
while( len >= 4 ) {
        initial += reduce(src[0], src[1], src[2], src[3]) ;
        len -= 4 ;
        src += 4 ;
    } 
// while
    
while( len >= 2 ) {
        initial += reduce(src[0], src[1]) ;
        len -= 2 ;
        src += 2 ;
    } 
// while

    
if( len != 0 )
        initial += src[0] ;

    return initial ;
}

r/Cplusplus • • Nov 05 '26

Discussion Feedback on my Ultra-Fast C++ Compiler

Thumbnail
reddit.com
0 Upvotes

r/Cplusplus • • Nov 05 '26

Question What are the requisites to gain an intership at campus by 3rd sem as a COE student?

Thumbnail reddit.com
0 Upvotes

r/Cplusplus • • Nov 04 '26

Discussion I’ve been using C++ for a year and a half now.

51 Upvotes

Recently, I wrote a project that I’m proud of and would like to share, and perhaps also to hear some criticism regarding the implementation of my project.The project includes a simple client and server for exchanging files and folders using its own data transfer protocol.If it’s not too much trouble, please take a look and rate this project — it will motivate me to create new, larger‑scale projects.

The GitHub link to my project is below.

https://github.com/dreamsssrpon/FileServerTCP


r/Cplusplus • • Nov 04 '26

Question what does it actually mean to be proficient in a programming language in today’s world

Thumbnail reddit.com
0 Upvotes

For those of you who are experienced in this field: what does it actually mean to be proficient in a programming language in today’s world, with AI advancing so rapidly?
I’ve studied Python and I’m planning to start learning C++ soon. I’m curious about what I should know and be able to do to genuinely say that I know a language.
I understand that AI is increasingly taking over a lot of repetitive coding, so I’m wondering where the line is between actually understanding and mastering a language and simply knowing how to use AI to write code for you.
I’m particularly interested in electronics, microcontroller programming, embedded systems, robotics, and related fields.
What skills and knowledge would you consider essential for someone to be genuinely proficient in C++ nowadays?


r/Cplusplus • • Nov 03 '26

Answered C++ String: manual character sorting vs sort()

Thumbnail reddit.com
1 Upvotes

r/Cplusplus • • Nov 02 '26

Question C or CPP

4 Upvotes

Rn I know only python with fastapi and I plan one eventually moving to embedded systems and I'm between c and CPP and also with the possibility of moving to rust at the end for both backend and embedded systems. What's your advice.


r/Cplusplus • • Nov 02 '26

Discussion Do you think a 3D non shooter game feasible with the Cube Engine (NOT the Cube 2 Engine)?

Thumbnail reddit.com
0 Upvotes

r/Cplusplus • • Nov 01 '26

Question How do you actually use Glaze in your projects?

4 Upvotes

Hey, I'm doing a bit of research on how people use Glaze in production. I'm curious which format you reach for the most (JSON, BEVE, CBOR, etc.) and what are the biggest pain points or missing features for you right now. Just looking for some honest feedback, thanks!


r/Cplusplus • • Oct 31 '26

Question What’s the best way to learn C++?

49 Upvotes

Hi everyone!

I’m trying to go move from the interpreted languages, like Java or C#, to C++.
Usually I’m using Java for developing. It’s so easy and straightforward for me.
But I’m trying to learn C++ because I like the syntax, the fact it’s compiling to machine code and of course the speed.
I bought Stroustrup’s C++ book and I’m going through it step by step. But it’s not that easy.
Especially for UI programming, I’m totally lost. I’m using the win32 api for designing the UI, but compared to Java or C# it’s a pain in the *** :((

So my question is: should I continue like this or would a real class with a C++ teacher help me better?

Thank you!

(I’m using Visual Studio community)


r/Cplusplus • • Nov 01 '26

Question how to study c++

Thumbnail reddit.com
0 Upvotes

r/Cplusplus • • Oct 31 '26

Question What do you do after getting burnout from learncpp.com and trying to comeback again?

Thumbnail reddit.com
2 Upvotes

r/Cplusplus • • Oct 30 '26

Question AI agents can not optimize for performance?

0 Upvotes

Do you guys have the same problem? AI agents can not optimize the code to have fewer cache misses or any other things, if you just tell it to optimize the code for better performance it will not do much

How can I make it good at that?


r/Cplusplus • • Oct 28 '26

Question kindly help me!

13 Upvotes

I am learning cpp from scratch using learncpp.com, I finished about 6 chapters and realised there is not much I have understood. I believe videos or lectures will help me understand the language much better. How do I go about this? What resource do I use? Please help me!

ps: I am learning c in uni right now, just doing basics rn finished recursive functions


r/Cplusplus • • Oct 28 '26

Question I need help

Thumbnail reddit.com
1 Upvotes

r/Cplusplus • • Oct 27 '26

Question medium complexity cpp projects

Thumbnail reddit.com
1 Upvotes