Starting my Operating Systems (Python 3.10)

Sdílet
Vložit
  • čas přidán 9. 09. 2024
  • Hello, everyone. I'm starting up my operating systems. I did the Ruby startup earlier, and now I'm working on the Python operating system. It's a really simple method, base don the old Unix platform. I'm going to make something simple to begin with, which would be a login screen that asks for a name and a password. The login name and password are already built in. So I won't have to worry about any profile creation. I guess that's the next step.

Komentáře • 89

  • @davidomar742
    @davidomar742 Před 5 měsíci +8

    he has more curiosity then most computer science students I see nowadays. Yes his understanding is not all there yet but holy shit he is just starting,

  • @sambazeley5366
    @sambazeley5366 Před 5 měsíci +10

    You are creating an operating system, in python, using notepad. What? This is fucking hilarious please keep going.

    • @Battleganz
      @Battleganz  Před 5 měsíci

      Thank you. I will.

    • @ckpioo
      @ckpioo Před 5 měsíci +2

      lmfao this guy is a joke quite literally

    • @sambazeley5366
      @sambazeley5366 Před 5 měsíci +1

      @@ckpioosurely it’s a bit 😭😭

    • @ckpioo
      @ckpioo Před 5 měsíci +1

      @@sambazeley5366 yea like no way he's actually using notepad, making a os in python and that os isn't even a os

    • @sambazeley5366
      @sambazeley5366 Před 5 měsíci +2

      @@ckpioohas he got a mental disabillity? or is it a bit? or is he genuinely just curious and a little overzealous? i mean im in support of it really either way 😭
      HTML5 version?? LMAOOO

  • @pluck_vods4192
    @pluck_vods4192 Před 5 měsíci +8

    in notpad is crazy i dont have as much mental strength as you good luck sir!!

    • @Battleganz
      @Battleganz  Před 5 měsíci

      Grazie mille. Programming in Notepad is trippy...

    • @zdenekkoukol5496
      @zdenekkoukol5496 Před 5 měsíci

      @@Battleganz What about notepad++?

    • @Battleganz
      @Battleganz  Před 5 měsíci

      @@zdenekkoukol5496 I've never used it. It sounds nice, but It has a lot more features than I need right now. I have Visual Studio Code on my computer, but it's too much for just a simple script.

  • @lowlevelcodingch
    @lowlevelcodingch Před 5 měsíci +12

    Again, this is no OS, it is an AUTH program

    • @lowlevelcodingch
      @lowlevelcodingch Před 5 měsíci +1

      But cool

    • @bryceblankinship
      @bryceblankinship Před 5 měsíci +1

      exactly, i basically created google by making a search function on my webpage

    • @Battleganz
      @Battleganz  Před 5 měsíci

      You could make the argument that every OS has an auth program as one of its components, therefore this would be both an OS AND an auth program. But that's as far as it goes. And I said in the title that I was just starting and that this was a prototype. So, you were WRONG!

    • @tricial6284
      @tricial6284 Před 5 měsíci +1

      ⁠​⁠​⁠@@Battleganz maybe I am missing something, but I don't think the title states that this is meant to be a prototype

    • @ckpioo
      @ckpioo Před 5 měsíci

      ​@@Battleganz No it is not even a argument, because to bring up that point would be similar to saying that the following is untrue a is equal to b always, but b need not be equal to a

  • @RoroZoro-lf4nz
    @RoroZoro-lf4nz Před 5 měsíci +1

    Good luck bro keep going, haters gonna say what they want.

    • @Battleganz
      @Battleganz  Před 5 měsíci

      Hell, I ain't doing nothing else. I was liking all their posts and everything. Got like 40 subscribers!

    • @Battleganz
      @Battleganz  Před 5 měsíci

      @GhOs7-Operator Thank you oh-so-very much.

  • @arbitrandomuser
    @arbitrandomuser Před 5 měsíci +12

    WTF did i just watch ?

    • @user-yi8uz2ph1y
      @user-yi8uz2ph1y Před 5 měsíci +1

      FR

    • @Battleganz
      @Battleganz  Před 5 měsíci +1

      Did I accidentally upload a porno or something? What's going on with these videos?

    • @user-yi8uz2ph1y
      @user-yi8uz2ph1y Před 5 měsíci +5

      Yes bro oil up I'll be there in 5

    • @user-yi8uz2ph1y
      @user-yi8uz2ph1y Před 5 měsíci +10

      It's just that we are watching python be written in notepad and being used to create an "os" which is just you logging into nothing. Good luck on your journey though, everyone starts somewhere sorry for being rude.

    • @arbitrandomuser
      @arbitrandomuser Před 5 měsíci +9

      You've taken effort to make a video and put it up , it's nice to see you interest in programming.
      Like the above comment mentioned one has to start somewhere , but it appears that you have a wrong notion of what an OS does if you go about building one and you start off with making a login screen .
      As for notepad , well one should always use tools one is comfortable with , but there are several free much powerfull editors out there ,and I would definitely urge you to try out one of them .
      Whatever it is you're building , have fun. Everyone starts of knowing next to little , what sets the pros apart is how fast they cover ground through reading, experimenting and exposure.
      Have fun ❤

  • @andrey6906
    @andrey6906 Před 5 měsíci +1

    you don't need semicolon in python
    that's why you put whitespaces and indentations
    to distinguish lines

  • @MrNathanShow
    @MrNathanShow Před 5 měsíci +1

    Nice John, really great start to your operating system! Happy to send over some really good books on OS development if you'd like. I think they use a different language than Python, however, you could still apply the concepts. Otherwise, keep going my man!

    • @Battleganz
      @Battleganz  Před 5 měsíci

      Thanks, but I think I have the basics. And those books are prolly so big they need a thousand dollars postage, each.

  • @thomasgebert6119
    @thomasgebert6119 Před 5 měsíci +1

    Hey John, just an fyi for version 2, passwords usually aren’t stored or compared in plain text. Usually they’re hashed. You might want to google hash functions in Python.

    • @Battleganz
      @Battleganz  Před 5 měsíci

      I pretty much already knew that the passwords aren't stored in the exact function. I was doing it for speed's sake.

    • @denic6861
      @denic6861 Před 5 měsíci +1

      @@Battleganzwhat he’s trying to say is security wise and code wise, it’s a bad practice. If a user wants to change a password, you’d need to edit the code. If a new user is to be added to your system, you’d have to change your code. Instead write code around the idea that you could have infinite number of users.
      Passwords are typically saved to the hard drive “hashed” which means it was ran through a function that creates a unique, fixed length string that is used to verify the data. I’d read up and research on hashing. This would allow your code to be more secure because you wouldn’t be storing the password where somebody can just read it. As it stands, if I wanted to break into your auth system, I could read that Python file, dump the process memory and run strings, or run through some sort of debugger and see what the code does to check password validity.

    • @Battleganz
      @Battleganz  Před 5 měsíci

      @@denic6861 That is true.

  • @occultsupport
    @occultsupport Před 5 měsíci +2

    new templeOS?

  • @tricial6284
    @tricial6284 Před 5 měsíci +1

    Just curious what you'll be working on after the login screen? And why not finish the prototype in one language before moving to the next?

    • @Battleganz
      @Battleganz  Před 5 měsíci

      Well, I wanted to spread it out a bit, because each way of doing it has a different way of working. I wanted to "stretch out my muscles" a bit.

    • @pepsalt
      @pepsalt Před 5 měsíci +1

      @@Battleganz this can work but when you're starting out it's best to stick to one language to learn the ins and outs of programming then move across to different languages

    • @Battleganz
      @Battleganz  Před 5 měsíci +1

      @@pepsalt I did upload another python video, though.

  • @demonman1234
    @demonman1234 Před 5 měsíci +1

    You know visual studio code is free right..? I believe it comes with Windows sometimes too.

    • @Battleganz
      @Battleganz  Před 5 měsíci

      I have Visual Studio Code on my computer, though I rarely use it.

    • @demonman1234
      @demonman1234 Před 5 měsíci

      @@Battleganz Ah I see. Whatever works for you, they all achieve the same purpose just with different tools.

    • @ckpioo
      @ckpioo Před 5 měsíci +1

      ​@@Battleganz but WHY notepad specifically, why not notepad++ or the main question WHY NOT USE A IDE OR A TERMINAL EDITOR LIKE A SANE PERSON

    • @Battleganz
      @Battleganz  Před 5 měsíci

      @@ckpioo It's EASIER for me to code n Notepad.

    • @user-dy3yo9ct9r
      @user-dy3yo9ct9r Před 5 měsíci +1

      Depends how old his computer is.... visual studio runs a bit slow on mine.... I use geany for my coding purpose but notepad works.

  • @davidomar742
    @davidomar742 Před 5 měsíci +3

    Unless the people commenting have tried to create an OS themselves, just stfu already lmao. The dude is having fun discovering the world of computer science. This why nerds are the worst

    • @pepsalt
      @pepsalt Před 5 měsíci

      for real

    • @Battleganz
      @Battleganz  Před 5 měsíci

      Well I'll certainly keep all this in mind for next time. Thanks.

    • @lowlevelcodingch
      @lowlevelcodingch Před 5 měsíci

      i made one, so yeah, i can smartass yall

    • @pepsalt
      @pepsalt Před 5 měsíci

      @@lowlevelcodingch and i can smartass about it to, doesn't mean I should. let a guy learn stuff on his own terms. we all made mistakes when learning

    • @lowlevelcodingch
      @lowlevelcodingch Před 5 měsíci

      @@pepsalt yeyeye i commented i stopped with it, lol

  • @roz1
    @roz1 Před 5 měsíci +3

    Do u even understand what is an OS and a Kernel ..... OS with python is impossible because the bootup will require unmanaged code ... so ur python interpretur is of no use there.... U are working with bare metal this what you are showing is just an cli python app not an OS ..... Please understand the base CS concepts before making a video like this.
    Forget about python u can't even write an Os in java, C# or any language than works on top of a VM. So sorry this is completely wrong. Languages that can be used are C, Cpp, Rust which are pre compiled and not compiled at runtime.

    • @Battleganz
      @Battleganz  Před 5 měsíci

      You can build an OS on any platform. It doesn't need a kernel and a shell, particularly if it's just a prototype/example.

    • @roz1
      @roz1 Před 5 měsíci +2

      @@Battleganz I'm really sorry you r completely wrong just read any operating systems book to understand what I'm saying... U can call it an application but it's not an OS... What r the functionality of an OS read it u will understand what I'm saying

    • @Battleganz
      @Battleganz  Před 5 měsíci

      You can prototype on anything. You can prototype on a piece of paper or a post-it note. You don't have to have the most perfect OS in history to be prototyping/starting out. You are wrong, and you're losing the argument. Thank you.

    • @keyon_renner
      @keyon_renner Před 5 měsíci

      @@Battleganz You can definitely mess around with Python to prototype parts of an operating system like handling files or making a basic user interface.
      But for the serious stuff like dealing with hardware or managing memory efficiently, you'll eventually need to switch to more low-level languages like C or assembly.

    • @Battleganz
      @Battleganz  Před 5 měsíci +1

      @@keyon_renner This is only a prototype. My first operating system will not be the most advanced operating system in history, and I never said that it would be. Thank you.

  • @Ale_Dev
    @Ale_Dev Před 5 měsíci +1

    bro that is not an OS

    • @Battleganz
      @Battleganz  Před 5 měsíci

      I said that it was a prototype. You misunderstood me. The title said that I was just starting out. It was a prototype.

    • @Ale_Dev
      @Ale_Dev Před 5 měsíci +1

      ​@@BattleganzI get it but people think that you are making an OS like that and it's really hard to make an OS with such a high level language as python.

    • @Battleganz
      @Battleganz  Před 5 měsíci

      @@Ale_Dev But...It's a prototype! The final product will NOT be in Python! It's a prototype! That's what a prototype MEANS. It means NOT FINISHED PRODUCT! People don't fucking LISTEN when you're talking to them!

    • @Ale_Dev
      @Ale_Dev Před 5 měsíci +1

      @Battleganz, haha, sorry if it seemed like I was trying to make you mad. I was just a bit disappointed because I thought it would be cool if it was a real OS, you know? Like in Python. Didn't mean to ruffle any feathers, just sharing my thoughts! 😄"

    • @Battleganz
      @Battleganz  Před 5 měsíci

      @@Ale_Dev I ain't doing shit else...