Live data from Hacker News

Tetris-OS: An operating system that only plays Tetris

github.com

31–40 of 126 posts

Re: Tetris-OS: An operating system that only plays Tetris

#31
post #2

Youtube video that goes over the developer's experience making it: https://www.youtube.com/watch?v=FaILnmUYS_U

In my retirement, watching programming streams has been a guilty pleasure (drives my SO crazy), and this is one of my favorite channels. I especially loved their other video on making Minecraft from scratch* * - https://www.youtube.com/watch?v=4O0_-1NaWnY

Wonderful! Mine has been chess streams. GMHikaru,IM Rosen, St. Louis Chess Club ... What else have you discovered?

Re: Tetris-OS: An operating system that only plays Tetris

#34
post #19

This is cool, but I think it's misleading to call it an operating system. It's Tetris that runs without an operating system, which is to say, on bare metal, old school. Writing programs that run on bare metal is a cool and worthwhile thing to do, but calling any such program an "operating system" is confusing. This probably sounds like I'm picking a nit, but I think it matters for the sake of newbies just starting to…

So if you could write programs with the tetris blocks, it'd be an OS? Sign me up!

Re: Tetris-OS: An operating system that only plays Tetris

#36
post #19

This is cool, but I think it's misleading to call it an operating system. It's Tetris that runs without an operating system, which is to say, on bare metal, old school. Writing programs that run on bare metal is a cool and worthwhile thing to do, but calling any such program an "operating system" is confusing. This probably sounds like I'm picking a nit, but I think it matters for the sake of newbies just starting to…

So if you could write programs with the tetris blocks, it'd be an OS? Sign me up!

You mean Minecraft?

Re: Tetris-OS: An operating system that only plays Tetris

#37
post #19

This is cool, but I think it's misleading to call it an operating system. It's Tetris that runs without an operating system, which is to say, on bare metal, old school. Writing programs that run on bare metal is a cool and worthwhile thing to do, but calling any such program an "operating system" is confusing. This probably sounds like I'm picking a nit, but I think it matters for the sake of newbies just starting to…

I don't think it is essential that there be a clear boundary between an OS and programs.

For example, you can have a Smalltalk-based OS, written in Smalltalk. The OS components are simply Smalltalk classes and methods. Your programs/utilities/applications would also be Smalltalk classes and methods. There needn't be any clear boundary between the classes/methods that belong to the OS and those that belong to programs/applications/utilities.

If you look at library operating systems, the operating system is just a library which you link into your application. Such an operating system can only run one program, and you have to rebuild the operating system whenever you want to change the single program it runs. Still, I think library operating systems count as operating systems. This Tetris implementation isn't using a library operating system, but you could refactor the code into two parts – the Tetris game, and generic OS services, and the later would constitute a library operating system. If you look at its source files, only about seven of them (main.c, music.[ch], sound.[ch], speaker.[ch]) actually implement the game. The other 23 source files are generic OS services. So I'd say that, even if this isn't an operating system as a whole, it contains an OS within itself.

Re: Tetris-OS: An operating system that only plays Tetris

#40

Earlier quoted context omitted.

In my retirement, watching programming streams has been a guilty pleasure (drives my SO crazy), and this is one of my favorite channels. I especially loved their other video on making Minecraft from scratch* * - https://www.youtube.com/watch?v=4O0_-1NaWnY

Wonderful! Mine has been chess streams. GMHikaru,IM Rosen, St. Louis Chess Club ... What else have you discovered?

Per Vognsen’s Bitwise (*) was one of my favorites until it was discontinued. It’s not a complete set, but still a great watch. I also enjoyed George Hotz’s occasional programming streams. He reminds me of some of my favorite colleagues from over the years.

I haven’t watched chess in a while, but your comment certainly sparked something. I may give it another go.

For a less nerd-y class of content, I have also enjoyed boxing videos - especially those focused on coaches illustrating technique.

[*] https://www.youtube.com/channel/UCguWV1bZg1QiWbY32vGnOLw

Post reply on HN