3 ms·
> Prolog is one example of a language that automatically solves declarative constraints but the syntax is bad. That's why I mentioned SQL. Both SQL and Prolog
by BjoernKW 10y ago
> Prolog is one example of a language that automatically solves declarative constraints but the syntax is bad.
That's why I mentioned SQL. Both SQL and Prolog are declarative languages but SQL has a much more approachable syntax. In SQL constraints can be expressed using WHERE and ON clauses. For your more complex robot example this would require some work but it's certainly possible.
- zelah 10y agoI will look closer at the SQL language then but what about efficiency?
- BjoernKW 10y agoIn general SQL is fast enough. In many cases it's faster than scripting languages or even faster than compiled languages (particularly when it comes to dealing with list or set data structures). RDBMS like PostgreSQL for example tend to be highly optimised and efficient pieces of software.