I really like this lecture format. What is he drawing on?
Simple Code, High Performance [video]
21–30 of 86 posts
Re: Simple Code, High Performance [video]
#22Earlier quoted context omitted.
He measures code 'simplicity' by how much work it makes CPU do, and not some made up metric like 'readability'.
How exactly is readability made up?
Re: Simple Code, High Performance [video]
#23Earlier quoted context omitted.
He measures code 'simplicity' by how much work it makes CPU do, and not some made up metric like 'readability'.
How exactly is readability made up?
If the metric is supposed to be objective, then number of CPU cycles used is probably the simplest metric there is for computers.
Re: Simple Code, High Performance [video]
#24Earlier quoted context omitted.
He measures code 'simplicity' by how much work it makes CPU do, and not some made up metric like 'readability'.
How exactly is readability made up?
When practicing rigorous measuring, quantities need to be quantifiable aspects of the world. For example, you can quantify how much physical space your code or compiled output takes up in memory, and use these quantities as base units to derive others. By branching from a quantifiable root, you can derive metrics such as lines of code or number of CPU instructions, and they’d still retain those quantifiable aspects. Meaning there’s a clear path to the quantifiable root.
Needless to say, readability, as a metric, is not branched from quantifiable aspects of the world. So in a sense, it is still a “made up” metric because (as of today), there’s no way to trace it down to the quantifiable measurements.
Re: Simple Code, High Performance [video]
#253 hour video with no timestamps, a minimal description, and comments turned off?
At least adding some major timestamps in the description would be great.
Re: Simple Code, High Performance [video]
#26Earlier quoted context omitted.
How exactly is readability made up?
This is a good question to ask, if not rhetorical. When practicing rigorous measuring, quantities need to be quantifiable aspects of the world. For example, you can quantify how much physical space your code or compiled output takes up in memory, and use these quantities as base units to derive others. By branching from a quantifiable root, you can derive metrics such as lines of code or number of CPU instructions, a…
Re: Simple Code, High Performance [video]
#27Earlier quoted context omitted.
How exactly is readability made up?
It is not made up but different people can have different opinions on what's readable and what's not. If the metric is supposed to be objective, then number of CPU cycles used is probably the simplest metric there is for computers.
Re: Simple Code, High Performance [video]
#28Earlier quoted context omitted.
He measures code 'simplicity' by how much work it makes CPU do, and not some made up metric like 'readability'.
How exactly is readability made up?
Re: Simple Code, High Performance [video]
#29Earlier quoted context omitted.
It is not made up but different people can have different opinions on what's readable and what's not. If the metric is supposed to be objective, then number of CPU cycles used is probably the simplest metric there is for computers.
Right it’s a communication problem because calling code simple conjures different ideas in people heads. Code that is simple for computers (principle of least work) is not necessarily simple (principle of comprehension?) for humans.
It might be easier to understand the 'intent' of highly abstracted code, but this doesn't mean the code behaves as intended, and IMHO 'readability' is about understanding what the code actually does, not what it is supposed to do.