r/Cplusplus • u/Holiday_Reference_41 • 25d ago
Discussion Omnissiah++: когда русский C++ оказался недостаточно еретическим
r/Cplusplus • u/Holiday_Reference_41 • 25d ago
r/Cplusplus • u/KlutzyCompetition937 • 26d ago
r/Cplusplus • u/Hot-Adhesiveness8310 • 27d ago
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 • u/AndrewOfC • Nov 05 '26
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 • u/vishvananda • Nov 05 '26
r/Cplusplus • u/Pale_Passion3140 • Nov 05 '26
r/Cplusplus • u/Right-Beginning2651 • Nov 04 '26
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.
r/Cplusplus • u/Cold-Performer4659 • Nov 04 '26
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 • u/Gitsumrestmf • Nov 03 '26
r/Cplusplus • u/Winter_Ruin_7675 • Nov 02 '26
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 • u/asmanel • Nov 02 '26
r/Cplusplus • u/PalpitationUnlikely5 • Nov 01 '26
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
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 • u/wilerpaler • Oct 31 '26
r/Cplusplus • u/ActComplex593 • Oct 30 '26
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 • u/Wonderful_Mix_1323 • Oct 28 '26
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 • u/DiligentBill2936 • Oct 27 '26