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

#5676 2012-08-04 05:04:47

Randomno
Scratcher
Registered: 2012-06-04
Posts: 39

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

Right-click it and select "edit".  smile

Sorry, I mean the Squeak code. Is there one?


http://img209.imageshack.us/img209/5524/randomno.png
I do stuff with stuff. I also stuff stuff.

Offline

 

#5677 2012-08-04 06:41:12

BornAgainAtheist
New Scratcher
Registered: 2012-02-13
Posts: 42

Re: BYOB 3 - Discussion Thread

C# makes me miss BYOB so much. I still prototype a lot of my code in BYOB before translating it too other languages. If BYOB was fast and text based it would be the best language IMO. I think I should create a language that follows in the spirit of BYOB/Snap, maybe it can be trans-compiled to C. This is just an idea of course. BTW When is this discussion being moved to a Snap thread instead of BYOB thread  wink

Offline

 

#5678 2012-08-04 17:13:53

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

Re: BYOB 3 - Discussion Thread

Can morphic only run one world at a time? If that's the case, I feel really foolish, because it means that my Snap! embed project isn't viable.

Offline

 

#5679 2012-08-04 17:26:48

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

Re: BYOB 3 - Discussion Thread

Randomno wrote:

Sorry, I mean the Squeak code. Is there one?

Custom blocks are not translated to Squeak; they are interpreted directly from the block representation.  WYSIWYG, so to speak.  smile

You can see the Smalltalk code for primitive blocks by choosing "edit elements" from their right/control-click menus.  What you get is a block-representation version of the BYOB source code for that block.


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

Offline

 

#5680 2012-08-04 17:30:40

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

Re: BYOB 3 - Discussion Thread

BornAgainAtheist wrote:

If BYOB was fast and text based it would be the best language IMO.

There is a text-based BYOB; it's called Scheme.   smile   But, as for speed, Snap! is pretty amazingly fast for an interpreted language.  Worlds apart from BYOB speed.  Not the same as compiled code, true, but I never thought I'd see count-change run so fast that I had to put a WAIT block at the end of each screenful so that the user could see the results at all!

You've been awfully quiet lately btw!


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

Offline

 

#5681 2012-08-04 17:47:52

BornAgainAtheist
New Scratcher
Registered: 2012-02-13
Posts: 42

Re: BYOB 3 - Discussion Thread

bharvey wrote:

You've been awfully quiet lately btw!

My parents are expecting me to make a game in XNA, that has me busy, along with too much gaming and sleeping. School also had me busy while it was on. I plan on being more active on the forums, especially since I'm testing a lot of my ideas in BYOB or Snap! first.

Offline

 

#5682 2012-08-04 19:37:30

BornAgainAtheist
New Scratcher
Registered: 2012-02-13
Posts: 42

Re: BYOB 3 - Discussion Thread

Just found an interesting Snap! bug. You can place blocks in array expander arrows as if they were input slots. It even works for palette blocks which pass on these oddly nested blocks  big_smile

Offline

 

#5683 2012-08-04 19:50:20

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Isn't Snap about ready to have it's own thread? There hasn't been much discussion of BYOB in a long while.


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#5684 2012-08-04 20:11:55

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

Re: BYOB 3 - Discussion Thread

New thread= official release.

Offline

 

#5685 2012-08-04 20:25:43

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

Re: BYOB 3 - Discussion Thread

BornAgainAtheist wrote:

Just found an interesting Snap! bug. You can place blocks in array expander arrows as if they were input slots. It even works for palette blocks which pass on these oddly nested blocks

This is a feature, not a bug.  The expression you drop on the arrows should have a list as its value, and that list provides the inputs (one per item) to the variadic block.  It's instead of the WITH INPUT LIST option in the RUN/CALL pulldown slot in BYOB.

EDIT:  I'm not sure I really like this notation; it isn't very obvious, as seen in this conversation.  The BYOB version shows you a list-type input slot when you choose WITH INPUT LIST, and I think that helps.  But for now at least it works.   smile

Last edited by bharvey (2012-08-04 22:19:44)


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

Offline

 

#5686 2012-08-05 03:10:39

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

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

Can morphic only run one world at a time? If that's the case, I feel really foolish, because it means that my Snap! embed project isn't viable.

You can have as many Morphic worlds as you want in a single web page, without having to use iframes. Check out the Morphic programming guide (the long comment at the beginning of Morphic.js), there even is an example showing you how to set up multiple worlds.


Jens Mönig

Offline

 

#5687 2012-08-05 03:16:22

BornAgainAtheist
New Scratcher
Registered: 2012-02-13
Posts: 42

Re: BYOB 3 - Discussion Thread

bharvey wrote:

This is a feature, not a bug.  The expression you drop on the arrows should have a list as its value, and that list provides the inputs (one per item) to the variadic block.

Are you sure? https://sites.google.com/site/byobimages/_/rsrc/1344150781198/home/yousure/You_sure.png
It doesn't effect the return value of the first block and the first block does not expand to fit the new block so the new one is cut off. We may be talking about two different things.

Offline

 

#5688 2012-08-05 03:21:21

BornAgainAtheist
New Scratcher
Registered: 2012-02-13
Posts: 42

Re: BYOB 3 - Discussion Thread

* https://sites.google.com/site/byobimages/_/rsrc/1344150781198/home/yousure/You_sure.png

Offline

 

#5689 2012-08-05 03:32:38

BornAgainAtheist
New Scratcher
Registered: 2012-02-13
Posts: 42

Re: BYOB 3 - Discussion Thread

my url keeps getting cut off right before the 'ng'

Offline

 

#5690 2012-08-05 05:26:15

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

BornAgainAtheist wrote:

Just found an interesting Snap! bug. You can place blocks in array expander arrows as if they were input slots. It even works for palette blocks which pass on these oddly nested blocks

This is a feature, not a bug.  The expression you drop on the arrows should have a list as its value, and that list provides the inputs (one per item) to the variadic block.  It's instead of the WITH INPUT LIST option in the RUN/CALL pulldown slot in BYOB.

EDIT:  I'm not sure I really like this notation; it isn't very obvious, as seen in this conversation.  The BYOB version shows you a list-type input slot when you choose WITH INPUT LIST, and I think that helps.  But for now at least it works.   smile

Maybe it should add a special block called "items of ()" around the block you drag on to the input arrows to make it clear what you are doing. This special block cannot be dragged out and will automatically disappear if its input is dragged out.


Edit: it seems like his bug is that the block gets dropped onto one of the arrows, not both.

Last edited by joefarebrother (2012-08-05 06:53:00)


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

 

#5691 2012-08-05 11:57:06

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

Re: BYOB 3 - Discussion Thread

BornAgainAtheist wrote:

* https://sites.google.com/site/byobimages/_/rsrc/1344150781198/home/yousure/You_sure.png

Oh.  Yeah, that's a bug all right.  It took me a while to reproduce it because there's no drop halo -- I kept wiggling the second block around to try to make one appear.  And it happens (for me anyway) only if the outer block is LIST.


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

Offline

 

#5692 2012-08-05 17:49:54

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

Re: BYOB 3 - Discussion Thread

Jens wrote:

You can have as many Morphic worlds as you want in a single web page...

Awesome, and thank you. Would you mind if I made a minified version of Snap? It would remove the copyright comments, but I'd include the license.

Offline

 

#5693 2012-08-05 21:44:29

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

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

It would remove the copyright comments, but I'd include the license.

Why one but not the other?  I would understand if you were saying, for example, that this would be a presentation-mode-only version, and therefore no menu bar, and therefore no About box.  But if you can display the license notice, you can display the copyright notice!

Sorry to sound like a lawyer, but I'm worried that if we authorize a version without the copyright notice, that weakens our claims wrt everyone else in the world, too, and therefore threatens the enforceability of the AGPL.


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

Offline

 

#5694 2012-08-05 22:59:37

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Sorry to sound like a lawyer...

Not at all! To clarify, when you minify a JavaScript file, it compresses it by removing all spaces and comments for optimal loading time. In the case of Snap, it reduces the size by 30%. The license would still be displayed in Snap, just not in the comments of the JavaScript file.

Offline

 

#5695 2012-08-05 23:08:11

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

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

The license would still be displayed in Snap, just not in the comments of the JavaScript file.

Ah.  So, in order for that to work, the text of the copyright/license/about has to be preserved in oneJS file, right?  That should be okay, I think.

EDIT:  See http://programmers.stackexchange.com/qu … tice#45036 to see how to preserve the copyright notice and licence.

Last edited by bharvey (2012-08-06 01:48:29)


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

Offline

 

#5696 2012-08-06 08:32:37

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

Re: BYOB 3 - Discussion Thread

BornAgainAtheist wrote:

Just found an interesting Snap! bug. You can place blocks in array expander arrows as if they were input slots. It even works for palette blocks which pass on these oddly nested blocks  big_smile

Fixed! Thanks for the bug report, BornAgainAtheist.


Jens Mönig

Offline

 

#5697 2012-08-06 14:22:14

BornAgainAtheist
New Scratcher
Registered: 2012-02-13
Posts: 42

Re: BYOB 3 - Discussion Thread

So I've been busy for a while, so I've missed some stuff. Whats the current feature being worked on right now in Snap? I notice Snap seems to be getting faster  smile

Offline

 

#5698 2012-08-06 16:02:34

thebriculator
Scratcher
Registered: 2011-07-11
Posts: 500+

Re: BYOB 3 - Discussion Thread

shouldn't this topic now be called Snap! not BYOB 3?


.     http://tiny.cc/2cwgpw    http://tiny.cc/viwgpw    http://tiny.cc/iwwgpw

Offline

 

#5699 2012-08-07 03:38:23

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

Re: BYOB 3 - Discussion Thread

BornAgainAtheist wrote:

Whats the current feature being worked on right now in Snap?

Not just one big one.  Paint editor, music, bunches of little UI things.  Save to cloud might be the most important one.


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

Offline

 

#5700 2012-08-07 07:02:53

BornAgainAtheist
New Scratcher
Registered: 2012-02-13
Posts: 42

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Not just one big one.  Paint editor, music, bunches of little UI things.  Save to cloud might be the most important one.

Save projects to a cloud or vars and lists?

Offline

 

Board footer