4 ms·
As a recent grad, I was going to say education on hardware optimization is lacking in universities, but then again there's a lot of snake oil on sites like stac
by kvathupo 4y ago
As a recent grad, I was going to say education on hardware optimization is lacking in universities, but then again there's a lot of snake oil on sites like stackoverflow. Although users like Peter Cordes have done a good job cleaning up, people still seem to eschew benchmarking for eyeballing code à la "Big O", ignoring the effects of compilers and hardware (CPU type, memory layout).
I wouldn't be too harsh on the prof for a throwaway doc: it reads as a perfectly fine intro to concepts like stack, heap, and basic assembly instructions. I'd argue most computer science students, with aims of a programming job, don't need to even know these concepts [1], [2]. With hardware advancements, most probably don't need to worry about code performance. Of those who do, they'll just google Agner Fog, and learn on their own just fine. Despite my opening sentence, I'm sure the Electrical Engineering/Computer Engineering departments are much stronger in this area.
[1] - https://en.wikipedia.org/wiki/Global_interpreter_lock https://en.wikipedia.org/wiki/Global_interpreter_lock
[2] - https://en.wikipedia.org/wiki/JavaScript https://en.wikipedia.org/wiki/JavaScript