Discuss Scratch

IronHead43
Scratcher
42 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

hello so i am a guy with an iron head and i just made scratch on scratch but online so what you are on now check it out My best thing ever
:)
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).


“…the keynote speaker asked the audience to indicate by show of hands, one, how many people disliked C++, and two, how many people had written a C++ program. There were twice as many people in the first group than the second. Expressing dislike of something you don’t know is usually known as prejudice.” - Bjarne Stroustrup
IronHead43
Scratcher
42 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’

hello so i am a guy with an iron head and i just made scratch on scratch but online so what you are on now check it out My best thing ever
:)
bybb
Scratcher
500+ 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.

r=range;l=len;n=int;(lambda c:(lambda b:((lambda a:l(''.join('1'*(n(a[i]))*(10-i)for i in r(0,10)))%11<1)(b)if l(b)%10<1else(lambda a:l(''.join('1'*(n(a[i%l(a)])*(1if(i+1)%2else 3))for i in r(0,13)))%10<1)(b)))(c.replace('-','').replace(' ','')))('0306406152')
IronHead43
Scratcher
42 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

hello so i am a guy with an iron head and i just made scratch on scratch but online so what you are on now check it out My best thing ever
:)

Powered by DjangoBB

Standard | Mobile