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

#826 2010-06-18 16:46:26

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

Re: BYOB 3 - Discussion Thread

To Jens & bharvey

I've finished a tutorial application -Tangram - which extensively uses the combination of "property OF sprite" AND "methods". It shows how any sprite ("command" in this example can change the main properties of any other sprite. If it can help, see scripts here :

http://www.xleroy.net/ByobTuto/thumbnails.html

Congratulations for your efforts to continuously improve Byob, in all extents.

Offline

 

#827 2010-06-18 17:28:50

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

Re: BYOB 3 - Discussion Thread

markyparky56 wrote:

Jens wrote:

Oh, the OF block doesn't accept custom reporters and string reporters? That's a bug I'll certainly fix!

So there are some bugs you won't fix?

I think he means that bug will go to the top of the list of things to fix, and some little insignificant ones will still be fixed, just after the more important ones.


nXIII

Offline

 

#828 2010-06-20 05:20:38

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

Re: BYOB 3 - Discussion Thread

To Jens&bharvey

See Error report : http://www.xleroy.net/ByobErrors/Tangram-error.gif

See also the application Byob-Tangram which applies "method" and "property OF sprite" for a multi-sprite application.

http://www.xleroy.net/ByobTuto/thumbnails.html

Offline

 

#829 2010-06-20 17:15:40

jstout
Scratcher
Registered: 2007-05-04
Posts: 39

Re: BYOB 3 - Discussion Thread

I thought you might like the following headline on the Guardian newspaper's website:

Michelin restaurants embrace BYOB

Not, as I first thought, the spread of BYOB into commercial applications (well, most restaurants do offer 'function' rooms and 'first class' service) but Bring Your Own Bottle. Never mind!

John

Offline

 

#830 2010-06-21 14:35:20

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

Re: BYOB 3 - Discussion Thread

nXIII wrote:

My awesome block maker idea:
The 'default value' slot in the long input name slot should be a block argument of the selected type. That way, you can type a number in the 'number' type, a string in the 'string' type, etc., but you can also put blocks in these default values, as well as being able to put reporter blocks in the 'reporter' type and commands in the 'command' type. A mockup:
http://i39.tinypic.com/erfz45.jpg
(full size)
You should also be able to give a default value for inputs that are a list. You click the left arrow, and the new input has the default value given in the block editor.

Did anyone see this?

Last edited by MathWizz (2010-06-21 14:35:52)


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

Offline

 

#831 2010-06-21 15:15:25

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

Re: BYOB 3 - Discussion Thread

That's indeed on our wish list, especially the part that you can put other blocks into the default values, and to also allow default values for variadic (multiple) inputs! But I'm not so sure when I'll get around to implement it  smile


Jens Mönig

Offline

 

#832 2010-06-21 15:28:55

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

Re: BYOB 3 - Discussion Thread

Jens wrote:

That's indeed on our wish list, especially the part that you can put other blocks into the default values, and to also allow default values for variadic (multiple) inputs! But I'm not so sure when I'll get around to implement it  smile

Keeeewl!


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

Offline

 

#833 2010-06-21 17:24:09

jstout
Scratcher
Registered: 2007-05-04
Posts: 39

Re: BYOB 3 - Discussion Thread

I've defined a recursive factorial:

n factorial
if n = 1
  report n
else
  report n * [(n - 1) factorial]

which seems to work fine. However, if I create an operator block:

((39 factorial) / (60 factorial))

and double click it, the value displayed is 60 factorial, not the vanishingly small 39! / 60! I'd expect.

If I put in a say block, e.g.,

say ((39 factorial) / (60 factorial))

I get the right result. Other functions, sqrt 9 / 10^ 2 etc, appear to work OK.

It's not a major problem, but possibly an interesting one?

Actually, defining a postfix operator reporter doubled, i.e., 2 doubled = 4, shows the same problem.

John

Last edited by jstout (2010-06-21 17:25:25)

Offline

 

#834 2010-06-21 18:07:37

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

Re: BYOB 3 - Discussion Thread

Huh?! that's certainly weird and very interesting, John. But I cannot reproduce it in 2.99.020. Can you perhaps send me your project or - better yet - post a bug report to our Bugzilla site: byobugs.com

Thanks!


Jens Mönig

Offline

 

#835 2010-06-21 18:37:19

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

Re: BYOB 3 - Discussion Thread

I have an important question that makes me sound like a noob.

What is the difference between a boolean and a predicate?


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

Offline

 

#836 2010-06-21 19:52:45

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

Re: BYOB 3 - Discussion Thread

Hi henley,

that's an excellent question, thanks for asking it! And, no, this certainly doesn't make you sound like a noob at all.

The term "predicate" means different things in different contexts, in BYOB a predicate is a reporter of a Boolean value. Boolean values are TRUE or FALSE, and the functions (reporters) that return Boolean values are called predicates:

[blocks]
<(  <=>  )>
<(  <>>  )>
<(  <<>  )>
<<  <and>  >>
<<  <or>  >>
<<  <not>  >>
[/blocks]

are all called predicates in BYOB, because they answer either TRUE or FALSE. The reason why we're calling them predicates instead of Booleans is that in BYOB 3 the new thing is first class procedures and higher order functions. A higher order function is a block that takes other blocks as inputs and can also return blocks.

So, how can you tell if you need a Boolean or a predicate? The rule of thumb is this: Ask yourself if you're going to want to test the Boolean expression (the hexagonal green reporter block) more than once or at a later time. If that's the case then you're probably talking about a predicate.

Examples for predicates are the diamond shaped blocks that go into such loops as

[blocks]
<forever if>
<end>

<repeat until>
<end>

<wait until>
[/blocks]

because the hexagonal block will be executed anew in each loop cycle.

Ah, I'm not good at explaining these things. I'll let Brian take over now  smile

Last edited by Jens (2010-06-21 19:55:35)


Jens Mönig

Offline

 

#837 2010-06-21 20:24:41

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

Re: BYOB 3 - Discussion Thread

No, you've explained it to me perfectly! I get it now! Thank you!


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

Offline

 

#838 2010-06-22 01:04:10

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

Re: BYOB 3 - Discussion Thread

2.99.021 is a bug fix release, most notably ESC-click finally works on the Mac!  big_smile


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

Offline

 

#839 2010-06-22 01:46:48

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

2.99.021 is a bug fix release, most notably ESC-click finally works on the Mac!  big_smile

Yay, another update!  big_smile

When do you expect BYOB 3 to come out?  smile


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#840 2010-06-22 07:55:39

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

Re: BYOB 3 - Discussion Thread

Jonathanpb wrote:

When do you expect BYOB 3 to come out?  smile

Our target date is the Scratch conference in August.

The releases between now and then will be bug fixes and speedups; new features (of which we have a wish list) will wait until 3.1 (hard as it is to resist first class sprites).


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

Offline

 

#841 2010-06-22 09:42:30

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Jonathanpb wrote:

When do you expect BYOB 3 to come out?  smile

Our target date is the Scratch conference in August.

The releases between now and then will be bug fixes and speedups; new features (of which we have a wish list) will wait until 3.1 (hard as it is to resist first class sprites).

I have to wait 'til then for first class sprites?!?  yikes  I have started playing with first class images and it's fairly easy!


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

Offline

 

#842 2010-06-22 10:36:52

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

Re: BYOB 3 - Discussion Thread

I've got a bug:
If you put a forever block into an atomic custom reporter, it freezes BYOB. You should fix that.


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

Offline

 

#843 2010-06-22 10:41:15

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

Re: BYOB 3 - Discussion Thread

ScratchReallyROCKS wrote:

I've got a bug:
If you put a forever block into an atomic custom reporter, it freezes BYOB. You should fix that.

How would he fix it? It does what it is supposed to do. The best solution is to not use a forever loop. If you do use one, hold the escape key and click anywhere to stop the script.


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

Offline

 

#844 2010-06-22 11:18:35

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

Re: BYOB 3 - Discussion Thread

ScratchReallyROCKS wrote:

I've got a bug:
If you put a forever block into an atomic custom reporter, it freezes BYOB. You should fix that.

Thanks for this bug report! I've added it to our bugtracking list and will give it a shot for the next release.

BTW, please feel free to report any bugs you come across to our bugtracker at: BYOBugs.com.

Thanks!


Jens Mönig

Offline

 

#845 2010-06-22 11:41:31

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

Re: BYOB 3 - Discussion Thread

ScratchReallyROCKS wrote:

I've got a bug:
If you put a forever block into an atomic custom reporter, it freezes BYOB. You should fix that.

The classic programing error. The infinite loop.


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

 

#846 2010-06-22 18:23:26

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

Re: BYOB 3 - Discussion Thread

Glitch:

Type in

Code:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

Or some other equivalently long string into the "report []" section at the bottom of the block dialog. It is now impossible to close.

Oh, wait, you can select it and press enter, but the layout is still quite messed up and it's impossible to resize the dialog without deleting the text.

Glitch #2:
make an input variable, then rename it. A block variable is made with the old name.

Last edited by nXIII (2010-06-22 18:29:52)


nXIII

Offline

 

#847 2010-06-22 20:02:12

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

Re: BYOB 3 - Discussion Thread

nXIII wrote:

Glitch:

Type in

Code:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

Or some other equivalently long string into the "report []" section at the bottom of the block dialog. It is now impossible to close.

Oh, wait, you can select it and press enter, but the layout is still quite messed up and it's impossible to resize the dialog without deleting the text.

Thanks, nXIII! There's another way to close such a block editor: Just switch to another sprite or to presentation mode and all open block editors will close.  smile


nXIII wrote:

Glitch #2:
make an input variable, then rename it. A block variable is made with the old name.

Ah, that's actually a feature that took me some time and pains to implement, although it is now arguably redundant. The idea behind this is that if you delete an argument you might still have references to it in the block's body and maybe all you wanted is to move the argument from one position in the prototype to another. So what you can do is drag the variable from the block vars pane over the prototype and drop it onto an orange plus-sign. This was my first attempt at a drag-n-drop way to define prototype arguments, before we came up with the click-the-plus-sign rule, and it still works  big_smile


Jens Mönig

Offline

 

#848 2010-06-22 23:28:52

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Jens wrote:

So what you can do is drag the variable from the block vars pane over the prototype and drop it onto an orange plus-sign. This was my first attempt at a drag-n-drop way to define prototype arguments, before we came up with the click-the-plus-sign rule, and it still works  big_smile

Nifty!


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#849 2010-06-23 01:41:50

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

Re: BYOB 3 - Discussion Thread

2.99.022, another bugfix release.

Last edited by bharvey (2010-06-23 01:42:17)


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

Offline

 

#850 2010-06-23 01:46:57

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

Re: BYOB 3 - Discussion Thread

MathWizz wrote:

I have to wait 'til then for first class sprites?!?  yikes  I have started playing with first class images and it's fairly easy!

Even easy changes mean another cycle of posting an alpha test version, waiting for bugs to trickle in, and fixing them.  Or waiting a while, even if no bugs trickle in, just in case.  Right now we have a large number of fairly trivial bugs (like the ones in the past few messages, no offense bug posters, "trivial" doesn't mean unimportant, just that it isn't something users are likely to do and/or it doesn't kill your project and/or arguably it's a user error) and user interface glitches.  And making it faster!


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

Offline

 

Board footer