flux changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | Grab OCaml 3.10.2 from http://caml.inria.fr/ocaml/release.html (featuring new camlp4 and more!)
pango_ has quit ["I shouldn't really be here - dircproxy 1.0.5"]
pango_ has joined #ocaml
Snrrrub has joined #ocaml
Snrrrub has quit [Client Quit]
Morphous_ has joined #ocaml
<landonf> Is OUnit a fairly standard choice for unit testing OCaml?
<mbishop> anyone here ever used TEA?
Morphous has quit [Read error: 110 (Connection timed out)]
<mfp> landonf: I think so
<FoolOfSoul> is there any GUI or terminal for OUnit and Log4... ?
<landonf> OCaml's syntax sure throws me for a loop. ; vs ;;, unclear statement termination. Hope it's something you get used to.
<mbishop> you never use ;; except on the top level, and you rarely use ; except for sequenced stuff
<landonf> Where sequenced stuff is like Erlang's , vs ; ?
Kopophex has quit [Read error: 110 (Connection timed out)]
Kopophex has joined #ocaml
<landonf> I think I've got the hang of it =)
pantsd has quit [Read error: 110 (Connection timed out)]
vixey has quit []
mikezackles has quit [Connection timed out]
mikezackles has joined #ocaml
Kopophex has quit [Connection timed out]
Kopophex has joined #ocaml
Axioplase has joined #ocaml
Philonous1 has joined #ocaml
Philonous has quit [Read error: 113 (No route to host)]
det has quit [Remote closed the connection]
mikezackles has quit [Read error: 110 (Connection timed out)]
landonf has quit []
mwc has joined #ocaml
<mwc> Huh, anybody use ocaml on debian? I can't find the lib documentation in any of the ocaml packages
<Chile`> mwc: you tried call the -doc packages?
<Chile`> and you looked in /usr/share/doc/ocaml-* ?
<mwc> Chile`: yeah, I even looked through all the packages spawned from the ocaml source package, and grep'd through their contents
<mwc> nada
<mwc> Package ocaml-doc is not available, but is referred to by another package.
<mwc> This may mean that the package is missing, has been obsoleted, or
<mwc> is only available from another source
<mwc> E: Package ocaml-doc has no installation candidate
<Chile`> which debian are you on? those packages installed fine for me
<mwc> I could have sworn I used to have this,
<mwc> Chile`: deb-testing
<Chile`> same
<Chile`> apt-get update && apt-get upgrade and then try
<mwc> just did that tonight
<mwc> Chile`: nav over to the documentation, and do a dpkg-query -S `pwd`/index.html from the directory containing the docs
<Chile`> ocaml-doc: /usr/share/doc/ocaml-doc/ocaml.html/index.html
<mwc> Chile`: oh, this is strange.
<mwc> I have that package installed, and that documetnation present on my x86 box, just not my powerbook
<mwc> hmmm
* Chile` shrugs
<mwc> it's an arch_all package
<mwc> Filename: pool/non-free/o/ocaml-doc/ocaml-doc_3.10-1_all.deb
<Chile`> -testing is a strange beast.
<Chile`> yup
<tsuyoshi> ocaml-doc is in non-free
<mwc> tsuyoshi: ahah
<tsuyoshi> that could be your problem
<mwc> I'm certain of it
<mwc> just a second
<Chile`> ah
<Chile`> I didn't know you could get that far with a debian system without using non-free
<mwc> Chile`: since PPC can't run blobs, there's really nothing I've ever encountered that's needed nonfree
<mwc> sun's java, flashplugin, etc
<tsuyoshi> I have debian installed on a computer with no internet access (from cd)
<Chile`> ah
<tsuyoshi> and basically.. the non-free packages I needed were documentation and unrar
<tsuyoshi> all the gnu manuals are non-free unfortunately
sporkmonger has quit []
<mwc> tsuyoshi: thanks for noticing what was staring me in the face ;)
<mwc> and your patience, Chile`
ygrek has joined #ocaml
Axioplase has quit ["leaving"]
Philonous has joined #ocaml
m3ga has joined #ocaml
m3ga has quit ["disappearing into the sunset"]
Philonous1 has quit [Read error: 110 (Connection timed out)]
mwc has quit ["leaving"]
petchema has quit [Remote closed the connection]
mishok13 has joined #ocaml
filp has joined #ocaml
jonas_e has joined #ocaml
GustNG has joined #ocaml
guillem has joined #ocaml
munga_ has joined #ocaml
Kopophex has quit ["Leaving"]
tomh has joined #ocaml
Linktim has joined #ocaml
Cygal has left #ocaml []
olgen has joined #ocaml
OChameau has joined #ocaml
Yoric[DT] has joined #ocaml
arquebus has joined #ocaml
arquebus has left #ocaml []
Associat0r has joined #ocaml
asmanur has joined #ocaml
tomh has quit ["http://www.mibbit.com ajax IRC Client"]
rwmjones has joined #ocaml
love-pingoo has joined #ocaml
Linktim_ has joined #ocaml
Linktim has quit [Read error: 113 (No route to host)]
Jedai has joined #ocaml
seafood has joined #ocaml
Jedai has quit [Read error: 104 (Connection reset by peer)]
sporkmonger has joined #ocaml
Jedai has joined #ocaml
bohanlon has quit [Remote closed the connection]
mishok13 has quit [Read error: 104 (Connection reset by peer)]
mishok13 has joined #ocaml
seafood has quit []
seafood has joined #ocaml
Linktim has joined #ocaml
sporkmonger has quit []
seafood has quit []
Linktim_ has quit [Read error: 113 (No route to host)]
Linktim_ has joined #ocaml
sporkmonger has joined #ocaml
Snark has joined #ocaml
mikezackles has joined #ocaml
Linktim has quit [Read error: 110 (Connection timed out)]
love-pingoo has quit ["Connection reset by pear"]
Linktim has joined #ocaml
asmanur is now known as asma
Linktim_ has quit [Read error: 113 (No route to host)]
jamii has joined #ocaml
vixey has joined #ocaml
seafood has joined #ocaml
marmotine has joined #ocaml
vixey_ has joined #ocaml
vixey has quit [Nick collision from services.]
vixey_ is now known as vixey
petchema has joined #ocaml
filp has quit ["Bye"]
olgen has quit []
mishok13 has quit [Read error: 104 (Connection reset by peer)]
jlouis has quit ["Leaving"]
jlouis has joined #ocaml
<crawfordcomeaux> has anyone here used smlserver before?
jlouis_ has joined #ocaml
ygrek has quit [Remote closed the connection]
pango_ has quit [Remote closed the connection]
jonas_e has quit [Remote closed the connection]
ygrek has joined #ocaml
pango_ has joined #ocaml
seafood has quit []
ygrek has quit [Remote closed the connection]
Axioplase_ is now known as Axioplase
Linktim_ has joined #ocaml
dafra has joined #ocaml
<dafra> Hi! How to do some parallelism on dual core ?
ygrek has joined #ocaml
guillem has quit [Remote closed the connection]
Linktim has quit [Read error: 110 (Connection timed out)]
<flux> dafra, you use processes or a threading library such as cothreads
<dafra> thx
<flux> JoCaml is a language-level approach
<crawfordcomeaux> anyone have any experience using smlserver for apache?
pec1 has joined #ocaml
OChameau has quit ["Leaving"]
haveo has quit [Read error: 101 (Network is unreachable)]
Morphous_ is now known as Amorphous
dafra has left #ocaml []
jlouis has quit ["Leaving"]
Kopophex has joined #ocaml
Linktim_ has quit ["Quitte"]
Linktim has joined #ocaml
aheller has joined #ocaml
aheller has left #ocaml []
guillem has joined #ocaml
munga_ has quit [Read error: 110 (Connection timed out)]
Snrrrub has joined #ocaml
Snrrrub has quit [Client Quit]
landonf has joined #ocaml
rwmjones has quit ["Closed connection"]
GustNG has quit [Read error: 104 (Connection reset by peer)]
ygrek has quit [Remote closed the connection]
<landonf> Given this type: type test = TestCase of (unit -> unit) | TestList of test list
<landonf> How would I match on the head and tail of a TestList?
<landonf> Oh I think I finally got it. TestList (h::l)
sporkmonger has quit []
<landonf> I think I've spent longer fighting with a type system today than I ever have before. =)
<vixey> landonf: What you have done there is utterly bizzare
<vixey> Are you sure you aren't meaning to use (unit -> unit) list ?
<landonf> I don't know
<landonf> Are you referring to the original type union? That's not my doing (and I'm not a big fan)
<vixey> oh I thought you wrote that test thing
<landonf> Yeah no, from OUnit. Full definition is type test = TestCase of (unit -> unit) | TestList of test list | TestLabel of string * test
<vixey> oh that makes some sense
<landonf> Yeah it's convenient in terms of its recursive polymorphism. But sending a beginner like me into type morass.
Philonous is now known as Philonous_
<landonf> But I think I've got the hang of it now =)
redocdam has joined #ocaml
<landonf> No idea what this one means though: "The type parameter unit does not meet its constraint: it should be unit -> unit"
_bit has joined #ocaml
munga_ has joined #ocaml
<_bit> (emacs users): Do you use the emacs ocaml-mode including with the source tarball?
asma has quit [Remote closed the connection]
marmotine has quit ["mv marmotine Laurie"]
psnively has joined #ocaml
psnively has quit [Remote closed the connection]
psnively has joined #ocaml
Yoric[DT] has quit ["Ex-Chat"]
tar_ has joined #ocaml
_bit has quit ["http://www.mibbit.com ajax IRC Client"]
<tar_> Is it possible to write a function like "let rec x () = x" which returns a re-parameterized version of itself?
<vixey> I think you could do that if you enable rectypes
<vixey> not certain
Snark has quit ["Ex-Chat"]
psnively has quit []
<tar_> It accepts it with that flag.
<gildor> landonf: you are working on OUnit ?
<landonf> Yeah. Partially as a learning exercise, partially because I wanted something that made fixtures a bit nicer than bracket.
<gildor> do you plan to submit your work to OUnit dev
<landonf> After I've had a chance to use it on this project, at least.
tomh has joined #ocaml
<landonf> Although that'll be never with these bizzaro type errors. Inference just seems to mean things break where I least expect :(
munga_ has quit ["Ex-Chat"]
Philonous_ is now known as Philonous
<gildor> landonf: you want example ?
<landonf> This is what I'm trying to figure out: http://paste.lisp.org/display/64227#1
<gildor> funny to do it using objects
<gildor> landonf: i have a function called "test_decorate" that wrap every test using another function
<landonf> I went with objects because I wanted my fixture state and my test functions associated with one-another.
<landonf> But maybe that's my OO-bias.
Linktim has quit ["Quitte"]
<gildor> this is more compact and more generic
<gildor> than the object approach
<gildor> but you can use it in your OO approach (it is almost the same thing)
<landonf> Thanks. The idea with OO was that I was going to apply the same set up and tear down to a long list of methods.
<gildor> List.map (test_decorate f) your_list
onigiri_ has joined #ocaml
onigiri_ is now known as EmanuelC
pec1 has quit [Read error: 110 (Connection timed out)]
pec1 has joined #ocaml
guillem has quit [Remote closed the connection]
mattam has quit ["..."]
tomh has quit ["http://www.mibbit.com ajax IRC Client"]
<landonf> Thanks
<landonf> I'm still trying to figure out what on earth this means in the context of that object: The type parameter unit does not meet its constraint: it should be unit -> unit
tar_ has quit []