NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
λProlog: Logic programming in higher-order logic (lix.polytechnique.fr)
upghost 37 minutes ago [-]
I'm surprised how hard I had to dig for an actual example of syntax[1], so here you go.

[1]: https://www.lix.polytechnique.fr/~dale/lProlog/proghol/extra...

Antibabelic 32 minutes ago [-]
There is also an implementation of 99 Bottles of Beer on Rosetta Code: https://rosettacode.org/wiki/99_bottles_of_beer#Lambda_Prolo...
neuroelectron 20 minutes ago [-]
So brainfuck x lisp
polairscience 26 minutes ago [-]
I think that might be my favorite department/lab website I've ever come across. Really fun. Doesn't at all align with the contemporary design status quo and it shows just how good a rich website can be on a large screen. Big fan.

https://www.lix.polytechnique.fr/

Antibabelic 33 minutes ago [-]
There is a great overview of λProlog from 1988: https://repository.upenn.edu/bitstreams/e91f803b-8e75-4f3c-9...
TheRoque 1 hours ago [-]
I remember learning it in univerisity. It's a really weird language to reason with IMO. But really fun. However I've heard the performances are not that good if you wanna make e.g. game AIs with it.
laksjhdlka 39 minutes ago [-]
With λProlog in particular I think it probably finds most of its use in specifying and reasoning about systems/languages/logics, e.g. with Abella. I don't think many people are running it in production as an implementation language.
pjmlp 1 hours ago [-]
First of all, it helps to actually use a proper compiled Prolog implementation like SWI Prolog.

Second you really need to understand and fine tune cuts, and other search optimization primitives.

Finally in what concerns Game AIs, it is a mixture of algorithms and heuristics, a single paradigm language (first order logic) like Prolog, can't be a tool for all nails.

anonzzzies 1 hours ago [-]
λProlog or Prolog? Probably Prolog I guess?
wbolt 18 minutes ago [-]
No. It is actually λProlog which seems to be an extension of Prolog.
anonzzzies 8 minutes ago [-]
I was responding to @TheRoque GP; I know λProlog quite well and I would be pleasantly surprised if they saw that in university, but I think they got taught Prolog. If you mean to say that they saw Lambda Prolog and it is therefor a lot more popular than I believed it to be, then excellent and ignore this reply.
yodsanklai 1 hours ago [-]
I'm curious to see how AI is going to reshape research in programming languages. Statically typed languages with expressive type systems should be even more relevant for instance.
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 14:04:28 GMT+0000 (Coordinated Universal Time) with Vercel.