bharvey wrote:
Tonight's cute little project:
http://byob.berkeley.edu/tree.gif
A fractal tree drawing program that lets you enter branches with the mouse (dragging away from any point on the trunk) and then draws the fractal to whatever depth you choose.
This works a lot better in Turbo Mode.
Offline
Jakey22 wrote:
With the pause button, their should be a pause block and a resume block.
There sort of is a pause block: DEBUG.It does other things, too, but it does everything you'd want from PAUSE. As for resume, as sperry says, it would never be run -- unless we let certain scripts be exempt from pausing, which would be cool but complicated.
PAUSE is a young feature and it has warts, e.g., you can't pause a sound in the middle. Doing so would be technically a little difficult but not impossible, and maybe Jens will get around to it -- but on the other hand there are a whole pile of urgent problems before August.
Offline
bharvey wrote:
Jakey22 wrote:
With the pause button, their should be a pause block and a resume block.
There sort of is a pause block: DEBUG.It does other things, too, but it does everything you'd want from PAUSE. As for resume, as sperry says, it would never be run -- unless we let certain scripts be exempt from pausing, which would be cool but complicated.
PAUSE is a young feature and it has warts, e.g., you can't pause a sound in the middle. Doing so would be technically a little difficult but not impossible, and maybe Jens will get around to it -- but on the other hand there are a whole pile of urgent problems before August.
Sometimes you don't want the sound to stop. Is there a pause block? *hint hint*
Offline
nXIII wrote:
Lucario621 wrote:
Jakey22 wrote:
With the pause button, their should be a pause block and a resume block.
Good idea!
But you can't run a resume block if scripts are paused....
True... I'm stumped.
Offline
We could have a "pause all but me" block and another one named "resume all". But, of course, what we really want is first class threads, don't we?
But I really don't want to add more blocks (that's Panther territory ). Oops, I'm on vacation anyway, no internetz...
Offline
Blade-Edge wrote:
Where can I download BYOB3? Or whatever the latest version is
http://byob.berkeley.edu/ There. Download the bleeding-edge, that'll be the latest version.
Offline
Jens wrote:
We could have a "pause all but me" block and another one named "resume all". But, of course, what we really want is first class threads, don't we?
Well, maybe, but before that we want mutexes. Your "pause all but me" reminded me, because users could use that to implement a mutex, but it'd probably be less overhead to make them a primitive data type.
SET <foo> TO [MUTEX]
ACQUIRE <foo>
RELEASE <foo>
or to minimize blocks, change the last two to
CALL <foo> WITH INPUTS <acquire>
CALL <foo> WITH INPUTS <release>
Of course as SICP 3.4.2 explains, if we provide a reporter
TEST AND SET <foo> TO <new-value>
that atomically sets foo and reports the old value, then users can implement mutexes themselves.
Providing mutexes one way or another would really help in our course, because we have parallelism as a big push throughout our curriculum, and with this we could introduce both the problem (which we do already in Scratch) and the solution in CS 10.
Offline
I was thinking of a [pause until <>] block.
Offline
Hey Brian,
Thanks for the talk yesterday, I really enjoyed it.
Earlier today I had made some projects and looked at tutorials, I made a simple tree-generating program.
I made "for i in range()" blocks, a "map" block, and others for practice.
I don't know if it is a bug, but in the first block editor input(when you select a pallet and a block type) when you select a Control block and then select Sensing and then switch to another type, the block type quickly flashes the color of Control.
I'd also consider having lists inside of blocks, for some added convenience.
Like right next to "Make a Variable" there would be "make a list", because with the block that I am doing I need to add to a list and report that list.
Hope you consider my suggestions.
Offline
Greatdane wrote:
Hey Brian,
Thanks for the talk yesterday, I really enjoyed it.
Earlier today I had made some projects and looked at tutorials, I made a simple tree-generating program.
I made "for i in range()" blocks, a "map" block, and others for practice.
I don't know if it is a bug, but in the first block editor input(when you select a pallet and a block type) when you select a Control block and then select Sensing and then switch to another type, the block type quickly flashes the color of Control.
I'd also consider having lists inside of blocks, for some added convenience.
Like right next to "Make a Variable" there would be "make a list", because with the block that I am doing I need to add to a list and report that list.
Hope you consider my suggestions.
Use a block variable and set it to 'list >' for an empty list; the 'make a list' UI piece is there only for Scratch project support.
Offline
nXIII wrote:
Greatdane wrote:
Hey Brian,
Thanks for the talk yesterday, I really enjoyed it.
Earlier today I had made some projects and looked at tutorials, I made a simple tree-generating program.
I made "for i in range()" blocks, a "map" block, and others for practice.
I don't know if it is a bug, but in the first block editor input(when you select a pallet and a block type) when you select a Control block and then select Sensing and then switch to another type, the block type quickly flashes the color of Control.
I'd also consider having lists inside of blocks, for some added convenience.
Like right next to "Make a Variable" there would be "make a list", because with the block that I am doing I need to add to a list and report that list.
Hope you consider my suggestions.Use a block variable and set it to 'list >' for an empty list; the 'make a list' UI piece is there only for Scratch project support.
So how do you add to that list?
I don't see a way to do that.
Offline
Greatdane wrote:
So how do you add to that list?
You just drag the orange variable blob onto the list pulldown in ADD <foo> TO <list>.
It was great meeting you, too!
PS I mentioned your problem about finding other local Scratchers to a friend of mine, who suggested starting a "Silicon Valley Scratchers" forum topic, or Facebook page, or whatever your parents are confortable with.
Offline
Greatdane wrote:
I don't know if it is a bug, but in the first block editor input(when you select a pallet and a block type) when you select a Control block and then select Sensing and then switch to another type, the block type quickly flashes the color of Control.
Interesting. I tried a bunch of times and managed to reproduce this once. Can you reproduce it reliably? If so, please be more specific about the exact sequence of events. (Although, to be honest, this one is going to be pretty low on the priority list; it doesn't seem to hurt anything.)
Offline
bharvey wrote:
Greatdane wrote:
...
Interesting. I tried a bunch of times and managed to reproduce this once. Can you reproduce it reliably? If so, please be more specific about the exact sequence of events. (Although, to be honest, this one is going to be pretty low on the priority list; it doesn't seem to hurt anything.)
There isn't really a sequence, you can do the same thing with the lists and motion category, etc.
Maybe it's because my computer is lagging. It's just a little visual bug. Nothing really big.
bharvey wrote:
You just drag the orange variable blob onto the list pulldown in ADD <foo> TO <list>.
It was great meeting you, too!
PS I mentioned your problem about finding other local Scratchers to a friend of mine, who suggested starting a "Silicon Valley Scratchers" forum topic, or Facebook page, or whatever your parents are comfortable with.
A Silicon Valley Scratchers forum topic would be a great idea! However, it goes against the rules of giving out personal information. I think that state is the maximum detail you can give away. A facebook page is not an option, you have to be 13 and over to be in Facebook.
Maybe a website with forums and such, linking it to here?
Offline
@BHarvey & Greatdane
Please find at the following address my efforts to explore the capabilities of ScratchByop :
http://www.xleroy.net/ScratchByobTutorial/Thumbnails.html
If it can help.
Next subject : draw one 3d Shuttle !
Offline
xly wrote:
http://www.xleroy.net/ScratchByobTutorial
Wow, you've been busy! Thanks.
P.S. We're not allowed to call it "Scratch"; they don't want people confused when your projects won't run in regular Scratch, which makes sense.
Offline
MathWizz wrote:
I found a bug! Make a block with a " - " in it.
I see, there are a bunch of bugs in the parsing of block names! Maybe we should just make it a pulldown where you can choose from among 50 popular block names.
Offline
bharvey wrote:
MathWizz wrote:
I found a bug! Make a block with a " - " in it.
I see, there are a bunch of bugs in the parsing of block names! Maybe we should just make it a pulldown where you can choose from among 50 popular block names.
Are you kidding about that?
Offline