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
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.
Offline
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.
Offline
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
One time, I was on my iPod, and I accidentally deleted somebody's posts I forget whose, but luckily it didn't serve that much purpose anyways.
Offline
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.
Offline
Geez. Is there ANY HOPE for BYOB as a part of Scratch?
Offline
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.
Offline
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.
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)
Offline
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.
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.
Offline
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
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.
Offline
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)
Offline
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!
Offline
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!
Offline
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)
Offline
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.
Offline
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)
Offline
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)
Offline
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)
Offline
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)
Offline
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?
Offline