Share your repls and programming experiences

← Back to all posts
Simple OS: A simple OS!

Simple OS is a operating system made in python binary. I call it simple because it is made of just 7024 1's and 0's. This OS is all text based. Here are the basic commands. "start file_name" runs a python file. "new file_name" creates a new file. "read file_name" reads a file. "del file_name" deletes a file. "app calc" runs the calculator. "download url" downloads a file off the internet by url. Edit: To read some memes type "download" then save as meme.txt. Afterwards you can read them memes!

sugarfi (622)

Instead of just typing out '1' and '0', most binary programs convert each byte, or 8 bits, into a character. For example, instead of writing '1000001', you would write 'A'.

TST2024 (12)

Can I just say amazing I don't know how people code in binary it seems like it would take forever.


@TST2024 Thanks. Also yeah, binary does take forever to code.

Vandesm14 (2656)

@MarkRatcliffe Please don't lie that you "coded in binary". This isn't truly an OS nor is it truly binary (machine) code. All you did was convert a python script into binary (from text) and convert the binary back to text on run. You then just run the code. I will say, I like the idea, but it is false advertising to say that you made an "operating system in binary".

sycrepl (10)

@Vandesm14 just checked and yeah, he even commented lol


@Vandesm14 Oh sorry, I did not make it to be like that. I fixed the post.

JacobMacLeod (12)

This is so cool! I love it!

prushton (0)

I tried to open a file that didnt exist and got an error. I would make a case to handle that and not kill the program


This is what he actually wrote:

from requests import get # to make GET request

def download(url, file_name):

# open in binary mode
with open(file_name, "wb") as file:
    # get request
    response = get(url)
    # write to file

print('Welcome to Simple OS')
def run(runfile):
with open(runfile,"r") as rnf:
while(1 == 1):
code = input('> ')
if "start " in code:
code = code.replace("start ","")
if "new " in code:
code = code.replace("new ","")
content = input("File Content: ")
f = open(code, "w")
if "read " in code:
code = code.replace("read ","")
f = open(code, "r")
if "app calc" in code:
print(eval(input("Calculation: ")))
if "del " in code:
code = code.replace("del ","")
import os
if "download " in code:
code = code.replace("download ","")
name = input("File name: ")


@HENRYMARTIN4 Yeah. It is pretty simple. I wrote the python using binary characters. I did all of that manually


@MarkRatcliffe Oh. I assumed you used a simple binary translator.

Coder100 (17133)

Nice work! I would do this in python, but binary seems more appropriate:



  votes += 1
  binary += 1
mathmaniac88 (21)

where did u learn to code binary can u give me a link or something. Thx!