TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Datalog as the only language for web programming, logic and database

21 点作者 truth_seeker大约 6 年前
Can Datalog be used as the only language which we can use for writing server-side web application, complex domain business logic and database querying?<p>Are there any efforts made in this direction.

5 条评论

alexmingoia大约 6 年前
Not anything I’d want to use. The closest is prolog. But at a higher level this is what Eve attempted to do.<p>Eve was built using the semantics of Dedalus which is built from datalog. I <i>highly</i> recommend watching Peter Alvaro’s Strangeloop talk about creating Dedalus - it’s exactly the same train of thought you’re onto. <a href="https:&#x2F;&#x2F;youtu.be&#x2F;R2Aa4PivG0g" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;R2Aa4PivG0g</a>
评论 #19511013 未加载
westurner大约 6 年前
To quote myself from a post the other day <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19407170" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19407170</a> :<p>&gt; <i>PyDatalog does Datalog (which is ~Prolog, but similar and very capable) logic programming with SQLAlchemy (and database indexes) and apparently NoSQL support. <a href="https:&#x2F;&#x2F;sites.google.com&#x2F;site&#x2F;pydatalog&#x2F;" rel="nofollow">https:&#x2F;&#x2F;sites.google.com&#x2F;site&#x2F;pydatalog&#x2F;</a> </i><p>&gt; <i>Datalog: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Datalog" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Datalog</a> </i><p>&gt; <i>... TBH, IDK about logic programming and bad facts. Resilience to incorrect and incredible information is - I suppose - a desirable feature of any learning system that reevaluates its learnings as additional and contradictory information makes its way into the datastores.</i><p>I&#x27;m not sure that Datalog is really necessary for most CRUD operations; SQLAlchemy and the SQLAlchemy ORM are generally sufficient for standard database querying CRUD.
nextos大约 6 年前
I&#x27;m surprised nobody has mentioned Logicblox yet [1,2]<p>[1] <a href="https:&#x2F;&#x2F;developer.logicblox.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;developer.logicblox.com&#x2F;</a><p>[2] <a href="https:&#x2F;&#x2F;www.cs.ox.ac.uk&#x2F;dan.olteanu&#x2F;papers&#x2F;logicblox-sigmod15.pdf" rel="nofollow">https:&#x2F;&#x2F;www.cs.ox.ac.uk&#x2F;dan.olteanu&#x2F;papers&#x2F;logicblox-sigmod1...</a>
usgroup大约 6 年前
Well, if that&#x27;s what you want just use Prolog; everything you need is there including a huge number of libraries and a web application framework.<p>Although I personally don&#x27;t understand why anyone would want to do this ... If you actually try using Prolog or Datalog, it becomes relatively obvious that it makes a very specific set of things easier at the cost of making everything else harder.
评论 #19500938 未加载
slifin大约 6 年前
Fulcro, Pathom, EQL and Datomic<p>Is full stack datalog as far as I&#x27;m aware<p>Not tried any of them yet but actively trying these are some tough things to learn
评论 #19501813 未加载
评论 #19502499 未加载