The Superpower of C++ @code_report
The Superpower of C++  @code_report
Uploaded April 2024 | Updated November 2026, 14 hours ago
In this video, the real superpower of C++ is demonstrated. It is in response to some comments on youtube.com/watch?v=fsIfQqRjc1U.

constexpr C++ Solution: godbolt.org/z/e3j63c3b6
Maximum Prime Difference: leetcode.com/problems/maximum-prime-difference/description

Chapters:
0:00 Intro
0:46 YouTube Comment on constexpr
1:52 Refactor: std::ranges::contains
2:10 Refactor: namespace stdr
2:59 Show constexpr is_prime
3:57 Original code (~4000 LOA - lines of assembly)
4:00 Remove std::println (129 LOA)
4:33 constexpr maximum_prime_difference (129 LOA)
5:03 Remove std::vector (113 LOA)
5:32 Diagnose using consteval
6:14 constexpr vec variable (3 LOA)
7:14 Outro

Follow me on GitHub: github.com/codereport
Follow me on Twitter: twitter.com/code_report
Follow me on LinkedIn: linkedin.com/company/codereport
The Superpower of C++J Language: From C to C++20 - LiveStream #6 (Shape, Rank & more)1 Problem, 4 More Programming Languages (Python vs Kotlin vs F# vs Wolfram)Tacit Talk Episode 4: Dyalog APL with Adรกm BrudzewskyOne Problem, Five Programming Languages LIVE!From Mathematics to Generic Programming - Ch 7 & 3 + GaloisPERF WARS: EPISODE IAdvent of Code 2024 in BQN Day 7!Structure and Interpretation of Computer Programs - Chapter 5.14 APL Solutions in 10 Minutes!Advent of Code 2020 in APL #3!The State of Array Languages in 2024
code_report |

The Superpower of C++

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER