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

#5976 2012-09-20 10:12:58

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

Re: BYOB 3 - Discussion Thread

Sure, extra motivation!  tongue


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

Offline

 

#5977 2012-09-20 11:49:00

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Jens wrote:

Okay, I can see your project now. Looks like a bug in the REPORT primitive to me, thanks! We must be in the same timezone, I don't have any secret scripts on the website  smile

Could that be the source of my problem with my nondeterminism project?


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#5978 2012-09-20 12:08:17

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

Re: BYOB 3 - Discussion Thread

yup, joefarebrother, I believe so (and I'm working on it, hang on!)


Jens Mönig

Offline

 

#5979 2012-09-21 08:50:45

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Snap! Lags a lot for me, and I can't seem to figure out why.

I'm using Chrome on a Mac Mini running OS Lion.


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#5980 2012-09-24 06:49:13

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

Re: BYOB 3 - Discussion Thread

Fixed it, thanks again for the bug report!


Jens Mönig

Offline

 

#5981 2012-09-24 07:02:52

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

Re: BYOB 3 - Discussion Thread

Jens wrote:

Hardmath123 wrote:

...

Fixed it, thanks again for the bug report!

You're welcome. Out of curiosity, what was the glitch?


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

Offline

 

#5982 2012-09-24 08:35:45

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

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

You're welcome. Out of curiosity, what was the glitch?

the REPORT primitive popped off one context (stackframe) too few under certain conditions (i.e. when placed inside a custom command block's C-slot with more command blocks attached to the C-slotted one).


Jens Mönig

Offline

 

#5983 2012-09-24 13:13:41

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Wha-? My nondeterminism project STILL causes an error????? After the REPORT fix?????


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#5984 2012-09-24 13:20:13

legoboy09
Scratcher
Registered: 2012-03-28
Posts: 43

Re: BYOB 3 - Discussion Thread

i think byob is awesome i made a super block where you make a charicter point in a specific direction then move a chosen amount of steps then turn a chosen a chosen amount of degrees then run a chosen amount of steps (like the move steps thing but with a doubled distence) and then say something

super block say [that was fun] point in direction (0) move (10) steps run (10) steps turn (15) degrees

Offline

 

#5985 2012-09-27 07:17:57

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

Re: BYOB 3 - Discussion Thread

I really want to explore the possibility of starting an AP Computer Science course at my school. Is the Snap! CS material ready?

Offline

 

#5986 2012-09-27 12:09:29

boukeas
New Scratcher
Registered: 2012-09-27
Posts: 5

Re: BYOB 3 - Discussion Thread

Hello everyone. This post has to do with running BYOB on the latest versions of Debian/Ubuntu.

While trying to package Scratch for the debian repositories, the maintainers discovered that it was incompatible with the latest versions of the Squeak virtual machine. In particular, attempting to run the Scratch.image simply resulted in a blank screen. The problem was pinpointed to Scratch's use of (deprecated) numbered primitives, instead of named primitives. This issue has now been resolved with Scratch and it has been made available in the debian and ubuntu repositories.

Detailed descriptions along with the applied solution can be found in http://goo.gl/G1vnf and  http://goo.gl/mNr13.

Unfortunately, the same issue arises in BYOB. The .deb package available through the BYOB website comes bundled with a much older version of the sqeak-vm which is able to successfully run the BYOB.image. However, attempting to separately package byob, in order to run with a current version of the sqeak-vm (as in http://goo.gl/rsDza) now fails with the same blank screen...

In my opinion, this issue is not trivial: the "channels" through which such software is made available is significant. In my country, for example, software for the computer labs in schools is made available through an official launchpad repository. It would make a big difference if BYOB was available through that repository, compatible with the current squeak-vm.

I know Snap! is the current focus for development but is there any chance that this issue can be resolved? Basically, as far as I can tell, it would simply mean publishing an updated version of the BYOB.image, with all the the numbered primitives replaced with named ones.

Offline

 

#5987 2012-09-27 12:24:55

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

Re: BYOB 3 - Discussion Thread

boukeas wrote:

Hello everyone. This post has to do with running BYOB on the latest versions of Debian/Ubuntu.

While trying to package Scratch for the debian repositories, the maintainers discovered that it was incompatible with the latest versions of the Squeak virtual machine. In particular, attempting to run the Scratch.image simply resulted in a blank screen. The problem was pinpointed to Scratch's use of (deprecated) numbered primitives, instead of named primitives. This issue has now been resolved with Scratch and it has been made available in the debian and ubuntu repositories.

Detailed descriptions along with the applied solution can be found in http://goo.gl/G1vnf and  http://goo.gl/mNr13.

Unfortunately, the same issue arises in BYOB. The .deb package available through the BYOB website comes bundled with a much older version of the sqeak-vm which is able to successfully run the BYOB.image. However, attempting to separately package byob, in order to run with a current version of the sqeak-vm (as in http://goo.gl/rsDza) now fails with the same blank screen...

In my opinion, this issue is not trivial: the "channels" through which such software is made available is significant. In my country, for example, software for the computer labs in schools is made available through an official launchpad repository. It would make a big difference if BYOB was available through that repository, compatible with the current squeak-vm.

I know Snap! is the current focus for development but is there any chance that this issue can be resolved? Basically, as far as I can tell, it would simply mean publishing an updated version of the BYOB.image, with all the the numbered primitives replaced with named ones.

well, i'm the one who packed the .deb
i would like to upload this on launchpad or something, but i'm absolutely new to squeak, so if jens or someone from the scratch team could just make the new .image, or tell me how scratch team did it, it would be great

Offline

 

#5988 2012-09-27 13:39:38

boukeas
New Scratcher
Registered: 2012-09-27
Posts: 5

Re: BYOB 3 - Discussion Thread

roijac wrote:

well, i'm the one who packed the .deb
i would like to upload this on launchpad or something, but i'm absolutely new to squeak, so if jens or someone from the scratch team could just make the new .image, or tell me how scratch team did it, it would be great

The .deb shouldn't really include the squeak-vm, it should depend on it. But at this point, the problem isn't really in the .deb, it's in the BYOB.image. One could start from the byob packages in http://goo.gl/rsDza (which are of debian-quality) and work from there but the first thing to be done is publish a new BYOB.image where the numbered primitives will be replaced with named ones.

The solution is outlined in some detail in http://goo.gl/G1vnf and http://goo.gl/mNr13. Perhaps we could find out who patched Scratch and ask for instructions but it would be best if the updated image is created/posted by the BYOB developers, not downstream.

Offline

 

#5989 2012-09-27 17:55:33

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

Re: BYOB 3 - Discussion Thread

Thanks for pointing this out. Personally I don't know anything about Debian and don't really understand the issue here: Can't you have several different VM's, one for Squeak and another one for BYOB? This can't possibly be a technical problem, right? Is it some kind of licensing thing?

AFAIK it was Bert Freudenberg who edited the Scratch image to make it work with a newer Squeak VM (one which deprecates numbered primitives) for the Scratch .deb package, but he was hired by the MediaLab to do it. Personally I'm very reluctant to put a lot of effort into changing fundamentals in the BYOB code just for ideological reasons, without adding any technical benefit. Plus, you know, I already did put an enormous effort into rewriting BYOB from the ground up as Snap! which I hope also runs under Debian (?)


Jens Mönig

Offline

 

#5990 2012-09-27 18:51:28

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

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

I really want to explore the possibility of starting an AP Computer Science course at my school. Is the Snap! CS material ready?

Yes, but the College Board isn't.  There won't be an official AP CS: Principles until 2016 or 2017.  If you have an interested teacher, s/he could come to one of our workshops next summer (locations TBA, but we have strong interest from sites in CA, CT, upstate NY... and more, but that's all I remember without going through my email).  Nobody in TX so far, sorry, but if we do a southern CA one maybe your teacher could commute.  smile

(The trouble we have right now, which I guess is a good kind of trouble to have, is that we have more sites lined up than funding, so if you happen to know anyone who'd like to donate a few million, that'd be good too.)

We have some high schools teaching the course this year, even though it's not an AP yet.  (And, when they get around to making the exam, it'll cover much less than what's in our version of the course.  I'm nervous that the exam will all be stuff like how many bits in a byte.)

The existing AP CS course is (imho) really boring, mostly getting through the Byzantine Java syntax.


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

Offline

 

#5991 2012-09-27 23:39:18

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

I'm nervous that the exam will all be stuff like how many bits in a byte.)

Happened to me. I did some weird computer test our school administered with questions like "which of the following is found under the view menu?". Believe it or not, I ended up coming in second place among a few thousand people, and won a cool $1,000.  big_smile


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

Offline

 

#5992 2012-09-28 09:30:24

dreamod
New Scratcher
Registered: 2012-01-22
Posts: 100+

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

bharvey wrote:

I'm nervous that the exam will all be stuff like how many bits in a byte.)

Happened to me. I did some weird computer test our school administered with questions like "which of the following is found under the view menu?". Believe it or not, I ended up coming in second place among a few thousand people, and won a cool $1,000.  big_smile

A mac test?! I wish my school would do that!

Offline

 

#5993 2012-09-28 11:57:17

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

bharvey wrote:

I'm nervous that the exam will all be stuff like how many bits in a byte.)

Happened to me. I did some weird computer test our school administered with questions like "which of the following is found under the view menu?". Believe it or not, I ended up coming in second place among a few thousand people, and won a cool $1,000.  big_smile

...under the view menu? That's a computer test? I little vague I'd think.


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#5994 2012-09-28 11:58:53

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

Re: BYOB 3 - Discussion Thread

dreamod wrote:

Hardmath123 wrote:

bharvey wrote:

I'm nervous that the exam will all be stuff like how many bits in a byte.)

Happened to me. I did some weird computer test our school administered with questions like "which of the following is found under the view menu?". Believe it or not, I ended up coming in second place among a few thousand people, and won a cool $1,000.  big_smile

A mac test?! I wish my school would do that!

No, Windows.  hmm


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

Offline

 

#5995 2012-09-28 12:12:46

dreamod
New Scratcher
Registered: 2012-01-22
Posts: 100+

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

dreamod wrote:

Hardmath123 wrote:

Happened to me. I did some weird computer test our school administered with questions like "which of the following is found under the view menu?". Believe it or not, I ended up coming in second place among a few thousand people, and won a cool $1,000.  big_smile

A mac test?! I wish my school would do that!

No, Windows.  hmm

sad

Offline

 

#5996 2012-09-28 13:32:18

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

bharvey wrote:

I'm nervous that the exam will all be stuff like how many bits in a byte.)

Happened to me. I did some weird computer test our school administered with questions like "which of the following is found under the view menu?". Believe it or not, I ended up coming in second place among a few thousand people, and won a cool $1,000.  big_smile

£1000 for saying what's under the view menu???


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#5997 2012-09-28 14:47:11

srtate
New Scratcher
Registered: 2012-09-28
Posts: 3

Re: BYOB 3 - Discussion Thread

OK, I'm using BYOB for a CS Principles class, and in a lab exploring algorithm complexity I experienced some strange behavior that I can't explain - I suspect it would take someone who knows about internals of BYOB/scratch implementation to understand this, but here's the description:

I had students build a block to find the maximum in a list. Then they were supposed to test it using the timer and see how long it took on lists of different sizes (500, 1000, and 2000) - should see a nice linear time behavior, right?

This was part 1 of a lab exercise, where part two was to look at selection sort as an example of a quadratic time algorithm. It turns out that in my tests, the behavior of the very-obviously-quadratic-time selection sort was not behaving like a quadratic time algorithm unless I made sure all blocks were marked as "non-atomic" - ok, that slows things down a lot, but algorithms are giving reasonable behavior that way, so I just told all students to make all blocks non-atomic.  Good enough for learning about algorithms, right?

Back to the "max" block: what I had in mind was a basic reporter block, and then snap that into a "set" with a dummy variable, slap timer reset/read around that, and voila a timed algorithm.  Ran this on a list of 1000 random values and it took about 25 seconds.  OK, slow as molasses, but when compared with times on other list sizes it shows linear time behavior.

So now it's lab time, and a few students misunderstood how to time this, and put the reset/read timer blocks inside the max block, and then just drug out and clicked directly on the reporter block in the scripts pane.  Run time was about half a second. So now I test this out, and here's the behavior: click directly on the reporter block, and it takes half a second. Move the exact same reporter block into a "set" block with a dummy variable - and nothing else - and it takes 25 seconds.

So the context that the block is used in (directly from the script pane or in a set block) drastically affects the performance!  In fact, the fast performance is consistent with the time when the block is set as atomic, so does clicking on it directly somehow force atomic execution?

Hopefully what I just described is clear, and someone will be able to explain this strange behavior.  I can provide specific examples if you'd like...

Offline

 

#5998 2012-09-28 15:45:46

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

Re: BYOB 3 - Discussion Thread

joefarebrother wrote:

Hardmath123 wrote:

bharvey wrote:

I'm nervous that the exam will all be stuff like how many bits in a byte.)

Happened to me. I did some weird computer test our school administered with questions like "which of the following is found under the view menu?". Believe it or not, I ended up coming in second place among a few thousand people, and won a cool $1,000.  big_smile

£1000 for saying what's under the view menu???

I imagine there were other questions as well...  tongue


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

Offline

 

#5999 2012-09-29 12:36:30

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

Re: BYOB 3 - Discussion Thread

srtate wrote:

Move the exact same reporter block into a "set" block with a dummy variable - and nothing else - and it takes 25 seconds.

Was there a stage watcher for that variable?  Updating the display takes more time than computing the value.


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

Offline

 

#6000 2012-09-29 20:00:17

boukeas
New Scratcher
Registered: 2012-09-27
Posts: 5

Re: BYOB 3 - Discussion Thread

Jens wrote:

Personally I'm very reluctant to put a lot of effort into changing fundamentals in the BYOB code just for ideological reasons, without adding any technical benefit. Plus, you know, I already did put an enormous effort into rewriting BYOB from the ground up as Snap! which I hope also runs under Debian (?)

Thanks for the reply, I understand. Snap! should run under anything, it's web-based.

Now, another problem of a different flavour: I run BYOB in Greek. When I create a new block, its name looks perfectly normal (see http://db.tt/0k3TItq3). However, when I try to add a parameter to the block characters do not display normally anymore, even those that used to (http://db.tt/GURGwt6G). Any thoughts?

Offline

 

Board footer