This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2013-03-16 15:05:52

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Snap! (Build Your Own Blocks) 4.0

http://snap.berkeley.edu/Logo5.png

Snap! 4.0 is the new reimplementation of BYOB (Build Your Own Blocks), a Scratch-inspired language extended with first class procedures, first class lists, and first class continuations.

It is implemented in Javascript using HTML5 Canvas graphics, and runs in your browser, with no download needed.

Snap! was written by Jens Mönig, with design input and documentation by Brian Harvey, with contributions by several Scratchers and others.  (See the "About" box in the Snap! software for a list of contributors.)

Current release status: In public beta.

This is the thread for discussion among users as well as developers of Snap!

Links:

Run Snap! now

Run Snap! with tool library loaded

Snap! web site

Reference manual

Snap! source code on Github

The Beauty and Joy of Computing, the UC Berkeley computer science course for non-majors that inspired the Snap! project

http://snap.berkeley.edu/snapscript.png


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#2 2013-03-16 15:18:54

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: Snap! (Build Your Own Blocks) 4.0

Old BYOB 3.1.1 download links (stable version):

Windows
Mac
Linux (.deb)

Offline

 

#3 2013-03-16 16:13:44

shadowmouse
New Scratcher
Registered: 2013-02-03
Posts: 100+

Re: Snap! (Build Your Own Blocks) 4.0

Will there be a downloadable version, my browser crashes when it tries to play it?

Offline

 

#4 2013-03-16 16:27:30

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: Snap! (Build Your Own Blocks) 4.0

shadowmouse wrote:

Will there be a downloadable version, my browser crashes when it tries to play it?

Browser, OS, and age of your computer?
What exactly happens - does it freeze, does it suddenly exit, does it exits with an error message?
Could you open it with a developer console and see if you get error messages?

Offline

 

#5 2013-03-16 16:35:42

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: Snap! (Build Your Own Blocks) 4.0

shadowmouse wrote:

Will there be a downloadable version

Yes, there will -- a bunch of people have requested this.  Not immediately, but before the summer.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#6 2013-03-16 18:25:59

technoboy10
Scratcher
Registered: 2007-08-25
Posts: 1000+

Re: Snap! (Build Your Own Blocks) 4.0

When do you think the full release of Snap! will be?


So long, 1.4.
http://goo.gl/3JEV9

Offline

 

#7 2013-03-16 19:26:19

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: Snap! (Build Your Own Blocks) 4.0

technoboy10 wrote:

When do you think the full release of Snap! will be?

The target deadline is the second week of June, when BJC teacher preparation workshops start.  The absolutely-for-sure deadline is the last week of August, when Berkeley classes start.  We pretty much have to declare victory at that point even if some highly desirable features have to wait for 4.1 (or 4.0.1 or something).

The theory about beta testing is that the emphasis is on bugs, rather than missing features, but our known bug list is actually pretty short right now.  I hope a lot of people do a lot of banging on the software in the next month or two!


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#8 2013-03-16 22:28:52

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Snap! (Build Your Own Blocks) 4.0

Nice, finally, a real Snap! thread!  smile


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#9 2013-03-16 22:34:01

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Snap! (Build Your Own Blocks) 4.0

bharvey wrote:

shadowmouse wrote:

Will there be a downloadable version

Yes, there will -- a bunch of people have requested this.  Not immediately, but before the summer.

Well, there's Sn…


nXIII

Offline

 

#10 2013-03-17 05:13:10

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Snap! (Build Your Own Blocks) 4.0

Jens, you should add a full-screen option (https://developer.mozilla.org/en-US/doc … creen_mode) for those who don't have Macs (which have full-screen app support).

Last edited by Hardmath123 (2013-03-17 05:13:28)


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#11 2013-03-17 05:48:23

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Snap! (Build Your Own Blocks) 4.0

Love the software! I think it's great how you ported it to HTML5 and I can't wait to try out the source code.

The new BYOB has great features (especially cloud saving) and a surprisingly decent touch support! (Except for the tiny menus).

Good luck with the bug hunting.

Offline

 

#12 2013-03-17 08:28:08

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: Snap! (Build Your Own Blocks) 4.0

LS97 wrote:

surprisingly decent touch support! (Except for the tiny menus).

Huh, I'm sure there used to be a touch mode that made the menus larger...


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#13 2013-03-17 09:04:51

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Snap! (Build Your Own Blocks) 4.0

Is there a handy place where we can report bugs?

For now,
- watchers do not increase proportionally to the rest of the stage in fullscreen mode (it might have been a deliberate decision, but I still prefer to not have to strain my eyes to read the value)
- changing width of blocks while they are running will not redraw their green/blue "halo"
- dragging costumes onto the costumes pane to import is handy, but it's nice to have a dialogue as well
- a "save" shortcut would be nice

Offline

 

#14 2013-03-17 09:47:29

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: Snap! (Build Your Own Blocks) 4.0

There used to be BYOB Bugs, a BugZilla site, but it appears to have been taken down.

Offline

 

#15 2013-03-17 11:54:15

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: Snap! (Build Your Own Blocks) 4.0

shadow_7283 wrote:

There used to be BYOB Bugs, a BugZilla site, but it appears to have been taken down.

I'm working on it.  Preferably we get it hosted on campus, but I'm not allowed to just put up a server without authorization from the net admins.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#16 2013-03-17 11:55:59

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: Snap! (Build Your Own Blocks) 4.0

LS97 wrote:

- dragging costumes onto the costumes pane to import is handy, but it's nice to have a dialogue as well

Thanks for the bug reports!  This one confuses me; doesn't File>import work for you?


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#17 2013-03-17 12:17:09

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: Snap! (Build Your Own Blocks) 4.0

nXIII wrote:

Well, there's Sn…

Ah, yes, so there is.  (I'd forgotten the name, although not the project.)  The trouble is, it's Mac-only.  If you want to work on a cross-platform solution, that'd be great, but since we need a cross-platform solution, Sn will end up being useful to us only if what we end up with is three separate solutions on three platforms.  (If you want to work on separate Win and Lin solutions, each of which is and looks like a native app, that would be great too.)

What I've been doing is running XAMPP, a cross-platform web server, on my laptop, behind a firewall so only localhost can connect to it.  This isn't a perfect solution because it doesn't automatically check for new Snap! source files while on the net.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#18 2013-03-17 16:30:59

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Snap! (Build Your Own Blocks) 4.0

bharvey wrote:

LS97 wrote:

- dragging costumes onto the costumes pane to import is handy, but it's nice to have a dialogue as well

Thanks for the bug reports!  This one confuses me; doesn't File>import work for you?

Oh, it does! It just didn't look very obvious since usually stuff in the file menu applies to the entire project (hence the "file" in file menu)  tongue

Very clever and space saving, just maybe not yet the logical standard.

Offline

 

#19 2013-03-18 15:28:56

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Snap! (Build Your Own Blocks) 4.0

Finally! I'm going to check it out soon.

Offline

 

#20 2013-03-19 08:05:45

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: Snap! (Build Your Own Blocks) 4.0

Svetlana Ptashnaya has translated Berkeley Snap! to Russian: http://snap.berkeley.edu/snapsource/snap.html#lang:ru
Yay!! Now Snap! is available in a dozen languages


Jens Mönig

Offline

 

#21 2013-03-19 14:12:48

danwoodski
Scratcher
Registered: 2009-12-23
Posts: 100+

Re: Snap! (Build Your Own Blocks) 4.0

When I ran it in Firefox 19 and loaded the tool set from within the program, all the text disappeared(including other websites, FF menus, etc...)

Currently running Win8, computer is ~5 yrs old, and I have had trouble with the graphics card in the past...could that be the problem? 
Works fine in Chrome.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://dl.dropbox.com/u/12506914/Pics/p2e-2.png&link2=http://dl.dropbox.com/u/12506914/Pics/ms.png&link3=http://dl.dropbox.com/u/12506914/Pics/block%20lib.png
Starting to move on to other languages, but I'll still be around from time to time  smile

Offline

 

#22 2013-03-20 07:27:18

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: Snap! (Build Your Own Blocks) 4.0

I've seen that happen in Firefox on Windows, too, especially when system resources were low, also on other (non Snap) pages.


Jens Mönig

Offline

 

#23 2013-03-20 10:28:10

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Snap! (Build Your Own Blocks) 4.0

When going into full screen mode, it flashed black and gray and white several times, and there was a gray diagonal line a few times when it was black. Finally it cleared up.
I opened up the console and found the following error 200 times (not necessarily related to fullscreen):
[16:13:47.239] IndexSizeError: Index or size is negative or greater than the allowed amount @ http://snap.berkeley.edu/snapsource/objects.js:3200
The project source can be found here.

Offline

 

#24 2013-03-20 12:11:10

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: Snap! (Build Your Own Blocks) 4.0

Thanks, scimonster. I can't reproduce this bug, you projects works fine for me in all my browser, both in normal stage mode, and in full-browser mode.


Jens Mönig

Offline

 

#25 2013-03-20 12:44:01

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Snap! (Build Your Own Blocks) 4.0

I'm using Firefox 19 on Fedora 18, if that helps.

Offline

 

Board footer