Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Spoonix: A Unix-like operating system that runs inside of Scratch.
- sf97ahgf
-
100+ posts
Spoonix: A Unix-like operating system that runs inside of Scratch.
Spoonix is a public domain Unix-like operating system that runs inside of Scratch. Standard UNIX utilities in GNU, macOS, and BSD will be present here like your standard “ls” “cat.” Now this isn't my first time I've played with UNIX systems, I've been working on Orange OS LE and I'm using Linux as my own OS. I will try to create a C compiler called “scc,” but I don't really know C, so I might need some help with this project. (most likely it'll break 75% of the programs code at best.) I will gladly appreciate and welcome any contributors.
Last edited by sf97ahgf (Oct. 25, 2022 17:52:48)
- oxiti8
-
1000+ posts
Spoonix: A Unix-like operating system that runs inside of Scratch.
are you creating any underlying hardware this “os” will run on? I'm thinking of starting work on an 8088 emulator myself.
Last edited by oxiti8 (Oct. 25, 2022 00:35:27)
- MagicCrayon9342
-
1000+ posts
Spoonix: A Unix-like operating system that runs inside of Scratch.
It can't be Unix like if it's nothing like Unix.
- sf97ahgf
-
100+ posts
Spoonix: A Unix-like operating system that runs inside of Scratch.
Yes, I am. I'm just using a simple programming language interpreter as the main CPU and some lists as Ram. are you creating any underlying hardware this “os” will run on? I'm thinking of starting work on an 8088 emulator myself.
- sf97ahgf
-
100+ posts
Spoonix: A Unix-like operating system that runs inside of Scratch.
What do you mean by “if it's nothing like Unix?” It can't be Unix like if it's nothing like Unix.
- oxiti8
-
1000+ posts
Spoonix: A Unix-like operating system that runs inside of Scratch.
So you're creating a VM.Yes, I am. I'm just using a simple programming language interpreter as the main CPU and some lists as Ram. are you creating any underlying hardware this “os” will run on? I'm thinking of starting work on an 8088 emulator myself.
- sf97ahgf
-
100+ posts
Spoonix: A Unix-like operating system that runs inside of Scratch.
It's not a virtual machine because it doesn't use Scratch's main VM (the thing that interprets the blocks.) It uses a little interpreter written in scratch as the main CPU.So you're creating a VM.Yes, I am. I'm just using a simple programming language interpreter as the main CPU and some lists as Ram. are you creating any underlying hardware this “os” will run on? I'm thinking of starting work on an 8088 emulator myself.
- oxiti8
-
1000+ posts
Spoonix: A Unix-like operating system that runs inside of Scratch.
That's what a VM is. A Virtual Machine. A virtual computer like CHIP-8.It's not a virtual machine because it doesn't use Scratch's main VM (the thing that interprets the blocks.) It uses a little interpreter written in scratch as the main CPU.So you're creating a VM.Yes, I am. I'm just using a simple programming language interpreter as the main CPU and some lists as Ram. are you creating any underlying hardware this “os” will run on? I'm thinking of starting work on an 8088 emulator myself.
- sf97ahgf
-
100+ posts
Spoonix: A Unix-like operating system that runs inside of Scratch.
But I will program the kernel in bare metal scratch instead of writing it in code that the interpreter executes.It's not a virtual machine because it doesn't use Scratch's main VM (the thing that interprets the blocks.) It uses a little interpreter written in scratch as the main CPU.So you're creating a VM.Yes, I am. I'm just using a simple programming language interpreter as the main CPU and some lists as Ram. are you creating any underlying hardware this “os” will run on? I'm thinking of starting work on an 8088 emulator myself.
- oxiti8
-
1000+ posts
Spoonix: A Unix-like operating system that runs inside of Scratch.
There is no bare metal scratch? I'm not sure your terminology lines up with what you're actually doing. Good luck writing a compiler.But I will program the kernel in bare metal scratch instead of writing it in code that the interpreter executes.It's not a virtual machine because it doesn't use Scratch's main VM (the thing that interprets the blocks.) It uses a little interpreter written in scratch as the main CPU.So you're creating a VM.Yes, I am. I'm just using a simple programming language interpreter as the main CPU and some lists as Ram. are you creating any underlying hardware this “os” will run on? I'm thinking of starting work on an 8088 emulator myself.
- sf97ahgf
-
100+ posts
Spoonix: A Unix-like operating system that runs inside of Scratch.
What i mean by bare metal scratch, is just scratch as a programming language.There is no bare metal scratch? I'm not sure your terminology lines up with what you're actually doing. Good luck writing a compiler.But I will program the kernel in bare metal scratch instead of writing it in code that the interpreter executes.It's not a virtual machine because it doesn't use Scratch's main VM (the thing that interprets the blocks.) It uses a little interpreter written in scratch as the main CPU.So you're creating a VM.Yes, I am. I'm just using a simple programming language interpreter as the main CPU and some lists as Ram. are you creating any underlying hardware this “os” will run on? I'm thinking of starting work on an 8088 emulator myself.
- MagicCrayon9342
-
1000+ posts
Spoonix: A Unix-like operating system that runs inside of Scratch.
To be Unix-like it uses Unix source code?What do you mean by “if it's nothing like Unix?” It can't be Unix like if it's nothing like Unix.
- sf97ahgf
-
100+ posts
Spoonix: A Unix-like operating system that runs inside of Scratch.
Linux is Unix-like and it doesn't have any lines from the original UNIX whatsoever. Check the Wikipedia page on Linux, and it'll say that it's in the UNIX-Like OS Family.To be Unix-like it uses Unix source code?What do you mean by “if it's nothing like Unix?” It can't be Unix like if it's nothing like Unix.
- sf97ahgf
-
100+ posts
Spoonix: A Unix-like operating system that runs inside of Scratch.
SerenityOS is Unix-Like and it doesn't even have any lines from Unix.To be Unix-like it uses Unix source code?What do you mean by “if it's nothing like Unix?” It can't be Unix like if it's nothing like Unix.
- TrustyRoo
-
49 posts
Spoonix: A Unix-like operating system that runs inside of Scratch.
Simply read it. "Unix-like". The entire reason this word exists is because AT&T would sue anyone who uses the Unix source code into oblivion. Hence the rise of the Unix-like operating systems such as the modern BSD iterations (FreeBSD, OpenBSD, NetBSD, DragonflyBSD etc.), Linux (Debian Linux, Arch Linux, Redhat Linux, SUSE Linux etc.), GNU (Herd) and more. All of them are written as such to emulate an environment similar to Unix but never directly use any Unix source code.To be Unix-like it uses Unix source code?What do you mean by “if it's nothing like Unix?” It can't be Unix like if it's nothing like Unix.
If you want an actual Unix operating system, you could check out OpenIndiana and other illumos/Solaris derivatives.
Edit: TL;DR Unix-like means emulating the Unix style of Operating System, while using 0 Unix code.
Last edited by TrustyRoo (Oct. 25, 2022 05:49:26)
- sf97ahgf
-
100+ posts
Spoonix: A Unix-like operating system that runs inside of Scratch.
*bump*
- Iamnotarobot124
-
100+ posts
Spoonix: A Unix-like operating system that runs inside of Scratch.
Oh I actaully originally intended to make one! are you creating any underlying hardware this “os” will run on? I'm thinking of starting work on an 8088 emulator myself.
- sf97ahgf
-
100+ posts
Spoonix: A Unix-like operating system that runs inside of Scratch.
Well, you can help me with the one I'm making.Oh I actaully originally intended to make one! are you creating any underlying hardware this “os” will run on? I'm thinking of starting work on an 8088 emulator myself.
- oxiti8
-
1000+ posts
Spoonix: A Unix-like operating system that runs inside of Scratch.
The big problem is the instruction decoding in x86 being bonkers but past that i see it being possible to do the IBM PC 5150 in scratch, which would finally fulfill the “windows (1.x) in scratch” niche people have been wanting to do since the dawn of timeWell, you can help me with the one I'm making.Oh I actaully originally intended to make one! are you creating any underlying hardware this “os” will run on? I'm thinking of starting work on an 8088 emulator myself.
Last edited by oxiti8 (Oct. 25, 2022 19:09:46)
- BreadcatGames
-
1000+ posts
Spoonix: A Unix-like operating system that runs inside of Scratch.
if you make a compiler, try encoding the data then passing it to an external source for compiling maybe? It would clean up the main code quite a bit.
- Discussion Forums
- » Advanced Topics
-
» Spoonix: A Unix-like operating system that runs inside of Scratch.