While doing a Bing search for c++ polynomial, Copilot generates the following code: Note the method, Polynomial::evaluate(double x) const While this will calculate the correct value, this naïve implementation is not a good way to evaluate a polynomial. A better implementation would be: Each iteration has one addition and one multiplication, while the Copilot version … Continue reading “Crummy Code from Copilot”
Category: C++
CLion Is Now Free for Non-Commercial Use
Exciting news for C and C++ developers! @clion_ide just joined the club of WebStorm, Rider, and RustRover and is free for non-commercial use. Learning, developing open-source projects, creating content, and hobby development are now more accessible than ever before! More details: jb.gg/cl_free_bs[image or embed]— JetBrains (@jetbrains.com) May 7, 2025 at 7:47 AM Link: CLion
Strategies for Developing Safety-Critical Software in C++
Emily Durie-Johnson – Lightning Talk: Strategies for Developing Safety-Critical Software in C++
(more…)Hypot
A naïve C++ implementation of hypot. This may be of use when a naïve implementation is deemed sufficient. Github: Hypot Example:
Uploading Consciousness
Delivering Safe C++
Bjarne Stroustrup – Delivering Safe C++:
(more…)Full Interview With the Creator of C++
Honeypot – full interview with Bjarne Stroustrup:
(more…)C++ in Constrained Environments
C++ in Constrained Environments – Bjarne Stroustrup – CppCon 2022:
(more…)C++20: Reaching for the Aims of C++
C++20: Reaching for the Aims of C++ – Bjarne Stroustrup – CppCon 2021
(more…)Fast Inverse Square Root
Fast Inverse Square Root – A Quake III Algorithm:
(more…)