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

#1026 2010-07-11 16:05:18

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

Re: BYOB 3 - Discussion Thread

markyparky56 wrote:

nXIII wrote:

bharvey wrote:

You're doing composition of functions; the O.P. wanted  a sequence of command blocks, which is different.

Nicer-looking, but equivalent.

ex:
[move ( ) steps]
10
[say ( )]
hi
= (when evaluated)
[move (10) steps]
[say (hi)]

vs.

[move (10) steps]
+
[say (hi)]
=
[move (10) steps]
[say (hi)]

But would you do that when you could do the equivilent?

The first is more versatile. It can work with reporters.

Last edited by nXIII (2010-07-11 16:05:31)


nXIII

Offline

 

#1027 2010-07-11 19:35:34

Jakey22
Scratcher
Registered: 2008-12-28
Posts: 72

Re: BYOB 3 - Discussion Thread

If you are really thinking about using this for college students and programers, you should be able to resize the stage, and run the maker's programms like regular windows/mac/linux programs.


http://www.imagebookers.com/gallery/d/2561-1/ubuntu-wallpaper.png http://bullylug.org/linux-penguin.jpg
My website       PENGUINS!!!!!!!!!!!!!!!!!!!!! randomness.

Offline

 

#1028 2010-07-11 19:40:45

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Jakey22 wrote:

If you are really thinking about using this for college students and programers, you should be able to resize the stage, and run the maker's programms like regular windows/mac/linux programs.

Yeah, but it's also supposed to just be suited for normal scratchers too.

If you wan't to make normal applications for Windows/Mac/Linux, I would suggest trying this programming language I found in the 'Alternatives to Scratch' section in the Scratch Wiki, called Processing. It's definitely a step up from Scratch, but I like it...


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#1029 2010-07-11 19:40:48

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

Re: BYOB 3 - Discussion Thread

Jakey22 wrote:

If you are really thinking about using this for college students and programers, you should be able to resize the stage, and run the maker's programms like regular windows/mac/linux programs.

(just curious) Why is resizing the stage so important?


nXIII

Offline

 

#1030 2010-07-11 21:48:58

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

Re: BYOB 3 - Discussion Thread

nXIII wrote:

[move ( ) steps]
10
[say ( )]
hi
= (when evaluated)
[move (10) steps]
[say (hi)]

I see, what you really want is to program in Scheme!  Good choice.   smile


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

Offline

 

#1031 2010-07-11 21:54:18

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

nXIII wrote:

[move ( ) steps]
10
[say ( )]
hi
= (when evaluated)
[move (10) steps]
[say (hi)]

I see, what you really want is to program in Scheme!  Good choice.   smile

Where can I get/use/something Scheme?


nXIII

Offline

 

#1032 2010-07-12 04:44:32

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

Re: BYOB 3 - Discussion Thread

nXIII wrote:

bharvey wrote:

nXIII wrote:

[move ( ) steps]
10
[say ( )]
hi
= (when evaluated)
[move (10) steps]
[say (hi)]

I see, what you really want is to program in Scheme!  Good choice.   smile

Where can I get/use/something Scheme?

http://www-inst.eecs.berkeley.edu/~scheme/

Oh, and don't forget the book: http://www.cs.berkeley.edu/~bh/ss-toc2.html


Jens Mönig

Offline

 

#1033 2010-07-12 08:59:36

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

Re: BYOB 3 - Discussion Thread

Jens wrote:

Oh, and don't forget the book: http://www.cs.berkeley.edu/~bh/ss-toc2.html

Thanks, Jens, but you've forgotten to whom you're talking.  He should just read the real book!


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

Offline

 

#1034 2010-07-12 09:38:00

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Jens wrote:

Oh, and don't forget the book: http://www.cs.berkeley.edu/~bh/ss-toc2.html

Thanks, Jens, but you've forgotten to whom you're talking.  He should just read the real book!

Is that supposed to be a joke? They're different books.


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

 

#1035 2010-07-12 12:25:25

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

Re: BYOB 3 - Discussion Thread

markyparky56 wrote:

Is that supposed to be a joke? They're different books.

No, not a joke.  Simply Scheme was written as a "prequel" to SICP for students with no programming background for whom just jumping into SICP would be a disaster.  For experienced programmers, such as nXIII, there's no need for that detour.

P.S.  If it were supposed to be a joke, you'd know, because it'd be funny!

Last edited by bharvey (2010-07-12 12:26:54)


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

Offline

 

#1036 2010-07-12 14:28:14

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

Re: BYOB 3 - Discussion Thread

Here's something I don't understand.
Even when using BYOB's atomic feature for repeats, I find that duplicating a script the number of times I want it to be repeated is still faster.
Why is that?

Offline

 

#1037 2010-07-12 15:12:23

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

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

Here's something I don't understand.
Even when using BYOB's atomic feature for repeats, I find that duplicating a script the number of times I want it to be repeated is still faster.
Why is that?

I guess the time that it takes the evaluator to evaluate the repeat block each time.


nXIII

Offline

 

#1038 2010-07-12 15:58:24

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

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

Here's something I don't understand.
Even when using BYOB's atomic feature for repeats, I find that duplicating a script the number of times I want it to be repeated is still faster.
Why is that?

Are you using the primitive repeat block, or the one in the tools package (with the # variable)?


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

Offline

 

#1039 2010-07-12 17:36:42

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

shadow_7283 wrote:

Here's something I don't understand.
Even when using BYOB's atomic feature for repeats, I find that duplicating a script the number of times I want it to be repeated is still faster.
Why is that?

Are you using the primitive repeat block, or the one in the tools package (with the # variable)?

Primitive.

Offline

 

#1040 2010-07-12 19:29:43

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

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

Here's something I don't understand.
Even when using BYOB's atomic feature for repeats, I find that duplicating a script the number of times I want it to be repeated is still faster.
Why is that?

Do you have the latest version of BYOB?


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

Offline

 

#1041 2010-07-12 22:23:48

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

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

Primitive.

Interesting.  And do you notice the same thing in Scratch?  (Unrolling a REPEAT making it faster.)


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

Offline

 

#1042 2010-07-12 22:25:04

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

Re: BYOB 3 - Discussion Thread

MathWizz wrote:

Do you have the latest version of BYOB?

Ah, haven't heard from you in a while!  Happy 500th post.  smile

PS Nice logo in your sig.


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

Offline

 

#1043 2010-07-12 23:09:02

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

shadow_7283 wrote:

Primitive.

Interesting.  And do you notice the same thing in Scratch?  (Unrolling a REPEAT making it faster.)

Definitely. I just thought that atomic would be the same, if not better. Of course, it deals with lists. Could that be affecting it?

Offline

 

#1044 2010-07-13 03:40:33

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

Re: BYOB 3 - Discussion Thread

I'm pretty sure that nXIII has got it right. BYOB needs to evaluate the REPEAT block every time it loops through it. So if you evaluate

   REPEAT 10
     MOVE 1

BYOB / Scratch goes through 20 blocks.

If instead you evaluate

   MOVE 1
   MOVE 1
   MOVE 1
   MOVE 1
   MOVE 1
   MOVE 1
   MOVE 1
   MOVE 1
   MOVE 1
   MOVE 1

it will be just 10 blocks to go through. In Scratch this won't matter at all, same as in BYOB if run non-atomic. However, when the atomic flag is marked in both cases, running at full throttle the second script outperforms the first one.

Last edited by Jens (2010-07-13 03:41:20)


Jens Mönig

Offline

 

#1045 2010-07-13 07:21:34

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

Re: BYOB 3 - Discussion Thread

Jens wrote:

I'm pretty sure that nXIII has got it right. BYOB needs to evaluate the REPEAT block every time it loops through it. So if you evaluate

   REPEAT 10
     MOVE 1

BYOB / Scratch goes through 20 blocks.

If instead you evaluate

   MOVE 1
   MOVE 1
   MOVE 1
   MOVE 1
   MOVE 1
   MOVE 1
   MOVE 1
   MOVE 1
   MOVE 1
   MOVE 1

it will be just 10 blocks to go through. In Scratch this won't matter at all, same as in BYOB if run non-atomic. However, when the atomic flag is marked in both cases, running at full throttle the second script outperforms the first one.

Whats the need to avaluate it for?


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

 

#1046 2010-07-13 09:35:04

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

Re: BYOB 3 - Discussion Thread

MathWizz wrote:

shadow_7283 wrote:

Here's something I don't understand.
Even when using BYOB's atomic feature for repeats, I find that duplicating a script the number of times I want it to be repeated is still faster.
Why is that?

Do you have the latest version of BYOB?

I think so. Its hard to keep track of. XD
By the way, you might want to update your signature to this: http://i49.tinypic.com/v8ho93.png

Offline

 

#1047 2010-07-13 22:56:46

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

Re: BYOB 3 - Discussion Thread

2.99.029 mostly bugfixes.  One new feature: translucent dragging.


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

Offline

 

#1048 2010-07-14 09:54:36

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

2.99.029 mostly bugfixes.  One new feature: translucent dragging.

Translucent dragging? Better check this out...

Thats pretty cool!

Last edited by markyparky56 (2010-07-14 09:56:08)


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

 

#1049 2010-07-14 10:14:31

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

2.99.029 mostly bugfixes.  One new feature: translucent dragging.

Ha! I like this translucent dragging feature!

EDIT: Wow! It even has translucent dragging in Elements!

Last edited by ScratchReallyROCKS (2010-07-14 10:16:37)


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#1050 2010-07-14 15:28:08

Taneb
Scratcher
Registered: 2009-07-07
Posts: 100+

Re: BYOB 3 - Discussion Thread

Could the block-making window be resizeable? That would make it much easier to make blocks.

Offline

 

Board footer