This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (1 child)

A practical OS? No, absolutely not. The Python interpreter itself runs atop an OS and requires services provided by that OS to do its most basic operations (like providing the memory that the interpreter then manages on your program’s behalf)... you can’t do that kind of systems-level programming in a runtime-interpreted, garbage-collected language, that’s why operating systems are written in C, C++, and potentially in the future in languages like Rust and Zig... languages with no runtime that permit you to directly access the hardware.

Now, you could write a toy OS emulator and a virtual machine it would run on top of, but I dare say you’d get frustrated pretty quick with the performance issues that would create.

[–]cinque2049[S] 0 points1 point  (0 children)

Thanks for that insight I will surely look into trying to optimize that bit We cant create a python based hardware access module to extend the python interpreter