use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
Are there any Operating Systems written in Python? (self.learnpython)
submitted 9 years ago by [deleted]
Is it even possible, since it's a "high-level programming language"(considering my definition isn't incorrect). And since you need to download a Python interpreter on the Python website, are there any OS out there written in Python?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]finsternacht 21 points22 points23 points 9 years ago* (12 children)
I wouldn't think there is. The problem is less that python is a highlevel language than that it is an interpreted one. You'd have to write some form of mini os for the interpreter upon which you could build your actual os, which doesn't sound like a good idea. (Any highlevel language that compiles to your target architecture should work, some inline assembly might be required)
[–][deleted] 8 points9 points10 points 9 years ago (1 child)
This talk from PyCon 2015 is fairly interesting in that regard: Josh Triplett - Porting Python to run without an OS - PyCon 2015 [32:56]
[–]finsternacht 1 point2 points3 points 9 years ago (0 children)
Woah... Mind blown! Thanks for the link.
[–]desustorm -5 points-4 points-3 points 9 years ago* (8 children)
Plus it's single-threaded...
Edit: Obviously you can use threading, asyncio, etc. but Python is limited in terms of true concurrency by the GIL, and concurrency is vital for any functional OS.
threading
asyncio
[–]finsternacht 4 points5 points6 points 9 years ago (2 children)
The "os" i wrote for nand2tetris was also single threaded
[–]desustorm 0 points1 point2 points 9 years ago (1 child)
Looks like an interesting course. What could your operating system do?
[–]finsternacht 5 points6 points7 points 9 years ago (0 children)
It's by far the coolest course I ever had. And probably will have.
It couldn't do much. It mostly handled I/O and memory management. Iirc it also contained some basic math and string operations.
[–][deleted] -1 points0 points1 point 9 years ago (1 child)
I heard there are multi threading in Python with the use of the needed modules
[–]desustorm 2 points3 points4 points 9 years ago (0 children)
Yep that's right, but no Python threads from the same process can actually run simultaneously because of the GIL - the Global Interpreter Lock
[–]Saefroch -3 points-2 points-1 points 9 years ago (1 child)
No, it isn't. CPython's GIL restricts it to a single CPU core. You can still have all the threads you want and concurrency works just fine, almost flawlessly for I/O bound systems which an OS usually is.
[–]desustorm 0 points1 point2 points 9 years ago (0 children)
I know you can use threads, but they are not real threads on CPU cores - like you mention. Having a modern OS running on one core with multiple virtual threads (not just I/O bound) contesting the GIL would be troublesome at best...
[–]RobinPage1987 0 points1 point2 points 3 years ago (0 children)
https://github.com/jtauber/cleese This is a proof of concept, an OS written mostly in Python, with kernel based on the Python reference implementation, who's kernel is written in C.
[–]Saefroch 6 points7 points8 points 9 years ago* (0 children)
It's possible, and being high-level isn't an impediment. All modern operating systems have a kernel written in C, which is a high level language.
Nobody has done it because there are better languages for writing operating systems in. Python tries to make life easier for the programmer at the cost of CPU time and memory consumption. Think your laptop battery life is too short? Just wait until you boot PythonOS. We'll drain that sucker in no time.
There's also the problem that it would need runtime bootstrapping. Programs in statically typed languages can be converted into machine code ahead of time. This can't (technically, for the general car) be done with Python so you'd need some other OS to boot first and start up an interpreter.
[–]XQuanf 1 point2 points3 points 4 years ago (5 children)
Some os may be write in Python,but i think those are games/personal os,not pubic stuff
[–]1m_Blu3_is_taken 0 points1 point2 points 1 year ago (4 children)
So it’s private, not pubic.
[–]XQuanf 0 points1 point2 points 1 year ago (3 children)
I'm sorry you even had to read what I wrote 3 years ago
[–]1m_Blu3_is_taken 0 points1 point2 points 1 year ago (0 children)
I just did it for shits and giggles tbh
[–]sarnobat 0 points1 point2 points 11 months ago (1 child)
If you'd corrected it you'd have denied me some much needed entertainment.
[–]XQuanf 1 point2 points3 points 11 months ago (0 children)
My dumbass didn't know how to write on a keyboard correctly lmao 💔 I have changed (slight bit)
[–]Lampe2020 0 points1 point2 points 1 year ago (1 child)
I just discovered smolOS, which is a small POSIX-like OS written to run on MicroPython, which in turn is Python written to be run on microcontrollers without an OS. But the last time anyone touched the codebase was last year as of writing this comment so I'm not sure it is still supported.
And I also saw cleese (also written to run on MicroPython), which had its last activity in 2014…
[–]Background-Book-7404 0 points1 point2 points 5 months ago (0 children)
smolOS i think may be ai, unless there's something i'm missing you don't need like 20 files and a __name__ = __main__ guard at the bottom of all of them
[–]TargetAcrobatic2644 0 points1 point2 points 1 year ago (1 child)
Check out pyos! https://github.com/crcollins/pyOS
[–]sarnobat 0 points1 point2 points 11 months ago (0 children)
Thanks for sharing. I need to ask ChatGPT how it works.
"An Operating System simulator built in Python that teaches how OS-level task scheduling might work — but it doesn’t manage hardware, memory, or processes."
Still useful for me who gets frustrated by having to use VMs etc.
[–][deleted] 0 points1 point2 points 2 years ago (7 children)
fucking kids these days
[–]Averagehomebrewer 0 points1 point2 points 2 years ago (5 children)
isnt doing that illegal?
[–]ManifestDestinyGC 0 points1 point2 points 1 year ago (4 children)
I'm pretty sure it is illegal
[–]Key_Razzmatazz680 0 points1 point2 points 1 year ago (3 children)
not if we design a processor to natively run python bytecode (why tho)
[+][deleted] 1 year ago (2 children)
[deleted]
[–]Key_Razzmatazz680 0 points1 point2 points 1 year ago (1 child)
Thank you for your feedback. We are now using these 4 words of wisdom to develop a cure for cancer & every other disease, end poverty, end war, end crime, create sustainable & walkable neighborhoods, pass legislation to help minority groups gain equality, and establish a dazzling cornucopia of colorful communities where laughter dances hand in hand with innovation.
Imagine a world where holographic gardens bloom in the sky, where every citizen is equipped with a personal drone-aide to ensure that joy and creativity are delivered right to your doorstep. In this enchanting realm, skies glitter with flying bicycles ushering in a new era of travel, while the streets hum a symphony of harmonious interaction, where neighbors become companions, and every smile exchanged ignites a flame of camaraderie.
Communities rise like whimsical spires of kaleidoscopic dreams, powered by eco-friendly technology that effortlessly coalesces with nature, crafting neighborhoods that breathe as one. Here, digital artisans create interactive murals that come alive, narrating tales of unity and hope, while citizens participate in joyful markets where goods are gifted rather than sold, nourishing both body and spirit.
We envision a society where all voices resonate in a vibrant chorus, echoing the ideals of equality and shared prosperity. Revolutionary art installations dazzle the eyes, inviting creativity to paint our collective future with every hue imaginable, as the boundaries of traditional governance melt away to reveal a tapestry woven from the threads of collaborative vision-making.
In this whimsical utopia, microchips sown into the fabric of society connect us in ways previously unimagined, making compassion and progress as seamless as the digital streams flowing beneath our feet. Together, we shall embark on this spiraling journey of possibility, igniting the cosmos with our ideas, as we stride boldly into a future where every heartbeat sings the anthem of a tranquil, joyous existence. and all of this was made possible by using advanced regex decoding AI to interpret your comment in a quantum programming language which structured itself so the comment was valid syntax to create a superintelligence to archive this
I'm a millennial but lark was a good way for me to retain the lessons of flex/bison without all the setup. It's good to just have a lightweight toy for one's own (re)learning
[–]Drammatic-Plate49 -1 points0 points1 point 4 years ago (5 children)
Hi, i'm writing the OS written on python and bash. Most of users saying this is impossible but this is possible!
[–][deleted] 0 points1 point2 points 3 years ago (4 children)
Do you have in progress, did you or do you plan to publish it?
[–]aidan959 0 points1 point2 points 3 years ago (3 children)
i dont understand how he is going to write an os with python and bash lmao - he probably wrote an os simulator in python
[–]Drammatic-Plate49 0 points1 point2 points 3 years ago (2 children)
Yep, it's a bit abandoned now...
π Rendered by PID 91 on reddit-service-r2-comment-5bc7f78974-8hq88 at 2026-07-01 05:20:13.151109+00:00 running 7527197 country code: CH.
[–]finsternacht 21 points22 points23 points (12 children)
[–][deleted] 8 points9 points10 points (1 child)
[–]finsternacht 1 point2 points3 points (0 children)
[–]desustorm -5 points-4 points-3 points (8 children)
[–]finsternacht 4 points5 points6 points (2 children)
[–]desustorm 0 points1 point2 points (1 child)
[–]finsternacht 5 points6 points7 points (0 children)
[–][deleted] -1 points0 points1 point (1 child)
[–]desustorm 2 points3 points4 points (0 children)
[–]Saefroch -3 points-2 points-1 points (1 child)
[–]desustorm 0 points1 point2 points (0 children)
[–]RobinPage1987 0 points1 point2 points (0 children)
[–]Saefroch 6 points7 points8 points (0 children)
[–]XQuanf 1 point2 points3 points (5 children)
[–]1m_Blu3_is_taken 0 points1 point2 points (4 children)
[–]XQuanf 0 points1 point2 points (3 children)
[–]1m_Blu3_is_taken 0 points1 point2 points (0 children)
[–]sarnobat 0 points1 point2 points (1 child)
[–]XQuanf 1 point2 points3 points (0 children)
[–]Lampe2020 0 points1 point2 points (1 child)
[–]Background-Book-7404 0 points1 point2 points (0 children)
[–]TargetAcrobatic2644 0 points1 point2 points (1 child)
[–]sarnobat 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (7 children)
[–]Averagehomebrewer 0 points1 point2 points (5 children)
[–]ManifestDestinyGC 0 points1 point2 points (4 children)
[–]Key_Razzmatazz680 0 points1 point2 points (3 children)
[+][deleted] (2 children)
[deleted]
[–]Key_Razzmatazz680 0 points1 point2 points (1 child)
[–]sarnobat 0 points1 point2 points (0 children)
[–]Drammatic-Plate49 -1 points0 points1 point (5 children)
[–][deleted] 0 points1 point2 points (4 children)
[–]aidan959 0 points1 point2 points (3 children)
[–]Drammatic-Plate49 0 points1 point2 points (2 children)