r/Mneumonese • u/justonium • Aug 15 '15
TanScript A summary of the Tanscript programming language.
Prev Tanscript post, Next Tanscript post
Tanscript was created to provide my text editor (The Mneumonese Platform) with a high level language that could be used to quickly implement new language processing and language navigation functions without worrying about the undo tree; the Tanscript interpreter takes care of all that.
- Tanscript is an imperative, asynchronous, visual programming language.
- "Tan" as in "tangible script"; all tanscript data and code can be viewed in a visualizer. In fact, the visualizer is the only way to see Tanscript code. Tanscript programs are directed graphs of Tanscript objects. The user builds programs out of these objects by placing them on a palete and connecting them together at legal bonding sites, which are specified in the class definitions for each type of Tanscript object.
- The Tanscript interpreter tracks undo history, and can be run in reverse; Tanscript is thus a reversible programming language.
- No matter how long a Tanscript function takes to execute, user input is always read in the order that the user typed it, with timestamps that match the times that each key event took place.
- Tanscript is a minimalistic language, having only two fundamental types of component: the node, and the bond. A bond is a directed edge, in the graph theory sense.
- Tanscript nodes have bonding sites that are specified in a class definition for the node.
- Tanscript nodes exhibit multiple inheritance.
- A Tanscript node may have only one bonding site with each type of node. This conatraint is highly unusual for a programming language. The need for named fields is thus eliminated, as the type of a field uniquely specifies the field. This also simplifies the behavior of Tanscript instructions; for example, the move-forward instruction takes a single argument: the type of node that the focus moves to, along a bond from the currently in-focus node. When it executes, the Tanscript interpreter checks if any bonds leading out of the currently in-focus node lead to a node that is a subtyope of the type that is the argument to the move-forward instruction.
- Currently, there are no docs publically available, and the only implementation of the Tanscript interpreter and programming environment GUI is on my laptop, where it exists in a buggy, slow, and only partially functional state. I'm currently at Georgia Tech looking for funding and collaborators for this project.
You can find more info about Tanscript on an older post here.
3
Upvotes
View all comments
Show parent comment
2
u/justonium Aug 22 '15
They are directed edges, in the sense that they are assymetric, with a source and a sink node.
They are bidirectional, in that they can be traversed in either direction. Two pointers are stored in memory; for each bond, for each of the two nodes that it is connected to, the node has a pointer to the other stored in its table of neighbors.
I certainly did start from first principles, so I've surely reinvented many wheels.
This sounds exactly like how Tanscript branch instructions are structured. There are two outgoing bonds to next instructions; one is followed for each possible outcome of the condition: whether it is true or false. Each execution frame has a bond that connects to the current instruction, and this bond moves to the next instruction each time the interpreter executes the currently-pointed-to instruction.
Yes, that's different from Tanscript nodes, which are purely structural in makeup. However, data-flow programming can be done by putting independent daemon programs on the data and having them listen for updates to the input nodes, and propagate the changes downstream whenever such changes occur, then go back to sleep.
What do you mean by "serialization"? If you mean "convert to a file that can be saved to disc", then this is already implemented. Otherwise, could you explain what you mean?
Thanks for all of the questions!