Discuss Scratch

sf97ahgf
Scratcher
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
Scratcher
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
Scratcher
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
Scratcher
100+ posts

Spoonix: A Unix-like operating system that runs inside of Scratch.

oxiti8 wrote:

are you creating any underlying hardware this “os” will run on? I'm thinking of starting work on an 8088 emulator myself.
Yes, I am. I'm just using a simple programming language interpreter as the main CPU and some lists as Ram.
sf97ahgf
Scratcher
100+ posts

Spoonix: A Unix-like operating system that runs inside of Scratch.

MagicCrayon9342 wrote:

It can't be Unix like if it's nothing like Unix.
What do you mean by “if it's nothing like Unix?”
oxiti8
Scratcher
1000+ posts

Spoonix: A Unix-like operating system that runs inside of Scratch.

sf97ahgf wrote:

oxiti8 wrote:

are you creating any underlying hardware this “os” will run on? I'm thinking of starting work on an 8088 emulator myself.
Yes, I am. I'm just using a simple programming language interpreter as the main CPU and some lists as Ram.
So you're creating a VM.
sf97ahgf
Scratcher
100+ posts

Spoonix: A Unix-like operating system that runs inside of Scratch.

oxiti8 wrote:

sf97ahgf wrote:

oxiti8 wrote:

are you creating any underlying hardware this “os” will run on? I'm thinking of starting work on an 8088 emulator myself.
Yes, I am. I'm just using a simple programming language interpreter as the main CPU and some lists as Ram.
So you're creating a VM.
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.
oxiti8
Scratcher
1000+ posts

Spoonix: A Unix-like operating system that runs inside of Scratch.

sf97ahgf wrote:

oxiti8 wrote:

sf97ahgf wrote:

oxiti8 wrote:

are you creating any underlying hardware this “os” will run on? I'm thinking of starting work on an 8088 emulator myself.
Yes, I am. I'm just using a simple programming language interpreter as the main CPU and some lists as Ram.
So you're creating a VM.
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.
That's what a VM is. A Virtual Machine. A virtual computer like CHIP-8.
sf97ahgf
Scratcher
100+ posts

Spoonix: A Unix-like operating system that runs inside of Scratch.

sf97ahgf wrote:

oxiti8 wrote:

sf97ahgf wrote:

oxiti8 wrote:

are you creating any underlying hardware this “os” will run on? I'm thinking of starting work on an 8088 emulator myself.
Yes, I am. I'm just using a simple programming language interpreter as the main CPU and some lists as Ram.
So you're creating a VM.
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.
But I will program the kernel in bare metal scratch instead of writing it in code that the interpreter executes.
oxiti8
Scratcher
1000+ posts

Spoonix: A Unix-like operating system that runs inside of Scratch.

sf97ahgf wrote:

sf97ahgf wrote:

oxiti8 wrote:

sf97ahgf wrote:

oxiti8 wrote:

are you creating any underlying hardware this “os” will run on? I'm thinking of starting work on an 8088 emulator myself.
Yes, I am. I'm just using a simple programming language interpreter as the main CPU and some lists as Ram.
So you're creating a VM.
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.
But I will program the kernel in bare metal scratch instead of writing it in code that the interpreter executes.
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.
sf97ahgf
Scratcher
100+ posts

Spoonix: A Unix-like operating system that runs inside of Scratch.

oxiti8 wrote:

sf97ahgf wrote:

sf97ahgf wrote:

oxiti8 wrote:

sf97ahgf wrote:

oxiti8 wrote:

are you creating any underlying hardware this “os” will run on? I'm thinking of starting work on an 8088 emulator myself.
Yes, I am. I'm just using a simple programming language interpreter as the main CPU and some lists as Ram.
So you're creating a VM.
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.
But I will program the kernel in bare metal scratch instead of writing it in code that the interpreter executes.
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.
What i mean by bare metal scratch, is just scratch as a programming language.
MagicCrayon9342
Scratcher
1000+ posts

Spoonix: A Unix-like operating system that runs inside of Scratch.

sf97ahgf wrote:

MagicCrayon9342 wrote:

It can't be Unix like if it's nothing like Unix.
What do you mean by “if it's nothing like Unix?”
To be Unix-like it uses Unix source code?
sf97ahgf
Scratcher
100+ posts

Spoonix: A Unix-like operating system that runs inside of Scratch.

MagicCrayon9342 wrote:

sf97ahgf wrote:

MagicCrayon9342 wrote:

It can't be Unix like if it's nothing like Unix.
What do you mean by “if it's nothing like Unix?”
To be Unix-like it uses Unix source code?
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.
sf97ahgf
Scratcher
100+ posts

Spoonix: A Unix-like operating system that runs inside of Scratch.

MagicCrayon9342 wrote:

sf97ahgf wrote:

MagicCrayon9342 wrote:

It can't be Unix like if it's nothing like Unix.
What do you mean by “if it's nothing like Unix?”
To be Unix-like it uses Unix source code?
SerenityOS is Unix-Like and it doesn't even have any lines from Unix.
TrustyRoo
New Scratcher
49 posts

Spoonix: A Unix-like operating system that runs inside of Scratch.

MagicCrayon9342 wrote:

sf97ahgf wrote:

MagicCrayon9342 wrote:

It can't be Unix like if it's nothing like Unix.
What do you mean by “if it's nothing like Unix?”
To be Unix-like it uses Unix source code?
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.

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
Scratcher
100+ posts

Spoonix: A Unix-like operating system that runs inside of Scratch.

*bump*
Iamnotarobot124
Scratcher
100+ posts

Spoonix: A Unix-like operating system that runs inside of Scratch.

oxiti8 wrote:

are you creating any underlying hardware this “os” will run on? I'm thinking of starting work on an 8088 emulator myself.
Oh I actaully originally intended to make one!
sf97ahgf
Scratcher
100+ posts

Spoonix: A Unix-like operating system that runs inside of Scratch.

Iamnotarobot124 wrote:

oxiti8 wrote:

are you creating any underlying hardware this “os” will run on? I'm thinking of starting work on an 8088 emulator myself.
Oh I actaully originally intended to make one!
Well, you can help me with the one I'm making.
oxiti8
Scratcher
1000+ posts

Spoonix: A Unix-like operating system that runs inside of Scratch.

sf97ahgf wrote:

Iamnotarobot124 wrote:

oxiti8 wrote:

are you creating any underlying hardware this “os” will run on? I'm thinking of starting work on an 8088 emulator myself.
Oh I actaully originally intended to make one!
Well, you can help me with the one I'm making.
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 time

Last edited by oxiti8 (Oct. 25, 2022 19:09:46)

BreadcatGames
Scratcher
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.

Powered by DjangoBB