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

#3551 2011-08-21 23:46:58

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

Re: BYOB 3 - Discussion Thread

Check out my project about finite state machines and regular expressions.


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

Offline

 

#3552 2011-08-22 07:48:58

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: BYOB 3 - Discussion Thread

never mind-figured out myself  smile
http://i.imgur.com/e4kfV.gif

Last edited by roijac (2011-08-22 08:08:15)

Offline

 

#3553 2011-08-22 09:11:34

Sidharth
Scratcher
Registered: 2007-12-14
Posts: 100+

Re: BYOB 3 - Discussion Thread

fullmoon wrote:

roijac wrote:

...

Out of curiosity, where did you find a block called THE BLOCK WITH INPUTS?

That block comes with BYOB, doesn't it?

http://i.imgur.com/JmNk1.png
http://i.imgur.com/1CsNV.png
http://i.imgur.com/XuJHo.png


http://www.danasoft.com/citysign.jpg

Offline

 

#3554 2011-08-22 09:13:42

Sidharth
Scratcher
Registered: 2007-12-14
Posts: 100+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Check out my project about finite state machines and regular expressions.

Ahh! It refuses to load! I really wanted to see the regular expressions part!


http://www.danasoft.com/citysign.jpg

Offline

 

#3555 2011-08-22 11:00:43

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

Re: BYOB 3 - Discussion Thread

Sidharth wrote:

Ahh! It refuses to load! I really wanted to see the regular expressions part!

Hmm, it definitely loads for me.  Are you sure you have the latest BYOB (3.1.1)?


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

Offline

 

#3556 2011-08-22 13:28:56

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

fullmoon wrote:

roijac wrote:

...

Out of curiosity, where did you find a block called THE BLOCK WITH INPUTS?

He Built His Own Block, of course!   tongue

Oh! I forgot you could do that!  wink

I usually think in terms of anonymous closures rather than formal function definitions, so that possibility actually slipped my mind. Apologies!


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

Offline

 

#3557 2011-08-22 13:55:20

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: BYOB 3 - Discussion Thread

fullmoon wrote:

bharvey wrote:

fullmoon wrote:


Out of curiosity, where did you find a block called THE BLOCK WITH INPUTS?

He Built His Own Block, of course!   tongue

Oh! I forgot you could do that!  wink

I usually think in terms of anonymous closures rather than formal function definitions, so that possibility actually slipped my mind. Apologies!

yikes

Offline

 

#3558 2011-08-22 14:28:32

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Hey, bharvey. How are you recovering?  big_smile

Offline

 

#3559 2011-08-22 15:51:47

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

Re: BYOB 3 - Discussion Thread

ProgrammingFreak wrote:

Hey, bharvey. How are you recovering?

Thanks for asking.  The original intestinal problem is all better, and if all goes according to plan, tomorrow the surgeon will declare my surgery wound healed so I can vaccuum my floor again.  smile


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

Offline

 

#3560 2011-08-23 04:33:18

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

Re: BYOB 3 - Discussion Thread

Snap! update

in our nasciturus prototype we're now starting to experiment with variables:

http://chirp.scratchr.org/dl/experimental/JsMorphic/sprite_vars.png

Enjoy!


Jens Mönig

Offline

 

#3561 2011-08-23 04:35:54

WindowsExplorer
Scratcher
Registered: 2011-02-25
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Cool! Looks like 2.0 came out earily!


http://i.imgur.com/H6LLdnK.pnghttp://i.imgur.com/VYuD7BY.png

Offline

 

#3562 2011-08-23 08:28:47

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

Re: BYOB 3 - Discussion Thread

@Jens :
Your SNAP works perfectly well, see my :
http://www.xleroy.net/ByobTuto/New/squarespiral.gif

To fill values in BLUE instructions is still tricky (I am using Firefox)

Offline

 

#3563 2011-08-23 09:14:38

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: BYOB 3 - Discussion Thread

xly wrote:

@Jens :
Your SNAP works perfectly well, see my :
http://www.xleroy.net/ByobTuto/New/squarespiral.gif

To fill values in BLUE instructions is still tricky (I am using Firefox)

Why couldn't you do
[blocks]
<go to x sad  -50 )y sad  150
[/blocks]
?
Also, you know how to make the hyperlinks in BBCode? It saves a couple seconds for readers. xP
Why is "if" in green like that?
And just to say, FF5 is better.  big_smile

Jens, when do you think stop all can have the stop sign on it?  tongue

The variable is a little too long. Yeah, I'm referring to the empty space at the end.

In the http://wiki.scratch.mit.edu/images/Set_Pen_Color_to_%28%29_%28color-picker%29.png block, is it supposed to update the color when the mouse is up?

Offline

 

#3564 2011-08-23 09:33:06

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

Re: BYOB 3 - Discussion Thread

Thanks, Xavier, and scimonster for your testing and feedback! I love the squiral example and keep a similar running in a forever loop on my desktop all day.  smile

Which version of Firefox are you currently using? (v.6 or even beta 7 should be pretty fast and also less memory intensive). Yeah, I need to decrease the minimum width for reporter blocks, so short ones don't have a lot of empty space. Icons for the stop block and for the turn blocks are also on my list, but they're easy to do, so I'll concentrate on more hard stuff for now (script variables are next).

Thanks again!


Jens Mönig

Offline

 

#3565 2011-08-23 09:55:23

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Ooh, script variables!  big_smile
There's V6? I knew I should update.

Offline

 

#3566 2011-08-23 13:31:52

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

Re: BYOB 3 - Discussion Thread

@Jens
i was still Firefox 3.1 (because I liked the portable version). I've now moved to 7.0.
Much cleaner for Snap, and probably much quicker I shall test that deeper.

Offline

 

#3567 2011-08-23 14:03:55

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

ProgrammingFreak wrote:

Hey, bharvey. How are you recovering?

Thanks for asking.  The original intestinal problem is all better, and if all goes according to plan, tomorrow the surgeon will declare my surgery wound healed so I can vaccuum my floor again.  smile

Thats great!  big_smile  I'm glad to here that you're getting better.  smile

Offline

 

#3568 2011-08-23 15:10:37

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

Re: BYOB 3 - Discussion Thread

@Jens
Effectively, for this squarespiral example Snap is 2,5 times faster than Byob 3.1 !!
Good news.

Offline

 

#3569 2011-08-23 15:33:23

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

Re: BYOB 3 - Discussion Thread

@ Jens
see also : http://www.xleroy.net/ByobTuto/New/oneliner01.gif
I like the blue halo around the script in progress !

Offline

 

#3570 2011-08-23 15:40:41

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

Re: BYOB 3 - Discussion Thread

Hi Xavier,
I'm very glad that you're now experiencing better performance with the new prototype, as Brian keeps pointing out, that's the main reason for the reimplementation. The HTML5 canvas API is still very new and there have been spectacular performance gains in almost all recent browser versions. This makes me confident that BYOB will be alright in JavaScript, even though Squeak technically is (much) faster.


Jens Mönig

Offline

 

#3571 2011-08-23 23:08:28

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

Re: BYOB 3 - Discussion Thread

Jens wrote:

The HTML5 canvas API is still very new and there have been spectacular performance gains in almost all recent browser versions. This makes me confident that BYOB will be alright in JavaScript, even though Squeak technically is (much) faster.

... which makes me nervous, because the performance I care about has nothing to do with graphics rendering, but with CPU-heavy function crunching.


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

Offline

 

#3572 2011-08-24 12:53:06

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

Re: BYOB 3 - Discussion Thread

@bharvey&Jens
See this example : http://www.xleroy.net/ByobTuto/New/geometricspiral.gif
This applications takes 4mn 50 with Byob and 1 mn 09 with Snap. It is a significant progress. But anyway nothing to compare with tremendously fast XLogo interpreter written in js. See 3D examples at :
http://xlogo.tuxfamily.org/fr/html/examples-fr/3d.html
(each example can be run - see for example "eponge de Menger" )

Offline

 

#3573 2011-08-24 16:41:24

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

Re: BYOB 3 - Discussion Thread

(....) Anyway I would not exchange my Byob 3.1 or Snap for any other programming language.

Offline

 

#3574 2011-08-24 17:14:31

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

Re: BYOB 3 - Discussion Thread

Hi Xavier, Snap will get much faster in its atomic blocks. For a preview you can open an inspector on the Sprite in the web prototype (right-click on the pointer thing, select "a Sprite Morph" and then "inspect", and type the following JS code into the evaluation pane (at the bottom):

   this.startWarp();
   this.down();
   this.tree(12, 120, 20);
   this.endWarp();

then select all (ctrl-a), right-click on the selection and choose "do it". This will draw a LOGO tree with 12 iterations, and pretty fast, too. It is about the speed which atomic blocks will have in Snap, if we decide on "brutal atomicity" (which is yet a matter of experiment and debate)...


Jens Mönig

Offline

 

#3575 2011-08-24 18:49:05

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

Re: BYOB 3 - Discussion Thread

@Jens - "Nascituri te salutant"
I've tested your "tree" as mentioned above.
Wouahh !!! That makes a change.

After that I have used the following function to make time comparisons:

SET CONT 1
SET TURN 30
REPEAT TURN *360
[MOVE 1 STEP
TURN 1500/CONT
CHANGE CONT BY 1]

The results !!!
Byob Without Turbo Mode = 290 s
Snap = 100 s
Byob +Turbo Mode = 8 s

No comment !
I guess that your "tree" also uses something similar to turbo mode (atomic).

Offline

 

Board footer