News for hackers. Stuff that matters.
Re:"Don't argue with me. $100,000 is fair, and you know it." by jacquesm on Friday August 27, 2010 @04:46AM (#1638302)
> the guy wrote a multitasking operating system with this approach. I'm pretty sure I couldn't do that.

You'd be surprised at how doable that is if you actually tried. It's the same as every other problem in programming: break it down in to two pieces, figure out which one is the easier, if it is trivial solve it, otherwise recurse.

You'd need an overall sketch of the architecture before you began but once you have that worked out it's 'just programming' to get you to the finish line.

The hardest part to get right is security, especially if you go multi-user, but since you just specify 'multitasking operating system' that one is somewhat limited in scope.

(such thinking probably gave us windows ;) )...

Re:"Don't argue with me. $100,000 is fair, and you know it." by 10ren on Friday August 27, 2010 @04:53AM (#1638316)
Thanks, I appreciate the support, but my opps, you caught my initial phrasing before I clarified to disambiguate: I didn't mean to write an operating system; but to write one in Dijkstra's way (ie by showing - proving - that it works before you write it). ugghh I shudder just saying it.
Re:"Don't argue with me. $100,000 is fair, and you know it." by jacquesm on Friday August 27, 2010 @05:03AM (#1638323)
Ah, ok, now I get it :) That was more than just a little bit ambiguous, I completely fell for it.
Re:"Don't argue with me. $100,000 is fair, and you know it." by 10ren on Friday August 27, 2010 @07:31AM (#1638502)
I'm sorry; I didn't mean to dig a pitfall to entrap a helpful fellow traveler. When I noticed that a reading with the last two sentences as separable was misleading, I edited directly. I think the "sadly" part was communicated though, and I've tucked away your remarks for when I'm confronted by a multitasking OS. I think debugging the race conditions would be nightmarish.
Re:"Don't argue with me. $100,000 is fair, and you know it." by jacquesm on Friday August 27, 2010 @09:39AM (#1638766)
The trick is to write your OS in such a way that you minimize the chance of having races. The way I chose was to mimick 'QnX', a message passing real time OS.
Re:"Don't argue with me. $100,000 is fair, and you know it." by HeyLaughingBoy on Friday August 27, 2010 @12:26PM (#1639278)
This is also what experience gives you: the ability to predict where problems are likely to crop up so you can avoid them.

Easier to not inject a bug in the first place than to try to find it later.

Re:"Don't argue with me. $100,000 is fair, and you know it." by davidw on Friday August 27, 2010 @06:56AM (#1638456)
... and wait for the computer to reboot every time you screw up ...

It can be a slow process with less 'instant gratification' than web programming.

Re:"Don't argue with me. $100,000 is fair, and you know it." by jacquesm on Friday August 27, 2010 @07:18AM (#1638482)
Yes, that was one of the main problems when I was busy with this. I had a guitar footpedal switch wired to the reset button so I didn't have to dive under the desk all the time.

This was before the age of virtual machines on PCs. Getting it to become self hosting took about 6 months or so.

Re:"Don't argue with me. $100,000 is fair, and you know it." by derefr on Friday August 27, 2010 @07:03AM (#1638467)
Bochs isn't particularly slow to boot :)
Re:"Don't argue with me. $100,000 is fair, and you know it." by davidw on Friday August 27, 2010 @07:06AM (#1638475)
Not these days it isn't. People like this guy and Linus had nothing like that when they were working, though.
Re:"Don't argue with me. $100,000 is fair, and you know it." by Locke1689 on Friday August 27, 2010 @07:06AM (#1638473)
@derefr

It is compared to QEMU :)