3 ms·
This is neat. I reckon there's a reasonably large subset of DSLs in the computing world that lend themselves to a 2D description, rather than a simplistic 1D s
by kitd 7y ago
This is neat.
I reckon there's a reasonably large subset of DSLs in the computing world that lend themselves to a 2D description, rather than a simplistic 1D sequential list down a text file. Anything involving concurrency in particular needs more than just a list.
A graphical language like asciiflow would serve this well. Edit your graph in the flow diagram and parse it in a specialised parser.
Are there any generic asciiflow parsers out there?
- joshribakoff 7y agoRxJs marbles comes to mind but I don’t think there’s any benefit to editing them with ascii flow compared with just using multiple cursors.
- hinkley 7y agoMost source code is already three dimensional, and running code has at least two, but oddly, only one in common. Any block of text has an X and Y axis. But we keep jumping in and out of it to other files or functions, which is another degree of freedom. A Turing machine has one dimensional storage, but the order of operations matter quite a bit. So the second axis is time. But in a network, where it happens also matters. Although one might argue that the entire network is a single synthetic Turing machine with a segmented tape, and thus it’s just 2 dimensions.