Languages ​​with native / syntax / embedded graphics support?

The graph is arguably the most versatile and valuable data structure for everyone. I can store individual variables, lists, hashes, etc. And, of course, graphics with him.

Given this, are there any languages ​​that offer inline / inline support and graph syntax? I can create variables, arrays, lists, and hashes built into Ruby, Python, and Javascript, but if I need a chart, I need to either independently control the view using a matrix / list, or select a library and use the chart using the calls method.

Why is this so in 2010? And, practically, are there any languages ​​that offer a built-in graphical interface and syntax?

+7
syntax programming-languages data-structures graph inline
source share
3 answers

The main problem of what you are asking is that a more general solution is not the best for a specific problem. This is just average for everyone, but not the best.

Well, you can keep the list on the chart, assuming its degeneration, but why should you do something like that? And how would you save the hash map inside the chart? Why do you need such a structure?

And do not forget that the implementation of the graph should be selected in accordance with the operations that you are going to do with it, otherwise it will be like using a hash table to store a list of values ​​or a list to store an ordered collection, instead a tree. You know that you can use an adjacency matrix, a list of edges, or an adjacency list .. every other implementation with its own strengths and weaknesses.

Then the graphs can have really many properties compared to other data sets, cyclic, acyclic, directional, non-oriented, dicotyledonous, etc. ... and for any particular case you can implement them differently (assuming some hypothesis about the graph you need), so having them in your own syntax will be excessive, because you still have to configure them (and the language should provide many implementations / optimizations).

If everything is already done, you remove the pleasure of development :) By the way, just look for a language that allows you to write your own DSL schedule and live with it!

+2
source share

Gremlin, a graph-based programming language: https://github.com/tinkerpop/gremlin/wiki

+2
source share

GrGen.NET (www.grgen.net) is a programming language for transforming a graph, plus an environment that includes a graphical debugger. You can define your schedule model, rewrite rules and manage rules using some good special-purpose languages ​​and use the generated C # assemblies / code from any .NET language you like or from the supplied shell.

To understand why ordinary languages ​​do not offer such a convenient / built-in interface for graphs, just look at the amount of code written for this project: only one compiler is a few man-years of work. That the price is too high for a function / data structure requires only a minority of programmers - therefore it is not included in general-purpose programming languages.

+1
source share

All Articles