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 https://memes.MarkRatcliffe.repl.co" then save as meme.txt. Afterwards you can read them memes!
Can I just say amazing I don't know how people code in binary it seems like it would take forever.
@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".
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 file.write(response.content)
print('Welcome to Simple OS')
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:
if "del " in code:
code = code.replace("del ","")
if "download " in code:
code = code.replace("download ","")
name = input("File name: ")
Nice work! I would do this in python, but binary seems more appropriate:
while(True): votes += 1 binary += 1