{"id":583,"date":"2024-07-15T09:48:38","date_gmt":"2024-07-15T08:48:38","guid":{"rendered":"http:\/\/localhost:8082\/?p=583"},"modified":"2024-11-03T16:31:48","modified_gmt":"2024-11-03T16:31:48","slug":"im-writing-an-os-that-will-never-be-used","status":"publish","type":"post","link":"http:\/\/localhost:8082\/2024\/07\/15\/im-writing-an-os-that-will-never-be-used\/","title":{"rendered":"I\u2019m writing an OS that will never be used"},"content":{"rendered":"\n

What does writing an operating system and software requirements have in common?<\/p>\n\n\n\n

Nothing much at first glance, unless you have chosen a super difficult piece of software development to practice your requirements skills on. InstructionOS<\/a> is precisely this: a 12-month learning project to write an operating system, which I\u2019m halfway through.<\/p>\n\n\n\n

I\u2019ve been asked why I\u2019m writing something that will never be used commercially; others have suggested I should focus less on software development if my profession is \u2018business analysis\u2019.<\/p>\n\n\n\n

The truth is, working on something aspirational, super complex and far beyond your current understanding can be an incredibly useful experience. Not always easy, often incredibly challenging, but worthy nonetheless.<\/p>\n\n\n\n

Complex projects, which building an OS from scratch qualifies as, aren\u2019t just technically difficult but also challenging in many other ways. The approach to learning something completely new, technically very complex, and broad in scope (along with the necessary information management that comes with it) is a good example of something that needed mastering early on for the success of InstructionOS.<\/p>\n\n\n\n

How will you discover what you don\u2019t know, but need to know? How will you approach learning each new thing? How will you organise what you learn? How much should you learn at any one point? When do you revisit a specific topic? How many passes should you take? What information sources should you use? How do you validate what you discover? How do you not forget over an elapsed period of time? How do you successfully context switch?<\/p>\n\n\n\n

Good questions I needed to answer before writing any code. I learnt that skimming across many things at a high-level, worked best for me when entering unfamiliar territory. Followed by successive \u2018deep dives\u2019 to elaborate certain topics. Rinse and repeat.<\/p>\n\n\n\n

Bootloaders, x86 architecture, real\/protected modes, CPU registers, BIOS functions, interrupt calls, segmented memory addressing, direct memory writes, framebuffers, C pointers, assembly, stack and heap allocation, make files, GCC, PE\/ELF\/bin formats, object linking, CPU emulators, Canadian cross-compiling, git branches and patching. Things I spent many months reading about in the evenings, over and over sometimes, not really understanding the detail, until one day it all just started to \u2018click\u2019.<\/p>\n\n\n\n

What does any of this have to do with software requirements? A lot actually, the biggest thing being \u2018how do you manage a roadmap and backlog for something very technical you don\u2019t yet fully understand and can\u2019t adequately define?\u2019 A question I asked myself repeatedly, and sometimes struggled to answer. A question relevant to anyone developing new and innovative software. Hint:<\/strong> you need to think about defining outcomes and what you want to achieve, not spec\u2019ing out low-level implementation details.<\/p>\n\n\n\n

Example:<\/strong> prefer \u2018wrap console output at line end\u2019<\/em> rather than \u2018row 1, column 0 double word VGA text mode character should be written to the zero-based, 80th framebuffer element\u2019<\/em>. The former leaves you free to experiment and enjoy coding each time you sit down to work on the project, the latter is fragile, restrictive and error-prone. It\u2019s also more akin to putting on the enterprise shackles, but for free and in your spare time (nb. I tried both approaches).<\/p>\n\n\n\n

Which brings me to perhaps the most important lesson I\u2019ve learnt so far. Is your learning project interesting enough to sustain your attention through the setbacks, difficulties and challenges? Does the eventual outcome, or perhaps just the learning along the way, worthy enough to spend your precious life on it? (at the expense of all other things you could be doing)<\/p>\n\n\n\n

InstructionOS<\/a>, has been, and continues to be, sufficiently interesting and worthy enough for me to invest time in, moderately so. It had one false start, periods of intense technical up-skilling (I\u2019m looking at you NASM), and a lot of soul-searching along the way. But it\u2019s been worth it.<\/p>\n","protected":false},"excerpt":{"rendered":"

What does writing an operating system and software requirements have in common? Nothing much at first glance, unless you have chosen a super difficult piece of software development to practice your requirements skills on. InstructionOS is precisely this: a 12-month learning project to write an operating system, which I\u2019m halfway through. I\u2019ve been asked why […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29,20,17],"tags":[],"class_list":["post-583","post","type-post","status-publish","format-standard","hentry","category-open-source","category-software-development","category-software-requirements","missing-thumbnail"],"_links":{"self":[{"href":"http:\/\/localhost:8082\/wp-json\/wp\/v2\/posts\/583","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/localhost:8082\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/localhost:8082\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/localhost:8082\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/localhost:8082\/wp-json\/wp\/v2\/comments?post=583"}],"version-history":[{"count":1,"href":"http:\/\/localhost:8082\/wp-json\/wp\/v2\/posts\/583\/revisions"}],"predecessor-version":[{"id":584,"href":"http:\/\/localhost:8082\/wp-json\/wp\/v2\/posts\/583\/revisions\/584"}],"wp:attachment":[{"href":"http:\/\/localhost:8082\/wp-json\/wp\/v2\/media?parent=583"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/localhost:8082\/wp-json\/wp\/v2\/categories?post=583"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/localhost:8082\/wp-json\/wp\/v2\/tags?post=583"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}