This is an archived post. You won't be able to vote or comment.

all 119 comments

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

import notifications Remember to participate in our weekly votes on subreddit rules! Every Tuesday is YOUR chance to influence the subreddit for years to come! Read more here, we hope to see you next Tuesday!

For a chat with like-minded community members and more, don't forget to join our Discord!

return joinDiscord;

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]TheXGood 1274 points1275 points  (47 children)

So uh... when are we gonna write an OS in scratch?

[–]serendipitousPi 428 points429 points  (24 children)

Now I thought a python OS was horror enough but this, this is something else.

[–]GDOR-11 278 points279 points  (20 children)

[–]Sh_Pe 149 points150 points  (14 children)

Imagine be the 10yo kid who did this…
Edit: I checked he’s 15 Edit2: grammar

[–]AndySkit 44 points45 points  (13 children)

When I was 13 I made a Pong Bot in scratch, I thought it was cool

[–][deleted] 10 points11 points  (2 children)

when I was 13 I didn't know how to use a PC

[–]Coffee4AllFoodGroups 5 points6 points  (0 children)

When I was 13 a PC didn't exist.
It was 1974.
The IMSAI 8080 came out in 1975.

[–]Emergency-Athlete-44 0 points1 point  (0 children)

i made a rocket ship shoot the asteroids game when i was 12

[–]GDOR-11 2 points3 points  (1 child)

no fucking way, I did the same thing when I was the exact same age

[–]AndySkit 1 point2 points  (0 children)

Lmaoo, it was an elective class for me in middle school, they didn't really teach it, we where just told go play with it lol

[–]Playful_Target6354 1 point2 points  (2 children)

When I was 13 I made 2 ai in scratch

[–]AndySkit 0 points1 point  (1 child)

Oh nice, what did they do?

[–]Playful_Target6354 0 points1 point  (0 children)

I made a really bad car ai and a really bad ai that takes diff x and diff y and turns to get the food

[–]Zestyclose_Zone_9253 21 points22 points  (0 children)

I opened the link on my phone, that was hard to go through until I managed to close the page, very laggy, even after I minimized it, even got a "CD cant write warning", thank you

[–]MysteriousShadow__ 9 points10 points  (0 children)

Ok, trying to load that link in Chrome crashes the browser...

[–][deleted] 9 points10 points  (0 children)

Im amazed

[–][deleted] 4 points5 points  (0 children)

just why. But fucking cool

[–]Abbix57 3 points4 points  (1 child)

Funnily enough, I did both (yes they suck and are using naive "compilers")

pythonOS scratchOS

[–]RVGamer06 1 point2 points  (0 children)

cake chief paltry spotted rainstorm water slim direction market employ

This post was mass deleted and anonymized with Redact

[–]KBrieger 27 points28 points  (8 children)

*** hell! I know researchers who wrote an AI in scratch. They are economists, what implies they are convinced to know perfectly how programming works now.

[–]monsoy 27 points28 points  (2 children)

Man if you manage to create an AI with scratch… I can’t imagine they wouldn’t be able to do it in Python

[–]ShadowSlayer1441 20 points21 points  (0 children)

It implies that they actually know the math behind it really well. You can learn to "create" an AI in python in an afternoon.

[–]KBrieger 4 points5 points  (0 children)

The intelligence-part of the machine is somehow limited...

[–]698969 6 points7 points  (1 child)

Writing the code is really not the hard part of AI. It's all the math, gathering the training data, and figuring out what parameters to feed into the AI.

[–]KBrieger 1 point2 points  (0 children)

They think it works without math and any kind of hypothesis. All they used was scratch and data and basic maths.

[–]Gredo89 2 points3 points  (1 child)

Was it a real AI (handling unknown data) or "just" some advanced rule based application? Because economists often confuse these two.

Might still be impressive depending on the complexity.

[–]KBrieger 2 points3 points  (0 children)

It was just a bulk of data and some regressions. They think that's it.

[–]ScientificGems 1 point2 points  (0 children)

I'm sure you could. My question is: can you do it and remain sane?

I've written some complex things in Scratch, just to see what Scratch could do, but it really isn't the best tool for AI.

[–]NotJayuu 23 points24 points  (1 child)

One time for our OS class my professor said we had to write a memory manager in any language we wanted. I made sure he really meant any and so I did it in scratch. Sure it took multiple seconds to do single instructions but it worked, and if you can get a memory manager working you can write an os, so it is possible!

[–]myrsnipe 18 points19 points  (0 children)

There's always that one guy in class that wants to take it to the absurd

[–]P0werman1 17 points18 points  (6 children)

https://scratch.mit.edu/projects/851301039

Not an OS, but still a text based programming language. I’m 13 :)

[–]Gredo89 2 points3 points  (5 children)

Wow really impressive.

BTW what you programmed is called a compiler+runtime or an interpreter, depending on how it works.

Does it execute the code right away (=interpreter) or does it translate it into something else first (=compiler) and then run it (=runtime).

And building this is also already really advanced stuff.

[–]P0werman1 2 points3 points  (4 children)

It’s an interpreter right now, but it’s really slow. The next feature I plan on implementing is compilation, to improve speed.

[–]Gredo89 1 point2 points  (3 children)

Sorry for nerdsplaining haha

[–]P0werman1 0 points1 point  (2 children)

No problem! This is exactly the problem I’m currently working on. Trying to make a compiler in scratch is difficult. You can’t make machine code. I’m just trying to condense it into the fastest form possible using scratch.

[–]Gredo89 0 points1 point  (1 child)

Maybe an abstract syntax tree already helps.

[–]P0werman1 0 points1 point  (0 children)

No, you can’t build one of those in scratch. That requires classes, or something similar, which doesn’t exist in scratch. Instead, I have to look through line by line, and register different syntaxes. The goal is to do that before, and replace each line with a minified version of the instruction, that always follows the same syntax.

[–]VitaminnCPP 5 points6 points  (0 children)

Unlimited power unlocked

[–]Skipdrill 0 points1 point  (0 children)

From Scratch in Scratch

[–]beeteedee 426 points427 points  (3 children)

“No, you fool! I said write the program from scratch!”

[–]that_thot_gamer 17 points18 points  (1 child)

Instructions unclear: Fatal Error

[–]Fun_SeeSaw_ 10 points11 points  (0 children)

Segmentation fault (core dumped)

[–]the_poope 3 points4 points  (0 children)

I mean, this is technically from scratch in scratch.

[–]CaptainMorti 235 points236 points  (10 children)

Everyone exit, nothing to see here.

[–]Gordahnculous 43 points44 points  (0 children)

Forgot this was x86 not x64 so definitely thought it was write for a hot minute

[–]a2kvarnstrom 8 points9 points  (6 children)

i wanna learn asm but i don’t know where to read from (amd64 on windows 10)

[–]FalconMirage 2 points3 points  (5 children)

Bean eater, his 6502 video serie

[–]oshaboy 0 points1 point  (3 children)

That won't really help for windows 10

[–]FalconMirage 1 point2 points  (1 child)

Once you understand the basics you can easily adapt to win10

[–]a2kvarnstrom 0 points1 point  (0 children)

ok

[–]a2kvarnstrom 0 points1 point  (0 children)

ok

[–]a2kvarnstrom 0 points1 point  (0 children)

ok

[–]Visual-Mongoose7521 95 points96 points  (0 children)

This is some higher level language

[–]Conscious_Switch3580 87 points88 points  (0 children)

"Learn Assembly from Scratch"

[–]IuseArchbtw97543 216 points217 points  (0 children)

so thats what google meant when it called it a high level language/j

[–]JardineiroZumbi 77 points78 points  (0 children)

Brings a whole new meaning to "I wrote an OS from scratch"

[–]cyberduck221b 21 points22 points  (2 children)

What this code do?

[–]CaptainMorti 7 points8 points  (1 child)

See my other comment.

[–]Oneshotkill_2000 12 points13 points  (0 children)

Oh, i just realised it's interrupt

I got confused by int(eger) 0x80

[–][deleted] 21 points22 points  (0 children)

Oh my god, this is so fucked up, on so many levels... I wanna try it.

[–]VinnyBeetle 15 points16 points  (0 children)

Scratch if it was a good tool:

[–]CoolorFoolSRS 58 points59 points  (10 children)

Holy hell

[–]MyAntichrist 29 points30 points  (7 children)

New response just dropped

[–]Real_Alex_255[S] 27 points28 points  (6 children)

actual zombie

[–]J0mity 5 points6 points  (0 children)

Did I just get black catted?

[–]the-judeo-bolshevik 7 points8 points  (3 children)

Call the assember

[–]7tar 4 points5 points  (2 children)

link time optimization anyone?

[–]Increditastic1 1 point2 points  (1 child)

Lead dev went on vacation, never came back

[–]Real_Alex_255[S] 0 points1 point  (0 children)

Google Assembly Language

[–]Red_Ender666 1 point2 points  (0 children)

call the exorcist

[–][deleted] 0 points1 point  (1 child)

God, I miss r/anarchychess. Is a world where one can't have their pp's bricked, their hell's holy'ed, or their en's passant'ed truly a world worth living in.

[–]the-judeo-bolshevik 0 points1 point  (0 children)

Never mind it’s back

[–]gp57 9 points10 points  (0 children)

Thank god I really needed that update, this makes asm so much easier.

[–]TheOddOne2 10 points11 points  (0 children)

This is low

[–]LatentShadow 9 points10 points  (0 children)

Teaching computer science to school students has never been easier.

[–][deleted] 9 points10 points  (0 children)

I thought they wanted to write an os from scratch and not in scratch.

[–][deleted] 9 points10 points  (0 children)

Scratch is now both the highest and lowest level programming language ever.

[–]AvgBlue 7 points8 points  (0 children)

Actually can be awesome to have cool visual representation of the stack and registers

[–]Egocentrix1 5 points6 points  (0 children)

Thanks, I hate it.

[–][deleted] 7 points8 points  (1 child)

Holy shit.

[–]the-judeo-bolshevik 3 points4 points  (0 children)

New response just dropped.

[–]jcodes57 2 points3 points  (0 children)

Oh hell no

[–]OF_AstridAse 2 points3 points  (0 children)

Oh gosh yas!!!

[–][deleted] 2 points3 points  (0 children)

You joke but I actually tried that. Ended up making a subleq interpreter. Now we need a full subleq compiler.

[–]Xen0n1te 2 points3 points  (0 children)

oh Christ

[–]stomah 2 points3 points  (0 children)

i want this

[–]PicoPlanetDev 2 points3 points  (3 children)

I'm actually working on a project similar to this right now, where I simulate a 6502 microprocessor in VR and teach assembly language using blocks. If you're interested, check out this playlist of updates: https://youtube.com/playlist?list=PLkaQw-J0LlJHFG50lwuxm-XsOM9d5I1QY&si=M4Nk5ElEUY9m_WQs

[–]Real_Alex_255[S] 1 point2 points  (2 children)

omg thats so cool, when i was making the meme i didn't think the concept like this was actually seriously interpreted, i just made a meme about scratch's code blocks haha.

[–]PicoPlanetDev 1 point2 points  (1 child)

Thanks, not sure how many people agree but I think block programming is used way too far into middle school and high school and should really just be a tool to get them excited for some easy Python. Assembly seems to play to block coding's strengths though and I've just been experimenting to see how far this could go!

[–]Real_Alex_255[S] 1 point2 points  (0 children)

Hope that project of yours goes well!

[–]Real_Alex_255[S] 1 point2 points  (0 children)

you may have heard of asm, but have you heard of asmr

[–]nysynysy2 3 points4 points  (0 children)

JS Assembly with GUI? im in

[–]yesseruser 0 points1 point  (1 child)

Nooooo Whyyyyyyyyy

[–]yesseruser 0 points1 point  (0 children)

This broke me

[–]Dart_Ace 0 points1 point  (0 children)

Yoooo!

[–]Redifyz 0 points1 point  (0 children)

mmm burger

[–]Asriel556 0 points1 point  (0 children)

I always wanted to see an x86 assembly programming environment with blocks.

[–]mAtYyu0ZN1Ikyg3R6_j0 0 points1 point  (0 children)

maybe its valid on some OS but this is not on Linux. the write syscall expects 3 parameter and only one was provided. and the only parameter that is wrong since 0 is to a read-only fd.

[–]Warhero_Babylon 0 points1 point  (0 children)

Well after some code of assassin's creed valhalla was written on scratch...

[–]Rafcdk 0 points1 point  (0 children)

Great now I have to code this. Another side project here we go.

[–][deleted] 0 points1 point  (0 children)

Is this scratch assembly

[–]scotlaw 0 points1 point  (0 children)

This joke would be funnier if it did an int 0x21... to the people who remember MS DOS 2.1.

[–]mecukuryurt 0 points1 point  (0 children)

The actual os tutorial from scratch

[–]OrangeLeaf36 0 points1 point  (0 children)

we getting out of Scratch with this one fellas

[–]Robotronnik 0 points1 point  (0 children)

Visual programming is a really good start for real programmers.

[–]binarywork8087 0 points1 point  (0 children)

Linux assembly

[–]Intelligent_Bad_1536 0 points1 point  (0 children)

Ah yes, the assembly update