I made an entire OS that only runs Tetris

Поділитися
Вставка
  • Опубліковано 21 лис 2024

КОМЕНТАРІ • 4,5 тис.

  • @IsmaelVazquezJr
    @IsmaelVazquezJr 3 роки тому +6201

    I’m genuinely impressed. This has to be the most exciting “building an OS” video I’ve ever seen since Terry Davis.

  • @SimonClarkstone
    @SimonClarkstone 3 роки тому +6783

    Fun fact: GIMP can export images as C code for situations like these.

    • @A1rPun
      @A1rPun 3 роки тому +919

      Wasn't expecting to learn anything from YT comment, thanks for this.

    • @maddiepilz5711
      @maddiepilz5711 3 роки тому +769

      > situations like these
      lol

    • @embeddedgirl
      @embeddedgirl 3 роки тому +310

      Holy FUCK I needed to know this. Cheers mate!!

    • @blazi_0
      @blazi_0 3 роки тому +40

      Wow that's cool !

    • @DorperSystems
      @DorperSystems 3 роки тому +320

      you wouldn't believe how many times I have had to use GIMP export to C

  • @chalupagrande
    @chalupagrande 3 роки тому +2938

    When he said:
    "So the cool thing is that it works for now and will only break when I’m about 20 more hours into this project and have completely forgotten about this code."
    I felt that....

    • @ashwinbelbase
      @ashwinbelbase 3 роки тому +44

      Not just you, every developer felt that XD

    • @NicVigil
      @NicVigil 3 роки тому +8

      Comments are useful lol

    • @burlingk
      @burlingk 3 роки тому +22

      I think anyone who has done anything that took more than a few hours to complete felt that.

    • @AsmodeusMictian
      @AsmodeusMictian 2 роки тому +13

      Apple TurboPascal back in the 90's, then C# around 2013 or so. Both times ran into a situation where I SWEAR EVERYTHING WAS F**$&#@@ RIGHT, and yet somehow it didn't want to work. I tell people that it takes a special kind of masochist to do computer code. They laugh.
      I'm serious.

    • @vinceplatt8468
      @vinceplatt8468 2 роки тому +8

      @@AsmodeusMictian They laugh, then they ask "so, how do I get a high paying job in programming too bro?". 🤦‍♂️

  • @tejing2001
    @tejing2001 2 роки тому +227

    My C programming class in 7th grade had me doing something a lot like the second half of this for our final group project. We just had a pointer to the start of video memory and a few very basic support structures like that, and the rest was up to us. I ended up writing most of the core layer, while the rest of the team implemented game features and made sprites and all that other stuff. I walked out of that class really knowing what programming was about, even if it took me a few more years to get a practical coding environment going for myself. Looking back, that teacher was one of the best I've ever had, in any subject. He was a huge follower of the socratic method, never handing us answers, but getting us to come up with them ourselves, or find them in documentation, while never letting us get mired in a dead end.

    • @gavinthecrafter
      @gavinthecrafter Рік тому +38

      So you basically made a full featured game engine entirely out of C *IN 7TH GRADE?!?!* That's impressive

    • @tejing2001
      @tejing2001 Рік тому +13

      @@gavinthecrafter Full-featured for the scale of game we were going for, anyway, yeah. Kinda sounds more impressive than it felt like to me at the time. It was maybe 6-7k lines of code iirc. The game was roughly a mix between space invaders and asteroids. Unfortunately, I no longer have the code :-(

    • @pigsweat7763
      @pigsweat7763 Рік тому +47

      @@tejing2001 where the hell do you have a c class in 7th grade

    • @tejing2001
      @tejing2001 Рік тому +23

      @@pigsweat7763 The silicon valley area in California. It was an elective, of course.

    • @ME0WMERE
      @ME0WMERE Рік тому +17

      C at 11 years old? lucky dude

  • @fknight
    @fknight 3 роки тому +7025

    Teach me your ways. You built everything from scratch, even the Tetris soundtrack lol. Next you'll be writing your own BIOS on custom made hardware.

    • @I_Am_Kosh
      @I_Am_Kosh 3 роки тому +34

      Lol

    • @I_Am_Kosh
      @I_Am_Kosh 3 роки тому +353

      Shouldn't he be curing cancer or something

    • @akkico
      @akkico 3 роки тому +15

      @@RedstoneNinja99 saw that the other day. i forgot that i subscribe to him.

    • @recklessroges
      @recklessroges 3 роки тому +35

      Ben Eater [eaterbc] collaboration when?

    • @pyfun4196
      @pyfun4196 3 роки тому +23

      here comes the Coding Jesus.

  • @aarghrai2697
    @aarghrai2697 3 роки тому +807

    Code Bullet : Makes the game and then makes the AI
    jdh : Makes the OS and then makes the Game

    • @vodam6970
      @vodam6970 3 роки тому +52

      these 2 combined would be unstoppable

    • @mimisgtaman
      @mimisgtaman 3 роки тому +35

      @@vodam6970 Sounds more like something stoppable and highly cashable ...Perfect content

    • @aarghrai2697
      @aarghrai2697 3 роки тому +3

      @Foxy 6670 LMAO

    • @brandontechnerd
      @brandontechnerd 3 роки тому

      @@vodam6970 true lol

    • @lokeshchandak3660
      @lokeshchandak3660 3 роки тому +11

      Introduce them to NileRed and they'd be extracting silicon from sand to make computer chips.

  • @CrownCatX
    @CrownCatX 3 роки тому +1942

    Next: "I went mining in a cave and collected resources to make my own hardware"

    • @InnerEagle
      @InnerEagle 3 роки тому +31

      I made my own hardware and then proceeded to create a way to mine cryptocurrencies without collateral issues

    • @TerraKnight27
      @TerraKnight27 3 роки тому +19

      computercraft in real life

    • @X-Ter
      @X-Ter 3 роки тому +42

      After that: "I invented the universe to make my own Earth which allows me to gather resources to create my own hardware, then I make an operating system, which I use to play PONG"

    • @papiangelus
      @papiangelus 3 роки тому +1

      Iron man type beat

    • @janno288
      @janno288 3 роки тому +5

      "Just like the simulations"

  • @XinhuiZENG
    @XinhuiZENG 10 місяців тому +124

    "Repository unavailable due to DMCA takedown."

    • @eliascregard396
      @eliascregard396 3 місяці тому +7

      Fucking Nintendo despises fun!

    • @magictoffee7066
      @magictoffee7066 3 місяці тому +4

      ​@@eliascregard396 It's not Nintendo, they don't have the rights to tetris anymore, it was the Tetris Company.

    • @SupaGamersAlt
      @SupaGamersAlt 3 місяці тому +1

      @@magictoffee7066 The Tetris Company is a company that works HEAVILY with Nintendo, to the point of basically being fully associated with Nintendo in the public eye if you were to pull a random person off the street and asked where they best knew Tetris from.

    • @Thatguy-tm8xh
      @Thatguy-tm8xh 2 місяці тому +5

      ​@@eliascregard396im laughing so hard at this comment not just because it's not nintendo but also because nintendo dmcas so many things that people assume it's them

  • @Majima_Nowhere
    @Majima_Nowhere 3 роки тому +3203

    "Bro, your computer is so slow, what OS is it using? Vista?"
    "Tetris."
    "...Huh?"
    "My computer is running on Tetris."

    • @jrgenbull5334
      @jrgenbull5334 3 роки тому +97

      «Bro, your computer is so slow, what OS is it using? Windows 10?»

    • @cobbcoding
      @cobbcoding 3 роки тому +94

      @@jrgenbull5334 wow, how could you insult TetrisOS so much, that you would say it's as slow as Windows 10...

    • @YOEL_44
      @YOEL_44 3 роки тому +27

      @@jrgenbull5334 To be fair, Windows these days is quite efficient, I've used it on a single core Intel Atom with only 1GB DDR2, it wasn't a gaming computer for sure, but it was actually usable, I could even watch YT videos on Firefox

    • @YOEL_44
      @YOEL_44 3 роки тому +14

      @@yeppiidev That's not the point, the point is that, as a current, modern, feature filled OS, is not that hard to run

    • @YOEL_44
      @YOEL_44 3 роки тому +7

      @@yeppiidev I watched my first YT video on a W98 machine, I know

  • @polraudiozion1156
    @polraudiozion1156 3 роки тому +3471

    Just imagine the Tetris bootloader where you have to beat level 100 levels of Tetris to boot into your main OS.

    • @peterbelanger4094
      @peterbelanger4094 3 роки тому +324

      Or how about the only way to save or load a file is to clear Tetris lines. Each square resenting one bit.
      If you fail to clear that level, you lose all that data.

    • @sonicfon
      @sonicfon 3 роки тому +283

      @@peterbelanger4094 Nice virus.

    • @andjohn
      @andjohn 3 роки тому +61

      I need this to be a grub option. Chainload only after 100 levels.

    • @charliesenn4517
      @charliesenn4517 3 роки тому +26

      Or do that to decrypt your data #CryptoLockerVirus

    • @coffin7904
      @coffin7904 3 роки тому +3

      @Suicide Kyd what's the name?

  • @nikhilmwarrier7948
    @nikhilmwarrier7948 3 роки тому +1440

    jdh: _Builds an entire OS from scratch just to play tetris_
    Me: _opens Stackoverflow:_ *How to center a div in CSS*

    • @MisterRousseaux
      @MisterRousseaux 3 роки тому +206

      I mean we laugh, but I swear it changes every time...

    • @tedi7103
      @tedi7103 3 роки тому +19

      @@eness379 vertical centering will always be hell man

    • @tedi7103
      @tedi7103 3 роки тому +10

      @@eness379 that's chill man don't worry. And remember flexboxes are your friend :^)

    • @iYonga
      @iYonga 3 роки тому

      @@eness379 katılıyorum :D

    • @WarrenGarabrandt
      @WarrenGarabrandt 3 роки тому +9

      .vertical-center {
      margin: 0;
      position: absolute;
      top: 50%;
      -ms-transform: translateY(-50%);
      transform: translateY(-50%);
      }

  • @retrojon_
    @retrojon_ Рік тому +19

    This video never gets old! 2 days ago I finally got my bootloader to load and run my 32-bit C kernel and today, I got it printing to the screen properly. I have a long way to go and hopefully, I'll have my own version of Tetris running as well in the future!

  • @subpixell
    @subpixell 3 роки тому +464

    I'm sad that you didn't take the genius opportunity to name it "TetrOS"

    • @Jono997
      @Jono997 3 роки тому +17

      Should've known someone else would think of this joke.

    • @z-beeblebrox
      @z-beeblebrox 3 роки тому +16

      From the second the video started I was like "please call it TetrOS please call it TetrOS" and...I'm not mad, I'm just disappointed

    • @MrCrackbear
      @MrCrackbear 3 роки тому +14

      a tetris operating system called tetros actually already exists and it fits within the 512 bytes of the boot sector

    • @gregdabrat
      @gregdabrat 3 роки тому +1

      Amazing

    • @devhonk1722
      @devhonk1722 3 роки тому +4

      @@MrCrackbear Yeah but still, does it support the glorious Sound Blaster Audio:tm:?

  • @jedits2256
    @jedits2256 3 роки тому +1605

    "Hey bro can I borrow your laptop really quick?"
    "Yeah sure it's on the couch"
    "Thanks"
    tetris theme starts playing from the living room

    • @georgefloydgaming4772
      @georgefloydgaming4772 3 роки тому +28

      “HEY WHAT DO I DO “

    • @nathangamble125
      @nathangamble125 3 роки тому +22

      @@georgefloydgaming4772 YOU PLAY TETRIS!!!

    • @marlo8850
      @marlo8850 3 роки тому +1

      @@georgefloydgaming4772 Can you do a playthrough of rainbow six vegas with Derek Chauvin lets plays?

    • @georgefloydgaming4772
      @georgefloydgaming4772 3 роки тому +1

      @@marlo8850 I own rainbow six siege only

    • @-na-nomad6247
      @-na-nomad6247 3 роки тому +6

      I did something similar when I was just starting at engineering school, added a custom made bootloader to my laptop wich required a code to be pressed (pressed not entered, like keep holding 3 letters when it checks) to boot, otherways it shows "Disconnecting" and shuts off, people tend to leave the pc alone after that.

  • @whitecat1441
    @whitecat1441 3 роки тому +1622

    OS: "what is my purpose?"
    jdh: "you load Tetris"
    OS: "Oh my god!"
    jdh: "Yes!"

    • @zvpunry1971
      @zvpunry1971 3 роки тому +15

      s/load/are/

    • @stasyandr563
      @stasyandr563 3 роки тому +11

      is it Rick and Morty reference? :D

    • @lowqualityvideos8091
      @lowqualityvideos8091 3 роки тому +2

      @@stasyandr563 ies tthaht ah reick ahand mhorteey wrehfherrehnce

    • @otesunki
      @otesunki 3 роки тому

      @@zvpunry1971 haha slashes program

    • @TheChasedanger
      @TheChasedanger 3 роки тому +2

      Welcome to the computer pal

  • @chrisknestrick374
    @chrisknestrick374 2 роки тому +249

    This video inspired me to start writing my own OS. As I’ve been writing I’ve been rewatching this and understanding more and more. I *just* started having this weird behavior and was like, “I bet I didn’t read enough sectors in.” Yup, that was it! Thank you for saving me a LOT of pain!!! 😁

    • @lexihadrovic
      @lexihadrovic Рік тому +7

      You done with the OS?

    • @nibbletrinnal2289
      @nibbletrinnal2289 Рік тому +35

      @@lexihadrovic they almost certainly are not, depending on their goals. most hobby operating systems take multiple years to get to a point even remotely as useable as something like windows or linux.
      jdh only managed to do his project in a reasonable timeframe due to the fact that its not even really an OS, but a kernel that does a single highly specific task, which was a good decision on his part imo

    • @lexihadrovic
      @lexihadrovic Рік тому +2

      @@nibbletrinnal2289 Thanks for informing me on that!

    • @Ollie12418
      @Ollie12418 Рік тому +2

      How did you write your own OS? I wanna do it too!

    • @nibbletrinnal2289
      @nibbletrinnal2289 Рік тому +7

      @@Ollie12418 not sure why i got notified for your message even though you didn't @ me specifically, but if you're really willing to dedicate the time to such a process, the osdev wiki is *the* de facto starting point for anyone looking to get into osdev. a link to it should be in the description of this video, iirc
      i wish you luck on your osdev journey my friend

  • @palegrass6168
    @palegrass6168 3 роки тому +1426

    Next Video: "I realized that using an operating system to make tetris is sort of cheating, so I made my own computer without buying any of those cheaty parts and hardcoded tetris into it."

    • @Henrix1998
      @Henrix1998 3 роки тому +119

      Collab with Ben Eater?

    • @TheCustomFHD
      @TheCustomFHD 3 роки тому +13

      @@Henrix1998 omg yes! XD

    • @alexstone691
      @alexstone691 3 роки тому +1

      James Sharman anyone?

    • @VioletJewel1729
      @VioletJewel1729 3 роки тому +95

      next next video: "using resources on Earth is actually cheating. In fact, using the physics of this universe is cheating. So, I created a worm tunnel by manipulating space-time with quantum mechanics derived from our already partial understanding of the universe to arrive in a new universe with no energy or mass or predefined laws of physics and got to work making my own rules for quantum mechanics before making my own computer to hardcode tetris on. 'But wait!', I thought. I could just make the entire universe one big game of tetris. So, that's exactly what I did: A universe that only runs tetris."

    • @thev01d85
      @thev01d85 3 роки тому +16

      @@VioletJewel1729 You have too much free time, don't you?

  • @ovencake523
    @ovencake523 3 роки тому +534

    I like how he figures out the music to tetris by playing and listening instead of just looking it up

    • @Ruinah
      @Ruinah 3 роки тому +66

      Agreed, my literal first thought was "why didn't he just look at any of the million MIDI versions of Tetris and transcribe that".

    • @textnumbers22
      @textnumbers22 3 роки тому +37

      Gotta practice learning by ear somehow

    • @Johnny31323
      @Johnny31323 3 роки тому +2

      Tbh i do this too, in my opinion, it's easier to do it yourself than listening to the music, maybe that's just me, but its 100% easier for me.

    • @TheRojo387
      @TheRojo387 2 роки тому

      Sounds very Russian. Long live Пажитнов!

    • @Xvladin
      @Xvladin Рік тому

      I feel like the tetris theme is like the first thing you learn to play by ear

  • @thescroncho8945
    @thescroncho8945 3 роки тому +297

    i didn't understand a word he said in this entire 20 minutes but i loved every second of it

    • @js7539
      @js7539 3 роки тому +2

      Did you understand when he said tetris?

    • @thescroncho8945
      @thescroncho8945 3 роки тому +3

      @@js7539 what tetris?

    • @timg2727
      @timg2727 3 роки тому +1

      @@js7539 what's a tetris?

  • @LauraLowe
    @LauraLowe Рік тому +124

    Idea: You _can_ run applications, but to launch them you have to clear lines that correspond to positions on the taskbar

  • @cat47
    @cat47 3 роки тому +324

    “Some people use cheats like a prebuilt universe but I don’t need any of that stuff”-Jdh 40567

  • @lorenzoiannuzzi3937
    @lorenzoiannuzzi3937 3 роки тому +352

    "yeah i was bored so I made tetris"
    "oh that's nice"
    "yeah, but writing the filesystem was a pain in the ass"

    • @efhiii
      @efhiii 3 роки тому +22

      Who needs a file system

    • @DamienPup
      @DamienPup 3 роки тому +18

      "wait, the *what* ?"

    • @diamondminer81
      @diamondminer81 3 роки тому +10

      There was no file system smh

    • @pseudonymity0000
      @pseudonymity0000 3 роки тому +1

      @@diamondminer81 There was. It handled one file, of one fixed size, located in a few fixed sector locations.

    • @namenotappropriate8756
      @namenotappropriate8756 2 роки тому +2

      @@pseudonymity0000 That's not file system, that's just accessing the disk and reading bits from it

  • @sayhey2972
    @sayhey2972 3 роки тому +1432

    Well, can we just appreciate, that you did such a good job that Tetris Holding, LLC issued a DMCA takedown, good job

    • @superzova
      @superzova 3 роки тому +90

      That made me sad

    • @tissuepaper9962
      @tissuepaper9962 2 роки тому +178

      It's ridiculous how many false claims big IP holdings companies get away with making. Not only is the original piece a folk song long in the public domain, this would clearly be fair use even if they did have any rights to the music. Infuriating, truly.

    • @hilal_younus
      @hilal_younus 2 роки тому +17

      Wait, this video got striked?

    • @sayhey2972
      @sayhey2972 2 роки тому +35

      @@hilal_younus Yeah i checked it 3 months ago from multiple countries „Not available due to DMCA violations“

    • @hilal_younus
      @hilal_younus 2 роки тому +50

      @@sayhey2972 well, ironically it popped up in my recommendations lol… it just sucks that he got striked for his hard work. Shows how much UA-cam really cares about their creators.

  • @Arcoz
    @Arcoz Рік тому +196

    Me:
    - Let me check the code.
    Github:
    - Repository unavailable due to DMCA takedown.

    • @leg1187
      @leg1187 Рік тому +7

      I know right. I wonder why?

    • @SomeRandomPiggo
      @SomeRandomPiggo Рік тому +1

      @@leg1187 The Tetris Company hates their fans like Nintendo does, aggressively monetizing everything even if it hurts their brand

    • @HallwayMusic91
      @HallwayMusic91 Рік тому +15

      @@leg1187 Tetris Company took it down due to violation of copyright infringement.

    • @leg1187
      @leg1187 Рік тому +8

      @@HallwayMusic91 Oh of course it did :/ What did he expect?

    • @HallwayMusic91
      @HallwayMusic91 Рік тому +8

      @@leg1187 It would have been nice to try out this OS. I mean after all, it is "the perfect game".

  • @spookyturbo1618
    @spookyturbo1618 3 роки тому +270

    Not only did he make the os and tetris, but he busted out the keyboard and figured out the harmony and melody instead of just checking musescore

    • @inqmusician2
      @inqmusician2 3 роки тому +1

      It's actually easier to do the MIDI routine.

    • @chrispham6599
      @chrispham6599 3 роки тому +1

      @@inqmusician2 no it's not! It's not as simply as just putting the MIDI INTO the code

    • @d0nnyr0n
      @d0nnyr0n 3 роки тому +2

      @@chrispham6599 I think they meant that the MIDI would make it so he didn't have to make it from scratch. Anyway, Musescore isn't the best way to find sheet music. Sure, some of it is good, but there is a lot of poor transcriptions.

    • @inqmusician2
      @inqmusician2 3 роки тому

      @@d0nnyr0n Yeah, but many games and consoles did this way. Nintendo DS, for instance.

  • @eric-jt4ij
    @eric-jt4ij 3 роки тому +376

    As a hobby OSdev I can say this is highly based, good job.

  • @2k7u
    @2k7u 3 роки тому +560

    Dammn man, your github repository got actually DMCA'ed, this is insane

    • @sevrjukov
      @sevrjukov 3 роки тому +41

      i wonder just how colossally stupid tetris folks must be to take the repo down. Sometimes it just blows my mind how dumb people can be.

    • @InsideBSIProd
      @InsideBSIProd 3 роки тому +7

      lmaoooo that's fucking crazy smh my head

    • @legoboy7107
      @legoboy7107 3 роки тому +89

      @@sevrjukov I mean...Tetris is still a copyrighted retail game that is sold for money, it hasn't become freeware or whatever. So this is technically distributing an unlicensed version of a paid game for free. But yeah, it still really sucks and is pretty dumb.

    • @imaginarystranger1974
      @imaginarystranger1974 3 роки тому +84

      @@legoboy7107 Who in their right mind would buy tetris?

    • @traida111
      @traida111 3 роки тому +90

      @@legoboy7107 I don't see how they can copyright against this because its built from scratch and open source. Even their music wasn't original, it was from Korobeiniki. Maybe they could TM against the name Tetris, also the types of blocks and the colours, but still its open source, I don't get how they can do that.. Nobody who wants to play tetris will use this code, only developers who want to read how the code works.

  • @JordanSugarman
    @JordanSugarman 2 роки тому +7

    This is similar to what we did for my 400-level computer architecture class. Only the system we were writing it for was based on a Motorola 68K chip. We had to write all the low-level hardware drivers and a simple OS kernel that tied it all together. The final involved booting it up and loading a program from a floppy disc that the professor gave us (yeah, we implemented a floppy controller driver). The program utilized every feature we had implemented to date to run a very simple (ascii) version of Tetris.

  • @deathscape47
    @deathscape47 3 роки тому +165

    This is the most satisfying programming/game dev/vim/neovim video on youtube, i could watch this all day

  • @redumptious2544
    @redumptious2544 3 роки тому +566

    Next up: A collaboration with Ben Eater, because you two are basically going the same path just in opposite directions.

    • @Templarfreak
      @Templarfreak 3 роки тому +52

      more like going in the same directions but on opposite sides of the same fence

    • @andrewliu6592
      @andrewliu6592 3 роки тому +21

      and then there’s that guy making integrated circuits in his garage

    • @DVankeuren
      @DVankeuren 3 роки тому +3

      Opposite directions would be making tetris for an os.

    • @crusaderanimation6967
      @crusaderanimation6967 3 роки тому +4

      @@andrewliu6592 Oh my imagine colab between all 3.

    • @naturegirl1999
      @naturegirl1999 2 роки тому +2

      Haven’t seen Ben Eater, what videos does he make?

  • @cannac6995
    @cannac6995 3 роки тому +311

    This man is the kind of person who can flex on us but using the entertaining way

  • @MShahbazKharal
    @MShahbazKharal 2 роки тому +3

    You are a brilliant and consistent man, I thought of creating a simple OS myself back in days when I was obsessed with writing things from scratch but couldn't do it because it is so much work and requires you to understand a whole lot than a normal programmer understands about computers. Your video gives the gist of what it needs to even write a very simple bootable software. Love your work man and thanks for sharing the Github code as it may help someone who is as cool as you.

  • @henningerhenningstone691
    @henningerhenningstone691 3 роки тому +207

    I struggle to wrap my mind around how this is even humanly possible, man I'd spend months trying to create Tetris in Unity and this guy casually writes it in ANSI C while casually making a working bootloader, graphics driver, sound driver and all the rest of it

    • @atemoc
      @atemoc 3 роки тому +6

      Well at least for the drivers it shouldn't have been TOO hard, because it was run onto a virtual machine

    • @RobinCernyMitSuffix
      @RobinCernyMitSuffix 3 роки тому +5

      @@atemoc naa, it also works on my Thinkpad x230, sadly I'm in the process of moving, and my Thinkpad 240x (yes the x is on the end, it's a Thinkpad from 2001 with a Pentium III) is already at my new home, but I'll try to run it on there too. Backwards compatibility is a nice thing :3

    • @atemoc
      @atemoc 3 роки тому

      @@RobinCernyMitSuffix Damn, it doesn't work on my ThinkPad SL510, but, that probably is because of some IdeaPad firmware and other weird things on it, other OSes have issues with it too

    • @atemoc
      @atemoc 3 роки тому +1

      @@RobinCernyMitSuffix @@RobinCernyMitSuffix Of course, I know that, otherwise how else could I know that other OSes on this PC struggle too? I run Arch Linux and Debian as a daily driver, I got one PC with Haiku OS and other PCs with random obscure OSes because I love playing with them!

    • @Toopa88
      @Toopa88 3 роки тому +9

      I think it's not as hard as it sounds. What you really need to be good at is reading (the correct) documentations, there's a lot of information out there. It's not like he reinvented the wheel.

  • @SuperchargedW12
    @SuperchargedW12 3 роки тому +57

    i only understand Java and C# but this was still extremely interesting, seeing a genius create an operating system

  • @PeterfoxUwU
    @PeterfoxUwU 3 роки тому +87

    This is literally everything I've ever wanted! 😍

  • @khoapham1821
    @khoapham1821 2 роки тому +9

    The world needs more of this guy, who still can write assembly

  • @ForbiddenPizza
    @ForbiddenPizza 3 роки тому +226

    When I started coding I thought using libaries was some sort of cheating, as I basically just ran someone else's program which I couldn't write myself. This guy took that thought to a whole nother level

    • @frenzygamer907
      @frenzygamer907 3 роки тому +32

      even the people who wrote the libraries were cheating ... since they used a high level programming language ... only the people who wrote C didnt cheat :)

    • @Taylor_5724
      @Taylor_5724 3 роки тому +12

      Honestly I hate using libraries because I don't understand how they are supposed to work a lot of the time and they are often very slow

    • @callmeishmael5742
      @callmeishmael5742 3 роки тому +44

      @@frenzygamer907 only people who program in assembly aren't cheating

    • @aiocafea
      @aiocafea 3 роки тому +57

      assembly is cheating, you use mnemonics
      real gs use machine code

    • @callmeishmael5742
      @callmeishmael5742 3 роки тому +52

      @@aiocafea *real* programmers build their own computers. I don't mean with graphics cards and pre-built circuits, I mean with transistors and stuff

  • @norb3695
    @norb3695 3 роки тому +169

    "Look ma, no errors!" That is literally me showing my code to anyone

    • @norb3695
      @norb3695 Рік тому

      @enrique amaya the fuck?

  • @sneeznoodle
    @sneeznoodle 3 роки тому +95

    As someone with no assembly knowledge, this whole video was a bizarre combination of surreal, confusing and inspiring. I kinda wanna learn assembly now.

    • @alexanderl4995
      @alexanderl4995 3 роки тому +61

      No you don’t.

    • @sneeznoodle
      @sneeznoodle 3 роки тому +20

      @Trevor B yknow what fair enough

    • @chillsgaming1900
      @chillsgaming1900 3 роки тому +1

      Do it then. What's stopping you?

    • @sneeznoodle
      @sneeznoodle 3 роки тому +7

      @@chillsgaming1900 caveman brain

    • @Templarfreak
      @Templarfreak 3 роки тому

      as far as my understanding goes there isnt really any practical purpose to use it in this day and age, the only real reason to use it is for hobbyist things

  • @theulfhednar2655
    @theulfhednar2655 Рік тому +5

    I am truly impressed by this.
    I'm currently learning more and more code as the days go by (at least it feels that way). And seeing something like this really does make me motivated to keep pushing.
    I guess I gotta start doing some leetcode first though, to at least get those concepts in.
    (Mainly been doing webdev until now, so backend is kind of a new field for me)

  • @Bladavia
    @Bladavia 3 роки тому +376

    Can't believe there's someone out there who's still paying for a domain hosting niche documentation on 90's hardware.

    • @timgels2918
      @timgels2918 3 роки тому +101

      And i am glad they exist

    • @YitzharVered
      @YitzharVered 3 роки тому +34

      Domains were free back in the day

    • @gfasterOS
      @gfasterOS 3 роки тому +13

      @killmoo all 7 pennies per year for a site like that

    • @Darkest_matter
      @Darkest_matter 2 роки тому

      @Suicide Kyd now it's like £10 a month. Only way to survive is get people to click the adverts so you make slightly more than £10 a month

    • @nickwilson3499
      @nickwilson3499 2 роки тому +2

      @@Darkest_matter to host a single page?

  • @hexandcube
    @hexandcube 3 роки тому +62

    "This repository is currently disabled due to a DMCA takedown notice. We have disabled public access to the repository. The notice has been publicly posted. "
    WHY

    • @belstar1128
      @belstar1128 3 роки тому +4

      Nintendo is insane with copyright.

    • @altpersonas
      @altpersonas 3 роки тому +1

      The Tetris Company notoriously defends its copyright and its also illegal to make a copy of Tetris

    • @kantraa
      @kantraa 2 роки тому +1

      @@altpersonas then why are there so many clones of it on the play store

    • @BryanLu0
      @BryanLu0 2 роки тому +4

      @@altpersonas It is not illegal to make clones. It is illegal to use their company name

    • @chri-k
      @chri-k 2 роки тому

      @@BryanLu0 note that “clone” and “copy” mean slightly different things

  • @junsoup
    @junsoup 3 роки тому +28

    One more thing you can add is the Tetris bag randomizer where the seven unique pieces are shuffled and outputted as a group repeatedly. Three T pieces coming out of the first four was surprising. awesome video

    • @cynoglav9665
      @cynoglav9665 2 роки тому +1

      This is only a thing in more recent versions of Tetris. OG Tetris did none of that!

  • @fntthesmth423
    @fntthesmth423 2 роки тому +1

    I really appreciate the way you kept spacing the code when it was a bunch of variables

  • @alexismandelias
    @alexismandelias 3 роки тому +8

    This project is so needlessly hard and complicated but at the same time so beautiful to watch. Must have felt _so_ satisfying to see through this project after all the pain that went into making it. This I aspire to become as a junior dev.

  • @EebstertheGreat
    @EebstertheGreat 3 роки тому +14

    The Next box isn't just for "fancy new versions." It was literally present in the original Electronika 60 version in 1984. That's before the game had sound, color, or even a price tag.

  • @pedrogonzalez5590
    @pedrogonzalez5590 3 роки тому +116

    The Github repository got a DMCA takedown

    • @shepardpower
      @shepardpower 3 роки тому +7

      Sucks

    • @daviddgtnt
      @daviddgtnt 3 роки тому +16

      I WANNA SEE THE FLIPPING CODE

    • @menderelcapbig1876
      @menderelcapbig1876 3 роки тому +8

      he should have considered that tetris is copyrighted...

    • @BartoszDotryw
      @BartoszDotryw 2 роки тому +1

      YT description:
      > pls don't copyright strike me for the music EA
      Get's DMCA'ed instead.

  • @fugoogle_was_already_taken
    @fugoogle_was_already_taken 2 роки тому +3

    From my very limited experience from writing memory manager for Nova (had to do it for uni) and some assembly (also for.uni) I admire how persistent you had to be to one man this. Had to take so much effort. Very cool

  • @thedeagle1007
    @thedeagle1007 3 роки тому +41

    Bro. I'm over here with a case of depression caused by c++ and a project that's taken about 8 hours so far. I could never do what this man just did.

    • @lycorisdev
      @lycorisdev 3 роки тому +11

      To be fair C++ is pretty hard to use, don't feel bad. And you too can build anything from the ground up. Computer science is like playing legos. You learn easy stuff and build them on top of one another to make something complex. Over time you can do some impressive stuff as well! What matters is being too angry to give up. What are you working on if I may ask?

    • @thedeagle1007
      @thedeagle1007 3 роки тому +5

      @@lycorisdev a basic text based game that justs prints to the command window. I would do a 2D game but implementing graphics through SDL and other libraries is still a little above my head lol. I've only been coding since about November 2020.

    • @lycorisdev
      @lycorisdev 3 роки тому +4

      @@thedeagle1007 I see, I'm also making a text-based game. I don't know C++ but I program in C and I used to use C# in the past, what's troubling you?

    • @richarddurkee4617
      @richarddurkee4617 3 роки тому

      C++ is tough. Keep going!

  • @it-vb6sr
    @it-vb6sr 3 роки тому +19

    As someone who has only really used high level languages this is incredibly fascinating, all your videos are great and I hope the UA-cam algorithm would favour your channel more. Awesome content

  • @vaclaurus3545
    @vaclaurus3545 3 роки тому +327

    I completely forgot I even subscribed, what a surprise.

    • @user-cb8pj2eb1g
      @user-cb8pj2eb1g 3 роки тому +1

      But a welcome one!

    • @vaclaurus3545
      @vaclaurus3545 3 роки тому

      @@user-cb8pj2eb1g yes!

    • @JinskuKripta
      @JinskuKripta 3 роки тому +1

      @@vaclaurus3545 I can't read your comment because the name of @___... is too long and UA-cam don't let me press Read More due to that fact.

    • @vaclaurus3545
      @vaclaurus3545 3 роки тому

      @@JinskuKripta lol I said "yes" I can click the button just fine. 🤷

    • @sql64
      @sql64 3 роки тому

      @@user-cb8pj2eb1g wish i had such a good name

  • @henrikr8183
    @henrikr8183 2 роки тому +2

    Beautiful. I wrote an OS for fun too (back in the early 2000s). It had a bootloader, never left Real Mode, and could display a command prompt, and that was it! I was incredibly happy when I put the image onto a 3.5" floppy and it actually booted on my machine (modern machines with UEFI instead of a BIOS would have been much harder). Then I proceeded to never look at it again and question my life choices.

  • @Known_as_The_Ghost
    @Known_as_The_Ghost 3 роки тому +57

    This is the person who's going to make those computers you see in Fallout.

  • @raymonddevries9928
    @raymonddevries9928 3 роки тому +15

    I felt that *_sigh_* on a spiritual level. One character bugs are the bane of programming. This video is actually insane, keep up the good work.

  • @sheep_supreme6790
    @sheep_supreme6790 3 роки тому +9

    really impresive. I feel like I only saw a fraction of the hard work, that went into this. great job

  • @hippyhoppo
    @hippyhoppo Рік тому +2

    I am so mind blown by your videos. I have been watching them all day at work. How did you even manage to get to this point? I am about a year into my programming career and this just feels beyond my lifetime

  • @Bebs_
    @Bebs_ 3 роки тому +11

    This is honestly the best video I have watched in months!
    A perfect combination of coding, sarcasm and editing perfection!

  • @AndrewWilsonStooshie
    @AndrewWilsonStooshie 3 роки тому +6

    This got you a subscribe from me. I've never seen anyone just write assembly like other people write "normal" code. I used to write assembly on my old BBC and I was constantly having to look everything up all the time.

  • @wafflespawn
    @wafflespawn 3 роки тому +239

    Dude this guy made an operating system in a month and I can't even figure out data-orineted design in that time. Where did you learn to program? I'm mega jelly about your skills at all things programming.

    • @Kitulous
      @Kitulous 3 роки тому +14

      I can't even make myself continue to learn asp net lol

    • @jdh
      @jdh  3 роки тому +208

      thanks 😌 but tbh learned almost everything from info on the internet and going through tons of side projects. Technically been to university too but this isn't the sort of stuff you learn there and generally university courses aren't what are going to make you a good programmer, experience and time will (I know, hot take). Progress feels slow but soon enough you'll be looking back on where you were a few years ago and realize you've come really far!

    • @sorryvol
      @sorryvol 3 роки тому +1

      @@jdh computer science?

    • @thev01d85
      @thev01d85 3 роки тому +12

      I think he just has a lot of free time on his hands.
      You see it's not overly difficult to develop an os, it's mainly very time consuming and it's easy to write bugs.
      The theory is rather easy.
      That being said there are tons of support groups, the biggest one being the osdev discord server which you can find over at osdev.wiki

    • @thev01d85
      @thev01d85 3 роки тому +7

      @@sorryvol I don't think CS Is the right course to take for operating system development.
      I've been told that you don't really learn this in college.
      I however really like embedded systems, and if you do too then you should look into computer engineering which is a mix of EE and CS and it sounds pretty good

  • @cppxaxa
    @cppxaxa 2 роки тому +2

    Github code repo is gone, just checked and thanks for the video.
    I can't draw with a pencil, let alone with the code. Your dedication and passion can't be matched.
    I never ever thought that I'd see an OS, from scratch, running an enterprise workload called "Tetris"

  • @shahriardhruvo4333
    @shahriardhruvo4333 3 роки тому +10

    The amount of dedication is UNREAL!!! Truly amazing work.

  • @LiEnby
    @LiEnby 3 роки тому +190

    next: "I reprogramed the BIOS of my computer to only run tetris"

    • @yukkuriwa
      @yukkuriwa 3 роки тому +1

      yes

    • @-Tris-
      @-Tris- 3 роки тому +26

      funny way to brick someone's PC

    • @gladiusso
      @gladiusso 3 роки тому +18

      @@-Tris-literally

    • @NextLevelCode
      @NextLevelCode 3 роки тому +5

      It already exists. CoreBoot Bios with Tetris payload.

    • @vertihippo1274
      @vertihippo1274 3 роки тому +4

      @@-Tris- What more use does a PC need than to play Tetris? I'd say it's fully functional. lol

  • @Gigawipf
    @Gigawipf 3 роки тому +9

    Was able to boot it via PXE in virtualbox and a real notebook and a kvm server :)
    Nice work. That goes in my boot menu until i forget about it and wonder why everything is booting tetris.

    • @dryued6874
      @dryued6874 3 роки тому

      Hey, do you happen to still have the source code? The repo was taken down and it's a shame for such a thing to be gone.

  • @SupaGamersAlt
    @SupaGamersAlt 3 місяці тому +8

    Of COURSE the GitHub repo was DMCA'd...
    Fuck Nintendo and The Tetris Company.

  • @d3vilscry666
    @d3vilscry666 3 роки тому +42

    I can’t even make a simple hello world program in assembly, and this guy here creates a whole loader on it like it was nothing. I want to one day have the abilities that this guy possesses.

    • @OrbitalCookie
      @OrbitalCookie 3 роки тому +5

      time and willpower

    • @d3vilscry666
      @d3vilscry666 3 роки тому +5

      @@OrbitalCookie True. It just feels like I never have enough time in school. School really sucks the fun out of everything.

    • @OrbitalCookie
      @OrbitalCookie 3 роки тому +5

      @@d3vilscry666 LOL imagine day job from 8 to 5

    • @d3vilscry666
      @d3vilscry666 3 роки тому +7

      @@OrbitalCookie I can see why many people hate that. But I find it better than going to school from 10-2. Then working from 4-11 PM, then studying from 11:30 until like 2AM. Rinse and repeat.

    • @NikolayGorylenko
      @NikolayGorylenko 3 роки тому +1

      That ability called learning ability.

  • @JosephTatumPage
    @JosephTatumPage 3 роки тому +5

    This is my second video I've watched from you in as many days. I'm still floored and my mouth is still gaping at your skill lvl. Shows the amazing work one can do when you hack a system. Great job dude.

  • @willianvinagre3338
    @willianvinagre3338 3 роки тому +9

    how does this guy can manage to do such a cool project in such a short time? this dude's amazing!
    love your video btw, keep up with the excellent work!

  • @noxfortes
    @noxfortes 2 роки тому +12

    I just can't believe the fact that the repo got DMCA'd 😑😑

  • @LewiLewi52
    @LewiLewi52 3 роки тому +79

    Where do you even start learning how to do this, this is incredibly impressive.

    • @Henrix1998
      @Henrix1998 3 роки тому +37

      Googling. A lot of googling and 30 year old documentations. No one can teach you these things, you have to learn it all yourself

    • @twb0109
      @twb0109 3 роки тому +2

      @@Henrix1998 and doing

    • @Padeir0
      @Padeir0 3 роки тому +14

      you will need some knowledge of computer architecture, core concepts of operating systems and some skill in assembly. A few books that can help you with that:
      - Programming From The Ground Up by Jonathan Bartlett: teaches you x86 assembly, a bit of computer architecture and other things
      - Operating System Concepts by Avi Silberschatz, Greg Gagne, and Peter Baer Galvin: it's a great introduction to operating systems, it teaches you how the operating system interfaces with hardware, how the operating system gives support to the user space programs etc. It will teach you much more than it's needed to built what's on the video tho.
      - manuals on the hardware you're trying to write software to
      - for writing drivers there are a lot of books about drivers on linux, they might give you a good idea how to do it

    • @jdh
      @jdh  3 роки тому +37

      I've added some resources in the description that I used when I started learning this stuff a few years back :)

    • @LewiLewi52
      @LewiLewi52 3 роки тому

      @@jdh Thank you very much!

  • @Youshinaka
    @Youshinaka 3 роки тому +32

    The level of dedication is insane, I love it

  • @psychicpenguin2850
    @psychicpenguin2850 3 роки тому +8

    You know, usually I can follow what you are doing. Even if I could never write all that myself, I at least understand what's happening. Not this time, oh boy.

  • @viktorhonchar
    @viktorhonchar 2 роки тому +1

    Holly man...
    Outstanding skills!
    Respect for the effort and also result!!!

  • @Oskar42
    @Oskar42 3 роки тому +4

    When i implemented a bare-metal Tetris for an ARMv7 i used a list of coordinate offsets from the center of the tetris block instead of a matrix containing bits - that makes rotation much easier because you can just use rotation matrices

  • @Einhamer
    @Einhamer 3 роки тому +36

    Ok, so, given the way this goes, the next video he's gonna say "I'm just too good for computers, so I made my own computer and OS, just to run pong"

    • @figboot
      @figboot 3 роки тому +4

      If you're interested in that sort of thing, check out Ben Eater's 6502 computer + videocard builds ;)

    • @Einhamer
      @Einhamer 3 роки тому +3

      @@figboot Ahhh yes, is that the guy that made a video card entirely out of breadboard?

    • @figboot
      @figboot 3 роки тому +4

      @@Einhamer Yeah, that's him

    • @aceman0000099
      @aceman0000099 3 роки тому +2

      Next video after that:
      Making several kilograms of silicon, aluminum, antimony, arsenic, barium, beryllium, cadmium, chromium, cobalt, copper, gallium, gold, iron, lead, manganese, mercury, palladium, platinum, selenium, silver, and zinc using my own fusion reactor to build into hardware

  • @zerocalvin
    @zerocalvin 3 роки тому +16

    once Ben Eater finish building his bread board computer, you'll need to port this over =D

    • @vincentguttmann2231
      @vincentguttmann2231 3 роки тому

      He is already a full stack developer. If ever a nuclear war takes place, those two will rebuild the entire computer architecture.

  • @01Chris02
    @01Chris02 2 роки тому +1

    I learnt Java at uni last year as part of a softdev conversion course but have never looked at C before. I'm amazed how much I understand without ever having written or studied lower level languages. Thanks jdh.

  • @sauldickson4079
    @sauldickson4079 3 роки тому +90

    “I don’t think Tim Apple would like me booting this on his hardware.”
    That’s code for, “I have no idea how to get a Mac to boot something other than MacOS.”

    • @Mr_Yeah
      @Mr_Yeah 3 роки тому +9

      Back in the PowerPC days, running anything besides Mac OS is complicated.
      Now with Intel, it's way easier if you want to run a recent Windows version with Boot Camp. Anything besides that might become challenging, too.
      But soon, with Apple Silicon, I think it'll be straight impossible to run anything else than macOS.

    • @jdh
      @jdh  3 роки тому +42

      Oh no don't worry, I know it's possible, I just don't want to void my warranty or anything lmao

    • @BocuD
      @BocuD 3 роки тому +9

      @@jdh If booting a different OS would void your warranty i don't think apple would be allowed to make computers.. Its really easy lol, just try it

    • @bobweiram6321
      @bobweiram6321 3 роки тому +4

      @@BocuD Sarcasm.

    • @paulstelian97
      @paulstelian97 3 роки тому

      Modern Macs can actually only run UEFI OSes I think? And Boot Camp runs Windows 10 in UEFI mode?

  • @erumi3215
    @erumi3215 3 роки тому +22

    I'm convinced he just found an excuse to show us his masterful Tetris skills.

    • @gwentarinokripperinolkjdsf683
      @gwentarinokripperinolkjdsf683 3 роки тому

      eh, he is only okay.

    • @InnerEagle
      @InnerEagle 3 роки тому +1

      That's a good excuse for hacking your brain outside the confort zone

    • @kheireddineattala1281
      @kheireddineattala1281 3 роки тому

      please people this is literaly thebest joke you can ever make about this vid

    • @duckmeat4674
      @duckmeat4674 3 роки тому

      He isn't using a 7bag system, or using right wells 0/10 would not play

    • @InnerEagle
      @InnerEagle 3 роки тому

      @@duckmeat4674 I saw earlier someone invented a new faster method to play tetris

  • @squid8520
    @squid8520 3 роки тому +29

    "I finally find this one character, change it to be correct and keep going" is the most accurate coding statement I've ever heard

  • @waterinferno2071
    @waterinferno2071 9 місяців тому +1

    You fixing the rotation table made me actually happy to see

  • @flummox3d
    @flummox3d 3 роки тому +4

    My jaw is on the floor. Your skills are scary. I'm not even sure about what I *didn't* understand, but the misspelled 0x0020 was something I could relate to even without a coding knowledge this deep. Long story short: subscribed.

  • @brick4353
    @brick4353 3 роки тому +66

    ah yes, building an OS. i did this for my raspberry pi, wrote a custom OS so that I could make a robot run easier with it, forgot to backup the ISO, and the sd card broke causing me to lose 4 months of work. good times.

    • @Jesse78
      @Jesse78 3 роки тому +6

      That's a big rip

    • @casey6259
      @casey6259 3 роки тому +1

      big oof

    • @havens1515
      @havens1515 3 роки тому +1

      Now make THIS run on a pi

    • @OrdosKoala
      @OrdosKoala 3 роки тому +1

      This is the saddest thing I have read today

    • @OxygenOS
      @OxygenOS 3 роки тому

      big rip

  • @theemeraldfalcon9184
    @theemeraldfalcon9184 3 роки тому +40

    On the topic of bugs, I was awake 21 HOURS yesterday working on a 'small' side project (AKA I was cheating and using a game engine), and spent about 18 hours programming, 14-16 hours of which were fixing this ONE STUPID BUG.

    • @tentative_flora2690
      @tentative_flora2690 3 роки тому +1

      Mind if I ask what you are working on. I have been obsessed with Arbitrary code execution on retro videogames. And I am currently working on a sort of cheating library of my own. In similar vein to cheat engine.

    • @timhold2016
      @timhold2016 3 роки тому +4

      Those 18 hours weren’t wasted though. Each tangent you went on that wasn’t the root cause made you a better engineer

    • @hetsmiecht1029
      @hetsmiecht1029 3 роки тому +2

      If I can give you advice: try sleeping sometimes. It can dramatically improve the quality of your written code, which reduces the amount of bugs you accidentally introduce.

    • @theemeraldfalcon9184
      @theemeraldfalcon9184 3 роки тому +3

      @@tentative_flora2690 Yeah, I wasn't doing anything like that, I muddled up some ROTATION CODE. Basically, when calculating the rotation of an object based off of the normal of a face, I had accidentally set a mess of trigonometric functions that caused the rotation to get confused.
      NGL ACE, especially in older games, is super cool :)

    • @theemeraldfalcon9184
      @theemeraldfalcon9184 3 роки тому +2

      @@timhold2016 Yeah, a quite literal tangent,

  • @renofumi28
    @renofumi28 2 роки тому +5

    20:49 "It was at this moment that he knew
    He fucked up"
    Seriously that's a huge pain for tetris enthusiast 😂

  • @yokrysty
    @yokrysty 3 роки тому +88

    great project, unfortunately "Repository unavailable due to DMCA takedown." :(
    who would do such a horrible thing?

    • @igorthelight
      @igorthelight 3 роки тому +12

      "who would do such a horrible thing?" - Tetris LLC, of course ;-)

    • @Kj-zw3sz
      @Kj-zw3sz 3 роки тому +6

      EA

    • @bakane6030
      @bakane6030 2 роки тому +1

      Sad but they have every right to do so as it is copyright violation.

    • @igorthelight
      @igorthelight 2 роки тому +5

      @@bakane6030 True
      It's just if they are VERY strict with rules - people wouldn't want to engage with them in any way. That kills creativity.

    • @sqfzerzefsdf
      @sqfzerzefsdf 2 роки тому +14

      @@bakane6030 lmao as if tetris hasn't been copied to death already.

  • @bruh12458
    @bruh12458 3 роки тому +6

    "im sure not going to right this whole thing in assembly" believe me you shouldnt. writing games in assembly takes weeks and sometimes months

  • @ComfyCherry
    @ComfyCherry 3 роки тому +8

    It's very well done and I know this is a little old now but you forgot one of the core mechanics of Tetris, tera groups the game generates a group of all possible pieces and then pushes them in the random order then generates a new one you never get more than 2 of the same tetra in a row and I saw multiple times of you getting the same piece 3+ times in a row.

    • @LeBlobfish2711
      @LeBlobfish2711 3 роки тому +4

      That’s a modern Tetris thing, older versions of Tetris are totally random like this.

    • @randomname596
      @randomname596 2 роки тому +1

      not totally random; NES and most older ones have “seeds” that correspond to the order of the tetriminos

  • @valixishere
    @valixishere Рік тому +1

    I love how he spends more time on building the OS than Tetris. I’m honestly impressed!
    Keep up the work JDH!

  • @PopeCromwell
    @PopeCromwell 3 роки тому +20

    This is now my favourite human achievement. Previously it was ethics and before that Primus. But now it's this. Simply astonishing.

    • @jdh
      @jdh  3 роки тому +6

      thank you mr. pope

    • @PopeCromwell
      @PopeCromwell 3 роки тому +4

      @@jdh thou art welcome

  • @azr_sd
    @azr_sd 3 роки тому +11

    I enjoyed watching every second of this video. The kind of things you are building shows how much time you might have spent on studying. Respect. I can only dream to build stuff like this.

  • @raising1257
    @raising1257 3 роки тому +15

    Me as a newborn programmer:
    mom come pick me up I'm scared

  • @rr42
    @rr42 2 роки тому +9

    After all this the repo gets a DMCA takedown : (
    Was really hoping to take a stroll through the code

  • @potassiumdev3501
    @potassiumdev3501 Рік тому +16

    It's sad the source code got copyrighted ;-;

  • @nikhuge6580
    @nikhuge6580 2 роки тому +3

    This is the most inspiring video I have ever watch in UA-cam…….thnks for the effort…

  • @nielskoomans
    @nielskoomans 3 роки тому +14

    it's a bummer the company behind tetris actually dmca-ed the fuck out of the github repository. i mean they were in their right to do so, but it's also a bit sad that such a big company strikes an educational piece of code like yours.

  • @paulwratt
    @paulwratt 2 роки тому

    Its a good thing you did not release this 18 days earlier :) - thanks for making the source available

  • @noskill6421
    @noskill6421 3 роки тому +11

    VIDEO IDEA: Make your own programming language. Been trying myself, but would like to see how you would do it

    • @efhiii
      @efhiii 3 роки тому

      Have you looked into the esolang community? They've made countless programming languages.

    • @RasmusSchultz
      @RasmusSchultz 3 роки тому +2

      Yeah, like an actual x64 native compiler - not a transpiler for another language, or not a bytecode interpreter, or LLVM (because cheating!) but an actual, honest-to-God, good ol'fashion' compiler. There are barely any of those around anymore. (Like what the hell happened. Computers got at least 1000 times faster - and still, every modern compiler is somehow slower than Turbo Pascal was on my 486.)

    • @rishisrihari6130
      @rishisrihari6130 3 роки тому

      i've actually been making one that inherits characteristics from BASIC, although it's SUPER limited at the moment lol

  • @lukewilson199
    @lukewilson199 3 роки тому +29

    Okay, I'll admit it. I clicked into this video going "an operating system? Psh, yeah right. I bet you're just gonna make tetris in javascript or something." You coherently made an outstanding product with quality code design. My applause to you

  • @ВладиславВоронков-н9т

    This brought me sweet memories of developing DOS game for my course work in university. Basically the same experience: lots of ASM, interrupt handlers, double buffering, tons of manually edited hex data for fonts and sprites. And of course a lot of hours debugging without an actual debugger. But damn, it was so much fun xD

  • @ducky1681
    @ducky1681 2 роки тому +8

    "Please don't copyright strike me for the music EA"
    *Repository unavailable due to DMCA takedown.*