CppCon 2016: Jason Turner “Rich Code for Tiny Computers: A Simple Commodore 64 Game in C++17”
Video Statistics and Information
Channel: CppCon
Views: 189,447
Rating: 4.9418607 out of 5
Keywords: CppCon 2016, Computer Science (Field), + C (Programming Language), Programming Language (Software Genre), Application Software (Software Genre), Bash Films, @BashFilms, Conference Video Recording, Event Video Recording, Video Conferencing, Video Services, Jason Turner
Id: zBkNBP00wJE
Channel Id: undefined
Length: 79min 52sec (4792 seconds)
Published: Sat Sep 24 2016
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.
I bet you now you'll be using "const" everywhere (if you aren't already).
void foo(const uint32_t);
What's the point of the const here?
I saw this the other day, and was really impressed! I've been trying to do similar stuff before and always ran into problems with getting the compiler to do all these sorts of precomputed calculations, and it would always try to do them during runtime. Didn't know of constexpr though. Although I wonder how good it would be at doing stuff like running loops to calculate constants. Why is this so hard for the compiler to do?
And does anyone know if there are nice ways to do similar stuff in C? I prefer C++, but it's not always that I have that choice.