Live data from Hacker News

Learn Prolog Now (2006)

lpn.swi-prolog.org

1–10 of 251 posts

Re: Learn Prolog Now (2006)

#6

is prolog a use-case language or is it as versatile as python?

In theory, it's as versatile as Python et al[0] but if you're using it for, e.g., serving bog-standard static pages over HTTP, you're very much using an industrial power hammer to apply screws to glass - you can probably make it work but people will look at you funny.

[0] Modulo that Python et al almost certainly have order(s) of magnitude more external libraries etc.

Re: Learn Prolog Now (2006)

#7

is prolog a use-case language or is it as versatile as python?

Python wins out in the versatility conversation because of its ecosystem, I'm still kinda convinced that the language itself is mid.

Prolog has many implementations and you don't have the same wealth of libraries, but yes, it's Turing complete and not of the "Turing tarpit" variety, you could reasonably write entire applications in SWI-Prolog.

Re: Learn Prolog Now (2006)

#9

In university, Learning prolog was my first encounter with the idea that my IQ may not be as high as I thought

intro to quantum physics for me (which is only sophomore) I noped out of advanced math/physics at that point, luckily I did learn to code on my own

Re: Learn Prolog Now (2006)

#10
I've recently started modeling some of my domains/potential code designs in Prolog. I'm not that advanced. I don't really know Prolog that well. But even just using a couple basic prolog patterns to implement a working spec in the 'prolog way' is *unbelievably* useful for shipping really clean code designs to replace hoary old chestnut code. (prolog -> ruby)
Post reply on HN