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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Why logic programming is not widely used in the industry ?

9 点作者 febin超过 3 年前

6 条评论

rajandatta超过 3 年前
The biggest reason is lack of knowledge and awareness amongst Developers. Increasingly, Management and Senior Management do not have the breadth of knowledge and understanding of these areas to be able to overrule inertia against their adoption.<p>The problems are not technical but cultural. I experimented with Picat and have looked at Prolog and Mercury. Picat is a superb language. It allowed me to rewrite a constraint satisfaction problem in 150 lines of code that had been an ungodly problem area for months. The original was in Java but the design was the issue. But I had ab exchange with Picat&#x27;s authors to try and make it more attractive for Corporate Developers but it&#x27;s not their priority.<p>Based on my experience - 3 things stand out for me:<p>The idea of a separate language is too tough. It must be embeddable in a larger, mainstream language. Minikanren is a good example. Embeddable Prolog is hit and miss today. The idea needs to be developed and polished. I work primarily in Banking. A large Bank will have hundreds of apps. Adding a new language, technology, nailing down Management and then having to maintain knowledgeable staff is not an easy proposition. So much easier to adopt if we can integrate ideas into mainstream platforms (Java, .NET). By all means build the stand alone platforms but also offer it as an embeddable component. Clojure with Datalog, Racket with Datalog, Minikanren are good examples.<p>We need more, better success stories and wins to be publicized. Erlang has had a huge win with Whatsapp. For all its life since the mid-70s - I&#x27;m not sure I can point to huge, visible truly large wins. I&#x27;m sure there are successful projects for Prolog and Mercury et al but it needs wins.<p>Teach, teach, teach - evangelize and get the idea out - not as much re tech but applying logic based programming. Business rules definition, BRM, BPM are natural areas but you don&#x27;t see logic programming formalized in them. Try and change that.
mikewarot超过 3 年前
Ladder Logic goes back to actual relay ladders, was replaced with Westinghouse NumaLogic(tm) when I worked on that type of thing briefly in the 1980s. I&#x27;m sure it&#x27;ll be around forever in some system that just keeps making products.
评论 #29522550 未加载
fulafel超过 3 年前
This form of question rarely leads to answers. The world is full of good programming language technology ideas and the default is that they don&#x27;t become widely used. Every once in a while the wheel of reinvention comes around again and ideas get new chances to take off, if the stars align just right (eg get attached to a big tech fad or corporate sponsorship with well resourced marketing and evangelism).
Flankk超过 3 年前
Too specialized, not generalizable in an optimal way.
adamnemecek超过 3 年前
Hard to debug, slow, implementations are not quite industry grade.
Jugurtha超过 3 年前
Which flavor? Which industry?