Hi Henrik,
> The code is quite ugly with a lot of catch throw statements due to the fact
> that I want things to terminate right away if the query fails.
I haven't investigated it too deeply yet, but perhaps these catch/throw
constructs can be avoided: 'for' can be terminated at any time using th
Hi Doug,
> I think a picolisp/pilog -based golog might be a better approach than
> using lua for this, at least.
Indeed. I did a quick test, and it seems that PicoLisp is also faster
than Lua (though it seems that concerning memory footprint, Lua might be
better).
Cheers,
- Alex
--
UNSUBSCRIBE:
I have attached version two which is modeled after your advice, much smaller
and more elegant.
The question is, is it faster? I will have to test that tomorrow.
On Mon, Jun 27, 2011 at 1:49 PM, Alexander Burger wrote:
> Hi Henrik,
>
> > The code is quite ugly with a lot of catch throw statemen
On Sun, Jun 26, 2011 at 09:07:55AM +0200, Alexander Burger wrote:
> My opinion is that Prolog is good at only one
> task: Search with backtracking.
BTW, a nice Pilog example:
http://rosettacode.org/wiki/Dinesman%27s_multiple-dwelling_problem#PicoLisp
--
UNSUBSCRIBE: mailto:picolisp@software-lab