Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Challenge yourself
Index -> Programming, General Programming -> Functional Programming
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
wtd




PostPosted: Wed May 11, 2005 7:08 pm   Post subject: 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.
Sponsor
Sponsor
Sponsor
sponsor
Naveg




PostPosted: Wed May 11, 2005 10:21 pm   Post subject: (No subject)

i'm on the fifth one right now but it seems the site just went down
Naveg




PostPosted: Wed May 11, 2005 11:08 pm   Post subject: (No subject)

you might have trouble doing 5 in O'Caml....
wtd




PostPosted: Wed May 11, 2005 11:13 pm   Post subject: (No subject)

Vladimir wrote:
you might have trouble doing 5 in O'Caml....


What is it?
Naveg




PostPosted: Wed May 11, 2005 11:17 pm   Post subject: (No subject)

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




PostPosted: Thu May 12, 2005 1:54 am   Post subject: (No subject)

HTTP GET requests are not overly difficult in O'Caml, provided you have the netclient library installed (it's in the Debian repos).

code:
open Http_client.Convenience;;

print_endline (http_get "http://www.compsci.ca/v2");;
Naveg




PostPosted: Thu May 12, 2005 6:50 pm   Post subject: (No subject)

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.
Display posts from previous:   
   Index -> Programming, General Programming -> Functional Programming
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 7 Posts ]
Jump to:   


Style:  
Search: