问HN:为什么Prolog没有获得关注?
我有时喜欢用Prolog编程,尽管我发现它并不是一种很受欢迎的编程语言,尽管它早在很多年前就被发明出来了。为什么会这样呢?
个人而言,我认为当前生态系统存在三个主要问题:
i) 实现版本太多,有些更先进且维护良好,因此不清楚从哪里开始。此外,这些实现的语法往往不同,因此并不总是可以将一个系统中开发的Prolog程序直接移植到另一个系统中。
ii) 库很少,并且在不同系统之间不兼容,因此人们往往需要从头开始重新实现所有功能。
iii) 调试程序非常痛苦,定位错误既困难又耗时。
查看原文
I sometimes enjoy programming in Prolog, although I see that it is not a very popular programming language, despite being invented many years ago. Why is it so?<p>Personally, I think that these are the three main problems with the current ecosystem:
i) there are too many implementations, some more advanced and well-maintained, so it is not clear where to start. Furthermore, these implementations often differ in the syntax, so it is not always possible to directly port a Prolog program developed with one system into another system.
ii) there are few libraries and they are not compatible among the different systems, so one often has to reimplement everything from scratch.
iii) debugging programs is painful and locating an error is very difficult and time consuming