However, continuum aside, there are a LOT of PhDs produced worldwide, and a LOT of good ones, and very few particularly good academic jobs. A lot of my observations of why things are kind of shitty lie not from my own career (which was largely my fault) but from observing smarter, harder-working, more organized people a couple of rungs up and realizing what a cruddy experience they were having in the middle tier. And also thinking: "man, if I just got my shit together and worked insanely hard for a few years, I could be as unhappy as Professor XYZ".
I wouldn't say "don't do a PhD". Just "know the odds"; i.e. know how many of the positions you could see yourself doing are available vs. PhD students emerging at a similar tier, and ask yourself whether you're going to be in that percentage, and what your plans are if you aren't. I learned a lot from my PhD, even if I sucked, and it turned out my backup plan was really much better than I realized it would be.
In Europe (Germany in particular), you have to do a 2-year Masters degree which tends to be ~1.3 years of coursework and ~0.7 years of research culminating in a thesis.
Judged by the quality of your thesis, you then try to get accepted into a group for a PhD which takes 3 years on average.
In the US you go straight to a 5-year PhD program and within that, the coursework-research duration split is similar to what you find in Europe.
At CMU people were occasionally referred to as 'being on the 4-year plan', which meant you were like a superior alien intelligence (and, more importantly, focused on some good problem rather than, say, beer and girls or whatever you're into). But I think 7 years was typical, especially in "systems" or anything where you'd have to build something. Places that provision for 3 years total for a PhD are doing something fundamentally different, as people doing good quality PhDs at CMU were already casting around for topics quite early in those 6-7 years. I'm sure that in the long run it evens out for good people coming from good places in either system, as of course, the euro-PhD person can do 3 more years of post-doc under similar conditions.
Imho people make a bigger deal of EU/US phd differences than there actually is. The structure is different, but the end result not so much.
A good PhD leads to many of the nice things he describes: freedom and ownership and personal growth and all that stuff. An average PhD (or worse) leads to pretty much the opposite. Most of the superstars I know went on to do pretty much whatever they are interested in at top schools. The non-superstars (and the real lumps, like me) can easily wind up in a death spiral - where your mediocre publishing record and mediocre PhD afford entry only into 3rd-tier institutions, where you will work with worse and worse people, more or less guaranteeing steadily declining quality of work. A mediocre result more or less guarantees that you will be a low-status drone in academia, trying to wedge world-class work in with a bunch of other activities (teaching, being a glorified research assistant, and other 'service').
No-one sets out to do a bad PhD, but people need to understand that the average outcome isn't nearly as glowing as Karpathy outlines. Similarly, the outcome of going to industry also has a huge range. I found myself immediately - I mean on Day 1 - doing more pure Computer Science going to work for a startup than I had any reasonable hope of doing as a semi-failed academic, and have had a steadily improving experience subsequently (some of this stems from a rather delayed growing-up on my part, so it's not entirely a judgement on industry vs academia).