r/Mneumonese • u/justonium • Mar 26 '15
TanScript Ask me anything. And, an update on the current state of the platform.
So, ask me anything, be it about the conlang, the editor for it (and for any other language), or for anything else.
A reminder on what the platform is: It's a GUI (graphical user interface) application for a text editor, file system, and IDE (interactive development environment), which is most primarily a programming environment for a graphical DSL (domain specific language). All data structures, including text, are represented via/in this DSL. The DSL is to be used to create all language related functionality, including for navigation, parsing, coloring any language, and parsing and executing Mneumonese code.
Things I have implemented so far:
- A serializable Python implementation of the multiple-inheritance nodes, single inheritance graphs, and bonds that the DSL is made out of
- A python implementation of the interpreter, which parses statements written in the above language and, for each statement parsed, creates a function that will undo it and adds it to the linear undo history. (Later this will be attached to a tree, and multiple strands of it will be copied separately so that the undo histories of uncoupled things can be traversed independently.)
- The keyboard input mechanism: A string of hardware input objects is created as the user presses buttons. These serve as indexes to a table of virtual input objects. The table is composed of modular components; for example, one can take out the QWERTY component and replace it with DVORAK. The filling out of these tables can
and will**[1]** be done within the platform (though the first few keys have had to have been added artificially using Python, so that I can provide some form of input in order to get started. (So I will bootstrap off of the manually assigned keys in order to assign the rest of them.) - The graphics: Graphics are displayed in rectangular panels, which can contain more rectangular panels, or--and I'm working on this right now--text. Later they will be able to display graphs as well.
Things that I need to do soon:
- Implement saving and loading to files.
- Implement the undo tree.
- Implement the mutually independent undo strands (which each have their own corresponding trees).
- Make (using the working platform) the QWERTY key map and standard text editing functions and hotkeys.
- Unicode support, including the ability to copy and paste into and out of the platform.
- Compression of the undo history (so that it doesn't waste too much memory).
[1] Edit April 29: Actually, I ended up writing this code in Python. (I wrote Python code which creates the that relevant Tanscript data structure.) Currently, saving and loading still isn't implemented, so anything created in the GUI is not permanent. Additionally, the current GUI prototype is a pain in the ass to use. :P
2
u/justonium Mar 26 '15
/u/Michael_Armbrust 's comment:
1
u/justonium Mar 26 '15
What are some advantages of using the same language for both code and comments?
1
u/justonium Mar 27 '15
What can the Mneumonese platform do that Emacs cannot?
1
u/digigon Apr 12 '15
I assume by serializable you mean that all objects have a representation that can be saved to disk. What are nodes, graphs, and bonds?
Is this going to look something like version control?
I might have already mentioned Light Table before, but I think you might want to consider borrowing the Entity-Component-System (ECS) model for what I'll call your integrated Mneumonese environment (IME). It's commonly used in games, but seems to work really well for highly reflexive development environments.
Basically, everything in the program that does or represents something is an entity, which is just an ID. The components are functions that take these entities and associate information to them, such as position, color, or whether it is visible. Systems then process entities that have certain components and apply the relevant action to them, such as drawing all drawable entities.
The main advantage is that, because everything in the application can be made modular like this, it isn't too hard to add faculties for modifying components and systems while the application runs.
Doesn't Python have Unicode support by default?
Maybe you could save diffs rather than representations of specific-purpose undo functions. This seems to work for most version control systems.