I am once again shilling the idea that someone should find a way to glue Prolog and LLMs together for better reasoning agents. https://news.ycombinator.com/context?id=43948657 Thesis: 1. LLMs are bad at counting the number of r's in strawberry. 2. LLMs are good at writing code that counts letters in a string. 3. LLMs are bad at solving reasoning problems. 4. Prolog is good at solving reasoning problems. 5. ??? 6. LLM…
Learn Prolog Now (2006)
121–130 of 251 posts
Re: Learn Prolog Now (2006)
#122Earlier quoted context omitted.
> "4. Prolog is good at solving reasoning problems." Plain Prolog's way of solving reasoning problems is effectively: for person in [martha, brian, sarah, tyrone]: if timmy.parent == person: print "solved!" You hard code some options, write a logical condition with placeholders, and Prolog brute-forces every option in every placeholder. It doesn't do reasoning . Arguably it lets a human express reasoning problems bet…
What makes you think your brain isn't also brute forcing potential solutions subconciously and only surfacing the useful results?
Prolog: 1, 2, 3, 4, 5 ...
You and me instantly: 10^8000
Re: Learn Prolog Now (2006)
#123Earlier quoted context omitted.
Even in your example (which is obviously not correct representation of prolog), that code will work X orders magnitude faster and with 100% reliability compared to much more inferior LLM reasoning capabilities.
This is not the point though
could you expand what is the point? That authors opinion without much justification is that this is not reasoning?
Re: Learn Prolog Now (2006)
#124Re: Learn Prolog Now (2006)
#125Re: Learn Prolog Now (2006)
#126Is there a WebAssembly WASI version of swi prolog ?
Not sure... Other Prologs compiled to WASM with very good performance is https://ciao-lang.org/playground/ The same toplevel runs also from 'node' as well.
Re: Learn Prolog Now (2006)
#127Farts:
are you saying you can’t comprehend prolog programs?
Re: Learn Prolog Now (2006)
#128I am once again shilling the idea that someone should find a way to glue Prolog and LLMs together for better reasoning agents. https://news.ycombinator.com/context?id=43948657 Thesis: 1. LLMs are bad at counting the number of r's in strawberry. 2. LLMs are good at writing code that counts letters in a string. 3. LLMs are bad at solving reasoning problems. 4. Prolog is good at solving reasoning problems. 5. ??? 6. LLM…
> "4. Prolog is good at solving reasoning problems." Plain Prolog's way of solving reasoning problems is effectively: for person in [martha, brian, sarah, tyrone]: if timmy.parent == person: print "solved!" You hard code some options, write a logical condition with placeholders, and Prolog brute-forces every option in every placeholder. It doesn't do reasoning . Arguably it lets a human express reasoning problems bet…
Also, that you push Python and JavaScript makes me think you don't know many languages. Those are terrible languages to try to graft to anything. Just because you only know those 2 languages doesn't make them good choices for something like this. Learn a real language Physicist.
Re: Learn Prolog Now (2006)
#129Re: Learn Prolog Now (2006)
#130Earlier quoted context omitted.
What makes you think your brain isn't also brute forcing potential solutions subconciously and only surfacing the useful results?
Can you try calculating 101 * 70 in your head?