flux__ changed the topic of #ocaml to: OCaml 3.09.2 available! Archive of Caml Weekly News: http://sardes.inrialpes.fr/~aschmitt/cwn/ | A free book: http://cristal.inria.fr/~remy/cours/appsem/ | Mailing List: http://caml.inria.fr/bin/wilma/caml-list/ | Cookbook: http://pleac.sourceforge.net/
shawn has joined #ocaml
mikeX has joined #ocaml
mikeX has quit ["Reconnecting"]
mikeX has joined #ocaml
chessguy has quit [" HydraIRC -> http://www.hydrairc.com <- State of the art IRC"]
b00t has joined #ocaml
mikeX has quit ["zz"]
CosmicRay has joined #ocaml
CosmicRay has quit ["Client exiting"]
hikozaemon has joined #ocaml
shawn has quit [Read error: 110 (Connection timed out)]
jcreigh has joined #ocaml
wimp has quit ["Leaving"]
WhatTheDeuce has left #ocaml []
WhatTheDeuce has joined #ocaml
jcreigh has quit ["Do androids dream of electric sheep?"]
WhatTheDeuce has left #ocaml []
wimp has joined #ocaml
finelemon has joined #ocaml
finelemo1 has joined #ocaml
Smerdyakov has quit ["Leaving"]
finelemon has quit [Read error: 110 (Connection timed out)]
ski_ has joined #ocaml
shawn has joined #ocaml
ski has quit [Read error: 110 (Connection timed out)]
bluestorm has joined #ocaml
ski_ has quit [Connection timed out]
ski_ has joined #ocaml
cmeme has quit [Remote closed the connection]
shawn has quit [Broken pipe]
shawn has joined #ocaml
ski_ has quit [Read error: 110 (Connection timed out)]
pango is now known as pangoafk
ski_ has joined #ocaml
pangoafk is now known as pango
_jol_ has joined #ocaml
WhatTheDeuce has joined #ocaml
WhatTheDeuce has left #ocaml []
WhatTheDeuce has joined #ocaml
WhatTheDeuce has left #ocaml []
_jol_ has quit ["leaving"]
b00t has quit [Read error: 104 (Connection reset by peer)]
b00t has joined #ocaml
revision17_ has joined #ocaml
Revision17 has quit [Read error: 110 (Connection timed out)]
smimou has joined #ocaml
hikozaemon has quit ["Leaving..."]
bluestorm has quit [Remote closed the connection]
_jol_ has joined #ocaml
_jol_ has quit ["leaving"]
ski_ is now known as ski
rillig has joined #ocaml
love-pingoo has joined #ocaml
mikeX has joined #ocaml
cp_ has joined #ocaml
koffein has left #ocaml []
Cenobit has joined #ocaml
Cenobit has quit ["Cenobit has no reason"]
ski has quit [Read error: 104 (Connection reset by peer)]
_jol_ has joined #ocaml
ski has joined #ocaml
andreas_b has joined #ocaml
<andreas_b> hi
<andreas_b> I am trying to compile an ocaml project that uses the Graphics library with help of OCamlMakefile. If I compile byte code everything works fine, however if I try to compile for native code I get an error: /usr/bin/ld: cannot find -lX11
mikeX_ has joined #ocaml
mikeX has quit [Read error: 104 (Connection reset by peer)]
Smerdyakov has joined #ocaml
cmeme has joined #ocaml
mikeX_ has quit [Read error: 104 (Connection reset by peer)]
pango is now known as pangoafk
mikeX has joined #ocaml
jcreigh has joined #ocaml
smimou has quit ["bli"]
pangoafk is now known as pango
WhatTheDeuce has joined #ocaml
shawn has quit ["This computer has gone to sleep"]
jcreigh has quit [Read error: 110 (Connection timed out)]
cyyoung has joined #ocaml
woggle has left #ocaml []
rillig has quit ["exit(EXIT_SUCCESS)"]
Snark has joined #ocaml
_jol_ has quit [".i co'o rodo"]
christos has joined #ocaml
mikeX_ has joined #ocaml
mikeX has quit [Read error: 104 (Connection reset by peer)]
Snark has quit ["Leaving"]
cmeme has quit [No route to host]
mikeX_ has quit ["leaving"]
andreas_b has quit ["Ex-Chat"]
kral has joined #ocaml
<kral> hi
<Smerdyakov> You do not have permission to say "hi"!
<dylan> Hi, hi, Ms. American Pie. Drove the chevy to levy but the levy was dry.
<cyyoung> dylan != don mclean
cmeme has joined #ocaml
<kral> Smerdyakov: oh, sorry! :)
<Smerdyakov> kral, that's OK. Just mail me fifteen tons of gold.
jcreigh has joined #ocaml
<cyyoung> question about modules and their uses:
<cyyoung> I've got the beginnings of a poker engine in ocaml
<cyyoung> for each type of hand I have a lot of boilerplate comparators
<cyyoung> like: straight_flush_gt hand_1 hand_2 returns true iff hand_1 is stronger than hand_2
<cyyoung> is it worthwhile to put each type of hand into a module with a common interface?
love-pingoo has quit ["Connection reset by by pear"]
<cyyoung> (signature, i suppose)
<Smerdyakov> Would the module have any type components?
<cyyoung> each hand has a corresponding type
<Smerdyakov> What is the implementation of that type?
<cyyoung> so it'd be like module type IDENTIFIED_HAND = type hand, val gt: hand -> hand -> bool, val lt
<cyyoung> the minimal info necessary to uniquely identify the hand
<cyyoung> so for a straight flush it's just a record of one suit and the high card's value
<Smerdyakov> It could be worthwhile, then.
<cyyoung> for something like 2 of a kind it's one value, one suit, and three full cards
<jcreigh> cyyoung: Why do you need to store the suit?
<cyyoung> for a straight flush?
<jcreigh> yeah
<cyyoung> by 'high card value' i just mean the numeric value
slipstream-- has joined #ocaml
<cyyoung> so you need a suit to know which suit the flush is
<cyyoung> the high card itself would also be sufficient, but that'd be out of sync with how the other hands have been implemented
<jcreigh> well, for comparison purposes, suit doesn't matter. But you're probably, eg, printing out from the same data structure, so you need to be able to print "Straight Flush, Jack High" or whatever.
<cyyoung> jcreigh: right, but one of the figures i want to be able to calculate is a unique rank for each hand
<cyyoung> so i'm breaking symmetry
<cyyoung> erh, breaking symmetry in quotes -- and ranking the suits
<cyyoung> without that you have ambuiguitiies and can't put a complete order on the set of hands
<jcreigh> "unique rank"?
<cyyoung> right
<cyyoung> there's a finite number of hands
<cyyoung> with mostly-well-defined ranking (the exception is 'identical-up-to-the-suits' hands)
kral has quit ["brb"]
<jcreigh> So the flush of diamonds with rankings A-J-9-4-3 has a unique (integer?) rank associated with it?
<cyyoung> it can be assigned one
<jcreigh> Okay, I'm just wondering if that's how you were doing it.
<cyyoung> right
<jcreigh> I recently wrote a poker hand evaluator (not in ocaml, however) and I'm curious as to how someone else went about it.
<cyyoung> the main routine doesn't evaluate them that way
<cyyoung> my plan is 1: finish the evaluator
<cyyoung> 2: start using it to estimate some statistics, etc
kral has joined #ocaml
<cyyoung> i'd like to do a monte-carlo style estimation of how far off assuming independence of the other players' hands is in games like holdem
slipstream has quit [Read error: 110 (Connection timed out)]
<cyyoung> when the code's done and cleaned up i'll post a link in here
<jcreigh> Thanks, I would be interesting in seeing it.
jcreigh has quit ["Do androids dream of electric sheep?"]
zmdkrbou has quit ["bye bye pelf"]
WhatTheDeuce has quit ["Download Gaim: http://gaim.sourceforge.net/"]
WhatTheDeuce has joined #ocaml
WhatTheDeuce has quit [Remote closed the connection]
jcreigh has joined #ocaml
kral has quit ["going to sleep"]
pango is now known as pangoafk
pangoafk is now known as pango
jcreigh has quit ["Do androids dream of electric sheep?"]
cyyoung has quit ["Leaving"]
christos has quit ["Leaving"]