Re:Ask HN: Why isn't Prolog more popular?
by moomin on Monday May 29, 2017 @01:25PM
(#14440195)
I'd argue it can't be done. It basically has features that are best implemented as a library. In fact, the many kanrens (including Clojure's core.logic) demonstrate the effectiveness of this approach. Meanwhile, stuff like GPU-accelerated ML have supplanted it in the natural language processing arena, and functional programming has become the paradigm of choice for theorem provers like Agda.
[ Parent
| on HN ]
Re:Ask HN: Why isn't Prolog more popular?
by tom_mellior on Monday May 29, 2017 @03:16PM
(#14440868)
> It basically has features that are best implemented as a library. In fact, the many kanrens
I've never seen one that came close to a real Prolog. Having a library that implements a slow, informally specified tiny subset of Prolog doesn't say anything about the usefulness of real Prolog.
Re:Ask HN: Why isn't Prolog more popular?
by killin_dan on Monday May 29, 2017 @01:58PM
(#14440422)
Do you know very much about GPUs? Would but be viable to implement a kanren on top of cuda or something like that? Wouldn't that lend kanren insane performance gains?
Re:Ask HN: Why isn't Prolog more popular?
by convolvatron on Monday May 29, 2017 @02:41PM
(#14440655)
not too surprisingly, a lot of logic programs don't parallelize very well at all because of very linear dependencies (control flow).
and some do a lot of largely independent but very regular work that would execute quite well on a simd/vector/smt array.
people have come up with some tricks to map control flow into simd (like some really cool parser tricks), but i think in general those have regimes where they have sub-serial performance.
so maybe? if you had the magic compiler? or you provided some manual annotation support? or a robust ffi?
for sql, which has a much more limited footprint, there's been some cool vectorization work.