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