First off, let me say that for all intents and purposes you can consider
me as a noobie, both to Oz/Mozart and even to Linux. There, that's clear.
Well, I am mightily impressed by Oz and am using it for most eveything I
can think of, including logic based CGI programming. I just _love_ the
style and the ability to have logic as well as the HOP compositional
stuff that Lisp/Scheme provides (this was the main reason I never
settled on Prolog), and OOP, all at the same time! and... and... and....
I think there is a big future here.
Anyway... one thing I needed, and couldn't find was a set of bindings to
_libcurl_. (I was moving a whole bunch of PHP stuff to Oz, and I had
made substantial use of libcurl). Oh well, here's an oportunity for me
to do something useful. I am sure someone will rewrite cURL in the
future, in Oz, and very well, too. For now, all I can do is provide
some bindings.
After reading the documentation, I made some attempts (using the
libcurl.so library on RH9 Linux), but no luck!
I tried compiling the same code as a Linux executable, and it works
fine. First I compiled it with gcc and then with oztool, and both
worked fine!
I assumed that the propblem was with oztool, but now I am not so sure.
When using it as a Mozart functor, the libraries seem to open (but not
close) OK, and a call to curl_easy_perform() - which should access the
URL - returns either (7)can't resolve URL, or (6) can't connect!
As I said, the executable seems fine, it's just the Oz module that won't
play ball.
If anyone is interested in helping, I will make the code I used
available. This is a very popular library, people (Perl, Python, PHP
and many more, already have bindings) it would be great for Oz too!
Of course, someone else may already have done the bindings, in which
case, please let me know!
Best Regards
Alex
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users