Languages
I have been repeating this thought, that programming languages are user interfaces for a while, mostly to myself. To put it better, all programming languages are somewhere on the "user interface spectrum".
As you go from the lower to the higher levelness of programming languages their core "audience" and their core vocabulary changes.
Lowest level languages speak to the machine, in the machine language, use machine constructs and machine vocabulary ... think Assembly or C.
Somewhat higher level languages forget about the machine a little and speak the language, use constructs and vocabulary of their abstract computational ideas/models. Think Lisp, Java, even Python.
Their model can be based on some academic concept or it can be a more human friendly representation of lower level vocabulary and constructs.
Even higher on the spectrum are for example command shells. It's audience is an admin, a person, a user. It's vocabulary is centered around the user and the tasks the user might want to do. You don't use the "computer words":
URL url = new URL("http://example.com");
HttpURLConnection con = (HttpURLConnection) url.openConnection();
con.setRequestMethod("GET");
your just say:
wget example.com
And above shell there are GUI-s (I have some specific opinions about them also, not for this blogpost).
Programming
For example:
tcp -> http -> getData -> JSON -> prepare -> HTML -> Visual display of information
Which level is the best then
Of course, it totally depends on what audience you are writing to. If your main problem is with the internals of the computer, you should speak in computer vocabulary. Where is Rye
Spreadsheet also better matches the given problem all around. There is no value in keys repeating on every row, it's just bad form for no benefit. Spreadsheet is inspired by a dataframe datatype in R.
But for the same "humane" reasons we don't call it Dataframe, but a Spreadsheet.
Small Spreadsheet demo
Spreadsheet will come with a lot of interesting, high level functions. We are not there yet, below is just a small demo of the current state.
Dynamic brother from another mother
Sometimes you need to solve concrete problems on the very low and very high ends. Imagine a 3D game engine, low end is the rendering, memory handling, loading of resources, general algorithms, high is the game logic, UI, scripted behavior.
That is why these tools very often use a low level language and an embedded higher level "scripting" language. Lua is used for this a lot because it's easy to embed into C.
You could also say webservers are the same. Webserver is often written in a lower level language (or it makes sense that it is) and for our application level programming, it makes sense to use a higher level / dynamic language.
Rye is built on Go and out of Go, and they integrate in a very simple and light way. So Rye could be seen as a good scripting language for Go projects. I intend to explore and document this at some point.
Follow us on github.
Komentarji
Objavite komentar