54 points ibobev 1 day ago 13 comments
112233 1 hour ago | parent
fooblaster 1 hour ago | parent
beached_whale 1 hour ago | parent
There are so many things that are expressible in C++ now that could not be without writing much more code or using per-compilation tools back then. The ability to run code at compile time that is not run at runtime is huge, #embed lets us make other tools output available without linker scripts or compiler specific tools that.
Also, most of the code from the past still works(from 10 years ago definitely works)
AlotOfReading 44 minutes ago | parent
cjbgkagh 32 minutes ago | parent
jll29 47 minutes ago | parent
Or take constexpr - it permits to move computations to compile time that are complex and in older versions either had to be done at runtime, or an ugly workaround had to be used (e.g. assigning a mysterious literal pre-computed in another run or by hand).
creata 27 minutes ago | parent
What C++23 feature allows that?
hn_submit 1 hour ago | parent
cjbgkagh 29 minutes ago | parent
gbin 27 minutes ago | parent
MaxBarraclough 31 minutes ago | parent
High-performance programming is a big topic. The scope is far too broad for a single blog post, which naturally gives only cursory discussion of C++ and computer architecture. The article isn't bad considering, but I do think it's the wrong format. A blog series, or even a book, would be more fitting.
glouwbug 5 minutes ago | parent