Live data from Hacker News

Scratch in the Browser

squeak.js.org

1–10 of 18 posts

Re: Scratch in the Browser

#3

Isn't scratch always in the browser? I'm confused.

No, when Scratch first came out it was a stand-alone Squeak Smalltalk image that you ran locally. There was a Java-based online viewer, but no editor.

Then it moved to a Flash version. If I remember right, this was at least somewhat motivated by vendors dropping Java support in the browser. Of course, at almost the same time the Flash version came out, vendors started dropping support for that.

The current one is written in JavaScript, I believe. Edit: it's still running Squeak, but using a JavaScript Squeak interpreter. See the top-level site for the given link.

Re: Scratch in the Browser

#5

Isn't scratch always in the browser? I'm confused.

No, when Scratch first came out it was a stand-alone Squeak Smalltalk image that you ran locally. There was a Java-based online viewer, but no editor. Then it moved to a Flash version. If I remember right, this was at least somewhat motivated by vendors dropping Java support in the browser. Of course, at almost the same time the Flash version came out, vendors started dropping support for that . The current one is wr…

To be clear, the current version of Scratch (version 3) is written in Javascript and other web technologies.

TFA isn't the current version of Scratch. It's Scratch 1.4—which was written in Smalltalk—running in a browser via Squeak.

If you've used modern Scratch, it's interesting to see what has changed (and what hasn't).

Re: Scratch in the Browser

#6
The exciting thing here is that this runs on Squeak in JavaScript. Squeak is a modern Smalltalk, and now it can obviously be run on top of JavaScript. That's dynamic languages all the way down!

Re: Scratch in the Browser

#7

Earlier quoted context omitted.

No, when Scratch first came out it was a stand-alone Squeak Smalltalk image that you ran locally. There was a Java-based online viewer, but no editor. Then it moved to a Flash version. If I remember right, this was at least somewhat motivated by vendors dropping Java support in the browser. Of course, at almost the same time the Flash version came out, vendors started dropping support for that . The current one is wr…

To be clear, the current version of Scratch (version 3) is written in Javascript and other web technologies. TFA isn't the current version of Scratch. It's Scratch 1.4—which was written in Smalltalk—running in a browser via Squeak. If you've used modern Scratch, it's interesting to see what has changed (and what hasn't).

Ah, thanks. I must've missed a version or two somewhere along the way.

Re: Scratch in the Browser

#8
The nostalgia is overwhelming. This (Scratch 1.4) is where I learned how to write and read computer programs. In a way, this environment is my home.

Unfortunately, keyboard input doesn't seem to work. Try making a

    [Forever if  
      [Say "hello"]]
script and it doesn't seem to react to space key presses. (Chrome browser on Linux)

Re: Scratch in the Browser

#9

Isn't scratch always in the browser? I'm confused.

No, when Scratch first came out it was a stand-alone Squeak Smalltalk image that you ran locally. There was a Java-based online viewer, but no editor. Then it moved to a Flash version. If I remember right, this was at least somewhat motivated by vendors dropping Java support in the browser. Of course, at almost the same time the Flash version came out, vendors started dropping support for that . The current one is wr…

There was a Squeak web browser plugin early on so you could run Etoys or Scratch that way. Unfortunately they found out that schools had a very short list of browser plugins they allowed on their computers. Flash was included, Squeak was not. They failed to change that after years of trying.

This motivated the MIT guys to port Scratch to Flash (very bad timing) and the ex Squeak guys to focus on Javascript (Lively Kernel and other projects).

Re: Scratch in the Browser

#10
Also see Snap!, a fork of scratch3 (the js-only version, not the squeakvm-in-the-browser versrion from TFA). https://snap.berkeley.edu/

Snap! is made by folks previously involved in Berkeley Logo, and has a lot of "missing pieces" that make organizing programs easier: lambdas, cc, and binding functions to definitions (aka build-your-own-blocks).

Post reply on HN