News for hackers. Stuff that matters.
Re:Pyprocessing: Processing without Java. by ggchappell on Thursday January 07, 2010 @07:57PM (#1038490)
Looks nice.

Also, it might need to be pointed out that we already have Processing without Java: processing.js.

http://processingjs.org/

Re:Pyprocessing: Processing without Java. by vicehead on Thursday January 07, 2010 @08:54PM (#1038559)
Which is uselessly slow on anything other than webkit.
Re:Pyprocessing: Processing without Java. by rjurney on Thursday January 07, 2010 @11:46PM (#1038880)
No, its workable in late model Firefox too. I do map charts with it.
Re:Pyprocessing: Processing without Java. by catch23 on Thursday January 07, 2010 @09:00PM (#1038574)
runs great in V8
Re:Pyprocessing: Processing without Java. by RyanMcGreal on Thursday January 07, 2010 @10:48PM (#1038787)
Webkit + V8 = Chrome.
Re:Pyprocessing: Processing without Java. by catch23 on Saturday January 09, 2010 @02:41AM (#1041194)
I assume he was talking about the javascript engine in Safari since the webkit project downloads includes the squirrelfish js engine.
Re:Pyprocessing: Processing without Java. by daeken on Thursday January 07, 2010 @10:34PM (#1038768)
On a related note, I was without internet for a bit and decided to write a Processing-esque library for .NET (specifically, it's Boo). I haven't touched it in a while, but someone may be interested in doing something with it: http://trac2.assembla.com/livingcanvas/browser/trunk
Re:Pyprocessing: Processing without Java. by thesnark on Thursday January 07, 2010 @09:05PM (#1038581)
What about NodeBox? http://nodebox.net
Re:Pyprocessing: Processing without Java. by vicehead on Thursday January 07, 2010 @09:10PM (#1038592)
Not cross platform.
Re:Pyprocessing: Processing without Java. by evgen on Friday January 08, 2010 @12:28AM (#1038951)
Nodebox 2 is cross-platform [http://beta.nodebox.net]. Unfortunately, IMHO, they achieved this by going with Java as the base and changing the scripting engine to use Jython.
Re:Pyprocessing: Processing without Java. by fdb on Saturday January 09, 2010 @05:17AM (#1041306)
As one of the people behind NodeBox, I'd love to know why you think this is unfortunate. We have been working hard on an application that runs on Windows, Linux and Mac, and a blanket statement like "unfortunately Java" is a bit frustrating.

As graphic designers we are really sensitive to awkward Java applications that look out of place on Mac or Windows. We are trying to find the right look that works on every platform. We discovered that this has more to do with an attention to detail than the underlying technology. As an example, look at a "Mac-like" application iTunes, iPhoto, iCal or Garageband: none of them use the standard aqua buttons in the main interface, instead opting for custom bitmap buttons.

For us, the choices are really down to Qt or Java. We need a solid graphics layer that provides the same results on every platform. Java's 2d graphics does this, and it has native back-ends (Quartz). Also, by using Java, we can speed up a lot of the Python code without resorting to hunting memory bugs in C++.

Lastly, I discovered at Pycon 2009 that Jython really has become a first-class citizen, officially supported by people like Guido. It also does away with the GIL.

I knew the Java argument would come up eventually: I'm surprised it took so long. However, it doesn't come up with people using the software: our users don't realize/care that we use Jython. Instead they're just happy they can use NodeBox on Windows.

Re:Pyprocessing: Processing without Java. by RK on Friday January 08, 2010 @01:54AM (#1039049)
Shoebot looks pretty interesting. It's pure Python.

http://tinkerhouse.net/shoebot/Main/HomePage

Re:Pyprocessing: Processing without Java. by sophacles on Thursday January 07, 2010 @07:50PM (#1038479)
So I like this idea, the project looks pretty cool, but the name...

Wasn't it already taken by a project that jnoller forked into multiprocessing? I mean, seriously, does no one google project names anymore?

Re:Pyprocessing: Processing without Java. by stevejohnson on Friday January 08, 2010 @01:52AM (#1039047)
Given the API they are mirroring, they couldn't have named it anything else.
Re:Pyprocessing: Processing without Java. by sophacles on Friday January 08, 2010 @09:51AM (#1039607)
They could have followed the processing.js style and named it processing.py
Re:Pyprocessing: Processing without Java. by middayc on Friday January 08, 2010 @02:20AM (#1039072)
You could call it without JVM. You are not programming ordinary Processing in Java but ~in~ Processing.

Why is without "Java" a feature. It makes it not run in a browser and I doubt I could speed-wise make something like this with it. It's made in ordinary processing (and it runs in a browser). http://www.youtube.com/watch?v=aACBSRG5ywM

I don't object the creation of processing in yet another language. I just slightly object this title.

Re:Pyprocessing: Processing without Java. by vicehead on Friday January 08, 2010 @02:49AM (#1039101)
Processing is a subset of Java.

For starters, Java and thus by extension processing doesn't allow funargs and is constrained by it's verbosity. For anything other than basic Sketches, this is a huge disadvantage for something that claims to be an educational tool.

Re:Pyprocessing: Processing without Java. by ewjordan on Friday January 08, 2010 @03:46AM (#1039151)
First, the nitpick: Processing isn't quite a subset of Java, it actually both supports full Java syntax (if a tab is named .java, it's processed as a plain old Java file) and adds a few syntax preprocessings of its own apart from wrapping everything into a Java class (one example: numbers don't have to have f at the end to be interpreted as floats).

With that out of the way: it's worth noting that someone put together a Scala version of Processing, which addresses the lack of functional goodness in Java while still using the "normal" Processing library (maybe even the environment?): http://technically.us/spde/About

As an educational tool, you could do a lot worse than introducing people to Java, though, since if they ever plan to work, it's probably what they'll be stuck coding.

And for all its limitations power-wise, I've seen far better (and far more) data visualizations come out of Processing than anywhere else (data viz is probably the #1 use case, since graphic/animation work is made very painless), so they're clearly doing something right...

Re:Pyprocessing: Processing without Java. by rjurney on Friday January 08, 2010 @05:54AM (#1039259)
Amen. Processing gets out of your way and lets you do great viz.
Re:Pyprocessing: Processing without Java. by rjurney on Friday January 08, 2010 @05:51AM (#1039257)
You quickly graduate into writing PApplets in Java. However, even as you do so - the ability to sketch ideas and algorithms in the sketchpad interface is still a huge help.

In practice, Processing is by far the best thing going for creating interactive ad hoc visualizations. Fluency in processing imparts enormous viz power. It is really liberating. I pretty much only write Java when I do Processing (and some Pig stuff), and I don't mind it at all - despite not loving Java.

Using a JVM is a huge advantage because you can embed your applets in web pages and interact with the rest of the page via JS. Jython would be cool.

Processing : Viz as Perl : CSV

Re:Pyprocessing: Processing without Java. by kylemathews on Thursday January 07, 2010 @08:05PM (#1038500)
Processing just got more interesting...