by Retr0id · 4y ago · 0 comments
"Real" Scratch is much harder to compile to a native language, firstly because Scratch has a very weird concurrency model (unofficially documented here [1]), and secondly because it has weird dynamic type conversion rules, much like JavaScript. E.g. the scratch expression (("0x1" join "4") + (2)) would evaluate to 22.
I'm just being pedantic though, this is still a cool project.
[1] "Scratch and its inner workings" https://docs.google.com/document/d/16SFYkk9dWpMhYaZNnLTE_kTm...
Are you trying to supply material for future Linux Sucks lectures? :)
Edit: I see that Lunduke agrees it is awesome.
(Outside of DSLs, Scratch impresses me as the one visual language to invest confidence in.)
This might be a good gateway drug.
I was actually showing Scratch to an adult non-programmer friend last weekend. She was very impressed, saying that if she ever wanted to learn coding, she thought Scratch would be a great tool for her.
Programming in Scratch is programming. The only real difference is that instead of typing instructions, Scratch users drag them out from a list of options. I think we would all agree that memorizing syntax isn't a major part of programming, but it's a major source of cognitive load for beginners. Scratch removes that barrier.
My company sometimes describes Scratch as "learning to talk before learning to spell." I think that's a great analogy.
Can confirm- excellent gateway drug