CppCast cover image

Mdspan and Too Cute C++ Tricks

CppCast

00:00

Arays for Multi-Dimensional Arrays?

i did a paper on for super computing in a 20 19 a. It was a super computing workshop. We basically showed with several microbench marks that the mdy span was producing the same code as raw pointers. I got g c c to constant agate a, de referencing a a som over a 74 dimensional array. And it was able to, a constant propagate the entire array, de reference, consto propagate the entire sum and compile the function into like, return forty two or like that. So it is actually very powerful. The ability of compilers to cut through abstraction is just way beyond what most people estimate. A lot of them are sceptical of sepplus plus in

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app