Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.
In a node about partially committed transactions, Larry has this to say:
Transactions are not just something that database programmers have to worry about. I think training in transactional thinking tends to fall through the paradigmatic cracks because transactions can't be classified as functions or events or objects. If anything, a transaction is most closely related to the logic programming paradigm, which is undertaught. A transaction can be viewed as a sort of hypothesis that can either be proven or disproven. A partially proven hypothesis is of little use.
This gives me hope that logic programming will be supported in Perl 6. I've seen many mentions of that though no practical examples. I confess that if I have seen practical examples, I've yet to recognize them.
Last night, I did a bit of benchmarking of my code. I used this maze solving code. A query which WProlog solved in
I assume this means there is a bug in AI::Prolog. I'll find it, but that was disappointing (I may not have much time over the next week, though, so patches or advice are welcome
As for optimization, I need to do profiling to know what to target first. For now, though, I'm using hashes where I should use arrays and, curiously, I've discovered that there is no need for the actual code to be OO. I'll leave an OO interface as that solves certain problems, but the original code used no inheritance and the only polymorphism was via multi-method dispatch, something Perl doesn't support anyway. Thus, if internally I skip the OO sugar and convert most (not all) hashes to arrays I'll be in a fantastic position to port the core to C. Now to find a good C hashing algorithm.
Have you heard of... (Score:1)
Re:Have you heard of... (Score:2)
Thank you. That might be just what I am looking for.
Re Prolog Arithmetic (Score:1)
As somone who tried to do only barely non-trivial arithmetic in a Prolog setting once, I am not surprised that WProlog doesn't feel the need of it. Peano axiom arithmetic would have worked better!
The maze program's suc/2 predicate provides equivalent to Peano axioms. Interesting, the wall/1 predicate defines a wall around two sides of a node, toward the lower numbers?
It's unclear to me why
would run
Bill
# I had a sig when sigs were cool
use Sig;
Re:Re Prolog Arithmetic (Score:1)
What on earth are you using to post?
Mis-Direction redux (Score:1)
Bill
# I had a sig when sigs were cool
use Sig;
Re:Re Prolog Arithmetic (& Monsieur Wall) (Score:1)
Bill
Bill
# I had a sig when sigs were cool
use Sig;