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

#3751 2011-09-29 20:15:57

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

Re: BYOB 3 - Discussion Thread

xly wrote:

@ Jens
(...) THE BLOCK input variables are inverted

fixed!

Excellent observation, Xavier, thanks for telling!
(be sure to empty your browser's cache when re-loading the prototype to get the latest version which includes the bug fix)


Jens Mönig

Offline

 

#3752 2011-09-29 20:59:50

14God
Scratcher
Registered: 2008-11-14
Posts: 100+

Re: BYOB 3 - Discussion Thread

@Jens, I haven't  checked the forums for a while, you've been busy  big_smile


http://cs.berkeley.edu/~bh/sig4.png
Logic and reason have led me to atheism... but I'm stuck with the name  tongue

Offline

 

#3753 2011-09-30 06:29:40

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

Re: BYOB 3 - Discussion Thread

"Oh When The Jens Are Marching In ..."

http://http://www.xleroy.net/ByobTuto/New/trackglide.gif

Offline

 

#3754 2011-09-30 06:32:21

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

Re: BYOB 3 - Discussion Thread

http://www.xleroy.net/ByobTuto/New/trackglide.gif

Offline

 

#3755 2011-10-02 18:33:16

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

Re: BYOB 3 - Discussion Thread

@Jens - Snap!
I'm having troubles with Variables (global), very similar to Byob ones.
Sometimes the variables block ( impossible to give them a value) and you can't anymore delete them. This issue does not occur with "Script Variables".

Offline

 

#3756 2011-10-02 21:28:06

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

Re: BYOB 3 - Discussion Thread

http://i52.tinypic.com/6rjyfc.png
(I had a bit of trouble getting the "When Jens and Brian" in the hat)

Last edited by shadow_7283 (2011-10-02 21:28:51)

Offline

 

#3757 2011-10-03 04:25:58

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

Re: BYOB 3 - Discussion Thread

You guys who've been following along with these way-early versions are the greatest!  We don't even have costumes yet!

But I'm about to spend a week with Jens making sure the core evaluator is under control, and then I'll be very happy.  smile


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

Offline

 

#3758 2011-10-03 12:20:44

14God
Scratcher
Registered: 2008-11-14
Posts: 100+

Re: BYOB 3 - Discussion Thread

@Jens, any possibility that when the list indexer blocks, whenever they come, will be able to index a script like a multi-dimensional list? Not sure how hard that would be to implement but it would be pretty cool.


http://cs.berkeley.edu/~bh/sig4.png
Logic and reason have led me to atheism... but I'm stuck with the name  tongue

Offline

 

#3759 2011-10-03 12:36:40

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

Re: BYOB 3 - Discussion Thread

What we need is a feature to turn a script into a list of blocks.


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

 

#3760 2011-10-03 12:43:37

14God
Scratcher
Registered: 2008-11-14
Posts: 100+

Re: BYOB 3 - Discussion Thread

joefarebrother wrote:

What we need is a feature to turn a script into a list of blocks.

I agree


http://cs.berkeley.edu/~bh/sig4.png
Logic and reason have led me to atheism... but I'm stuck with the name  tongue

Offline

 

#3761 2011-10-03 14:06:26

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: BYOB 3 - Discussion Thread

14God wrote:

joefarebrother wrote:

What we need is a feature to turn a script into a list of blocks.

I agree

Elaborating on this idea, do you mean that say for example you were building a script in the byob interface, you could have a "[List blocks in script()]"?


http://i.imgur.com/zeIZW.png

Offline

 

#3762 2011-10-03 14:13:17

14God
Scratcher
Registered: 2008-11-14
Posts: 100+

Re: BYOB 3 - Discussion Thread

rookwood101 wrote:

Elaborating on this idea, do you mean that say for example you were building a script in the byob interface, you could have a "[List blocks in script()]"?

Pretty much. Of course a block with another block in it would require the list to become multi-dimensional to not loose the structure. I'm not sure but that sound like a pain in the rear to implement.


http://cs.berkeley.edu/~bh/sig4.png
Logic and reason have led me to atheism... but I'm stuck with the name  tongue

Offline

 

#3763 2011-10-03 14:20:49

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: BYOB 3 - Discussion Thread

14God wrote:

rookwood101 wrote:

Elaborating on this idea, do you mean that say for example you were building a script in the byob interface, you could have a "[List blocks in script()]"?

Pretty much. Of course a block with another block in it would require the list to become multi-dimensional to not loose the structure. I'm not sure but that sound like a pain in the rear to implement.

Sounds like we need multidimensional arrays!

(item () of list [(item () of list)]) (example) although does BYOB 3 support this anyway?

Last edited by rookwood101 (2011-10-03 14:25:19)


http://i.imgur.com/zeIZW.png

Offline

 

#3764 2011-10-03 14:32:27

14God
Scratcher
Registered: 2008-11-14
Posts: 100+

Re: BYOB 3 - Discussion Thread

rookwood101 wrote:

Sounds like we need multidimensional arrays!

(item () of list [(item () of list)]) (example) although does BYOB 3 support this anyway?

Sorta, it allows you to use arrays as objects inside of arrays. But is doesn't just allow you to say [item(5,3,4)of (foo)]. You have to say [Item (4) of [Item (3) of [ Item (5) of (foo) ]]]


http://cs.berkeley.edu/~bh/sig4.png
Logic and reason have led me to atheism... but I'm stuck with the name  tongue

Offline

 

#3765 2011-10-03 18:50:38

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

Re: BYOB 3 - Discussion Thread

Yep, I agree with 14God. I think it's high time that "lists" evolved to multi-dimensional arrays.

Offline

 

#3766 2011-10-04 00:54:52

14God
Scratcher
Registered: 2008-11-14
Posts: 100+

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

Yep, I agree with 14God. I think it's high time that "lists" evolved to multi-dimensional arrays.

I didn't say I thought lists in lists should become multi dimensional arrays, I said list in list is how multi dimensional arrays are implemented in Byob, and there is a reason for that, it allows a whole 'row' in an M'D' array to still be an object. Item in Item arrays are more flexible and adjustable and if item 1 will only be one dimension deep but item 2 will be 10 you won't have to waste memory on the 9 unused slots in item one.

[After_Thought] You could make a block that treated arrays like multi dimensional arrays if you wanted. [/After_Thought]

Last edited by 14God (2011-10-04 00:57:30)


http://cs.berkeley.edu/~bh/sig4.png
Logic and reason have led me to atheism... but I'm stuck with the name  tongue

Offline

 

#3767 2011-10-04 06:55:04

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

Re: BYOB 3 - Discussion Thread

@Jens - Variable issue
I guess that when a script does an illicit operation (division by zero for example) the variable is blocked and can't be used anymore for any purpose. In addition it can't be deleted.

Offline

 

#3768 2011-10-04 12:47:45

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

Re: BYOB 3 - Discussion Thread

14God wrote:

Pretty much. Of course a block with another block in it would require the list to become multi-dimensional to not loose the structure. I'm not sure but that sound like a pain in the rear to implement.

Exactly.  We are eventually going to do something like this, but it needs thoughtful design.  It would be easy if all scripts were just commands strung together (move 10 steps, turn clockwise 15 degrees, move 20 steps, etc) but as soon as you have a REPEAT, or a reporter, the structure is complicated.  And in the list structure that results, you have to be able to distinguish the literal list (move, 10, steps) from the one you got as the translation of the [move 10 steps] block.

None of this will be in 4.0, but bear with us.  We'll get there eventually.

PS  I'm in Jens's apartment right now, have been here since yesterday evening.  Spent most of today sleeping and doing my laundry, but while in the laundromat we got a lot of design work done.  I'm very optimistic that 4.0 is going to turn out great!

PPS  The above is a lie, of course; the list you get will be more like (move_steps, 10).  But no matter what it is, you have to be able to distinguish it from a data list.

Last edited by bharvey (2011-10-04 12:52:22)


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

Offline

 

#3769 2011-10-04 12:49:47

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

Re: BYOB 3 - Discussion Thread

14God wrote:

[After_Thought] You could make a block that treated arrays like multi dimensional arrays if you wanted. [/After_Thought]

Indeed.  Maybe this would be a good thing to put in the Tools collection, although I'm nervous about making it as big as the Python library eventually!


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

Offline

 

#3770 2011-10-04 13:53:43

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

14God wrote:

Pretty much. Of course a block with another block in it would require the list to become multi-dimensional to not loose the structure. I'm not sure but that sound like a pain in the rear to implement.

Exactly.  We are eventually going to do something like this, but it needs thoughtful design.  It would be easy if all scripts were just commands strung together (move 10 steps, turn clockwise 15 degrees, move 20 steps, etc) but as soon as you have a REPEAT, or a reporter, the structure is complicated.  And in the list structure that results, you have to be able to distinguish the literal list (move, 10, steps) from the one you got as the translation of the [move 10 steps] block.

None of this will be in 4.0, but bear with us.  We'll get there eventually.

PS  I'm in Jens's apartment right now, have been here since yesterday evening.  Spent most of today sleeping and doing my laundry, but while in the laundromat we got a lot of design work done.  I'm very optimistic that 4.0 is going to turn out great!

PPS  The above is a lie, of course; the list you get will be more like (move_steps, 10).  But no matter what it is, you have to be able to distinguish it from a data list.

Lambada.

Offline

 

#3771 2011-10-04 17:48:04

14God
Scratcher
Registered: 2008-11-14
Posts: 100+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Indeed.  Maybe this would be a good thing to put in the Tools collection, although I'm nervous about making it as big as the Python library eventually!

You should break the library up a bit to save load time and pallet space. Maybe you could have string_ops.ysp, math_ops.ysp, object_ops.ysp ect
-----------------------------------------------------------------------------------------------------------------------------

@xly
Wow, that's kinda annoying that you can't delete them O_o

Last edited by 14God (2011-10-04 17:54:28)


http://cs.berkeley.edu/~bh/sig4.png
Logic and reason have led me to atheism... but I'm stuck with the name  tongue

Offline

 

#3772 2011-10-04 17:52:11

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: BYOB 3 - Discussion Thread

I think maybe a "Snap!/BYOB 4 Discussion Thread" should be made.


http://i.imgur.com/zeIZW.png

Offline

 

#3773 2011-10-04 17:55:04

14God
Scratcher
Registered: 2008-11-14
Posts: 100+

Re: BYOB 3 - Discussion Thread

rookwood101 wrote:

I think maybe a "Snap!/BYOB 4 Discussion Thread" should be made.

I think that honor should go to Jens/Brian  big_smile  More people would be likely to follow if they led the transfer.

Last edited by 14God (2011-10-04 17:56:34)


http://cs.berkeley.edu/~bh/sig4.png
Logic and reason have led me to atheism... but I'm stuck with the name  tongue

Offline

 

#3774 2011-10-04 18:01:13

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: BYOB 3 - Discussion Thread

14God wrote:

rookwood101 wrote:

I think maybe a "Snap!/BYOB 4 Discussion Thread" should be made.

I think that honor should go to Jens/Brian  big_smile  More people would be likely to follow if they led the transfer.

I agree, I think they should if they feel it suitable.


http://i.imgur.com/zeIZW.png

Offline

 

#3775 2011-10-04 18:06:57

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: BYOB 3 - Discussion Thread

I found an error when I made an error with the call block then took the blocks out, this happened:
http://i51.tinypic.com/3005ze1.png

Last edited by Pecola1 (2011-10-04 18:07:05)


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

Board footer