
-----------------------------------
wtd
Wed May 11, 2005 7:08 pm

Challenge yourself
-----------------------------------
http://www.pythonchallenge.com/

The idea is to use Python, but I'm challenging myself to solve them with O'Caml, just as an exercise in how well I remember the language.  I'm working on number 4 now.  18 left after that.

-----------------------------------
Naveg
Wed May 11, 2005 10:21 pm


-----------------------------------
i'm on the fifth one right now but it seems the site just went down

-----------------------------------
Naveg
Wed May 11, 2005 11:08 pm


-----------------------------------
you might have trouble doing 5 in O'Caml....

-----------------------------------
wtd
Wed May 11, 2005 11:13 pm


-----------------------------------
you might have trouble doing 5 in O'Caml....

What is it?

-----------------------------------
Naveg
Wed May 11, 2005 11:17 pm


-----------------------------------
you have to follow a php linked list that is about 300 pages long, as the source of the first page implies, you'll need the urllib module for python

-----------------------------------
wtd
Thu May 12, 2005 1:54 am


-----------------------------------
HTTP GET requests are not overly difficult in O'Caml, provided you have the netclient library installed (it's in the Debian repos).

open Http_client.Convenience;;

print_endline (http_get "http://www.compsci.ca/v2");;

-----------------------------------
Naveg
Thu May 12, 2005 6:50 pm


-----------------------------------
let me know when you get to peak hell, i need some guidance.

I found and used the p***** module and got the resultant dataset, but i'm now at a loss for what to do with it.
