mbishop changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | Grab Ocaml 3.10.0 from http://caml.inria.fr/ocaml/release.html (featuring new camlp4 and more!)
yminsky has quit []
__suri has quit []
buluca has quit [Remote closed the connection]
jlouis_ has joined #ocaml
__suri has joined #ocaml
jeffwheeler has joined #ocaml
jlouis has quit [Read error: 110 (Connection timed out)]
buluca has joined #ocaml
Mr_Awesome_ has joined #ocaml
<jeffwheeler> Hmm, what's the best way to read in a document in Pxp that has a PUBLIC DTD (which I can't avoid)? I'm thinking I could save the DTD locally, but how can I force Pxp to use that, instead of choking at the PUBLIC link?
Mr_Awesome has quit [Read error: 110 (Connection timed out)]
buluca has quit [Read error: 113 (No route to host)]
buluca has joined #ocaml
jlouis has joined #ocaml
mordaunt has joined #ocaml
opening has quit [Read error: 110 (Connection timed out)]
jlouis_ has quit [Read error: 110 (Connection timed out)]
mordaunt has quit [Connection timed out]
bluestorm_ has quit [Remote closed the connection]
ulfdoz has quit [Remote closed the connection]
ulfdoz has joined #ocaml
<orbitz> when you paramaterize a functor do you tend to name it aftor the purpose you are using it for or the type? for instance module ThreadMap = Map.Make(String);; vs module MapString = Map.Make(String);;
<tsuyoshi> the type
<tsuyoshi> since you can use the same type (and therefore the same module) for different purposes
<hcarty> orbitz: I've done both in the case of Map - if I'll use it for different purposes then I use the type, otherwise the purpose
<hcarty> But tsuyoshi's response is perhaps more generally applicable and future-safe
<orbitz> my only arguemtn against the type is it makes it more of a npain to change the places you use it if you decide to use a different type, or no?
brooksbp has joined #ocaml
hkBst has quit ["Konversation terminated!"]
<hcarty> The code changes required to go from "by purpose" naming to "by type" naming would be similar (I think?) to those required to change the type when naming by type
<hcarty> So if naming by purpose seems more appealing to you then you can start with that and change later if you choose
<brooksbp> ocaml have sockets?
mng has quit []
Moisteh has joined #ocaml
<Moisteh> english have grammers?
<jeffwheeler> I think he meant "English have grammars?"
<tsuyoshi> if you're more likely to change the type than the purpose than I would name it after the purpose
Moisteh has left #ocaml []
<brooksbp> Does Ocaml have support for BSD sockets?
<tsuyoshi> yes
<tsuyoshi> in the Unix module (which despite the name, works in windows too)
carm has joined #ocaml
<orbitz> getting use dot udnerstandign type errors form the compiler takes a bit
structured has quit [Read error: 110 (Connection timed out)]
jeffwheeler has quit ["Leaving."]
brooksbp has quit []
carm has quit [Read error: 110 (Connection timed out)]
carm has joined #ocaml
buluca has quit [Read error: 113 (No route to host)]
__suri_ has joined #ocaml
__suri has quit [Connection timed out]
dibblego has joined #ocaml
dibblego has quit [Client Quit]
opening has joined #ocaml
ygrek has joined #ocaml
Nutssh has quit ["Client exiting"]
asmanur has joined #ocaml
jlouis_ has joined #ocaml
jlouis has quit [Read error: 110 (Connection timed out)]
wy has quit ["Ex-Chat"]
Associat0r has quit []
marmottine has joined #ocaml
Snark has joined #ocaml
dv_^ has joined #ocaml
leo037 has joined #ocaml
bluestorm has joined #ocaml
munga_ has joined #ocaml
Mr_Awesome_ has quit ["aunt jemima is the devil!"]
marmottine has quit ["Quitte"]
buluca has joined #ocaml
dv_^ is now known as crys
crys is now known as baronbaruch
baronbaruch has quit ["leaving"]
ygrek has quit [Connection reset by peer]
asmanur has quit [Remote closed the connection]
ygrek has joined #ocaml
MaSHUTKA has joined #ocaml
MaSHUTKA has left #ocaml []
pejo has joined #ocaml
buluca has quit [Read error: 113 (No route to host)]
<pejo> Is there a bot (here?) or website that can evaluate simple expressions?
Morphous_ has quit ["shutdown"]
Amorphous has joined #ocaml
pejo has left #ocaml []
cadabra has joined #ocaml
<cadabra> Is anyone using ocaml-mysql?
<cadabra> I downloaded, built and installed (configure, make, make opt, make install), but when I run "ocaml demo.ml" I get "Reference to undefined global `Mysql`
<cadabra> Is there something else I have to do to find it correctly?
<cadabra> This is my first ocaml project, so I don't know much about the logistics of using other libraries and things..
zmdkrbou has quit [Read error: 110 (Connection timed out)]
<flux> cadabra, do you have ocamlfind?
<flux> cadabra, you need to tell ocaml- which packages you are using
ygrek has quit [Remote closed the connection]
ygrek has joined #ocaml
carm has quit ["Konversation terminated!"]
leo037 has quit ["Leaving"]
<cadabra> flux: I do have ocamlfind
<flux> cadabra, ocamlfind list | grep -i mysql - does it list mysql?
<cadabra> yup, it does
<flux> cadabra, in that case: ocamlfind ocamlc -linkpkg -package ocaml-mysql (or whatever the package name was) -o demo demo.ml
<cadabra> flux: Aha, I see, thank you, it works and the executable runs correctly
<flux> cadabra, when you reach more than one (or maybe more than a few..) source files, you would use ocamlfind in a slightly different way, but I suppose that works for you now
magnusj has quit [Read error: 110 (Connection timed out)]
<cadabra> Okay, it's good to get started.
Associat0r has joined #ocaml
<cadabra> Oh I see, all this stuff is similar to gcc. I just assumed it was more loose, like say Ruby or something.
munga_ has quit ["Ex-Chat"]
buluca has joined #ocaml
zmdkrbou has joined #ocaml
pango_ has quit [Remote closed the connection]
pango_ has joined #ocaml
<orbitz> I hve a situation where I am getting complaintst hat some type variabels are unbound, but its a fold method for a class i created so I don't care too much what type it is so i'm not sure why it complains
<bluestorm> hm
<bluestorm> typing errors in POO code can get a little complicated
<bluestorm> do you have some code to show ?
<bluestorm> (mostly, you can fix it by giving a type annotation in the right place)
<orbitz> i'll upload it
<orbitz> pastebin.de?
<bluestorm> you should try to give types
<bluestorm> for example
<bluestorm> method fold (f: int -> int) (acc: int) =
<orbitz> i don't necesarly know the type of acc though
<bluestorm> hm
<orbitz> i can dothat as a test but does it solve my larger issue?
<bluestorm> hm
<bluestorm> i don't know the POO part of ocaml enough to help you comfortably here
<bluestorm> but as far as i know, the issue *can* be solved with some annotations
<bluestorm> and it doesn't require to drop polymorphism
<bluestorm> hmm
<bluestorm> seems there is an fold example, may be relevant here
<orbitz> i was wonderinf if i was oging ot ahv eto do teh ['a] notation
cadabra has quit [Read error: 113 (No route to host)]
<orbitz> hrm
<bluestorm> hm
<bluestorm> you're difficult to read sometimes
<orbitz> i was wondering if i was goign to have to do the ['a] notation
<orbitz> with the thanks for th elink it seems to go ove rmy problem
<orbitz> i'm unsure of how i feel abotu the objective-ness in Ocaml
Anarchos has joined #ocaml
jlouis has joined #ocaml
jcpiza is now known as satan
jlouis_ has quit [Read error: 110 (Connection timed out)]
Anarchos has quit ["Vision[0.8.5-0418]: i've been blurred!"]
satan has quit [Nick collision from services.]
buluca has quit [Read error: 113 (No route to host)]
satan has joined #ocaml
postalchris has joined #ocaml
buluca has joined #ocaml
wy has joined #ocaml
buluca has quit ["Leaving."]
buluca has joined #ocaml
ertai has joined #ocaml
postalchris has quit [Read error: 110 (Connection timed out)]
jlouis_ has joined #ocaml
Snark has quit ["Quitte"]
jlouis has quit [Read error: 110 (Connection timed out)]
postalchris has joined #ocaml
postalchris has quit [Client Quit]
ygrek has quit [Remote closed the connection]
Morphous has joined #ocaml
Amorphous has quit [Connection timed out]
Associat0r has quit []
satan is now known as satanas
ertai has quit [Read error: 113 (No route to host)]
jlouis has joined #ocaml
cadabra has joined #ocaml
kelaouchi has quit [Read error: 110 (Connection timed out)]
jlouis_ has quit [Read error: 110 (Connection timed out)]
kmeyer has quit [Read error: 104 (Connection reset by peer)]
kmeyer has joined #ocaml