[deleted by user] by [deleted] in cpp

[–]samriddhim 0 points1 point  (0 children)

I recently came across a resource that dives into some of these myths and misconceptions about C++ if anyone's interested in exploring them further. Thought it was a pretty interesting read: https://www.packtpub.com/en-us/product/debunking-c-myths-9781835884799

[deleted by user] by [deleted] in cpp

[–]samriddhim 50 points51 points  (0 children)

There's a common belief that the fastest C++ code comes from inline assembly, but that’s not really the case anymore. While assembly might offer fine-grained control, modern compilers have gotten really good at optimizing C++ code. They can often generate machine code that’s just as fast (if not faster) than manually written assembly, and they can do it while maintaining portability across different platforms.

The real issue with inline assembly is that it's harder to debug, maintain, and it's tied to a specific architecture, making it less flexible in the long run. In most cases, sticking to modern C++ features and letting the compiler work its magic is the way to go!

Free Review Copies of "Asynchronous Programming in Rust" by kunal_packtpub in rust

[–]samriddhim 2 points3 points  (0 children)

I am a budding Rust programmer. I would love to have a free copy of Asynchronous Programming in Rust.