HN Theater @HNTheaterMonth

The best talks and videos of Hacker News.

Hacker News Comments on
01.Secret History of Windows Task Manager - Part 1 - Origins

Dave's Garage · Youtube · 73 HN points · 2 HN comments
HN Theater has aggregated all Hacker News stories and comments that mention Dave's Garage's video "01.Secret History of Windows Task Manager - Part 1 - Origins".
Youtube Summary
Retired Microsoft engineer and original author of Task Manager (davepl) reveals the little known secret history of the application along with the technical details of how it works and why it was designed that way. The series is complete with a tour of the never-before-seen Windows source code to Task Manager.

The first segment covers "How Task Manager came to be", while the second segment focuses on the technical issues of how it was designed and why. The third episode includes an in-depth look at the code.

As seen at CSWeek at the University of Regina, Dec 9, 2020

I get a lot of questions about which keyboard I'm using as well as various other camera and studio equipment questions, so here are the highlights:

CORSAIR K70 RGB MK.2 Mechanical Gaming Keyboard (Cherry MX Blue Switches)
https://amzn.to/31UrUUD

Sony FX3 or A7SIII Cameras
https://amzn.to/31TRdWK
https://amzn.to/3wG9iG7

Aputure 120D Mark II Light and Light Dome II Mini
https://amzn.to/3uya8Ts
https://amzn.to/31XwBx2

Glide Gear TMP100 Prompter
https://amzn.to/3ux84Ll
HN Theater Rankings

Hacker News Stories and Comments

All the comments and stories posted to Hacker News that reference this video.
David Plummer wrote the Windows Task Manager, he made a 3 part series on his YouTube channel [1]. It's a fascinating couple of videos, highly recommend to watch.

[1] https://www.youtube.com/watch?v=f8VBOiPV-_M

If you missed it, his three part series on YouTube called "The Secret History of Windows Task Manager" [0] was an absolute pleasure. Additionally, he's still finding his footing on YouTube and is very responsive to feedback and is active in the comments.

[0] https://youtu.be/f8VBOiPV-_M

Dec 13, 2020 · 73 points, 25 comments · submitted by guiambros
guiambros
Also:

Part 2 - https://www.youtube.com/watch?v=4UduzUmetP4

Part 3 - https://www.youtube.com/watch?v=CyJw2MumgTQ

1MachineElf
In Part 3, he's displaying the code in Visual Studio Code on macOS. I like his sense of humor, and I wonder if that is part of a joke.
davepl
Not really... since they nuked Movie Maker, I moved to Final Cut on the Mac!
rzzzt
Semi-offtopic: did anyone else find that Task Manager reset itself to its default (compact) form after a recent update to Windows 10?
alyandon
Yes, happened to me on three different machines with the 20H2 update.
antegamisou
One of the most horrendous UX design picks in Windows 10, I immediately switched to ProcessHacker the moment I saw it.
davepl
Oh yeah, that's a tour de force of UI design! Geebuk.
sitzkrieg
could have just double clicked it
mycall
How does ProcessHacker compare to Process Explorer? From my quick look, they appear to have mostly the same features.
iggldiggl
At some point Process Explorer started recording the CPU/memory usage graphs for a process only the moment you opened the details window for that particular process for the first time.

So even if Process Explorer had been running in background all the time, you could no longer inspect a process's CPU/memory usage history after the fact if you hadn't by chance already opened its details window before.

As the last version (I might have even asked on the forum about it, but never got a definitive response whether this was intentional or a bug) of Process Explorer that didn't exhibit this annoying new behaviour stopped working after switching to Windows 10, I switched to ProcessHacker at that point.

I've initially missed Process Explorer's miniature system information diagrams in the toolbar a little, but otherwise I've been happy with ProcessHacker.

gruez
It seems to reset itself any time there's an unclean shutdown, so it resetting itself after an update doesn't seem surprising.
alexeiz
By today's standards the code of the old task manager (as most of the code in Windows) is a big pile of stinking Underfined Behavior.

For example:

    void COptions::SetDefaultValues() {
        ZeroMemory(this, sizeof(COptions));
is a great way to overwrite a vtbl pointer and end up with a invalid object state. There is a safe and perfectly Standard compliant way to reset the object to its default state: `*this = COptions()`
acqq
Is there a problem in the case it's sure that COptions objects never have vtbl pointer?
davepl
Ah a little knowledge is an entertaining thing. What does the V in VTBL stand for, I wonder? There's your hint.
MetricExpansion
Does watching this pose a risk to being allowed to work on wine?
forgotmypw17
Only if you believe in such things...
gruez
The risk is real. The only thing protecting wine and reactos from being sued to death by microsoft is that they can claim clean room design. If one of their watched a video explaining how windows works, it would make that defense illegible.
acqq
I guess it's more about the actual source code. I'd expect that just hearing "how" something works can still allow you to do a "clean room" in a sense that most of the algorithms aren't secret and a lot of "how" is obvious to the experienced practitioners just from the description of the behavior.
mocheeze
Just started part 1, but part 2 apparently shows the source code.

Edit: Part 1 is his personal journey of starting work at MS and how he got into making Task Manager. It's safe.

Edit 2: Actually not really anything in the way of source in part 2. But he promises code for part 3.

guiambros
Part 3 shows the source code, in case you're concerned about it. It's just a few pages of C++ written 20 years ago, so unlikely that any lawyer would have any claim even in their wildest dreams, but stay clear of you want to have 100% plausible deniability. Parts 1 and 2 are clean.

ps: standard IANAL disclaimer.

deburo
His eyes' movement is bothering me. Is he reading a script on his screen?
dole
Probably, the subtitles on the videos seem to have a lot of additional dialogue he cut out.
davepl
No, I'm slowly scanning the room for John Connor.
prvc
Coles was a popular Canadian bookstore chain, for those unaware.
konjin
> I was pulled aside into the "big glass room" for additional questioning. After reviewing my application, as my new bride looked on from afar, the Immigration officer was yelling at me, turning red, and waving his arms. He was very upset and animated, and from her vantage point it was clear that we were being denied entry and that my Microsoft dreams were crashing down around us right then and there. What she didn't know, because she couldn't hear, was that he had already long since approved my work Visa!

> He was actually upset because their copy of Microsoft Word printed a blank page at the end of every one of their documents and it was wasting paper and he wanted it fixed. I did my best to help configure their page margins before we were released to our new life in America!

Reminds me of a Douglas Adams novel where the protagonist tells the police officer that the computer they are trying to use never worked and it's not their fault. The police officer is very happy and tells him they have been using the machine to bludgeon suspects with.

HN Theater is an independent project and is not operated by Y Combinator or any of the video hosting platforms linked to on this site.
~ yaj@
;laksdfhjdhksalkfj more things
yahnd.com ~ Privacy Policy ~
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.