5 ms·
> I'd say OS theory is also helpful when writing programs that run on an OS. That's a very generalized statement. A C program run on OS and so does a JavaScrip
by ankurdhama 4y ago
> I'd say OS theory is also helpful when writing programs that run on an OS.
That's a very generalized statement. A C program run on OS and so does a JavaScript on a webpage (at least indirectly). I am not sure how OS theory is useful in the JavaScript on a webpage case.
- solarengineer 4y agoJavascript on a web page targets the browser-based Javascript runtime, though, and would be constrained by the capabilities and security model of that runtime plus of the browser.
- archi42 4y ago(edited after 2m, added the first paragraph) You gave an example the OS theory would only be good when writing an OS. But the (valid) counter point was that it also becomes relevant when interfacing with an OS. JavaScript first and foremost runs on your browser, not on the OS itself. So understanding how browsers work (DOM, APIs, XHR...) becomes akin to understanding how the OS works. (I also have the following rant, which I don't like too much [too polemic] after posting, but I'm keeping it for transparency sake) No-one claimed you need to know quantum physics to understand what happens to the electrons in your CPU; but generally it's a good idea to know how the next few layers you're interfacing with work (in either direction). And that's often the OS, or the network, or the cache behaviour of your CPU or the superscalar nature of the GPGPU you use to accelerate something important. Or another something attached by some bus to your MCU in the embedded device you're building, or maybe the user navigating that website.
- ZephyrBlu 4y agoIf you wish to write a program from scratch, you must first invent the universe.