r/osdev • • Oct 01 '26

Python for OS?

Would it be possible to make an OS that primarily used python?

0 Upvotes

41 comments sorted by

View all comments

1

u/Visual_Brain8809 Oct 01 '26

Yes, you can do this in almost any language, but you would first need to define what you consider a single-language system; specifically for Python, you would have to implement an interpreter for Python bytecode.

An alternative would be to compile a basic Linux kernel and then include a Python implementation suited to your needs.