3 ms·
> well, obviously "worse is better". > A better thing does not necessarily exist yet Ah, of course. > Interfacing with a DB using a fortran inspired query la
by paulddraper 8y ago
> well, obviously "worse is better".
> A better thing does not necessarily exist yet
Ah, of course.
> Interfacing with a DB using a fortran inspired query language is archaic. Constructing the queries using string concatenation has been a security nightmare.
Perhaps, but this this often for very ubiquitous technologies. See almost every HTML authoring tool.
You can write full application servers in Oracle PL/SQL now. [1] And with PostgreSQL's row-level security, you can easily have a GraphQL server with PostGraphile [2]. But those aren't popular solutions.
> ou could build something waaayyy better off of prolog or mercury, full programming languages with the inductive logic engine at the core of their paradigm
That doesn't really change the equation. You still either have to (1) choose your DBMS's query language to write your application server (like today) or (2) use one language to construct queries in another (like today).
I won't argue that a Prolog DBMS wouldn't be nice. I will argue that in terms of the hard parts of a DBMS, it's not going to fundamentally change things.
[1] https://docs.oracle.com/cd/B28359_01/appdev.111/b28424/adfns_psp.htm#g2475353 https://docs.oracle.com/cd/B28359_01/appdev.111/b28424/adfns...
[2] https://www.graphile.org/postgraphile/ https://www.graphile.org/postgraphile/
- ZenPsycho 8y agofirst off, thanks for the links. Secondly, > That doesn't really change the equation. You still either have to (1) choose your DBMS's query language to write your application server (like today) or (2) use one language to construct queries in another (like today). I don't know if you're misunderstanding me, or I'm misunderstanding you. prolog is a query language. The logical programming paradigm is that a program is a "list of facts" and you run the program by "querying" the state of the world. The only piece missing is making the fact storage engine scalable/robust/production ready. Or.. alternatively, there's the Eve[1] project which starts off with prolog to make a hypercard like environment with a built in data storage layer. Its aim is less production ready apps and more developer ergonomics. [1]: ( http://witheve.com http://witheve.com )
- paulddraper 8y agoI don't think I misunderstood. You yearn for the day when a DBMS uses Prolog for its query language. Users of that DBMS have the choice to either (1) query seamlessly because they use prolog for the entire application (2) query by "gluing" Prolog to their application language.
- mamcx 8y agoThe main problem that I see is that relational model / sql is ALWAYS coupled with RDBMS, even with the proponents of the relational model! The thing is, sql is much less capable then even forth. You can't do: query = where a = ?1 columns = [name, id ] console.write(columns ?rename name as a |> query) not even console.write not even Window.open neither store table in a field (not serializate it, store) create your btree, make open gl game, make a osx app, create a rdbms and so on. (yes, i'm aware some rdbms could, hacking around, kind of do it witth pain) In short, the relational model is not see as something that can be made for a full language WITHOUT RDBMS. That is what I wish to change: http://tablam.org/ http://tablam.org/ because I work before as foxpro developer and see how easy and logical was to work with tables without sql.
- paulddraper 8y agoI agree the relational model can be very useful. I will often keep a lot of queries in the DMBS, or even create a :memory: database with sqlite when I want to use relational logic. Thanks for the link.
- tabtab 8y agoI agree that the integration of domain programming and database programming/querying in FoxPro/xBase created a smoother CRUD-app shorthand that current tools can't match. Less converting of sh8t between the layers (and less need for layers). The newest generation must like to type and read a lot of code, I guess. Or, it's a conspiracy from Carpel Tunnel and eye doctors to get more revenue.