Discuss Scratch

IronHead43
Scratcher
53 posts

computer or OS

so i am super into OS and computer science and i dont just make simulators like everyone else on scratch they say ‘i made an OS’ and yeah it has a game but no i make like CPU compiler languages and recreate hard drives but then i saw my dream scratcher @laddie12 and he made this https://scratch.mit.edu/projects/124853640/#player! it is AMAZING please can someone help make something like this? it would be GREAT

IronHead43
hey there! Check out my programming language Blocky! and Online Scratch! (CLOUD)
TheAspiringHacker
Scratcher
100+ posts

computer or OS

It looks like you want to learn two things, how to write a compiler and how to “recreate hard drives.” A compiler generally consists of a lexer, which splits the program into syntactic categories called tokens, a parser, which constructs a parse tree from the tokens, an analyzer, which performs tasks such as symbol table construction and expression typechecking, and an emitter, which outputs the target language. A virtual machine or emulator (a program that acts like a processor and interprets instructions) reads numbers that stand for primitive instructions and their arguments, and maintains the state of RAM and registers.

This is probably too advanced for you (it's too advanced for me) but you might be interested in the primary OCaml or Java language implementations because they consist of both a compiler and a bytecode interpreter (virtual machine).


Long live Kyoto Animation!
IronHead43
Scratcher
53 posts

computer or OS

TheAspiringHacker wrote:

It looks like you want to learn two things, how to write a compiler and how to “recreate hard drives.” A compiler generally consists of a lexer, which splits the program into syntactic categories called tokens, a parser, which constructs a parse tree from the tokens, an analyzer, which performs tasks such as symbol table construction and expression typechecking, and an emitter, which outputs the target language. A virtual machine or emulator (a program that acts like a processor and interprets instructions) reads numbers that stand for primitive instructions and their arguments, and maintains the state of RAM and registers.

This is probably too advanced for you (it's too advanced for me) but you might be interested in the primary OCaml or Java language implementations because they consist of both a compiler and a bytecode interpreter (virtual machine).

nah it should not be too hard i am learning how to make it right now because i know some very clever people and the processor thing is called a ‘CPU’

IronHead43
hey there! Check out my programming language Blocky! and Online Scratch! (CLOUD)
bybb
Scratcher
1000+ posts

computer or OS

IronHead43 wrote:

TheAspiringHacker wrote:

It looks like you want to learn two things, how to write a compiler and how to “recreate hard drives.” A compiler generally consists of a lexer, which splits the program into syntactic categories called tokens, a parser, which constructs a parse tree from the tokens, an analyzer, which performs tasks such as symbol table construction and expression typechecking, and an emitter, which outputs the target language. A virtual machine or emulator (a program that acts like a processor and interprets instructions) reads numbers that stand for primitive instructions and their arguments, and maintains the state of RAM and registers.

This is probably too advanced for you (it's too advanced for me) but you might be interested in the primary OCaml or Java language implementations because they consist of both a compiler and a bytecode interpreter (virtual machine).

nah it should not be too hard i am learning how to make it right now because i know some very clever people and the processor thing is called a ‘CPU’
So you want to create your own CPU? Then you want to create your own virtual storage medium? Then you want to build a compiler for the CPU?
I'd recommend trying to emulate the 6502 at first.

Game Over
You'll find me on @LastContinue from now on.
IronHead43
Scratcher
53 posts

computer or OS

bybb wrote:

IronHead43 wrote:

TheAspiringHacker wrote:

It looks like you want to learn two things, how to write a compiler and how to “recreate hard drives.” A compiler generally consists of a lexer, which splits the program into syntactic categories called tokens, a parser, which constructs a parse tree from the tokens, an analyzer, which performs tasks such as symbol table construction and expression typechecking, and an emitter, which outputs the target language. A virtual machine or emulator (a program that acts like a processor and interprets instructions) reads numbers that stand for primitive instructions and their arguments, and maintains the state of RAM and registers.

This is probably too advanced for you (it's too advanced for me) but you might be interested in the primary OCaml or Java language implementations because they consist of both a compiler and a bytecode interpreter (virtual machine).

nah it should not be too hard i am learning how to make it right now because i know some very clever people and the processor thing is called a ‘CPU’
So you want to create your own CPU? Then you want to create your own virtual storage medium? Then you want to build a compiler for the CPU?
I'd recommend trying to emulate the 6502 at first.
ok yeah ATM i am just working on the compiler using a binary converter

IronHead43
hey there! Check out my programming language Blocky! and Online Scratch! (CLOUD)

Powered by DjangoBB