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

#6051 2012-10-04 11:49:58

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

Re: BYOB 3 - Discussion Thread

xly wrote:

This list-of-list can be modified modify and then reloaded with DEFINE, and you get a new block with the same name

Yes.  You have to DEFINE again.  I thought maybe you were suggesting that a change to the list would automatically be reflected in the procedure.

But in any case, all Logo procedures are global, and they're dynamically scoped, so they're not a precise analog to Snap! scripts.


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

Offline

 

#6052 2012-10-04 11:52:31

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

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

How about a list-of-list structure of lambdas?

That's pretty clearly going to be the external representation of the text of a script.  Alas, the cost of having a visual language is that it's not the internal representation, so we have to invent conversion functions to get self-reflective code.


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

Offline

 

#6053 2012-10-04 12:15:12

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Hardmath123 wrote:

How about a list-of-list structure of lambdas?

That's pretty clearly going to be the external representation of the text of a script.  Alas, the cost of having a visual language is that it's not the internal representation, so we have to invent conversion functions to get self-reflective code.

Is it just me, or are your posts steady increasing in concentration of words I don't grok?  tongue  I'm gonna puzzle over that one during the bio test tomorrow.


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

Offline

 

#6054 2012-10-04 12:18:11

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

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

words I don't grok?  tongue

Sorry.  "Self-reflective" means that there is a means in the language for manipulating programs in the language, e.g., inspecting the instructions in a script.

As for dynamic and lexical scope, search for them in the earlier messages in this thread.  smile


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

Offline

 

#6055 2012-10-04 13:08:59

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

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

Scripts aren't mutable (yet), right?

Well you can't mutate the script itself, but a script can mutate it's own lexical environment.


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

 

#6056 2012-10-04 13:31:22

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

Re: BYOB 3 - Discussion Thread

@bharvey
"But in any case, all Logo procedures are global, and they're dynamically scoped, so they're not a precise analog to Snap! scripts."

My contribution was certainly "off-topic". Incidentally my layman point-of-view.  is that the form of a Logo procedure defined as a list-of-list has some similarities with a Java definition of a Class : name + variables list + constructor.

Offline

 

#6057 2012-10-04 21:01:39

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Hardmath123 wrote:

words I don't grok?  tongue

Sorry.  "Self-reflective" means that there is a means in the language for manipulating programs in the language, e.g., inspecting the instructions in a script.

As for dynamic and lexical scope, search for them in the earlier messages in this thread.  smile

No problem, and thanks.  smile


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

Offline

 

#6058 2012-10-04 22:06:12

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Hardmath123 wrote:

How about a list-of-list structure of lambdas?

That's pretty clearly going to be the external representation of the text of a script.  Alas, the cost of having a visual language is that it's not the internal representation, so we have to invent conversion functions to get self-reflective code.

What about making ITEM OF polymorphic? ITEM n OF a stack would return the nth block in that stack and ITEM n OF a block would return its n-1th argument for n > 1 and the block's prototype for n = 1.


nXIII

Offline

 

#6059 2012-10-05 01:42:51

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

Re: BYOB 3 - Discussion Thread

nXIII wrote:

What about making ITEM OF polymorphic?

Ah, I see, so you don't have to do an explicit conversion to list form.  Interesting.  I want a polymorphic ITEM OF anyway, for bitmaps.


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

Offline

 

#6060 2012-10-08 16:14:40

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

nXIII wrote:

What about making ITEM OF polymorphic?

Ah, I see, so you don't have to do an explicit conversion to list form.  Interesting.  I want a polymorphic ITEM OF anyway, for bitmaps.

And if ITEM OF was also polymorphic to deal with strings so it is a synonym for LETTER OF then that would be even better.


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

 

#6061 2012-10-08 16:47:35

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: BYOB 3 - Discussion Thread

joefarebrother wrote:

bharvey wrote:

nXIII wrote:

What about making ITEM OF polymorphic?

Ah, I see, so you don't have to do an explicit conversion to list form.  Interesting.  I want a polymorphic ITEM OF anyway, for bitmaps.

And if ITEM OF was also polymorphic to deal with strings so it is a synonym for LETTER OF then that would be even better.

Alternatively, it could treat strings like sentences.


nXIII

Offline

 

#6062 2012-10-08 17:23:43

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Re: BYOB 3 - Discussion Thread

How hard was it to create the online player?


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#6063 2012-10-08 21:54:42

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

Re: BYOB 3 - Discussion Thread

nXIII wrote:

Alternatively, it could treat strings like sentences.

To me this is a reason not to have ITEM OF work on strings, but instead to provide both LETTER OF and WORD OF reporters.  ITEM OF is ambiguous for a string.


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

Offline

 

#6064 2012-10-09 00:24:52

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

Re: BYOB 3 - Discussion Thread

funelephant wrote:

How hard was it to create the online player?

Are you asking about Scratch, BYOB, or Snap!?


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

Offline

 

#6065 2012-10-09 02:37:04

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

funelephant wrote:

How hard was it to create the online player?

Are you asking about Scratch, BYOB, or Snap!?

Or JSScratch or sb2.js?


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

Offline

 

#6066 2012-10-10 17:30:59

Caviac12
New Scratcher
Registered: 2012-10-10
Posts: 1

Re: BYOB 3 - Discussion Thread

I have a very quick, stupid question, but I haven't been able to find an answer anywhere and couldn't find a way just by searching the program. How do I play my game outside of the program?

Offline

 

#6067 2012-10-10 18:25:14

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

Re: BYOB 3 - Discussion Thread

Caviac12 wrote:

I have a very quick, stupid question, but I haven't been able to find an answer anywhere and couldn't find a way just by searching the program. How do I play my game outside of the program?

In BYOB, you mean?  There's a "Compile this project" option in the Share menu that will make a standalone executable.  (It actually still contains all of BYOB, but when run it starts with your project loaded in presentation mode.)


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

Offline

 

#6068 2012-10-11 02:13:50

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Caviac12 wrote:

I have a very quick, stupid question, but I haven't been able to find an answer anywhere and couldn't find a way just by searching the program. How do I play my game outside of the program?

In BYOB, you mean?  There's a "Compile this project" option in the Share menu that will make a standalone executable.  (It actually still contains all of BYOB, but when run it starts with your project loaded in presentation mode.)

It doesn't see, to work for me.


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

 

#6069 2012-10-11 02:16:29

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: BYOB 3 - Discussion Thread

I made a page on the Scratch Wiki a while ago. The best way to do it is to use ToJar.


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#6070 2012-10-11 22:07:04

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

Re: BYOB 3 - Discussion Thread

joefarebrother wrote:

It doesn't see, to work for me.

What OS?  And how does it fail?


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

Offline

 

#6071 2012-10-12 15:04:27

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

joefarebrother wrote:

It doesn't see, to work for me.

What OS?  And how does it fail?

Windows 7.

It doesn't seem to do anything, it just opens 2 command line consoles for a few seconds, then closes them, then opens my 'My Documents' folder in windows explorer. I can't find any new files that might be the compiled copy.

Last edited by joefarebrother (2012-10-15 15:52:09)


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

 

#6072 2012-10-15 14:52:34

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

Re: BYOB 3 - Discussion Thread

Folks, I've just completed the full German localization for Snap! (along with translated drop-down options and other previously missing strings). Except for the About-Dialog everything should now be localized and still working. While I'm writing up instructions on how to contribute translations for LTR languages I'd appreciate some rigorous testing  smile

Thanks!


Jens Mönig

Offline

 

#6073 2012-10-15 15:00:02

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Jens wrote:

Folks, I've just completed the full German localization for Snap! (along with translated drop-down options and other previously missing strings). Except for the About-Dialog everything should now be localized and still working. While I'm writing up instructions on how to contribute translations for LTR languages I'd appreciate some rigorous testing  smile

Thanks!

when deleting a custom block the dialogue text is in English...


http://i.imgur.com/1QqnHxQ.png

Offline

 

#6074 2012-10-15 15:47:28

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: BYOB 3 - Discussion Thread

A number of unrelated bug reports:



Preferences: The "Clicking sound" preference shows the state of the "Input sliders" preference.



UX: Clicking past the end of a line in an editable TextMorph should place the insertion point at the end of that line, not the beginning of the next one; sometimes it is even a few characters into the line:

http://i48.tinypic.com/29pzp06.jpg



UX: Scrollbars and buttons should regain their "active" state rather than their "hover" state when:
1) the mouse is pressed on a button
2) the mouse leaves the button's bounds
3) the mouse reenters the button's bounds



UX: Dialogs should not be draggable by their buttons.



UX: Input slots should be deselected when they are blurred:

http://i50.tinypic.com/24cgjlj.jpg



Evaluator: When errors are thrown, threads do not stop and use up the full atomic execution time every frame.



Editor: Dragging a reporter block onto a ring to replace it deletes the ring and does not put it back in the editor.



UX: Dialog shadows should not be identical to drag-and-drop shadows.



Blocks: Pop down inputs are not correctly autosized in the palette:

http://i45.tinypic.com/wrjkb4.jpg



UX: The palette should reset to motion when a new project is created.



Blocks: The boolean ring should either:
- not allow drops of non-boolean reporters; or
- reshape when a non-boolean reporter is dropped on it



Evaluator: This makes no sense:

http://i48.tinypic.com/2qi5on6.jpg



Rendering: Empty speech bubbles' pointers go off the edge of their bubbles:

http://i47.tinypic.com/24pdxjs.jpg



Editor: This should not be possible:

http://i48.tinypic.com/lim2c.jpg



Evaluator: Evaluating this lags Snap a huge amount:

http://i49.tinypic.com/slqy4j.jpg

It should either throw an error or give an empty string.



Evaluator: I disagree:

http://i45.tinypic.com/34p1176.jpg



UX: Shift+arrow keys should not alter the anchor point in text editors.



Evaluator:

http://i48.tinypic.com/8wl0dx.jpg

NaN doesn't appear anywhere else, and:

http://i46.tinypic.com/24ll8o5.jpg

http://i50.tinypic.com/bgzo8k.jpg



Evaluator: We are not JavaScript.

http://i47.tinypic.com/29ngzyw.jpg

http://i47.tinypic.com/zufsed.jpg



Blocks:

http://i48.tinypic.com/2qs2wis.jpg



Blocks: Error-outlined blocks have weird shadows:

http://i47.tinypic.com/xpq3us.jpg



Blocks:

http://i45.tinypic.com/309j7fq.jpg

(Create a new block with spec "test" -> click label fragment -> click "Delete" -> click "OK")



Blocks: The default variable names in SCRIPT VARIABLES are not unique (i.e. they are "a" through "z" followed by an infinite stream of  "foo"s):

http://i45.tinypic.com/5xtad.jpg



UX: The bottom-right pixel of checkboxes should not be really light:

http://i48.tinypic.com/33ou0p1.jpg



Evaluator: This isn't necessarily a bug, but it's unintuitive:

http://i48.tinypic.com/sddwgn.jpg

changes "a" regardless of the order of the LAUNCH blocks.



Evaluator: This can hide bugs:

http://i50.tinypic.com/2csjvi9.jpg

Last edited by nXIII (2012-10-15 17:26:55)


nXIII

Offline

 

#6075 2012-10-15 18:24:16

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: BYOB 3 - Discussion Thread

@nXIII - 0.0


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

Board footer