4 ms·
We won't, because you can't write an OS in JavaScript; you need native code. Maybe a desktop environment or something, but not an OS.
by danellis 11y ago
We won't, because you can't write an OS in JavaScript; you need native code. Maybe a desktop environment or something, but not an OS.
- deleted 11y ago[deleted]
- icebraining 11y agoAll languages can be compiled to native code, it's just harder for some. For example, here's an AOT compiler for JS: https://github.com/tmikov/jscomp https://github.com/tmikov/jscomp
- danellis 11y agoIt's still a scripting language, and you still can't write an OS in it. There's no low-level access to the hardware. You could of course write all the low level parts in C, but then you haven't written an OS in JavaScript.
- adrianN 11y agoC also doesn't have low level access to the hardware. The interesting bits of the OS are written in assembly.
- danellis 11y agoI think the only bit that really needs to be in assembly is the context switch, but even that can be embedded in the C (which you might consider cheating, but isn't even an option in JavaScript).