Tag Archive

ActionScript 3.0 ajax algorithms animation art as3 as3soundeditorlib blog community computer art computer vision digg eclipse employment flash google analytics IDE image-manipulation image-segmentation imagemagick Ithaca Ithaca NY java hosting jobs lightlink local mod_python MVC mysql News open source parser pseudo physics python renderer runtime SoundEditor svg svn tomcat versioning web-2.0 web-applications web technology wordpress

Tiddlywiki as a web-based IDE

Don’t you just hate it when you have code in lots of different files that you want to work with, but you only need one function in each file? Recently I was working on an abstract syntax tree which is constructed from XML, and the lead developer suggested that I put a function in each node type called parseXML. I suggested that it would be better to have an loader with a function for each node type — the same system, but all the loader code is in one place, and the nodes don’t need to know anything about the xml that they come from. This is a pretty standard thing in compiler design, I remember creating lots of AST visitors when I was building a compiler.

But there are a few disadvantages: you need to make public setters for object properties, even when you ‘really’ want the properties to be private. And you can’t see the code of the node while you are working on the loader. There is a way around the first thing (a true visitor implementation and pass by reference) — but the second thing is a consequence of our folder-based way of looking at code.

So I was thinking that Tiddlywiki would be an interesting way to edit code — you could call up exactly the functions that you want, in the order you want.

The big problem is getting the functions back into the correct files, and doing just-in-time parsing. I suppose that prettyprinting could be hacked into tinymce — there’s a css stylesheet / javascript for prettyprinting on google code.

Ajax version of segmentation and false coloring app posted

I have posted an ajax version of the segmentation and false coloring application here.

This application produces an artistic rendering of an image. The options are to have the image rendered in a patchwork of random colors, or to have similar areas of the image colored in the average color of that image. Looks sort of like the image has been smoothed out.