Tube - Graph Based Programming
A protoypical implementation of a graph-based programming language based on python with a prototypical IDE for Mac OS X
The project started in 2004.
History
- June, 27th 2004: Tube Editor 0.4 (kind of stable)
- June, 24th 2004: This page goes online
- June, 12th 2004: Starting implementation (Language and IDE)
Downloads
- The latest complete Tube distribution: TubeDist.zip working for Mac OS X
- Tube Editor IDE: A prototype for a simple IDE for Tube, implementation for Mac OS X 10.3 and higher.
- Tube IDE v0.4:
TubeEditor0.4.dmg.zip (172 kB)
Bugfixes and minor changes
older releases: - Tube IDE v0.3:
TubeEditor0.3.dmg.zip (148 kB)
Unstable Version - Tube IDE v0.2:
TubeEditor0.2.dmg.zip
- Tube IDE v0.4:
- Tube Interpreter: A python based implementation of a Tube - runtime environment.
Features
The Development Environment (IDE)
As a prototypical development environment (IDE) we implemented the "Tube Editor". The application is built for Mac OS X and is based upon the Cocoa Framework.
The Tube Editor is a topic map browser and modification tool, that supports all of the introduced attributes and properties of the Tube programming language.
The Tube Editor lists topics and their associations with all attributes, properties and content. Additionally it provides a browserfor the children and delegate hierarchy. The user can add and remove topics, create associations between topics through drag-and-drop, remove associations and modify all properties and attributes. The programming code is edited and displayed in a textfield as a property for topics.
For persistence the Tube Editor uses an own simplified topic map format as an exchange format with the Tube Interpreter. Additionally there is an interface and export possibility to the GraphViz - application (an open source graph visualization tool) for a simplyfied visulization of the whole Tube topic map.
The Interpreter Backend
The back end is seamlessly integrated into the dynamic language Python which becomes the runtime environment of Tube: After having started the Python command line and imported the Tube Python module, one can load a serialized version of a Tube program generated by the Tube Editor. Executable code is always defined as a Python function.
>>> from tube import TubeEnvironment >>> env = TubeEnvironment() >>> env.readXML("examples/simple.tube") >>> env.glob.foo(x="Hello World!") >>> print env.toXML()
People
- Patrick Renner (TUM)
- Axel Rauschmayer (LMU)