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

#201 2010-04-28 16:10:17

tobydanger
Scratcher
Registered: 2010-03-18
Posts: 22

Re: BYOB 3 - Discussion Thread

Has any investigation been done as to what it would take to create a Java Applet that would execute BYOB applications ?

Offline

 

#202 2010-04-28 16:24:57

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: BYOB 3 - Discussion Thread

tobydanger wrote:

Has any investigation been done as to what it would take to create a Java Applet that would execute BYOB applications ?

Panther is expanding the scratch java applet to execute the new blocks.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#203 2010-04-28 16:33:54

tobydanger
Scratcher
Registered: 2010-03-18
Posts: 22

Re: BYOB 3 - Discussion Thread

Panther is expanding the scratch java applet to execute the new blocks

That is totally awesome !

Offline

 

#204 2010-04-28 16:34:16

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

Re: BYOB 3 - Discussion Thread

markyparky56 wrote:

Panther is expanding the scratch java applet to execute the new blocks.

Oh, excellent!  This is just the sort of spreading of ideas that we're hoping for.

Don't forget to make sure it works if a block reports a script that makes reference to a block local variable, as in the OOP examples at the end of the movie.  I think that's probably the least obvious technical gotcha in the design.

(Edit: Well, in the underlying evaluation model, anyway.  There are plenty of technical gotchas in the UI, especially things like wrapping long lines!)

Last edited by bharvey (2010-04-28 16:36:20)


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

Offline

 

#205 2010-04-28 17:24:08

xly
Scratcher
Registered: 2010-04-17
Posts: 100+

Re: BYOB 3 - Discussion Thread

to bharvey

    xly wrote:

    I've found an interesting workaround ! I create a "mirror" Motion Reporter function (move# 80 ) copying the same Motion Command (move 80),and then this "mirror" function can be used into a list of motion commands (For each Item of ...list (move# 80)(turn# 90)(move# 80)(turn# 90)(move# 80)(turn# 90)(move# 80)(turn# 90)...run with Inputs))

bharvey wrote

I don't understand.  FOR EACH takes commands to begin with, not reporters.  So I'm not seeing why you need to make reporters out of the motion commands.

Sorry if I'm being dense....
-----------------------------------------------------------------------------------------------------
xly replies... As far as I know :

FOR EACH ITEM OF LIST
RUN
does not work with Motion commands as item of the list, like (move 10)
but it works with the same command modified as to be a Motion reporter.

Beside of this, I can create my  List of Motion reporters s into the Script editor, "manually", but the procedure ADD thing TO List does not work.

Offline

 

#206 2010-04-28 18:15:08

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

Re: BYOB 3 - Discussion Thread

xly wrote:

As far as I know :

FOR EACH ITEM OF LIST
RUN
does not work with Motion commands as item of the list, like (move 10)
but it works with the same command modified as to be a Motion reporter.

Beside of this, I can create my  List of Motion reporters s into the Script editor, "manually", but the procedure ADD thing TO List does not work.

Hi xly,

it's wonderful that a Logo person like you finds BYOB attractive!

I just tried the FOR EACH ITEM OF LIST block of Brian's tools library with the RUN command over a list of command blocks, and it does work for me. The trick is not to put "the blocks" themselves into a list, but to "quote" them by putting them into a THE SCRIPT block first. THE SCRIPT is a reporter that returns a command block when evaluated. This way you can assign a command block or a stack of command blocks to a variable or put them into a list (or even make a sprite SAY or THINK them!).

(If only I could post a screenshot... can anybody help me out here?)


Jens Mönig

Offline

 

#207 2010-04-28 18:24:59

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

Re: BYOB 3 - Discussion Thread

Jens wrote:

[(If only I could post a screenshot... can anybody help me out here?)

Great minds think alike.  smile   I was making the screenshot as you were posting!

http://cs.berkeley.edu/~bh/runlist.bmp

Edit: It's pretty hard to read inline, at least on my screen, so here's a link you can download: http://cs.berkeley.edu/~bh/runlist.bmp

PS But, Jens, there /is/ a bug: the check box of the list gets unchecked when I run the script.

Last edited by bharvey (2010-04-28 18:28:02)


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

Offline

 

#208 2010-04-28 18:29:51

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

Re: BYOB 3 - Discussion Thread

I need a global variable for the blocks I am building. Is this possible (without having the block avaliable to sprites)?

Offline

 

#209 2010-04-28 19:11:06

scriptmaven
Scratcher
Registered: 2009-11-20
Posts: 10

Re: BYOB 3 - Discussion Thread

bharvey wrote:

fanofcena wrote:

with all the cool new features BYOB Will soon become a pros language for experimentisation

Thanks to everyone for your interest in BYOB 3.

We are really hoping to /avoid/ the "pro language" situation, because we think it'll hurt the Scratch community if we split it into the experienced people using BYOB and the newcomers in the Scratch kiddie pool.  The entire community benefits from the way experienced Scratchers mentor newcomers.

This is why I've been working hard at convincing Mitchel and the Scratch Team that these features belong in main line Scratch!  We view BYOB 3 as a "proof of concept" that kids won't be frightened away even if they don't immediately "get" first class procedures.  (And I think a kid who isn't ready to write MAP can still learn to use it if a teacher provides it.)

There are just a few things left on the we-can't-let-it-out-the-door-in-this-state list.  Jens (who's doing all the hard work) is hoping for a release version within a week, but *that isn't a promise*! :-)

The final summer release will be even better.  Once you have the idea of first class data, there are lots more candidates: costumes, sounds, sprites, threads...  Some of those are technically very hard, but those are the kinds of things we're thinking about.

Darn. You may have noticed my scratch pro contest.

_________________________________________________________
this is a fake signature. i'm not kidding.

Offline

 

#210 2010-04-28 19:12:30

scriptmaven
Scratcher
Registered: 2009-11-20
Posts: 10

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Jens wrote:

[(If only I could post a screenshot... can anybody help me out here?)

Great minds think alike.  smile   I was making the screenshot as you were posting!

http://cs.berkeley.edu/~bh/runlist.bmp

Edit: It's pretty hard to read inline, at least on my screen, so here's a link you can download: http://cs.berkeley.edu/~bh/runlist.bmp

PS But, Jens, there /is/ a bug: the check box of the list gets unchecked when I run the script.

COOL!!!

Offline

 

#211 2010-04-28 19:24:05

xly
Scratcher
Registered: 2010-04-17
Posts: 100+

Re: BYOB 3 - Discussion Thread

Hi xly,

it's wonderful that a Logo person like you finds BYOB attractive!

-------------------------------------------------------------------------------------------

Are you Ironic ??
Anyway you are efficient
You have fixed the problem...
But I had just discovered this evening this strange C-Shape "The script".

I've slightly modified your script as to make a Motion procedure (Logo influence again) with an Input variable for the size of the square.

What can be done with all this stuff. We shall see.

Thanks

Offline

 

#212 2010-04-28 20:15:54

Kingdaro
Scratcher
Registered: 2008-06-08
Posts: 100+

Re: BYOB 3 - Discussion Thread

Is there any way you can run an entire list of scripts all at once?

Or better yet, add 4 to all the values in a list all at once? The atomic feature is slow.

Also, sometimes the custom blocks don't work in presentation mode.

Last edited by Kingdaro (2010-04-28 20:17:25)

Offline

 

#213 2010-04-28 20:27:46

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

Re: BYOB 3 - Discussion Thread

xly wrote:

Are you Ironic ??

Umm, not at all, Xavier. I remember you said that you liked Logo. You know, Brian here is a Logo guy, and he's alright  smile  (there, now I'm being ironic, because he's fantastic).


Jens Mönig

Offline

 

#214 2010-04-28 22:01:02

ElectricSparx
Scratcher
Registered: 2008-02-16
Posts: 100+

Re: BYOB 3 - Discussion Thread

I downloaded BYOB 2.99 yesterday, and was playing around with it. It is REALLY cool. I feel this would really help people like me who want to define their own procedures. By the way, what's the point of a "stop block" block? It must be an emergency function to stop a misbehaving block, I assume...


Lead Developer for Scratch Adventure

Offline

 

#215 2010-04-28 22:26:19

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

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

I need a global variable for the blocks I am building. Is this possible (without having the block avaliable to sprites)?

I see, you want a variable that's hidden, but shared among several blocks.  *Yes* (I'm happy to say it because I've had to say "no" or "maybe" too much lately) BYOB 2.99 can do that!

http://cs.berkeley.edu/~bh/secret.gif

To use these procedures you say RUN[spritevar1]
etc.  Nobody else can see secretvar except via the two procedures.

Is this what you wanted?

Last edited by bharvey (2010-04-28 22:27:53)


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

Offline

 

#216 2010-04-28 22:30:53

ElectricSparx
Scratcher
Registered: 2008-02-16
Posts: 100+

Re: BYOB 3 - Discussion Thread

Here's Gobo's new look! (remade and drawn by me) http://scratch.mit.edu/projects/ElectricSparx/1015279


Lead Developer for Scratch Adventure

Offline

 

#217 2010-04-28 23:18:42

ElectricSparx
Scratcher
Registered: 2008-02-16
Posts: 100+

Re: BYOB 3 - Discussion Thread

Umm, Brian, your custom made blocks don't work if you use them in the block editor.

Last edited by ElectricSparx (2010-04-28 23:42:05)


Lead Developer for Scratch Adventure

Offline

 

#218 2010-04-28 23:36:00

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

Re: BYOB 3 - Discussion Thread

scriptmaven wrote:

Darn. You may have noticed my scratch pro contest.

I hadn't, but I looked you up and found it.

I think getting under the hood of Scratch and inventing extensions to it is a fine activity, but, as I said, I'd really rather avoid splitting the Scratch community because it'd become harder for beginners to become experts.

I was interested to see that in a reply to a comment on your project you said you're not a programmer other than Scratch, because a goal of BYOB is to have a real "no ceiling" Scratch in which you could learn serious computer science.  But I don't think that means things like multimedia; to me it means things like understanding what object-oriented programming is really about, understanding functional programming, understanding algorithms and data structures, etc.  We think we can accomplish all that without losing younger kids just getting started.  Time will tell!


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

Offline

 

#219 2010-04-28 23:39:51

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

Re: BYOB 3 - Discussion Thread

ElectricSparx wrote:

Here's Gobo's new look! (remade and drawn by me)

Actually, our Gobo conveys a message that yours doesn't, a message that's very relevant to the core of the BYOB3 enterprise.  I'm still waiting for someone outside of Berkeley to catch on.  smile


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

Offline

 

#220 2010-04-28 23:41:50

ElectricSparx
Scratcher
Registered: 2008-02-16
Posts: 100+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

ElectricSparx wrote:

Here's Gobo's new look! (remade and drawn by me)

Actually, our Gobo conveys a message that yours doesn't, a message that's very relevant to the core of the BYOB3 enterprise.  I'm still waiting for someone outside of Berkeley to catch on.  smile

Oh. Well, I think Gobo deserved a new look.  hmm

Last edited by ElectricSparx (2010-04-28 23:42:21)


Lead Developer for Scratch Adventure

Offline

 

#221 2010-04-28 23:44:03

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

Re: BYOB 3 - Discussion Thread

ElectricSparx wrote:

Umm, Brain,

smile  People have been misspelling my name that way since I joined the Cub Scouts 52 years ago and that's what they put on my membership card.  It was a refreshing change when I first went to Australia and met someone who /pronounced/ my name "Brawn"!  smile

ElectricSparx wrote:

your custom made blocks don't work if you use them in the block editor.

Uh, they do for me, so you'll have to be more specific.  What did you try, exactly, and what happened?  Thanks!


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

Offline

 

#222 2010-04-28 23:52:21

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

Re: BYOB 3 - Discussion Thread

ElectricSparx wrote:

I downloaded BYOB 2.99 yesterday, and was playing around with it. It is REALLY cool. I feel this would really help people like me who want to define their own procedures.

Thanks!

ElectricSparx wrote:

By the way, what's the point of a "stop block" block? It must be an emergency function to stop a misbehaving block, I assume...

No, it's used /inside/ the block:

  FOREVER
     ...
     ...
     IF <...>
        STOP BLOCK
     ...
     ...

You can always, I think, write the block without this by using a bunch of nested IF/ELSE blocks, but sometimes it's much more convenient this way.  It's also good for the base case of a recursion:

MY-RECURSIVE-BLOCK:
   IF <base case>
      STOP BLOCK
   ...
   ...
   MY-RECURSIVE-BLOCK
   ...
   ...


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

Offline

 

#223 2010-04-29 00:31:02

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

Re: BYOB 3 - Discussion Thread

Kingdaro wrote:

Is there any way you can run an entire list of scripts all at once?

Or better yet, add 4 to all the values in a list all at once? The atomic feature is slow.

There isn't any magic in computers; no matter how you program it, unless you have a superscalar processor that does lots of similar arithmetic operations in parallel, it's going to take time proportional to the length of the list to do anything to every item.

But in terms of programming convenience, in tools.sb you'll find MAP.  Just say

   MAP   [< > + <4>] OVER <my-list>

... but when you're dragging the + block onto the MAP block, after you see the white halo, before you let go of the mouse button, move in a little closer, until the white halo goes away and instead you see a grey border around the + block.  /Then/ let go.

Alternative if you don't like that user interface:

  MAP [THE [< > + <4>] BLOCK] OVER <my-list>

THE BLOCK is down at the bottom of the Operators menu.  The grey-border thing is a shortcut for THE BLOCK.  This will all be explained in tutorial #2, which I'm supposed to be writing right now instead of answering forum messages.  smile   (But this is fun!)

Kingdaro wrote:

Also, sometimes the custom blocks don't work in presentation mode.

Okay, this makes three times today, I think, that I've had to respond the same way to a bug report, so don't take it personally when I start shouting.  HEY, GANG, WE REALLY APPRECIATE BUG REPORTS, BUT IT'S VERY HARD TO EVALUATE AND REPRODUCE A BUG IF THE REPORT SAYS "SOMETIMES" INSTEAD OF GIVING DETAILS!

There, now I feel better.  smile   So, what does your custom block do, and how does it fail -- error message, wrong value computed, right value displayed at the wrong scale, sprite does/doesn't go offscreen...  etc.  Thanks!
A screenshot might be best of all if it's hard to explain in words just what happens.


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

Offline

 

#224 2010-04-29 00:33:14

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: BYOB 3 - Discussion Thread

illusionist wrote:

I NEEED IT! NAOW!

There need to be a way to upload BYOB projects to a BYOB website...  smile

Gimme gimme never get, don't you know your manners yet?  lol


Hai.

Offline

 

#225 2010-04-29 05:18:03

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

Re: BYOB 3 - Discussion Thread

As of just now, the BYOB.image on http://byob.berkeley.edu is 2.99.003, fixing most of the bugs reported here in the past week.  We haven't updated the complete packages; just download the image and replace the one in the package you already have.  Thanks again to everyone who's been testing BYOB!

(If you're wondering, 001 and 002 weren't posted because we weren't sure they really worked.)  smile


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

Offline

 

Board footer