News for hackers. Stuff that matters.
Re:Waterbear - a visual language for Javacript by nprincigalli on Friday May 06, 2011 @11:42AM (#2521256)
Might want to check MIT's OpenBlocks ( http://education.mit.edu/openblocks ), which is related to Scratch (listed as inspiration by Waterbear) and includes code from StarLogo (slcodeblocks) (also listed as inspiration) and is being refactored "to make the code more amenable to inclusion to other projects". One of the recent uses of OpenBlocks was Google's AppInventor.

Kudos to the Waterbear author! Loved to see it done with JS, HTML5 and CSS3. One less thing in my list of "things that I want to see in the world but may have to build it myself". Watching the repo already! :)

Re:Waterbear - a visual language for Javacript by snorkel on Friday May 06, 2011 @01:12PM (#2521613)
Cool editor UI works in FF 4 but Run does nothing, not even for the demo script.
Re:Waterbear - a visual language for Javacript by ericz on Friday May 06, 2011 @12:29PM (#2521432)
Try adding

     -webkit-user-select: none;
     -khtml-user-select: none;
     -moz-user-select: none;
     -o-user-select: none;
     user-select: none;
So text in the blocks can't be selected
Re:Waterbear - a visual language for Javacript by AshleysBrain on Friday May 06, 2011 @02:22PM (#2521914)
Shameless plug: my project is a visual programming language - which is actually seriously usable for real things - and exports to Javascript + HTML5 canvas: http://www.scirra.com/forum/viewtopic.php?f=35&t=8468 End shameless plug :)
Re:Waterbear - a visual language for Javacript by Sudarshan on Friday May 06, 2011 @11:04AM (#2521112)
Awesome this is just like http://scratch.mit.edu and

google has a product called app inventor.

http://appinventor.googlelabs.com/about/

Hope it is now easily accessible as a web app... Cool UI.

Re:Waterbear - a visual language for Javacript by nitrogen on Friday May 06, 2011 @05:22PM (#2522536)
Obligatory link to my own visual programming language targeting home/building automation: http://www.youtube.com/watch?v=p36xoBZVQ8c&feature=playe... (blog post: http://nitrogen.posterous.com/kinect-home-automation-goes-ht...).

P.S. Running the included Waterbear demo script seems to do nothing on Firefox 4 and Chrome 12 on Linux.

Re:Waterbear - a visual language for Javacript by dkersten on Friday May 06, 2011 @06:57PM (#2522785)
Thats very cool! The Kinect video with regions reminds me of my uni undergrad final year project (except that your region stuff is much cooler than ours was - cheaper too): http://dublindan.posterous.com/things-ive-worked-on-1

EDIT: pasted wrong link first time :-/

Re:Waterbear - a visual language for Javacript by sfvisser on Friday May 06, 2011 @12:12PM (#2521355)
Reminds me of Eros (http://conal.net/papers/Eros/) and tangible functional programming (http://haskell.org/haskellwiki/TV). Both by Conal Elliott.

edit: Video here: http://www.youtube.com/watch?v=faJ8N0giqzw

Re:Waterbear - a visual language for Javacript by agazso on Friday May 06, 2011 @10:44AM (#2521053)
A working demo would be useful to see how to use this after all.
Re:Waterbear - a visual language for Javacript by rauljara on Friday May 06, 2011 @10:53AM (#2521088)
There is a demo. There are a number of controls on the top right, and one is labeled "Demos", though there is only one demo at the moment, and it doesn't seem complete. I suspect this is still very much a work in progress. I seriously doubt the author intended for it to be shown.
Re:Waterbear - a visual language for Javacript by warmfuzzykitten on Friday May 06, 2011 @11:17AM (#2521155)
It doesn't seem to do anything.
Re:Waterbear - a visual language for Javacript by benatkin on Friday May 06, 2011 @11:54AM (#2521290)
My experience exactly. I tried writing my own script and it didn't work, and then I loaded the demo script and it didn't work. I think a screencast would be nice even if it never gets broken again.
Re:Waterbear - a visual language for Javacript by iambot on Friday May 06, 2011 @10:54AM (#2521092)
wow that looks brilliant (from what I can see), do you think its at all useful to people that actually know javascript? or is it more of a tool for those that dont/are learning?
Re:Waterbear - a visual language for Javacript by evangineer on Friday May 06, 2011 @01:47PM (#2521770)
From the github page, the intention is that it's an introductory educational programming tool, that provides a concrete visual syntax that's easier for kids to get to grips with than the usual textual one.
Re:Waterbear - a visual language for Javacript by windsurfer on Friday May 06, 2011 @01:50PM (#2521781)
It looks really useful as an add-on to a level editor for a game. Custom scripts that designers can create!
Re:Waterbear - a visual language for Javacript by robinduckett on Friday May 06, 2011 @11:24AM (#2521178)

    Uncaught SyntaxError: Unexpected token {
Re:Waterbear - a visual language for Javacript by rman666 on Friday May 06, 2011 @03:38PM (#2522180)
Can't get it to run. I'm in Chrome. Trying FF now.
Re:Waterbear - a visual language for Javacript by Klonoar on Friday May 06, 2011 @11:43AM (#2521258)
Ah, neat, Scratch in the browser.

About time. ;)

I'm very drunk and will edit this later. Props!

Re:Waterbear - a visual language for Javacript by tluyben2 on Friday May 06, 2011 @11:22AM (#2521169)
Nice work! GPL I hope?
Re:Waterbear - a visual language for Javacript by rst on Friday May 06, 2011 @11:38AM (#2521238)
Apache license, v2, per the source at github: https://github.com/dethe/waterbear
Re:Waterbear - a visual language for Javacript by tluyben2 on Friday May 06, 2011 @05:40PM (#2522592)
Oops, clicked too fast on the controls to read. Stupid. Thanks!
Re:Waterbear - a visual language for Javacript by nicetryguy on Friday May 06, 2011 @12:46PM (#2521515)
Does not work on android chrome. Can't even scroll