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

#2601 2011-02-04 00:30:28

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Do you like it?  When this design is totally implemented it's going to be so cool!  For example you'll be able to have class variables by having the clones say

Code:

RUN [[THE SCRIPT [SET <foo> TO <bar>]] OF [OBJECT <PARENT>]]

(whereas just SETting it in the clone would make a private copy).

I love it! I've never seen OOP done quite like this before. I'm beginning to really like this style of programming; it seems so much more elegant than what I'm used to!


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

Offline

 

#2602 2011-02-04 00:34:44

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

Re: BYOB 3 - Discussion Thread

@ bharvey and Jens
It would be kinda cool to be able to put a block into the default value field of the argument editor.

Last edited by 14God (2011-02-04 00:55:52)


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

Offline

 

#2603 2011-02-04 00:57:03

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

Re: BYOB 3 - Discussion Thread

14God wrote:

@ bharvey and Jens
It would be kinda cool to be able to put a block into the default value field of the argument editor.

On our list, but probably not until 4.0.


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

Offline

 

#2604 2011-02-04 00:59:42

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

Re: BYOB 3 - Discussion Thread

fullmoon wrote:

I'm beginning to really like this style of programming; it seems so much more elegant than what I'm used to!

Yes!! (*fist pump*)   big_smile


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

Offline

 

#2605 2011-02-04 01:07:58

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

Re: BYOB 3 - Discussion Thread

Theres a general fault with my 'send' block and that is that it will only use variables from the receivers scope. This can be fixed by making an out variable and a multiple input variable and setting the out to the multiple input value. The multiple input can then be used to passed arguments and the out variable can be put in your script and you can use list blocks to access it.


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

Offline

 

#2606 2011-02-04 01:18:09

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

Re: BYOB 3 - Discussion Thread

14God wrote:

Theres a general fault with my 'send' block and that is that it will only use variables from the receivers scope. This can be fixed by making an out variable and a multiple input variable and setting the out to the multiple input value. The multiple input can then be used to passed arguments and the out variable can be put in your script and you can use list blocks to access it.

You should be able to say, e.g.,

Code:

SEND <other-guy> [SET <his-variable> TO [ASK <me> <my-variable>]]

where ASK is the reporter version of SEND, and <me> is specific, like [OBJECT <sprite34>], not [OBJECT <MYSELF>].


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

Offline

 

#2607 2011-02-04 01:50:29

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

Re: BYOB 3 - Discussion Thread

https://sites.google.com/site/byobimages/_/rsrc/1296802153758/home/ofblock/OfBlock.PNG?height=380&amp;width=400
Sorry about the poor quality :\


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

Offline

 

#2608 2011-02-04 01:56:11

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

You should be able to say, e.g.,

Code:

SEND <other-guy> [SET <his-variable> TO [ASK <me> <my-variable>]]

where ASK is the reporter version of SEND, and <me> is specific, like [OBJECT <sprite34>], not [OBJECT <MYSELF>].

Wow thats way better then what I was doing. I also realized that the send block will use script variables from the senders scope.


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

Offline

 

#2609 2011-02-04 07:28:08

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

Re: BYOB 3 - Discussion Thread

@ bharvey & Jens

You can also save a block (even a list of blocks) into a semi-persistent list variable, get it back and run it. The whole context of a sprite could be handled like that.

Offline

 

#2610 2011-02-04 07:39:09

s_federici
Scratcher
Registered: 2007-12-18
Posts: 500+

Re: BYOB 3 - Discussion Thread

MiniLogo, an almost complete reimplementation of UCBLogo (a wonderful Logo by Brian Harvey, http://www.cs.berkeley.edu/~bh/) based on Jen's BYOB is available at http://byob.sitibs.com/miniLogo-v1.0.ypr.

Please, look at the presentation at http://scratch.mit.edu/projects/s_federici/1576481.

MiniLogo is similar in spirit to miniC++ (http://scratch.mit.edu/forums/viewtopic.php?id=51792).

Detailed documentation of the miniLogo language is avaiable at http://byob.sitibs.com/miniLogo-v1.0.pdf.

A HUGE thanks to Brian Harvey for having designed UCBlogo, such a beautiful Logo!

WARNING: loading miniLogo can take a while (even more that 2 minutes) so... be patient!

Last edited by s_federici (2011-02-04 16:11:36)

Offline

 

#2611 2011-02-04 09:20:36

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

shadow_7283 wrote:

Once my AI has reached its goal, it is supposed to follow the parent of each tile back to the original square to find the shortest path

Does each tile have a unique next-closer-to-start neighbor?  If so, this sounds doable.  I wouldn't try to make that neighbor the parent of the tile; probably all the tiles should have one parent.  But each should have a variable whose value is the next neighbor.  Will that do it?

Hmm... I'll have to consider it. Not today however. It really snowed where I live for the first time in four or five years! :D

Offline

 

#2612 2011-02-04 10:38:33

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

Re: BYOB 3 - Discussion Thread

14God wrote:

https://sites.google.com/site/byobimages/_/rsrc/1296802153758/home/ofblock/OfBlock.PNG?height=380&amp;width=400

Yes, factoring ATTRIBUTE that way is much cleaner, and is in fact The Plan -- the current ATTRIBUTE OF block is a stopgap.  I like your sense of aesthetics!  big_smile

P.S.  Except, we weren't planning to make it a special form; I think it's easier to understand if you actually see the lambdafication of the accessor block.  But maybe you're right.  We'll have to think about that.  One limiration of the special-form approach is that it prevents using an un-lambdafied variable block for a program that wants to get at several different attributes.

Last edited by bharvey (2011-02-04 11:02:28)


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

Offline

 

#2613 2011-02-04 10:41:04

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

Re: BYOB 3 - Discussion Thread

14God wrote:

I also realized that the send block will use script variables from the senders scope.

Yeah I thought of that in bed last night.  It's neat that script variables, at first just a convenience, have this truly valuable benefit!


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

Offline

 

#2614 2011-02-04 10:52:18

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

Re: BYOB 3 - Discussion Thread

s_federici wrote:

MiniLogo, an almost complete reimplementation of UCBLogo

Wow!  You're incredible.  And thanks for the compliment!


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

Offline

 

#2615 2011-02-04 10:54:39

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

Re: BYOB 3 - Discussion Thread

xly wrote:

You can also save a block (even a list of blocks) into a semi-persistent list variable, get it back and run it. The whole context of a sprite could be handled like that.

Cool!  I like the idea of making a list of accessor blocks defining the state of a sprite and then doing MAP [THE [< > OF <sprite>] BLOCK] over that list to get the state of a particular sprite.


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

Offline

 

#2616 2011-02-04 10:56:52

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

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

It really snowed where I live for the first time in four or five years!  big_smile

http://www.foxtrot.com/2011/01/01232011/


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

Offline

 

#2617 2011-02-04 11:08:34

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

shadow_7283 wrote:

It really snowed where I live for the first time in four or five years!  big_smile

http://www.foxtrot.com/2011/01/01232011/

LOL!  tongue  I don't have to worry about me three feet of snow up her in Wisconsin! [/offtopic]

Looks like it's time for me to update my version of BYOB!  smile


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

Offline

 

#2618 2011-02-04 11:15:48

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

Re: BYOB 3 - Discussion Thread

Hi BHarvey, this isn't exactly linked to BYOB, but I was just wondering if you knew that you and your tutorial on Logo are mention int he help files of it. I was just kinda surprised to see your name pop up during a computing lesson. (Sorry for going offtopic)


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

 

#2619 2011-02-04 11:36:39

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

Re: BYOB 3 - Discussion Thread

markyparky56 wrote:

you and your tutorial on Logo are mention int he help files of it.

In the help files of what, exactly?  Berkeley Logo? (No surprise if so.  smile  )  Someone else's Logo?  Tnx.


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

Offline

 

#2620 2011-02-04 11:43:11

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

Re: BYOB 3 - Discussion Thread

MathWizz wrote:

Looks like it's time for me to update my version of BYOB!  smile

The experimental version isn't linked to on the web site; only cool people on the forum get to  download it.  tongue


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

Offline

 

#2621 2011-02-04 12:35:21

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

markyparky56 wrote:

you and your tutorial on Logo are mention int he help files of it.

In the help files of what, exactly?  Berkeley Logo? (No surprise if so.  smile  )  Someone else's Logo?  Tnx.

MS Windows Logo. (Is that Berkeley Logo?)

Last edited by markyparky56 (2011-02-04 12:36:30)


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

 

#2622 2011-02-04 12:39:31

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

Re: BYOB 3 - Discussion Thread

markyparky56 wrote:

MS Windows Logo. (Is that Berkeley Logo?)

Ah.  It's a spinoff of Berkeley Logo, with a Windows-specific GUI added.

It's also really old and unmaintained; you should check out FMSLogo, a newer MSWLogo spinoff, instead.


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

Offline

 

#2623 2011-02-04 16:31:12

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

shadow_7283 wrote:

It really snowed where I live for the first time in four or five years!  big_smile

http://www.foxtrot.com/2011/01/01232011/

Funny.  tongue   Unfortunately, The snow is almost completely GONE already.

I'm going to live in a colder climate someday.

Offline

 

#2624 2011-02-04 18:24:11

rubiks_cube_guy238
Scratcher
Registered: 2009-07-02
Posts: 100+

Re: BYOB 3 - Discussion Thread

Ooh! I just noticed that there's a layer option in the get and set blocks! I don't see how this could be used, but it might lead to something...

There's also a 'mouse-pointer' option in the delete block.

Last edited by rubiks_cube_guy238 (2011-02-04 18:26:50)


The glass is never half full nor half empty; it is twice as large as it needs to be.

Offline

 

#2625 2011-02-04 19:48:24

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

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

I'm going to live in a colder climate someday.

Do it quickly, before you start driving a car and stop wanting to.


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

Offline

 

Board footer