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

#3626 2011-09-02 20:00:38

webstermath
Scratcher
Registered: 2010-09-21
Posts: 10

Re: BYOB 3 - Discussion Thread

bharvey wrote:

webstermath wrote:

I am also thinking that with all you probably now have going, you might not have time to look over that design pattern project I emailed you about.

Oof, I'm sorry.  Right now it's the beginning of classes at Berkeley that has me frantic.  You're one of four people whose stuff I've promised to read.   I'll get to that list once the rush settles down.

No worries. I know you are extremely busy.

When you do have the time though, you may first want to check out my latest project:

Scratch Script

I do not know if you remember when we were talking and I suggested that recursion could be implemented in Scratch because it is Turing Complete.  Well, Scratch Script is an entire scripting language I built on top of Scratch that among other things allows for recursion.  Soon I hope to also implement first-class functions.

Enjoy.

Offline

 

#3627 2011-09-03 11:43:39

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

MSIE isn't worthy to be called a Microsoft product. Pay no attention to it.
And Chrome runs CSS3 and Canvas BEAUTIFULLY. I would know. I'm been developing a website, and Chrome runs it correctly 100% of the time, while Firefox has a few persistent and annoying errors. (By the way, it's called Techwiq)

On another note,

I managed to escape another year of learning Word 2007 at school (while practically teaching the class for a week)! I would have thought that high school would be a tad more advanced, but ah well.

are you kidding me ?
firefox is better on canvas and CSS3 then chrome because if its superior hardware acceleration ..

http://chats.ws/learning << see for yourself use of all html5 things and a few 4 aswell you will find out a lag on Chrome while firefox and even ie9 runs it lagless ..

chrome is like um best for netbooks but it fails to take the most out of a machine

so on a super old machine chrome might run faster then firefox

but on anything newer then Pentium 4 with even the least amount of GPU solutions Firefox and Internet Explorer (YES!) runs blazingly faster then Chrome

oh and by the way the bugs might be raised due to firefox's increased security setup restrictions .. for instance mozWebSocket instead of WebSocket

Last edited by fanofcena (2011-09-03 11:53:39)


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#3628 2011-09-03 12:11:53

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

Re: BYOB 3 - Discussion Thread

webstermath wrote:

Scratch Script

Wow.  That's cool.  Your technique for recursion reminds me of the time at the Logo lab when Radia Perlman made a turtle controller box for 3-year-olds that had big buttons with pictures for forward, right, etc. And you could attach a second box on top with numbers 1-10, and a third box on the left with buttons "start remembering," "stop remembering," "erase," and "do it" for programming.  (The idea of the detachable boxes was to do research on how much complexity kids of different very small ages could handle.)  And someone, Dave Silver I think, wrote a recursive program for this thing by standing the box on end and putting in a program that made the turtle back up, then come forward and ram the "do it" button!


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

Offline

 

#3629 2011-09-03 13:56:34

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

Re: BYOB 3 - Discussion Thread

fanofcena wrote:

firefox is better on canvas and CSS3 then chrome because if its superior hardware acceleration ..

Uh, no. Watch it and weep.

Offline

 

#3630 2011-09-03 17:02:34

webstermath
Scratcher
Registered: 2010-09-21
Posts: 10

Re: BYOB 3 - Discussion Thread

bharvey wrote:

webstermath wrote:

Scratch Script

Wow.  That's cool.  Your technique for recursion reminds me of the time at the Logo lab when Radia Perlman made a turtle controller box for 3-year-olds

Three years old, huh?  No I am actually quite flattered for my project to be compared with one of such CS luminaries.  The turtle being forced to ram itself for some reason brought Kafka's In der Strafkolonie to my mind...

Speaking of recursion, the progress of my project is becoming seriously recursive with no end to yak shaving.  I started with the intent to just build a collaboration friendly educational game engine, upon which Scratchers could build games that would compete with their proprietary capitalist counterparts.  From there I decided I needed to write a design pattern.  Now I am writing a full fledged language.  It also just occurred to me that maybe I should write an assembler for Scratch Script to optimize speed.

So is any up for writing Scratch Assembly?

By the way, I still need to work on convincing you and Jen to put Snap on Github.  It is like you have the One Ring and don't know it (not that I am calling you Hobbits).  I really think Snap could birth a era of accessible and social computer programming, especially when integrated with touch-screens, voice-recognition, motion-sensing input devices (Kinect), and radically cheap computers (Raspberry Pi).  I was recently talking to a Mozilla project manager and became even more convinced that if Snap came to their attention and the attention of the legendary John Resig (JQuery), these folks would willing use their super-powers to bend the very nature of the internet universe to allow an optimization of Snap to the point it could out-compete other text-based languages for serious applications, achieving total domination.     

Ok I will stop. :-)

Offline

 

#3631 2011-09-03 19:22:07

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

Re: BYOB 3 - Discussion Thread

webstermath wrote:

achieving total domination.

Total domination is good.

Just let us get a first version out and then we'll talk about inviting in the rest of the world.

(Now, if you could promise me Guy Steele, then I'd be tempted.  smile  )

PS I'm honored to be compared to a Hobbit!


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

Offline

 

#3632 2011-09-04 01:12:34

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: BYOB 3 - Discussion Thread

webstermath wrote:

So is any up for writing Scratch Assembly?

i tried to write scratch on C++ (so that is compiled on runtime but failed -.- it starting becomeing more of and IDE instead of a language)+ at that time i was too new with multithreading on C++ so it all became a fayul lol now i think i can restart it again  tongue

oh and talking about jQuery i already asked the snap team to port it to DOM instead of single canvas for a ton of optimization  tongue

Last edited by fanofcena (2011-09-04 01:14:40)


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#3633 2011-09-04 07:15:43

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

Re: BYOB 3 - Discussion Thread

John Resig has left Mozilla, but I certainly wouldn't mind his input  smile
As you have already noticed I'm not a huge fan of JQuery and DOM based apps, my heroes being Alan Kay, Dan Ingalls, John Maloney instead. See, there are already zillions of DOM based Scratch variants out there, even on Github. I believe that our task is to take the concept further and "lower", and build a more intuitive GUI. Rendering speed isn't the issue here, rather what happens in between display cycles and being in control of every pixel in the system.


Jens Mönig

Offline

 

#3634 2011-09-04 07:47:49

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

Re: BYOB 3 - Discussion Thread

Hey jens is there a way to export a list a s a .txt?

Last edited by slinger (2011-09-04 07:48:03)


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

Offline

 

#3635 2011-09-04 08:55:17

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

Re: BYOB 3 - Discussion Thread

I'm not Jens, but just right-click the display, and choose export  wink


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

Offline

 

#3636 2011-09-04 10:30:18

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

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

I'm not Jens, but just right-click the display, and choose export  wink

LOL i meant a block XD


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

Offline

 

#3637 2011-09-04 11:43:57

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

Re: BYOB 3 - Discussion Thread

slinger wrote:

i meant a block XD

Introspection (including export) is on the list for 4.1 or maybe 4.2.


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

Offline

 

#3638 2011-09-04 14:07:26

webstermath
Scratcher
Registered: 2010-09-21
Posts: 10

Re: BYOB 3 - Discussion Thread

Jens wrote:

John Resig has left Mozilla, but I certainly wouldn't mind his input  smile
As you have already noticed I'm not a huge fan of JQuery and DOM based apps, my heroes being Alan Kay, Dan Ingalls, John Maloney instead. See, there are already zillions of DOM based Scratch variants out there, even on Github. I believe that our task is to take the concept further and "lower", and build a more intuitive GUI. Rendering speed isn't the issue here, rather what happens in between display cycles and being in control of every pixel in the system.

I know. Resig went to Khan Academy.  One of the first things he did was build a highly intuitive semantic markup language to make it easier for the Khan Academy community to contribute exercises.  Someone asked him on his blog if a block-based language would be the next step.  He responded that he didn't think a block-based language would be expressive enough.  I am hoping to change his mind.

You know what you are doing though, Jens.  You have already done amazing work on BYOB and Snap.  As I am not too familiar with morphic, do you think Snap will catch up in speed to other HTML5 apps, both for deployment and execution? 

Endlich kann ich nur sagen, dass Snap echt geil ist.

Offline

 

#3639 2011-09-04 14:26:52

webstermath
Scratcher
Registered: 2010-09-21
Posts: 10

Re: BYOB 3 - Discussion Thread

fanofcena wrote:

webstermath wrote:

So is any up for writing Scratch Assembly?

i tried to write scratch on C++ (so that is compiled on runtime but failed -.- it starting becomeing more of and IDE instead of a language)+ at that time i was too new with multithreading on C++ so it all became a fayul lol now i think i can restart it again  tongue

oh and talking about jQuery i already asked the snap team to port it to DOM instead of single canvas for a ton of optimization  tongue

Cool. Scratch on C++ is quite an undertaking. 

My interest, though, is not to build Scratch on top of another language but to build languages on top of Scratch.  By building an assembly code, it should be possible to run the code of any language at optimal speed during run time once the code is compiled to the assembly language.  Right now, I am reading about bytecode, what Java compiles to.  Bytecode is interesting because it run on a virtual machine.  I wish to run code on Scratch in a way similar to how Java is run on a virtual machine.  Does this make sense?

If you want to help, that would be completely awesome.  big_smile

Offline

 

#3640 2011-09-05 09:19:55

Taneb
Scratcher
Registered: 2009-07-07
Posts: 100+

Re: BYOB 3 - Discussion Thread

I have, a while back, made a couple of interpreters in Scratch. They weren't much good, however, and could probably be improved. It isn't quite what you want, but it's getting there.

Offline

 

#3641 2011-09-06 06:45:12

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

fanofcena wrote:

firefox is better on canvas and CSS3 then chrome because if its superior hardware acceleration ..

Uh, no. Watch it and weep.

no comments.. to what i have seen chrome runs slower then firefox a lot  tongue  unless its web-gl based project

Last edited by fanofcena (2011-09-06 06:53:45)


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#3642 2011-09-06 06:54:46

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: BYOB 3 - Discussion Thread

webstermath wrote:

fanofcena wrote:

webstermath wrote:

So is any up for writing Scratch Assembly?

i tried to write scratch on C++ (so that is compiled on runtime but failed -.- it starting becomeing more of and IDE instead of a language)+ at that time i was too new with multithreading on C++ so it all became a fayul lol now i think i can restart it again  tongue

oh and talking about jQuery i already asked the snap team to port it to DOM instead of single canvas for a ton of optimization  tongue

Cool. Scratch on C++ is quite an undertaking. 

My interest, though, is not to build Scratch on top of another language but to build languages on top of Scratch.  By building an assembly code, it should be possible to run the code of any language at optimal speed during run time once the code is compiled to the assembly language.  Right now, I am reading about bytecode, what Java compiles to.  Bytecode is interesting because it run on a virtual machine.  I wish to run code on Scratch in a way similar to how Java is run on a virtual machine.  Does this make sense?

If you want to help, that would be completely awesome.  big_smile

I dont use Java .. i use script instead  sad  .. well i am writing a SCRATCH IDE for Server Side JavaScript inspired extremely from snap


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#3643 2011-09-06 18:06:48

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

Re: BYOB 3 - Discussion Thread

fanofcena wrote:

shadow_7283 wrote:

fanofcena wrote:

firefox is better on canvas and CSS3 then chrome because if its superior hardware acceleration ..

Uh, no. Watch it and weep.

no comments.. to what i have seen chrome runs slower then firefox a lot  tongue  unless its web-gl based project

Not for day-to-day web browsing. Plus, Chrome has better support for standards.

Offline

 

#3644 2011-09-07 06:49:37

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

Re: BYOB 3 - Discussion Thread

browser wars. 

Hey guys, let's keep the discussion in this thread related on BYOB/Snap! and skip bashing browsers, ok? We're trying very hard to make Snap! run and look the exact same on every current browser, and so far I'm confident that we're successful.

Besides, it really is extremely interesting so explore the people and concepts behind various browser implementations. To me, the most fascinating piece of software architecture is Google's V8 Javascript engine. If you dig a little bit into its who's who you'll discover that - surprise! - it all based on Smalltalk research. A couple of years ago there were two independent teams of geniusses working on optimizing Smalltalk, one being the SELF group around David Ungar, Urs Hölzle, Lars Bak (remember him, he's important) and also Scratch's John Maloney, and the other being the STRONGTALK group around Dave Griswold, Gilad Bracha et al. These two teams eventually joined and were aquired by SUN, where they finally got sucked up by JAVA.

So, I encourage y'all to google around for those projects and for the awesome people behind them and to learn something about VM optimization techniques. Another name you should look out for is Elliot Miranda, there are some fine talks he gave on optimizing Squeak on Youtube (note: method lookup is costly in OOP systems).

V8 is blazingly fast because it is architected by one of the gods of VM design - Lars Bak (yeah, the Smalltalk/SELF guy, told ya he's important). V8 doesn't compile to byte-code but directly to machine code, and it inline-caches the compilation results.

Firefox's JS engine explores another aspect of STRONGTALK's research, that of strong typing. Firefox makes extensive use of type inferencing to gain spectactular performance increases.

Thing is, both implementations are open source, as are the Smalltalk, SELF and STRONGTALK VMs. So, while there always is competition among them, there is also code-sharing and even collaboration involved. And that's precisely what I'd like y'all to learn to from this: Sharing promotes progress, "hiding" and "protecting" ideas sucks in the grand scheme of things.

Oh, and while we're at it: Part of our grant proposal is to implement inline-JIT-compilation for Snap! and to cache the results. Guess where we've got this idea from?  wink


Jens Mönig

Offline

 

#3645 2011-09-07 06:55:24

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

Re: BYOB 3 - Discussion Thread

What's inline-JIT-compilation?
Are you a Southerner, using "y'all"?  tongue

Offline

 

#3646 2011-09-07 08:10:46

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

Re: BYOB 3 - Discussion Thread

JIT means just-in-time, which means that we'll be compiling blocks as we need them to be compiled, not all at once. Inline means that we're not going to output a separate compiled file but that we'll do it within the evaluator.

Oh, and sure, I'm a German Southerner  smile

(actually I'm mimicking Brian who convinced me that the idiom is missing in the Queen's English)


Jens Mönig

Offline

 

#3647 2011-09-07 18:20:20

webstermath
Scratcher
Registered: 2010-09-21
Posts: 10

Re: BYOB 3 - Discussion Thread

Jens wrote:

Besides, it really is extremely interesting so explore the people and concepts behind various browser implementations.

Yes!  I have just been reading about these compilers to get ideas for the gianormous project I am about to announce to the Scratch community.  SpiderMonkey now also does JIT compilation.  Both V8 and SpiderMonkey are open-source and have great documentation.  I have found it interesting how both these engines started by generating bytecode and then moved on to compiling right to machine code.  Would it be possible (and worthwhile) to write an engine for Snap that generates Javascript for the IDE but skips the javascript engine for execution and goes right to machine code? 

BTW, one of my favorite commercials when I lived in Freiburg was a tourism ad for Baden-Württemberg in which some dude on a roller-coaster is explaining all the great things about Baden-Wuerttemberg in Badisch.  The comercial then ends with "Wir Koennen alles ausser Hochduetsch". :-)

Offline

 

#3648 2011-09-07 22:23:03

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

Re: BYOB 3 - Discussion Thread

Sorry Jens.

I guess I'm just passionate about technology, sometimes in a destructive way.

Offline

 

#3649 2011-09-08 00:41:49

knubee
New Scratcher
Registered: 2011-05-14
Posts: 12

Re: BYOB 3 - Discussion Thread

Is there a way to insert a carriage return between a join of two text strings?

Offline

 

#3650 2011-09-08 12:46:43

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

Re: BYOB 3 - Discussion Thread

knubee wrote:

Is there a way to insert a carriage return between a join of two text strings?

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


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

Offline

 

Board footer