| | |
Operating System in Python
Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
![]() |
Is it possible to write a full blown operating system (such as Linux) in Python? I mean writing a kernal, and then other applications that the kernal calls, without having Windows, Linux, UNIX, or Macintosh OS installed on your computer?
Toshiba M115 ● 1.49 GB DDR-2 RAM ● 1.6 GHz Centrino Duo ● 80GB HDD ● Windows XP Media Center Edition
Yes, there is a devlopment of a full featured GUI Operating System written in Python under the name Unununium (wouldn't be my choice), nicknamed after the 111th chemical element 'Roentgenium', whose temporary IUPAC name until November 2004 was 'Unununium'. See:
http://en.wikipedia.org/wiki/Unununi...erating_system)
http://en.wikipedia.org/wiki/Unununi...erating_system)
May 'the Google' be with you!
More information on Unununium Python based OS, also kindly known as UUU, can be had at:
http://unununium.org/introduction
http://unununium.org/introduction
drink her pretty
•
•
Join Date: Jul 2006
Posts: 608
Reputation:
Solved Threads: 150
The info on the links is not encouraging: "very little code was written in 2005, and 2006 doesn't look much better." Hmm...
My mildly informed $0.02, for the purpose of generating lively discussion: I don't think a true OS can be written in Python, for the following reason: Python requires memory management to work behind the scenes. But, memory management requires an OS or a virtual machine to keep track of which memory blocks are stale and need to be garbage-collected. Hence, Python will always be dependent on an OS in order to function, even if the Python code is turned into C and thence into an executable.
Agree? Disagree?
Jeff
My mildly informed $0.02, for the purpose of generating lively discussion: I don't think a true OS can be written in Python, for the following reason: Python requires memory management to work behind the scenes. But, memory management requires an OS or a virtual machine to keep track of which memory blocks are stale and need to be garbage-collected. Hence, Python will always be dependent on an OS in order to function, even if the Python code is turned into C and thence into an executable.
Agree? Disagree?
Jeff
According to my engineering professor, the reason there is a variety of computer languages is that each language (at least the popular once) was written for a purpose. Python was not written to make Operating Systems, but C was (for Unix). So it would be a little silly to use Python.
No one died when Clinton lied.
This should be worth a wooden nickel, I understand UUU uses C for the low level stuff and Python for the Windoze stuff. This way the memory manager should not be much of an obstacle. Will it ever get off the ground? I don't know.
I have the hunch that C had to rely on a bit of assembly code when the Unix OS was written.
I have the hunch that C had to rely on a bit of assembly code when the Unix OS was written.
Last edited by vegaseat; Dec 10th, 2006 at 11:11 pm.
May 'the Google' be with you!
•
•
Join Date: Nov 2009
Posts: 3
Reputation:
Solved Threads: 0
-1
#10 21 Days Ago
Sure Python requires memory management, but if you provide a bare-metal type OS beneath the interpreter, somewhat like how BIOS provides a compatibility layer, then you could set out to write an OS that's extremely heavily implemented with Python. Still, doing so would require an intimate understanding of the plumbing of the Python Interpreter.
If one could develop this compatibility layer with a regard to cross-platform support, if implemented thoughtfully, then for each distinct architecture, one would have to write the lowest-level support layer and then could import most/all functionality of the rest of the system. At least, in the general case. Developing something like this would completely rock.
If one could develop this compatibility layer with a regard to cross-platform support, if implemented thoughtfully, then for each distinct architecture, one would have to write the lowest-level support layer and then could import most/all functionality of the rest of the system. At least, in the general case. Developing something like this would completely rock.
![]() |
Similar Threads
- please select the operating system to start (Windows NT / 2000 / XP)
- Need to get rid of startup error: Please select the operating system to start (Windows 95 / 98 / Me)
- Restore the Operating System to a Previous State in Windows XP (Windows tips 'n' tweaks)
- Restore the Operating System to a Previous State in Windows XP (Windows tips 'n' tweaks)
- Operating system (Windows 95 / 98 / Me)
- error loading operating system (Windows NT / 2000 / XP)
Other Threads in the Python Forum
- Previous Thread: Python C++ extension (multi threaded environment)
- Next Thread: Simple card game not showing expected output
| Thread Tools | Search this Thread |
Tag cloud for Python
accessdenied apache application argv beginner book change code color converter dictionary dynamic edit editing enter examples excel file filename float format ftp function gui homework import inches input java keyboard lapse library line lines linux list lists loop microphone mouse movingimageswithpygame mysql newb number numbers numeric output parameters parsing path phonebook port prime program programming projects py2exe pygame pyopengl pyqt python random recursion recursive redirect remote reverse scrolledtext server session simple smtp software sprite ssh statictext string strings syntax table tennis terminal text thread threading time tkinter tlapse trick tuple tutorial ubuntu unicode unit urllib urllib2 variable windows wordgame wxpython






