Share your repls and programming experiences

← Back to all posts
OS Project
Kai_Justice (202)

I made this OS a week or two ago and I've been adding on to it for a while, if you have any feedback or tips please tell me, I want to improve this as much as I can.

2020 Footnote: This is definitely not a OS looking back at this I probably should've at least looked at what an OS is.

Commentshotnewtop
PrivateGER (1)

How is this an OS?

TheForArkLD (734)

Do you want join to JS-DOS Project? :)

Kai_Justice (202)

@TheForArkLD Sure, sorry for the late reply. I'd love to work on something bigger.

[deleted]

@TheForArkLD Can I join?

Foster_Bryant (100)

you could use the os clear and then you wont need to import repl.it just a tip :P also it will be compatible withother IDEs

Foster_Bryant (100)

I might start making an actual operating system in C soon idk. It may take months or years but I also can't find any resources on how to add UI to the operating system, like for example how window10 shows the login page when you start ur computer

CSharpIsGud (646)

@Foster_Bryant You need C and Assembly, you cant find any resources on it because its incredibly difficult to do. First you need to fully grasp how pointers work and how memory is laid out, then if you want keyboard input, what an interrupt descriptor table is. And finally, assuming you find out how to write pixels to the screen(I haven't got there yet, still working on an IDT) you have to do all that manually too, including implementing logic for text input/buttons.

CSharpIsGud (646)

@Foster_Bryant Also here is an example, I have writing characters to the screen finished https://repl.it/@CSharpIsGud/RealOS

Foster_Bryant (100)

@CSharpIsGud how long have you been working on this also this is the error i got:
main.sh: line 16: bochs: command not found
exit status 127

CSharpIsGud (646)

@Foster_Bryant A day, and it cant run on repl.it
I tried an emulator but it would need graphical output and it doesn't run right on replit

Foster_Bryant (100)

@CSharpIsGud outside of repl.it does bash have to do with it? Also is there any videos you watched or anything? Thx I'm just starting with os developement ;-; and it's so confusing

CSharpIsGud (646)

@Foster_Bryant bash is just the shell lang unix uses, if you know how to use a terminal then you know how to use bash. I just used it in order to chain the commands to compile and run the emulator.
You shouldn't be doing os dev until you fully understand the following:
Advanced C or C++:
Meaning you know what bitwise operations are;
Understand pointers and structs;
And finally, you can do things such as splitting 'strings' yourself,
you don't get a standard library when your the OS.
At least basic understanding of assembly and how memory is laid out.

Foster_Bryant (100)

@CSharpIsGud I was hoping I would be able to use C++ instead of C lol also where did u learn this stuff

CSharpIsGud (646)

@Foster_Bryant mostly google also it doesn't really matter whether you use C++ or C unless you want classes, you don't get the C or C++ lib

Foster_Bryant (100)

what do u mean by u don't get the c or c++ [email protected]

CSharpIsGud (646)

@Foster_Bryant You can't do #include <iostream> or any of that, you have to do it all yourself, which means you create your own standard libs

Foster_Bryant (100)

@CSharpIsGud bruh this is so complicated ;-;

CSharpIsGud (646)

@Foster_Bryant the whole point of an operating system is to provide utilities for the applications to use. if there was a library for creating the OS itself there would be many more of them

Foster_Bryant (100)

@CSharpIsGud Ik but how would I recreate iostream wtf

CSharpIsGud (646)

@Foster_Bryant You don't, you just don't use them.

RogueHalo (400)

This has the ability to takeover WarhawkOS @Warhawk947

CSharpIsGud (646)

@JacksonCowie How does a bunch of if..elif...elif...elif...elif...elif have the ability to take over anything

RogueHalo (400)

@Warhawk947 Take some tips from this!

Kai_Justice (202)

@CSharpIsGud How should I simplify that long string of code? I'm sure it's really ugly to look at as well as being inefficient.

CSharpIsGud (646)

@Kai_Justice I meant that as in it isn't dynamic. Fake OS's like these should be evolving, even if that means they are in python and use libraries to do anything complex it is still progress.

Kai_Justice (202)

@CSharpIsGud I'll have that in mind when or if I make another.

SixBeeps (3221)

Ooooh, wiki. Very creative indeed.

[deleted]

@niorg2606 he copied that part from github lol

Kai_Justice (202)

@TaylorLiang Then I'm guessing I can't have any of the modules that aren't mine in this project?

SixBeeps (3221)

@TaylorLiang That doesn't matter, though. I've never seen something like that before.