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

#5326 2012-06-01 14:38:07

coolhogs
Scratcher
Registered: 2011-07-26
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Can I use the BYOB feature in my mod? I will give credit.


Get ready for domination of:  tongue

Offline

 

#5327 2012-06-01 16:51:19

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

Re: BYOB 3 - Discussion Thread

coolhogs wrote:

Can I use the BYOB feature in my mod? I will give credit.

Yes, of course!  Thanks for asking.


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

Offline

 

#5328 2012-06-01 16:53:16

coolhogs
Scratcher
Registered: 2011-07-26
Posts: 1000+

Re: BYOB 3 - Discussion Thread

How?


Get ready for domination of:  tongue

Offline

 

#5329 2012-06-01 20:37:01

OldCodger
New Scratcher
Registered: 2012-05-16
Posts: 54

Re: BYOB 3 - Discussion Thread

In the BYOB Tools Image there is a command Cascade but I can't find any documention on it. Does it work the same way as Logo's Cascade?

Offline

 

#5330 2012-06-01 22:56:28

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

Re: BYOB 3 - Discussion Thread

coolhogs wrote:

How?

In the BYOB folder there's a script called BYOB Development.  If you run that, you can shift-click Edit and get to the Smalltalk code.


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

Offline

 

#5331 2012-06-01 22:57:37

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

Re: BYOB 3 - Discussion Thread

OldCodger wrote:

In the BYOB Tools Image there is a command Cascade but I can't find any documention on it. Does it work the same way as Logo's Cascade?

Yes, basically.  End test/repetition number, function, initial value.


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

Offline

 

#5332 2012-06-02 01:02:26

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Hardmath123 wrote:

I can package Snap! as a standalone Mac application, down to the icon and top menu bar.

Does this mean wrapping a .app folder around a browser, or do you have a standalone HTML5 canvas thingy?

It's basically embedding a webview onto the page, and controlling the JavaScript via WebKit APIs.

(which reminds me, you need a favicon urgently).  big_smile

http://snap.berkeley.edu/favicon.png

Hmm, maybe you could let others submit their ideas?

I'm using applicative-order evaluation, so it tries to evaluate the arguments to any expression before evaluating the expression. Unfortunately, in lambda you don't want the arguments evaluated. How would one go about that?

If you're using applicative order evaluation, then you need special forms -- expressions that are exceptions to the evaluation rule and effectively use normal order.  LAMBDA is one of these, along with IF, COND, DEFINE, SET!, LET, etc.

The explicit control evaluator builds each special form into the code explicitly, the way you don't like.  But this exercise hints about how to use a table of special form keywords ("lambda," etc.) instead.

If this isn't helpful, you'll have to tell me more about what your evaluator looks like overall.

Ah. So I do have to code a special form for lambda, I thought so.

I found out one big mistake I was making—I was first evaluating arguments, than the actual procedure. I should have been evaluating the procedure, and the procedure's evaluation script called "evaluate" recursively on arguments which need evaluation. Does that make sense?


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

Offline

 

#5333 2012-06-02 03:50:10

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

Re: BYOB 3 - Discussion Thread

That http block is awesome! I could even write a web browser in snap!! I had an idea to write one in panther, which is connected to mesh with a BYOB project where BYOB parses the html and panther connects to the internet and displays it, but now I can write one in snap!, no mesh required!


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

 

#5334 2012-06-02 06:46:24

whizzer
Scratcher
Registered: 2008-05-27
Posts: 500+

Re: BYOB 3 - Discussion Thread

http://scratch.mit.edu/forums/viewtopic.php?pid=1261579
^ an experiment using Snap4 Alpha.
Who think it would be a good idea to submit Snap as an app to the Chrome store?


http://i46.tinypic.com/33df6me.png I'm whizzer0 for all things Minecraft.

Offline

 

#5335 2012-06-02 08:58:56

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

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

It's basically embedding a webview onto the page, and controlling the JavaScript via WebKit APIs.

Hmm, well, sure, let's have a look.  I was hoping to get out of the business of maintaining N separate versions of code, but perhaps it has compensating qualities.  Or perhaps the same approach will work on other platforms.

Hmm, maybe you could let others submit their ideas?

You don't like it?   sad   Sure, by all means.

Ah. So I do have to code a special form for lambda, I thought so.

I found out one big mistake I was making—I was first evaluating arguments, than the actual procedure. I should have been evaluating the procedure, and the procedure's evaluation script called "evaluate" recursively on arguments which need evaluation. Does that make sense?

The first thing you do is look at the expression's first element, without evaluating it!  If it's a keyword "lambda" "define" "if" etc, then you go off and evaluate each kind of special form with its own rules.  No part of a lambda expression is evaluated, but (e.g.) IF immediately evaluates the second element, then decides whether to evaluate the third or the fourth, depending on the value of the second.  If that first element isn't a keyword, then you evaluate everything -- doesn't matter what order.

The value of a lambda expression is essentially (list exp env), combining the expression itself with the defining environment, but in practice it's usual to add a procedure type-tag to that, so you can't later confuse it with a user-generated list.


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

Offline

 

#5336 2012-06-02 09:01:24

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

Re: BYOB 3 - Discussion Thread

joefarebrother wrote:

That http block is awesome! I could even write a web browser in snap!! I had an idea to write one in panther, which is connected to mesh with a BYOB project where BYOB parses the html and panther connects to the internet and displays it, but now I can write one in snap!, no mesh required!

Parsing the HTML is a great project idea.  We're not quite at the point where you can actually write a complete browser, because first you need first-class costumes so that you can pull in a picture file and make that picture appear in a controlled region of the stage.  But I agree that when we're finished it should be possible.


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

Offline

 

#5337 2012-06-02 09:10:37

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

Re: BYOB 3 - Discussion Thread

whizzer wrote:

Who think it would be a good idea to submit Snap as an app to the Chrome store?

No, please, not in alpha.


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

Offline

 

#5338 2012-06-02 13:49:01

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

No, please, not in alpha.

Well you can't say Snap!'ers lack enthusiasm.  smile

Offline

 

#5339 2012-06-02 14:29:33

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

joefarebrother wrote:

That http block is awesome! I could even write a web browser in snap!! I had an idea to write one in panther, which is connected to mesh with a BYOB project where BYOB parses the html and panther connects to the internet and displays it, but now I can write one in snap!, no mesh required!

Parsing the HTML is a great project idea.  We're not quite at the point where you can actually write a complete browser, because first you need first-class costumes so that you can pull in a picture file and make that picture appear in a controlled region of the stage.  But I agree that when we're finished it should be possible.

good point. However, I could still write a web browser using a Panther/BYOB mesh connection, because there is a "get image from url ()" block in the block library for panther.


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

 

#5340 2012-06-02 14:44:47

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

bharvey wrote:

No, please, not in alpha.

Well you can't say Snap!'ers lack enthusiasm.  smile

The exclamation mark thing is really annoying me now.  tongue

Surely "Snappers!", anyway...?

Last edited by blob8108 (2012-06-02 14:45:13)


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#5341 2012-06-02 14:47:03

coolhogs
Scratcher
Registered: 2011-07-26
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Wait a minute, if you could submit Snap to the Apple Store...


Get ready for domination of:  tongue

Offline

 

#5342 2012-06-02 14:47:44

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: BYOB 3 - Discussion Thread

blob8108 wrote:

shadow_7283 wrote:

bharvey wrote:

No, please, not in alpha.

Well you can't say Snap!'ers lack enthusiasm.  smile

The exclamation mark thing is really annoying me now.  tongue

Surely "Snappers!", anyway...?

Snap!pers actually  smile


http://i.imgur.com/zeIZW.png

Offline

 

#5343 2012-06-02 14:53:30

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: BYOB 3 - Discussion Thread

rookwood101 wrote:

blob8108 wrote:

shadow_7283 wrote:


Well you can't say Snap!'ers lack enthusiasm.  smile

The exclamation mark thing is really annoying me now.  tongue

Surely "Snappers!", anyway...?

Snap!pers actually  smile

No! No! We can't have an exclamation mark in the middle of the word!  yikes


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#5344 2012-06-02 15:18:51

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

Re: BYOB 3 - Discussion Thread

Also if I want to ask a question about snap! it looks like:

blah blah blah snap!?

which makes it look like i'm surprised.


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

 

#5345 2012-06-02 15:19:14

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

Re: BYOB 3 - Discussion Thread

blob8108 wrote:

No! No! We can't have an exclamation mark in the middle of the word!  yikes

I understand that in the Latin-alphabet representation of some African languages the exclamation point is used to represent a clicking sound made with the tongue against the roof of the mouth.  It's just another letter.  tongue

P.S.  And by that convention, the name is onomotopoetic!  So there.

Last edited by bharvey (2012-06-02 15:25:31)


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

Offline

 

#5346 2012-06-02 15:21:09

slinger
Scratcher
Registered: 2011-06-21
Posts: 1000+

Re: BYOB 3 - Discussion Thread

coolhogs wrote:

Wait a minute, if you could submit Snap to the Apple Store...

and pay $99 to submit it...


http://s0.bcbits.com/img/buttons/bandcamp_130x27_blue.png

Offline

 

#5347 2012-06-02 15:22:46

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

Re: BYOB 3 - Discussion Thread

joefarebrother wrote:

However, I could still write a web browser using a Panther/BYOB mesh connection, because there is a "get image from url ()" block in the block library for panther.

Ah  What is the underlying primitive?  Or is it a written-in-Smalltalk block?  Eventually, when we have first-class costumes (which basically means first-class pictures) the HTTP block should return a costume if the URL has a picture-type extension.  Similarly for sounds, etc.


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

Offline

 

#5348 2012-06-02 15:27:57

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

Re: BYOB 3 - Discussion Thread

coolhogs wrote:

Wait a minute, if you could submit Snap to the Apple Store...

We're not submitting it to anyplace for quite a while now!  Cut it out, you guys, or you'll scare Jens into taking the alpha version off the net altogether.   sad


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

Offline

 

#5349 2012-06-02 15:35:10

coolhogs
Scratcher
Registered: 2011-07-26
Posts: 1000+

Re: BYOB 3 - Discussion Thread

I meant when it get's done.


Get ready for domination of:  tongue

Offline

 

#5350 2012-06-02 16:19:45

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

joefarebrother wrote:

However, I could still write a web browser using a Panther/BYOB mesh connection, because there is a "get image from url ()" block in the block library for panther.

Ah  What is the underlying primitive?  Or is it a written-in-Smalltalk block?

Yes, it's written in smalltalk.


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

 

Board footer