NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Excellent tutorial! (Score:2)
This has motivated me to install the Münster Curry compiler [uni-muenster.de], a Haskell implementation of the Haskell-Prolog hybrid language Curry [uni-kiel.de].
I suspect it'll be a lot of fun reading about it. As for application programming, it seems that much of the semantic web stuff -- RDF in particular -- corresponds closely to logic programming models, so that might be a good vector to explain to people.
Re:Excellent tutorial! (Score:2)
-Dom
Re:Excellent tutorial! (Score:2)
You might find an intro to Prolog and RDF [xml.com] of interest. It has a follow-up article which explains how to use RDF with SWI-Prolog [xml.com].
Re:Excellent tutorial! (Score:2)
I'm glad you liked the slides. I've been hearing a bit about Curry and I should dig into it. Incidentally, you may be interested in the response I just made to Dom. I list a couple of Prolog/RDF links which may prove interesting.
Re:Excellent tutorial! (Score:2)
freevariable annotation and the=:=equivalence operator.In Perl 6, this might be:
Does this seem sane to you? I wonder if P6L can handle this. :-)
Re:Excellent tutorial! (Score:2)
Well, there does seem to be a strong desire to get logical programming into P6, so I suspect that well-thought out proposals will be welcomed. The major problem I have in participating is two-fold. First, I simply don't have the experience with P6 to be able to make contributions that are going to fit well in the current model. Second, I fear that most who are involved are considerably brighter than I am. This makes me a poor sounding board for ideas. (I'm not trying to present this as false modesty.
Re:Excellent tutorial! (Score:2)
To define last with append in Curry, we write:
Translating this to Perl6:
Re:Excellent tutorial! (Score:2)
@lin thatlast:The trick of Curry is to introduce a special type, Success, that encapsulates constraint solutions. I'm still working through the tutorial [uni-kiel.de], so it will take a bit before coherent thoughts emerge...
Re:Excellent tutorial! (Score:2)
OK, I'm definitely liking this better. I think it can work. Is multi enough, though? Would assert or something similar be a better keyword so Perl can know that it's working with a fact or rule?
Re:Excellent tutorial! - could it all be one page (Score:1)
Is it possible to have the slides published as PDF or a single HTML page, so I can print them and read them/attempt to understand them ?
I expect there are probably a lot of good reasons not to (maybe I should download the modules instead), but having the ability to do some logic programming in Perl would be cool beyond comprehension (caveat knowing when to use, caveat backtracking cost etc).
Thank you very mu
Re:Excellent tutorial! - could it all be one page (Score:2)
Try Print Preview. The slides are all on one page and it should print as one document. It's just Javascript that makes it look like multiple pages.
If you find yourself using logic programming for your code, let me know. I'd be curious to find more examples of how people are using it.
Re:Excellent tutorial! - could it all be one page (Score:2)
I forgot to mention that I'm also preparing an article for the Perl Review. They'll get it first, but I'll own the rights and after it gets published, I should be able to distribute it with AI::Prolog (it will be a while, though.)
Re:Excellent tutorial! - could it all be one page (Score:1)
I can barely wait (@$work) to start reading it.
Thank you.