Ask HN: How would you implement a programming language with native data access?
I have never spent much time reading or learning the Wolfram stack - mainly because I have not really ran into it much on the internet, it does not to me seem overly popular.
However there is one concept within it that seems quite neat, and that is that the language or platform has native data access, for example `WordFrequencyData`[1].
The naive approach is just to connect this up to a DB of data, but I am interested if there are any other such open source example or some other neat abstractions when it comes to programming abstractions being connected directly to data.
[1]: https://reference.wolfram.com/language/ref/WordFrequencyData.html
7 comments
[ 3.5 ms ] story [ 29.6 ms ] threadAny language can have "native data access" by using an API, and that's what Wolfram is doing under the hood.
The best language/tool/method for any piece of software is usually the one that 1) provides the user interface you're after and 2) is in a language you're familiar and efficient with.
I understand that I can take any language and create a higher level version which will provide functions which can access some data source.
But I still wonder if there is something more to how one could "truly" intermingle logic and data - one example might be a language which is executed directly in the DB, just spit balling.
Sorry for the ignorance but I have never used Lisp.
Although Lisp is powerful and fun, it's of note that the inventor of Lisp quickly turned his back on the concept to invent Algol -- which is the basis of nearly all other modern languages that aren't Lisps. In practice, mixing code and data often turns out to make things worse.
John McCarthy did not invent Algol.
https://en.wikipedia.org/wiki/ALGOL