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

#5851 2012-08-19 14:14:58

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

Re: BYOB 3 - Discussion Thread

Wow, thanks for that explanation Brian! Sorry if the time it took to write it detracted from your sight-seeing time.

I suppose that's why I enjoy scripting in JavaScript so much- I can take the structure of my code in any direction and have it work successfully... usually. And now I have an argument to back up my natural dislike of Java. The fact that "Hello World!" has to exist inside a class is... disgusting.  tongue  Thank goodness you and Jens have a CS miracle in the works, because all of the CS classes available at my school are centered around Java.

I can't wait to see what you and Jens come up with as far as translating Snap! code into plain JavaScript (that was a promised feature, wasn't it?)

Offline

 

#5852 2012-08-19 15:55:26

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

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

I can't wait to see what you and Jens come up with as far as translating Snap! code into plain JavaScript (that was a promised feature, wasn't it?)

The promised (eventual) feature is compilation into JS for speed, but there's no promise that it will be human-readable.  Probably it'll just be a lot of procedure calls; it won't look like JS code you'd want to emulate.  (This is typical of compilers -- they make ugly code.)

Jens gets mad when people want a translation of Snap! into some text-based language because they don't think it's "real code" otherwise.  Instead our (also eventual) goal is to implement a good model of self-reflection so that Snap! programs can analyze, trace, debug, and create other Snap! programs.

P.S.  You're very welcome.

Last edited by bharvey (2012-08-20 00:19:51)


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

Offline

 

#5853 2012-08-21 15:17:48

scspaeth
Scratcher
Registered: 2010-02-14
Posts: 20

Re: BYOB 3 - Discussion Thread

bharvey wrote:

shadow_7283 wrote:

I can't wait to see what you and Jens come up with ...

The promised (eventual) feature is compilation into JS for speed, but there's no promise that it will be human-readable.  ... 

... Instead our (also eventual) goal is to implement a good model of self-reflection so that Snap! programs can analyze, trace, debug, and create other Snap! programs.
...

Thank you for providing this overview of long-term goals. It helps to clarify the niche you are trying to fill.

Offline

 

#5854 2012-08-22 06:32:31

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

Re: BYOB 3 - Discussion Thread

GLITCH!!!

I was reading through blocks.js and realised that it doesn't check WHERE the attach point is in the script when you try to drop in a block, or whether or not there is a cap block in the script you are trying to drop. So I tried that. And it worked.  tongue

Last edited by joefarebrother (2012-08-22 06:37:06)


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

 

#5855 2012-08-22 07:41:44

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

Re: BYOB 3 - Discussion Thread

I can't see what's behind your link


Jens Mönig

Offline

 

#5856 2012-08-22 08:27:55

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

Re: BYOB 3 - Discussion Thread

I suppose he put a stack block below a cap block.


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

Offline

 

#5857 2012-08-22 08:31:53

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

Re: BYOB 3 - Discussion Thread

joefarebrother wrote:

GLITCH!!!

Apparently "data:" URLs don't work on the forums: not only do they automatically prepend "http://", thus breaking the link; they also seem to have cut off the end of it, making it invalid anyway.

Here, fixed.


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

Offline

 

#5858 2012-08-22 09:16:56

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

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

I suppose he put a stack block below a cap block.

I did. 3 times.

Last edited by joefarebrother (2012-08-22 09:18:03)


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

 

#5859 2012-08-22 14:27:46

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

Re: BYOB 3 - Discussion Thread

I also found ANOTHER way to break snap! whilst reading through block.js: Create more than 26 script variables  tongue


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

 

#5860 2012-08-22 14:31:59

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

Re: BYOB 3 - Discussion Thread

Okay guys, I don't get it. Can somebody please explain what they were getting as to what they were expecting, so I can fix it? Thx


Jens Mönig

Offline

 

#5861 2012-08-22 14:37:45

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

Re: BYOB 3 - Discussion Thread

joefarebrother wrote:

I also found ANOTHER way to break snap! whilst reading through block.js: Create more than 26 script variables  tongue

and how exactly does that break anything in Snap?


Jens Mönig

Offline

 

#5862 2012-08-22 14:39:57

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

Re: BYOB 3 - Discussion Thread

Jens wrote:

Okay guys, I don't get it. Can somebody please explain what they were getting as to what they were expecting, so I can fix it? Thx

take that:

if <>
  say [hello!]
  stop script
 
and that:
say [hello!]
stop script
 
now put the second between say and stop of the first script  tongue
you should not be able to do that...

Offline

 

#5863 2012-08-22 15:29:11

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

Re: BYOB 3 - Discussion Thread

I also found ANOTHER way to break snap! whilst reading through block.js: Create more than 26 script variables

I have a project with more than 26 Script variables, but I've split them amongst several SCRIPT VARIABLE blocks. It's more convenient and "readable" this way !!

Offline

 

#5864 2012-08-23 06:13:51

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

Re: BYOB 3 - Discussion Thread

If you put more than 26 on the same script variables block, it won't let you make any more.

And, if you do

if <>
say [hello!]
stop script
end
and
say [hello!]
stop script
and put them together, it is possible to do
if <>
say [hello!]
stop script
say [hello!]
stop script
end
and you shouldn't be able to do that.


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

 

#5865 2012-08-23 06:46:47

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

Re: BYOB 3 - Discussion Thread

Hey, gang,

It's great that people are finding these bugs before we declare an official release!  They're coming in too fast now for Jens to react one by one.  So, please start using http://byobugs.com and file them against the Snap! product.

Thanks!


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

Offline

 

#5866 2012-08-23 06:57:10

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Hey, gang,

It's great that people are finding these bugs before we declare an official release!  They're coming in too fast now for Jens to react one by one.  So, please start using http://byobugs.com and file them against the Snap! product.

Thanks!

Build Your Own Bugs? Bring You Own Bugs?  tongue


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

Offline

 

#5867 2012-08-23 13:07:03

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

Re: BYOB 3 - Discussion Thread

nathanprocks wrote:

Build Your Own Bugs? Bring You Own Bugs?  tongue

Bugs Yesterday, Onward Bug-free!


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

Offline

 

#5868 2012-08-23 20:13:12

MrFlash67
Scratcher
Registered: 2012-08-08
Posts: 500+

Re: BYOB 3 - Discussion Thread

The BYOB install contains Gobo graphics, which is against the Source Code License, which I assume that BYOB used to make it. Also, it is awesome!


Who would win, SOPA or PIPA?

Offline

 

#5869 2012-08-24 01:03:31

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

Re: BYOB 3 - Discussion Thread

MrFlash67 wrote:

The BYOB install contains Gobo graphics, which is against the Source Code License, which I assume that BYOB used to make it. Also, it is awesome!

Thanks!

About Gobo, he wasn't listed as unusable in the original license, which we followed carefully.  They added him when they abandoned that code base to work on 2.0.  We, too, are rewriting from scratch (as opposed to from Scratch  tongue ) but, anyway, we got permission to retain Gobo, especially because he's the basis of our mascot Alonzo.


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

Offline

 

#5870 2012-08-24 01:31:13

MrFlash67
Scratcher
Registered: 2012-08-08
Posts: 500+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

MrFlash67 wrote:

The BYOB install contains Gobo graphics, which is against the Source Code License, which I assume that BYOB used to make it. Also, it is awesome!

Thanks!

About Gobo, he wasn't listed as unusable in the original license, which we followed carefully.  They added him when they abandoned that code base to work on 2.0.  We, too, are rewriting from scratch (as opposed to from Scratch  tongue ) but, anyway, we got permission to retain Gobo, especially because he's the basis of our mascot Alonzo.

Ah, cool! Is there a BYOB Resources like http://resources.scratchr.org?
Edit log: Linked and removed complaint.

Last edited by MrFlash67 (2012-09-09 15:48:04)


Who would win, SOPA or PIPA?

Offline

 

#5871 2012-08-24 15:55:37

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

Re: BYOB 3 - Discussion Thread

So Jens, I know at some point in the distant future when you create a paint editor, you promised it'll include vector graphics. I've been doing some work in canvas with vectors recently, and it's SUPER slow compared to bitmaps. Do you have any black magic in mind to make it work?  tongue

Offline

 

#5872 2012-08-24 16:56:14

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

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

So Jens, I know at some point in the distant future when you create a paint editor, you promised it'll include vector graphics. I've been doing some work in canvas with vectors recently, and it's SUPER slow compared to bitmaps. Do you have any black magic in mind to make it work?  tongue

canvg?  tongue


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

Offline

 

#5873 2012-08-24 20:29:28

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

Re: BYOB 3 - Discussion Thread

I researched almost every SVG to canvas solution. None of them perform very well in a dynamic environment. Besides, Canvas vectors will work fine if they run quickly enough.

Offline

 

#5874 2012-08-25 01:37:48

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

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

None of them perform very well in a dynamic environment.

IANJ, but most likely we just put off vector graphics until the browsers catch up.  There are plenty of other missing features still!  smile


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

Offline

 

#5875 2012-08-25 17:36:27

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

Re: BYOB 3 - Discussion Thread

IANJ? (That's odd... the forums keep changing it to lowercase)

Last edited by shadow_7283 (2012-08-25 17:37:08)

Offline

 

Board footer