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

#1001 2010-07-09 11:23:17

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

Re: BYOB 3 - Discussion Thread

Wow. A 4323 character answer to a 63 character question.


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

Offline

 

#1002 2010-07-09 11:52:59

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

Re: BYOB 3 - Discussion Thread

This question is dumb, I know, but what is the difference between

[run [ ] >]

and

[launch [ ] >]


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

Offline

 

#1003 2010-07-09 12:17:01

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

Re: BYOB 3 - Discussion Thread

henley wrote:

This question is dumb, I know, but what is the difference between

[run [ ] >]

and

[launch [ ] >]

Run does the script inside of it and waits for its completion (the equivilant of broadcast and wait).

Launch starts the script inside of it but continues on without waiting for its completion (the equivilant of broadcast)

Try out these to scripts and see how they are different:

set x to 0
run
    the script
         repeat 100 times
              move 1 steps
say hello for 2 seconds

set x to 0
launch
    the script
         repeat 100 times
              move 1 steps
say hello for 2 seconds

And no, it isn't a dumb question, I had the same one.

Last edited by shadow_7283 (2010-07-09 12:17:53)

Offline

 

#1004 2010-07-09 14:36:36

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

Re: BYOB 3 - Discussion Thread

Wow, bharvey, that is some fascinating info in the post above! I have some thoughts about this, but I'm on break at work and using an iPod. I am very intrigued by the hash-in-the-cloud idea.


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

Offline

 

#1005 2010-07-09 15:21:32

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

Re: BYOB 3 - Discussion Thread

fullmoon wrote:

Wow, bharvey, that is some fascinating info in the post above! I have some thoughts about this, but I'm on break at work and using an iPod so typing is very difficult. I have to say, I am very intrigued by the hash-in-the-cloud idea.

You said that twice... It's probably just a mistake. I was posting a comment from an iPad and I accidentally hit the 'reply' button twice.


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

Offline

 

#1006 2010-07-09 16:55:46

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: BYOB 3 - Discussion Thread

ScratchReallyROCKS wrote:

fullmoon wrote:

Wow, bharvey, that is some fascinating info in the post above! I have some thoughts about this, but I'm on break at work and using an iPod so typing is very difficult. I have to say, I am very intrigued by the hash-in-the-cloud idea.

You said that twice... It's probably just a mistake. I was posting a comment from an iPad and I accidentally hit the 'reply' button twice.

Fixed  smile

One time, I was on my iPod, and I accidentally deleted somebody's posts  yikes  I forget whose, but luckily it didn't serve that much purpose anyways.

Offline

 

#1007 2010-07-09 22:29:49

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

Re: BYOB 3 - Discussion Thread

fullmoon wrote:

that is some fascinating info...I am very intrigued by the hash-in-the-cloud idea.

Do please remember that this was just a conversation we had, not any commitment on their part to anything!  Otherwise I'll feel guilty about having talked about it at all.  sad


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

Offline

 

#1008 2010-07-09 22:57:22

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

Re: BYOB 3 - Discussion Thread

Geez. Is there ANY HOPE for BYOB as a part of Scratch?

Offline

 

#1009 2010-07-10 06:34:02

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

Re: BYOB 3 - Discussion Thread

Uh... Putting a list in an "Ask" command glitches... It just says "a ScratchListMorph('length: 0'511)" (replacing 0 with the length of the list).

Offline

 

#1010 2010-07-10 09:44:56

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

Re: BYOB 3 - Discussion Thread

Taneb wrote:

Uh... Putting a list in an "Ask" command glitches... It just says "a ScratchListMorph('length: 0'511)" (replacing 0 with the length of the list).

Thanks.  Noted.


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

Offline

 

#1011 2010-07-10 09:57:01

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

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

Geez. Is there ANY HOPE for BYOB as a part of Scratch?

I think we're unlikely to see BYOB in its entirety, details and all.  There will be a lot of separate decisions, feature by feature, and we'll win some and lose some, most likely.


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

Offline

 

#1012 2010-07-10 12:26:29

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

fullmoon wrote:

that is some fascinating info...I am very intrigued by the hash-in-the-cloud idea.

Do please remember that this was just a conversation we had, not any commitment on their part to anything!  Otherwise I'll feel guilty about having talked about it at all.  sad

Of course not! I mentioned it because I once set up something similar when I was learning PHP. I called it OneBigHash. Basically there was a web page where you chose a name and password and got a secret key, and you could then use a very simple api to modify the values of your own personal hash-in-the-cloud. It was actually fairly useful because you could make complex data structures out of JSON and XML and put them into its indices.

I really hope the Scratch team changes their mind about calling URL's. I know I keep posting this, but:

http://scratch.mit.edu/forums/viewtopic.php?id=37130

If they include something like this, it would be extremely simple for them to add maybe three or four parsing blocks. (Unless of course they add BYOB functionality). It wouldn't be very useful for returning html web pages...who is going to write a browser in Scratch?

Last edited by fullmoon (2010-07-10 12:26:51)


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

Offline

 

#1013 2010-07-10 14:52:56

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

Re: BYOB 3 - Discussion Thread

fullmoon wrote:

I once set up something similar when I was learning PHP.

Maybe you can get hired to reimplement it for Scratch 2.0 and then sneak in BYOB while you're at it.  smile

I know I keep posting this, but:

Cool idea.  They're talking about being able to store costumes and such in your account, but afaik not about downloading them from within a program (as opposed to from the UI).

who is going to write a browser in Scratch?

Not a full browser, but I can easily imagine wanting to scrape data from specific web pages.  I used to have a weather application on my previous cell phone that worked that way; they had an ad hoc language for writing HTML scrapers that would look for patterns and then save the temperature and whether it's raining or not.


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

Offline

 

#1014 2010-07-10 18:28:21

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Taneb wrote:

Uh... Putting a list in an "Ask" command glitches... It just says "a ScratchListMorph('length: 0'511)" (replacing 0 with the length of the list).

Thanks.  Noted.

Something similar happens when attempting to join The () Script blocks. I think trying to join to blocks should result in something like:
<move(6)steps>
<clear>

Last edited by Taneb (2010-07-10 18:30:41)

Offline

 

#1015 2010-07-10 18:40:55

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

Re: BYOB 3 - Discussion Thread

Taneb wrote:

bharvey wrote:

Taneb wrote:

Uh... Putting a list in an "Ask" command glitches... It just says "a ScratchListMorph('length: 0'511)" (replacing 0 with the length of the list).

Thanks.  Noted.

Something similar happens when attempting to join The () Script blocks. I think trying to join to blocks should result in something like:
<move(6)steps>
<clear>

I like this idea. Somewhere earlier in the thread either bharvey or Jens described a possible list-to-script and script-to-list block that would take the blocks in a list and turn them into a script, and vice-versa.


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

Offline

 

#1016 2010-07-10 19:35:01

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

Re: BYOB 3 - Discussion Thread

fullmoon wrote:

Taneb wrote:

bharvey wrote:

Thanks.  Noted.

Something similar happens when attempting to join The () Script blocks. I think trying to join to blocks should result in something like:
<move(6)steps>
<clear>[/blocks]

I like this idea. Somewhere earlier in the thread either bharvey or Jens described a possible list-to-script and script-to-list block that would take the blocks in a list and turn them into a script, and vice-versa.

If only I had my much-desired "number of arguments of []" block, you wouldn't NEED to join scripts, you would simply write a (it's remarkably short) little infix->postfix and postfix evaluator.

EDIT: Please use [/blocks ] in your posts!

Last edited by nXIII (2010-07-10 19:36:57)


nXIII

Offline

 

#1017 2010-07-10 23:24:31

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Not a full browser, but I can easily imagine wanting to scrape data from specific web pages.  I used to have a weather application on my previous cell phone that worked that way; they had an ad hoc language for writing HTML scrapers that would look for patterns and then save the temperature and whether it's raining or not.

Now we're getting into regex territory!


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

Offline

 

#1018 2010-07-11 03:49:05

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

Re: BYOB 3 - Discussion Thread

Taneb wrote:

bharvey wrote:

Taneb wrote:

Uh... Putting a list in an "Ask" command glitches... It just says "a ScratchListMorph('length: 0'511)" (replacing 0 with the length of the list).

Thanks.  Noted.

Something similar happens when attempting to join The () Script blocks. I think trying to join to blocks should result in something like:
<move(6)steps>
<clear>

Whoa, I really like this idea, kudos!


Jens Mönig

Offline

 

#1019 2010-07-11 10:07:09

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

Re: BYOB 3 - Discussion Thread

Jens wrote:

Taneb wrote:

bharvey wrote:

Thanks.  Noted.

Something similar happens when attempting to join The () Script blocks. I think trying to join to blocks should result in something like:
<move(6)steps>
<clear>[/blocks]

Whoa, I really like this idea, kudos!

I don't feel it's necessary with my number of arguments block.
*wink**wink*

Last edited by nXIII (2010-07-11 10:07:27)


nXIII

Offline

 

#1020 2010-07-11 11:29:44

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

Re: BYOB 3 - Discussion Thread

nXIII wrote:

Jens wrote:

Taneb wrote:


Something similar happens when attempting to join The () Script blocks. I think trying to join to blocks should result in something like:
<move(6)steps>
<clear>[/blocks]

Whoa, I really like this idea, kudos!

I don't feel it's necessary with my number of arguments block.
*wink**wink*

How would that block work? I don't really understand how that would fix the problem.


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

 

#1021 2010-07-11 12:16:12

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

Re: BYOB 3 - Discussion Thread

markyparky56 wrote:

nXIII wrote:

Jens wrote:

Whoa, I really like this idea, kudos!

I don't feel it's necessary with my number of arguments block.
*wink**wink*

How would that block work? I don't really understand how that would fix the problem.

Once you have that block, you can make an infix->postfix converter and a postfix evaluator. It would take a list of the blocks, like

[move ( ) steps]
(( ) + ( ))
10
2

and would evaluate to:
[move ((10) + (2)) steps]

Last edited by nXIII (2010-07-11 12:16:24)


nXIII

Offline

 

#1022 2010-07-11 12:46:41

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

Re: BYOB 3 - Discussion Thread

nXIII wrote:

markyparky56 wrote:

nXIII wrote:

I don't feel it's necessary with my number of arguments block.
*wink**wink*

How would that block work? I don't really understand how that would fix the problem.

Once you have that block, you can make an infix->postfix converter and a postfix evaluator. It would take a list of the blocks, like

[move ( ) steps]
(( ) + ( ))
10
2

and would evaluate to:
[move ((10) + (2)) steps]

Ahh... ok.

Last edited by markyparky56 (2010-07-11 12:52:47)


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

 

#1023 2010-07-11 15:31:25

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

Re: BYOB 3 - Discussion Thread

nXIII wrote:

It would take a list of the blocks, like

[move ( ) steps]
( ( ) + ( ) )
10
2

and would evaluate to:
[move ( (10) + (2) ) steps]

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

Last edited by bharvey (2010-07-11 15:32:02)


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

Offline

 

#1024 2010-07-11 15:36:02

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

nXIII wrote:

It would take a list of the blocks, like

[move ( ) steps]
( ( ) + ( ) )
10
2

and would evaluate to:
[move ( (10) + (2) ) steps]

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)]

Last edited by nXIII (2010-07-11 15:37:28)


nXIII

Offline

 

#1025 2010-07-11 16:02:17

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

Re: BYOB 3 - Discussion Thread

nXIII wrote:

bharvey wrote:

nXIII wrote:

It would take a list of the blocks, like

[move ( ) steps]
( ( ) + ( ) )
10
2

and would evaluate to:
[move ( (10) + (2) ) steps]

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?


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

 

Board footer