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

#3526 2011-08-02 19:05:15

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

Re: BYOB 3 - Discussion Thread

nXIII wrote:

inject <start> as <value ^> into <list> using values <v ^ ...> <reporter>
script variables <i>
set <value> to <start>
set <i> to <0>
repeat <length of <v> > [
    change <i> by <1>
    replace item <i> of <v> with <item <1> of <list> >
]
set <i> to <0>
repeat <<length of <list>> - <length of <v> > > [
    change <i> by <1>
    delete <1> of <v>
    add <item <i> of <list> > to <v>
    set <value> to <call <reporter> >
]

Hmm.  First of all, I don't see why you'd ever want any number of variables other than two in this situation.  But, more important, I don't understand the semantics of your feature.  What exactly are the elements of V?  Names of variables?  Variable getter blocks?  Values of variables?  And you seem to be losing the variable names and replacing them with values from the list.

VARS {a} {b} {c} [
    SET <a> TO 1
    SET <b> TO 2
    SET <c> TO 3
    INSPECT CONTEXT
]

Is this piece of code supposed to be part of the debugger?  A call to the debugger?  And what are A, B, and C?  Do they already exist, or are you creating them here?

P.S.  How did you get consecutive close brokets not to incite the Scratch blocks misfeature without spaces between them?

Last edited by bharvey (2011-08-02 19:12:34)


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

Offline

 

#3527 2011-08-03 21:10:25

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

Re: BYOB 3 - Discussion Thread

Will there be an easier way to access the source code in future versions of BYOB? I would love that, because the elements editor is just not enough, and I can't get the workaround with the Preferences enableProgrammerFacilities thing to work  sad


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

Offline

 

#3528 2011-08-04 00:16:46

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

Re: BYOB 3 - Discussion Thread

Sidharth wrote:

Will there be an easier way to access the source code in future versions of BYOB?

In the BYOB folder is a file called "BYOB Development" (with extension .sh or .bat depending on your OS).  Just double-click it.

As from 4.0, the source code is Javascript and will be provided as plain text files.


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

Offline

 

#3529 2011-08-04 01:15:12

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Sidharth wrote:

Will there be an easier way to access the source code in future versions of BYOB?

In the BYOB folder is a file called "BYOB Development" (with extension .sh or .bat depending on your OS).  Just double-click it.

As from 4.0, the source code is Javascript and will be provided as plain text files.

Thanks! That really helps  big_smile


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

Offline

 

#3530 2011-08-09 00:31:12

14God
Scratcher
Registered: 2008-11-14
Posts: 100+

Re: BYOB 3 - Discussion Thread

Warning Stagnation Detected, Applying Bump Is 3... 2... 1...
wink


http://cs.berkeley.edu/~bh/sig4.png
Logic and reason have led me to atheism... but I'm stuck with the name  tongue

Offline

 

#3531 2011-08-10 20:07:39

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

Re: BYOB 3 - Discussion Thread

Snap! update

Folks, as you know we've been pretty busy getting started with the next version of BYOB. It will be a complete re-write entirely in JavaScript and HTML5, and it will be renamed to "Snap!". I'm very pleased to announce that as of yesterday we have the beginnings of a very first experimental interactive version up and running in the web browser. Don't expect much, as of right now it's basically a bunch of simple blocks that can be applied to a single LOGO turtle-like sprite thing, not more than a proof of concept, really. But hey, we're finally starting to get something Scratch-like right in our web-browsers.

Here's a screenshot that'll take you to our "nasciturus" (=unborn, pre-pre-pre-alpha) prototype:

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

Enjoy!


Jens Mönig

Offline

 

#3532 2011-08-10 20:32:40

adriangl
Scratcher
Registered: 2007-07-02
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Jens wrote:

Snap! update

Folks, as you know we've been pretty busy getting started with the next version of BYOB. It will be a complete re-write entirely in JavaScript and HTML5, and it will be renamed to "Snap!". I'm very pleased to announce that as of yesterday we have the beginnings of a very first experimental interactive version up and running in the web browser. Don't expect much, as of right now it's basically a bunch of simple blocks that can be applied to a single LOGO turtle-like sprite thing, not more than a proof of concept, really. But hey, we're finally starting to get something Scratch-like right in our web-browsers.

Here's a screenshot that'll take you to our "nasciturus" (=unborn, pre-pre-pre-alpha) prototype:

http://chirp.scratchr.org/dl/experiment … iturus.png

Enjoy!

...Wow! That looks awesome!


Scratchin' since 2007

Offline

 

#3533 2011-08-11 04:14:19

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

Re: BYOB 3 - Discussion Thread

Cool!

Offline

 

#3534 2011-08-11 06:10:47

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: BYOB 3 - Discussion Thread

awesome, but it is very slow!


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&amp;display=small

Offline

 

#3535 2011-08-11 07:05:06

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: BYOB 3 - Discussion Thread

i have another idea for first classness: first class pictures. there would be blocks like:
(picture of costume ())
((picture input) rotated () degrees cw)
(screen region of rectangle x:() y:() to x:() y:())
([colour picker] < (left and right arrows) > with width() and height())
((picture input) scaled by ())
|add costume (picture input) with name()at ()th in costume list|
|delete costume()|
|stamp (picture input)|
and there should also be first class colours with panther blocks and also a CYOB function

Last edited by joefarebrother (2011-08-11 07:06:17)


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#3536 2011-08-11 11:11:32

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

Re: BYOB 3 - Discussion Thread

SO cool.  big_smile   big_smile   big_smile

Offline

 

#3537 2011-08-11 12:42:13

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

Re: BYOB 3 - Discussion Thread

joefarebrother wrote:

i have another idea for first classness: first class pictures. there would be blocks like:
(picture of costume ())
((picture input) rotated () degrees cw)
...

We definitely plan on first class costumes, probably in 4.1.  (No major new features in 4.0; it'll be all we can do to recreate the old features!)  I'm not sure it's necessary to have another level of abstraction to distinguish a costume from its picture; I know that costumes have other attributes but still I'm leaning toward an interface in which a costume just is its picture, so ITEM (#) OF (costume) returns a row of pixels, and ITEM of that returns a single pixel.  But maybe not; some days I think you should say

[[ATTRIBUTE (BITMAP)] OF (costume)]

Picture modification blocks such as your ROTATED example should be able to be written in Snap!!  [The first one is part of its name.  smile ]  If you have access to the individual pixels, and if we make the evaluator fast enough, you can do all that sort of algorithm yourself, which is not only more elegant (we don't want the Snap! palette to look like the Photoshop palette) but more of a learning experience.  (And of course people will publish libraries of such blocks.)

P.S.  On the third hand, someday we should move to representing pictures as vectors and splines!

Last edited by bharvey (2011-08-11 15:01:20)


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

Offline

 

#3538 2011-08-12 11:30:56

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Jens wrote:

Snap! update

Folks, as you know we've been pretty busy getting started with the next version of BYOB. It will be a complete re-write entirely in JavaScript and HTML5, and it will be renamed to "Snap!". I'm very pleased to announce that as of yesterday we have the beginnings of a very first experimental interactive version up and running in the web browser. Don't expect much, as of right now it's basically a bunch of simple blocks that can be applied to a single LOGO turtle-like sprite thing, not more than a proof of concept, really. But hey, we're finally starting to get something Scratch-like right in our web-browsers.

Here's a screenshot that'll take you to our "nasciturus" (=unborn, pre-pre-pre-alpha) prototype:

http://chirp.scratchr.org/dl/experiment … iturus.png

Enjoy!

Amazing.
So, when will hat blocks come?


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#3539 2011-08-16 01:08:43

14God
Scratcher
Registered: 2008-11-14
Posts: 100+

Re: BYOB 3 - Discussion Thread

This is getting exciting like it was when you started releasing the first class sprites and inheritance beta.


http://cs.berkeley.edu/~bh/sig4.png
Logic and reason have led me to atheism... but I'm stuck with the name  tongue

Offline

 

#3540 2011-08-20 21:12:33

14God
Scratcher
Registered: 2008-11-14
Posts: 100+

Re: BYOB 3 - Discussion Thread

Bump


http://cs.berkeley.edu/~bh/sig4.png
Logic and reason have led me to atheism... but I'm stuck with the name  tongue

Offline

 

#3541 2011-08-20 23:36:09

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

Re: BYOB 3 - Discussion Thread

14God wrote:

Bump

It's not the end of the world if we're off the front page for a while.   smile

Don't worry, we'll have plenty of traffic when 4.0 comes out!


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

Offline

 

#3542 2011-08-21 06:05:21

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

Re: BYOB 3 - Discussion Thread

@ Jens & bharvey

Repeat 1000
Congratulations
Again,again

See my first Snap application to :
http://www.xleroy.net/ByobTuto/New/MyFirstSnap.png

Offline

 

#3543 2011-08-21 07:05:44

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

Re: BYOB 3 - Discussion Thread

a question-is there a way to store the block [say var] in the memory, so it will say what var is at the save time, and not at run time?

Offline

 

#3544 2011-08-21 10:10:14

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

Re: BYOB 3 - Discussion Thread

@Jens

I'm starting to play with Snap.
It works finely. The blocks stick perfectly together.
One can start to play writing logo-like turtle applications.
For the time being you have succeeded to make the proof of YOUR concept.
At this stage the speed is roughly equivalent to Byob.

Good luck !!

Offline

 

#3545 2011-08-21 11:14:38

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

Re: BYOB 3 - Discussion Thread

roijac wrote:

a question-is there a way to store the block [say var] in the memory, so it will say what var is at the save time, and not at run time?

SAY-REMEMBERED (what-to-say)
    REPORT [THE SCRIPT
                          SAY (what-to-say)]

To remember a value:
    SET (sayer) TO [SAY-REMEMBERED (var)]

To say the remembered value:
    RUN (sayer)

Was that what you wanted?


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

Offline

 

#3546 2011-08-21 11:18:04

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

Re: BYOB 3 - Discussion Thread

xly wrote:

@ Jens & bharvey
Congratulations

All Jens, of course.  smile


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

Offline

 

#3547 2011-08-21 12:14:28

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

roijac wrote:

a question-is there a way to store the block [say var] in the memory, so it will say what var is at the save time, and not at run time?

SAY-REMEMBERED (what-to-say)
    REPORT [THE SCRIPT
                          SAY (what-to-say)]

To remember a value:
    SET (sayer) TO [SAY-REMEMBERED (var)]

To say the remembered value:
    RUN (sayer)

Was that what you wanted?

Thanks for the info, but this isn't what I meant to  hmm
I meant such a script:
http://i.imgur.com/4IH3y.gif
it should say "Hello", and not "Don't say that"

Offline

 

#3548 2011-08-21 17:33:39

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

Re: BYOB 3 - Discussion Thread

roijac wrote:

I meant such a script:

Ah, I see what you want.  But we carefully built THE BLOCK so that when you click on the right arrow it doesn't say THE BLOCK WITH INPUTS... but rather

THE BLOCK.  INPUT NAMES: ...

The key word here is names.  When you make a block, you don't say what values its inputs should have, just what their names are.  They get values when you call the block.  So, to provide an input value, you have to be calling something:

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

Then you can change the value of (say what) and it won't affect the remembered block, which you run with RUN (FOO).


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

Offline

 

#3549 2011-08-21 21:52:58

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

Re: BYOB 3 - Discussion Thread

roijac wrote:

...

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


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

Offline

 

#3550 2011-08-21 22:43:53

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

Re: BYOB 3 - Discussion Thread

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


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

Offline

 

Board footer