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

#251 2010-04-30 00:50:01

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

Re: BYOB 3 - Discussion Thread

ElectricSparx wrote:

I used the "repeat while" block and it gave me an error whenever I moused over the block.

Whoa!  Sure enough.  Thanks for reporting this.


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

Offline

 

#252 2010-04-30 02:51:21

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

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

The antanae look kinda like a one..

Oh!  It only took me 25 hours to figure out why you thought it looked like a one!  Duh.   sad   No, what it represents is right side up, not tilted left.  Hope that helps...


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

Offline

 

#253 2010-04-30 02:59:32

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

Re: BYOB 3 - Discussion Thread

soupoftomato wrote:

Jens, whyy does it show you are not part of the SCratch Team?

I haven't done any moderating or admin stuff for a long time and felt uncomfortable about it, so I asked Andrés to clean up my status


Jens Mönig

Offline

 

#254 2010-04-30 03:23:10

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

Re: BYOB 3 - Discussion Thread

Kingdaro wrote:

here are the custom blocks that don't work in presentation:

Thanks! I'll look into this issue. Presentation is a little little faster than edit mode, because some display cycles are optimized, i.e. skipped. Could be that the code that executes custom block definitions further skips display cycles which would make it apear that nothing is happening.

I wonder, could you check two things for me: You say this only fails in presentation mode. Is the "atomic" setting for these scripts turned on or off? Does it work in presentation mode with the atomic setting turned off? That would be helpful, thank!

Brian wrote:

The speed problem in BYOB, as I understand it from Jens, has to do with the tight interaction between expression evaluation and managing the display.  One design principle in Scratch that we've moved away from (but that still survives in BYOB's implementation, which is mostly still Scratch) is that everything in the program should be visible onstage; this is why variable and list watchers default on.  So it made sense  in the context of Scratch to integrate computation and display, but if we ever rewrite it from (sorry) scratch, the two parts of the program will be separate and computation that /isn't/ visible will be much, much faster.

Jens?  You want to weigh in on this one?

Speed problem, what speed problem?  smile
as Alan Kay might have said: "It's fast enough for our neurons"  big_smile

But, honestly, Brian is right about this. Scratch is slow by design, because you're supposed to see every computational step. BYOB parts with this principle if you mark the "atomic" check box in the Block Editor. But still it's "slow as molasses", because,

   - it's interpreted
   - the blocks are the code, not just a visual representation
   - I don't know zip about programming language design and/or optimization

However, it's important to me that this sluggishness is not due to Scratch or BYOB being a graphical blocks based language. If you look at the underlying Squeak/Elements code, that's acutally lightning fast!


Jens Mönig

Offline

 

#255 2010-04-30 07:06:44

demosthenes
Retired Community Moderator
Registered: 2008-02-19
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

nXIII wrote:

b-b-b-BUMP!

Sorry, I'm only an adult, does this mean you've solved your own problem?

It means he wanted to draw more attention to an unresolved question he posed.
(Bump being a backronym for bump-up-my-post)


I've taken a long hiatus, but I still visit sometimes. Give me some time to answer any messages you post on my projects!

Offline

 

#256 2010-04-30 10:37:19

PlayWithFire
Scratcher
Registered: 2010-01-20
Posts: 1000+

Re: BYOB 3 - Discussion Thread

right now i'm trying to compile a project using byob but nothing is happening.


http://scratch.mit.edu/static/projects/PlayWithFire/1610180_sm.png
Check out the DG Games Website For the latest news on games like Infected

Offline

 

#257 2010-04-30 11:24:26

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

Re: BYOB 3 - Discussion Thread

Hi, Bharvey

I would like to experiment the example given page 19 of your BYOB Reference manual - Building Objects Explicitly. But I can't find the way to "make a counter" block. I have probably missed something somewhere, but What ?

I've tested methods, launch etc (ref page 18-19). It's impressive. Definiteiely the C-Shape feature is very powerful and promising.

Thanks

Offline

 

#258 2010-04-30 11:26:42

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

Re: BYOB 3 - Discussion Thread

http://byob.berkeley.edu/certificate.bmp

http://scratch.mit.edu/projects/bharvey/1018642


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

Offline

 

#259 2010-04-30 11:28:34

PlayWithFire
Scratcher
Registered: 2010-01-20
Posts: 1000+

Re: BYOB 3 - Discussion Thread

thanks guys!


http://scratch.mit.edu/static/projects/PlayWithFire/1610180_sm.png
Check out the DG Games Website For the latest news on games like Infected

Offline

 

#260 2010-04-30 11:30:49

Lord-Sprites
Scratcher
Registered: 2010-01-24
Posts: 500+

Re: BYOB 3 - Discussion Thread

Nice Gobo Seal lol


http://ls.gd/tzhttp://ls.gd/aghttp://ls.gd/axhttp://ls.gd/tfhttp://ls.gd/lo

Offline

 

#261 2010-04-30 12:18:31

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

Re: BYOB 3 - Discussion Thread

Thanks for the appreciation.  smile


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

 

#262 2010-04-30 12:52:31

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

Re: BYOB 3 - Discussion Thread

To BHarvey
From xly Today 11:24

1st : The "make a counter" is not a system title, so it's up to me to name it ("Faire un compteur", for example).

2nd : this being done, SAY (CALL (Counter1) for 1 sec) does not report 1

In my case the variable Counter1 - in the SAY Instruction has a grey border -  contrarily to your example page 19 ??

Thanks

Offline

 

#263 2010-04-30 17:49:56

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

Re: BYOB 3 - Discussion Thread

To BHarvey
From xly
Ref My message Today 12h52

I've fixed the problem. Not obvious for anyone who does not know the trick !!

Offline

 

#264 2010-04-30 17:50:26

dav09
Scratcher
Registered: 2009-03-25
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Nice, cnt wait until finished!

Offline

 

#265 2010-04-30 17:52:00

soupoftomato
Scratcher
Registered: 2009-07-18
Posts: 1000+

Re: BYOB 3 - Discussion Thread

dav09 wrote:

Nice, cnt wait until finished!

It is finished.


I'm glad to think that the community will always be kind and helpful, the language will always be a fun and easy way to be introduced into programming, the motto will always be: Imagine, Program, Share - Nomolos

Offline

 

#266 2010-04-30 18:13:03

ElectricSparx
Scratcher
Registered: 2008-02-16
Posts: 100+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

ElectricSparx wrote:

I used the "repeat while" block and it gave me an error whenever I moused over the block.

Whoa!  Sure enough.  Thanks for reporting this.

No problem.


Lead Developer for Scratch Adventure

Offline

 

#267 2010-04-30 18:17:09

ElectricSparx
Scratcher
Registered: 2008-02-16
Posts: 100+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

http://byob.berkeley.edu/certificate.bmp

http://scratch.mit.edu/projects/bharvey/1018642

I'm very thanked.


Lead Developer for Scratch Adventure

Offline

 

#268 2010-04-30 18:31:32

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

Re: BYOB 3 - Discussion Thread

xly wrote:

To BHarvey
From xly
Ref My message Today 12h52

I've fixed the problem. Not obvious for anyone who does not know the trick !!

Ah, good.  Sorry I didn't get to reply earlier; it's one of those days when I actually had to do what I get paid for all day.  smile

What was the problem?  Figuring out how to use ASK?  If we just put an ASK <counter1> NEXT picture in the manual will that make it clear?  Thanks.

PS We didn't include adults (or at least people we know to be adults) on the certificate for lack of room, but thanks to you guys too!


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

Offline

 

#269 2010-04-30 18:35:33

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

Re: BYOB 3 - Discussion Thread

soupoftomato wrote:

dav09 wrote:

Nice, cnt wait until finished!

It is finished.

Well, it's *usable*.  We're hoping to provide debugging support of some kind, for example, between now and August.  And it's not going to feel *really* finished to me until we have first class sprites with inheritance, but that might be further away (3.1, 3.2, ...  smile  ).


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

Offline

 

#270 2010-04-30 18:46:11

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

Re: BYOB 3 - Discussion Thread

NEW BUG! In the block editor, when you have a block variable with a default value such as (Begin =1) if you duplicate it, you still have the default value there.

EDIT: Other duplicate errors. When you are in the block editor, create a reporter block. Insert a variable (or something) in the "report" section at the bottom. Now duplicate it and click on the current variable in the "report" section. You will get a series of errors.
NOTE: This happpens with any reporter block that you are trying to replace the current one with, even if it isn't duplicated.

Question: Why can you insert just a reporter into a predicate? What use does it have?

Last edited by shadow_7283 (2010-04-30 19:44:57)

Offline

 

#271 2010-04-30 19:22:42

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

Re: BYOB 3 - Discussion Thread

nXIII wrote:

Does anybody know why the 'the script. Input names' block is so messed up? I mean, I'm calling it and getting scripts with input names I have deleted in the past! I am trying to do a bit of OOP but I can't get anywhere when my zero-argument methods are demanding two arguments!
(bharvey, any suggestions?)

Oh wow!  Bump indeed!  I abjectly apologize for how long it's taken for us to get to this.  Jens, I'm not sure, but I think this has to do with the fact that (in order to have a way to include input names in the printform of a reporter) you turn THE SCRIPT [REPORT <...>]
into <...> with a grey border, and I think that's breaking oop.  In nXIII's project try CALL [NEW OBJECT] WITH INPUT <yourself>; this doesn't give an error, but does give a THE SCRIPT with two random input names that shouldn't be there.  I don't understand the symptom exactly, but I think the reduction to <...> with grey border is correct only in some contexts.


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

Offline

 

#272 2010-04-30 19:55:35

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

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

NEW BUG! In the block editor, when you have a block variable with a default value such as (Begin =1) if you duplicate it, you still have the default value there.

EDIT: Other duplicate errors. When you are in the block editor, create a reporter block. Insert a variable (or something) in the "report" section at the bottom. Now duplicate it and click on the current variable in the "report" section. You will get a series of errors.
NOTE: This happpens with any reporter block that you are trying to replace the current one with, even if it isn't duplicated.

Question: Why can you insert just a reporter into a predicate? What use does it have?

Thank you.  Jens, to clarify the second one, when I tried it, if I used a "Make a variable" variable, the one in the report slot duplicates without problems and the one off on the left of the block editor doesn't have "duplicate" in its context menu.  But if it's a Script Variables variable, then the oval in the s.v. block itself can be duplicated, and that's when the one in the report slot starts erroring.

Shadow, about your question, putting a reporter into an input slot of type predicate is probably a mistake (although nothing stops a custom reporter from reporting TRUE), but Scratch in general tries not to give error messages and we've stuck with that.  So we think of the input types as more advisory than compulsory.  (I was surprised to discover that Scratch really enforces the numeric input type, but it does it by not letting you type non-digits into the slot in the first place, not by erroring; if you say something like

MOVE [JOIN <hello > <world>] STEPS

you can run that and it just takes any non-numeric result as zero.)


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

Offline

 

#273 2010-04-30 20:12:05

Jakey22
Scratcher
Registered: 2008-12-28
Posts: 72

Re: BYOB 3 - Discussion Thread

In the finished version, I would like programs to be able to run as regular windowed programs in windows, that are resiseable. I would also be able to customize the interface more, possibly the option of themes, and being able to change the color of watchers in the variables and lists.


http://www.imagebookers.com/gallery/d/2561-1/ubuntu-wallpaper.png http://bullylug.org/linux-penguin.jpg
My website       PENGUINS!!!!!!!!!!!!!!!!!!!!! randomness.

Offline

 

#274 2010-04-30 21:40:34

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

Re: BYOB 3 - Discussion Thread

Jakey22 wrote:

I would also be able to customize the interface more, possibly the option of themes, and being able to change the color of watchers in the variables and lists.

Yeah, there are probably a couple of bazillion things we could do along these lines.  I'm not /against/ doing them, but I'd have to say it's lower priority than debugging aids, so maybe not in the August release, depending on how long the big things take!


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

Offline

 

#275 2010-04-30 21:59:14

Dazachi
Retired Community Moderator
Registered: 2009-09-12
Posts: 1000+

Re: BYOB 3 - Discussion Thread

I'm still kinda confused. How can I set a variable just for my block?


Dazachi, Retired Community Moderator
May also know me as OJACheung.

Offline

 

Board footer