A Low Level Curriculum for C and C++
altdevblogaday.com
altdevblogaday.com
Like going through Knuth's and Steven's books, or learning assembler, or how to use a debugger, or writing a 3d engine, or implementing some data compression algorithms, etc.
None of these were prescribed but it's kind of intuitive that you should at least know how to do these things if you're studying computer science, I would think?
You at least need someone to expose you to what is available to learn. It's possible that without guidance a lot of people would never even think of going to the lower levels, they can be nearly invisible to someone working on (for instance) web apps with high level server frameworks and lots JS.
When it comes down to it, you need to know what you don't know, and some of the low-level stuff (pointers, memory layouts, stuff...) really ought to be part of CompSci 101.
Particularly in a country where pre-university computer education is inadequate or absent. Most UK CompSci folks have mathematical and science backgrounds but no formal education in computer science or programming.
I grew up in Redmond Washington, in the heart of Microsoft - land, surrounded by programming and programmers. I learned a lot of the mental meta-skills that go hand in hand with programming, but I didn't ever learn to program, even though I thought it interesting and I wanted to understand it.
It was a challenge to even know what I wanted to know, and there wasn't anyone around to answer my "but how, and why?" questions to begin learning. It took till I was in college for me to start learning to program, because I had excellent professors who would answer my questions for literally hours. As well, I finally had problems that needed solving (if for no other reason than I needed to turn them in).
This is forever a balance between the universal constants of the low-level world, and stuff which seems to be a constant but it actually a flavor-of-the-month and will be obsolete by the time you're in a position to apply it.
For example, someone taking an architecture course (learn assembly language from the transistor up!) will likely learn on the MIPS, because it's a simple design which fits a simple five-stage pipeline model very cleanly and it has a simple, easy-to-teach machine code ISA as well. Plus, of course, Hennessy and Patterson teach MIPS, so you get to use their well-written book if you do, too.
However, spending your time learning how to schedule opcodes to take advantage of a branch delay slot, which is an intrinsic part of the MIPS worldview, is a mistake. No architecture in modern use has them: ARM, PowerPC, and even the venerable Alpha found a way to avoid the concept, and, of course, the x86 has never had them. Branch delay slots are a flavor of the month from decades ago; they're downright archaic today.
(DSPs seem to have them. Will they have them a couple generations from now? Are you actually going to learn enough about the other unique features of DSPs to make learning about branch delay slots worthwhile?)
OTOH, teaching the theoretical side is a lot closer to being future-proof: Even if certain algorithms get finessed by differences in future hardware design, learning to think rigorously is always a useful pursuit.
And if anyone argues against you, you can just say that they're just not as passionate as you are. Brilliant.
Finally I'll just accept that if you're only doing 4-5 years of computer science, no one will be qualified to select which few parts to study without guidance.
[edit: spelling]
Only if you don't mind spending 5 year on what could have been done in 1 if only someone had told you what to focus on, where to start looking and every now and then points out some connections that you missed yourself. Of course it's possible to learn the same thing somebody learns in university on your own. Whether you can learn it as efficiently - that's another question.
This way you get a solid, wide base but also some specialization/expertise in whatever niche(s) you like, and gives you the tools to advance yourself.
It has always frustrated me teaching, when students are unwilling to get out beyond what I or any other teacher tells them. Designing a syllabus makes it very apparent what a minuscule slice of any subject has to be distilled into a dozen lectures or exercises.
Part 1: A Low Level Curriculum for C and C++ http://www.altdevblogaday.com/2011/11/09/a-low-level-curricu...
Part 2: Low Level Data Types http://www.altdevblogaday.com/2011/11/24/c-c-low-level-curri...
Part 3: The Stack http://www.altdevblogaday.com/2011/12/14/c-c-low-level-curri...
Part 4: More Stack http://www.altdevblogaday.com/2011/12/24/c-c-low-level-curri...
Part 5: Even More Stack http://www.altdevblogaday.com/2012/02/07/c-c-low-level-curri...
Part 6: Conditionals http://www.altdevblogaday.com/2012/03/07/c-c-low-level-curri...
Part 7: More Conditionals http://www.altdevblogaday.com/2012/04/10/cc-low-level-curric...
Part 8: Looking at Optimized Assembly http://www.altdevblogaday.com/2012/05/07/cc-low-level-curric...
Part 9: Loops http://www.altdevblogaday.com/2012/09/04/cc-low-level-curric...
Part 10: User defined types http://www.altdevblogaday.com/2013/01/05/cc-low-level-curric...
Part 11: Inheritance http://www.altdevblogaday.com/2013/05/03/cc-low-level-curric...
Part 12: Multiple Inheritance http://www.altdevblogaday.com/2013/05/22/cc-low-level-curric...
C++ object model described with c code: http://www.avabodh.com/cxxin/cxx.html
How c code is translated to assembly: http://www.avabodh.com/cin/cin.html
http://monoinfinito.wordpress.com/series/exception-handling-...
He went so far as to reimplement his own handlers, which is totally awesome.
For other important things, like the memory layout of the inheritance graph (generally optimal for single, non-virtual inheritance), virtual table layouts, the structure of member pointers and RTTI, the Itanium C++ ABI (followed by GCC and Clang on open OS's but not MS) is a good place to glean some insight:
http://refspecs.linuxbase.org/cxxabi-1.83.html
For instance, you may be surprised to learn that member pointers aren't even pointers in this implementation, but a pair of offsets (one for the object, one for the vtable) used to find the function to call.
gdb can print the same sort of thing using disas/m. Here's an example: http://i.imgur.com/toKq8pd.png
Don't be so negative about things that seem like they aren't useful to you. Sometimes things like this are useful to many others.
"And for everyone like you,... there is likely a person like me" - That would mean the article is applicable to 50% of C++ developers, which is not a niche. I'd say your estimation is way off.