Hi, I'm Denchie. So if you've seen my previous videos on Scratch, you'll know that people make a lot of various impressive programs in it, everything from 3D games to physics simulators, stuff like that. And today what I'm looking at is probably the most impressive thing I've seen so far, which is a full implementation of the Linux kernel. 6.1.14 year-old is right there in Scratch. So the way this is accomplished from what I know, of course I haven't sat down and looked through the entire source code for this yet because it's massive. But basically what it does is it emulates the risk-five architecture. This is running not on x86 or ARM as most devices are running Linux nowadays. This is a risk-five Linux kernel, which is one of the Linux kernels available. And what this does is it emulates a risk-five processor in Scratch and runs the Linux kernel. We'll have a closer look at what's going on in the background later. But first let's actually run it and see what it can do. I'm really curious. I have tried it before but I've not, I've not really looked into it too deeply, so let's go. All right, here we go. So it does have a full terminal interface. We can see the kernel starting up right there. So we're 64 bits at 1000 Kilohertz. So it's a one gigahertz processor in Scratch, at least according to the log here. If I'm reading the log right, it's starting the init system. And here we are. So we're logged in on the Linux from Scratch set up apparently. And we're just throwing it to a terminal. So I'm going to try running a few commands and see what happens. So first of all, I want to see if it can clear the screen. So try running clear. And okay, yeah, I guess that's not included. I tried to control L there but didn't work. I'll try doing LS to see what the sort of contents of the drive are because I know there is something. Yeah, here we are. There is something on here. There's a JavaScript program and readme.txt. So I'll try, I'll try to cat out one of these files. So readme. Sorry, I'm doing wrong. I tried to press tab, but I'm running this. There's no tab completion in Scratch. Readme.txt. I'll see what happens. All right, here we are. Welcome to Linux on on Scratch. This is overall a pretty bare bones Linux installation for risk five. But there's a few cool things installed. So you can use the ed text editor. So I was thinking maybe there's like them included, but no, there's no VIM or VI or anything like that. It just comes with the ed editor, which is one of those really rudimentary ones. If I'm not sure, I don't think this is the one from plan nine, but it's it's one of those really rudimentary editors where you're editing the text like line by line in a really weird way. I don't know how to use it. So I'm not going to try using it. You can use duck tape to run JavaScript files. So I want this to run fizzbus.js with that. Okay. So I guess we'll do that. Duck tape and then fizzbus.js. See what it does. It's not really. Oh, here we are. Okay. So I ran fizzbus up to 100. Well, there we go. It works. I guess I'll cat the readme. I tried doing control. I got cat the readme again because there was more information in there than a read. There's a benchmarking utility installed called core mark, which can be used to test a speed of the risk five emulation. Okay. Let's try that. So core mark. So I realized that when you press enter, it kind of takes a little while for it to process it. So I just got to kind of have to wait because it takes a second. So I'm currently, yeah, there you go. A benchmarked scratch that says, the core mark size is, wow, that's quite a coincident number. Does it come with like PWD? And okay, we're in root. It comes with LS. If I try to list like our binary programs, what is there? Okay. So there's a few things. So this is running busybox. Okay. So busybox is the basic utilities you'd find in distributions like Alpine and Kislinix. Okay. So touch is included. RM. So all the basic utilities are there. I guess that's the testament to how flexible Linux is that it'll run on literally anything, including an emulated risk five process scratch. And I don't know if you can hear that, but that's my computer. My computer fans spinning up as it tries to run this recompiled scratch program. Okay. So obviously all this will be linked in the description. But what I'm curious about now is what this actually looks like in the back. How this was accomplished scratch. We're going to click the scene side button and hopefully it won't crash our browser. Okay. There's a few things going on. So this is presumably just like a blank sprite. What's this then? This is probably good. What I just clicked on probably has a bunch of code. Okay. Yeah. Ooh. Bitwise and A, B. Set A to. That's a lot of embedded stuff. And it's like a tiny miniature little scroll figure and you can scroll between. So this is like, okay, this is like all the... I guess these are the... This is the implementation of the entire risk five instruction set I'm assuming. I mean, it's crazy that this is done in scratch, right? But at the same time, it is technically just running the instructions which were made into like a physical processor, like a physical instruction set. At least I'm a sinner. I'm not a part where architect. I can't give you the details here. But it's basically emulating a real CPU in scratch, which is just crazy. And so what it does is it from what I understood, they copy like a copy of Linux into this. They upload a copy of Linux into the ROM and then it can just run Linux. And I'm assuming the terminal works by just having a bunch of sprites. And there's a pen tool as well. So which is weird, because I know that scratch has like a text tool. So I'm surprised that's not being used. But I guess not. I guess it's like emulating a display or something. So what's this? This is the... These are all the different key events. So key events and those go into the process. Okay. At end years like the run button which actually starts the program, the risk five ROM. Okay. If we do show the list, we can actually look through the ROM. So if I do show... Show less risk five ROM, I believe this entire thing is the whole Linux kernel like addressed by address. This is the ROM for this full install. Not just the Linux kernel, but the full installation of Linux from scratch that is currently running its credits. The getting over this mental image of scratch right next to it emulated Linux system is just that's messing with me right now. But what you're seeing in this tiny little risk five ROM menu, that's all the data. I'm assuming because I mean what also being the ROM. So I'm waiting for the moment people start getting XORG rather go on scratch. And the moment we start getting like maybe not XORG with more advanced distributions, maybe start getting like a package manager work. I'm assuming probably not a package manager because that would require some kind of internet IO, but maybe something like VIM running in scratch, stuff like that. That would be interesting to see. I want to thank the creator of this project Billman 66 for creating this amazingly impressive program in scratch. Of course all of this will be in the description. I'm running this using TurboWarp, which is a recompiler for scratch, recompiles scratch, the JavaScript and it runs it, but basically runs our scratch projects a lot faster than the native scratch engine and it's basically impossible to run this without having TurboWarp. So yeah, I hope everybody enjoyed this video and I've been d변씨. Goodbye!