<adrien>
but I'm not sure it works well in practice ;-)
DimitryKakadu has joined #ocaml
<thelema>
adrien: insert a key and try to retrieve it
lopex has joined #ocaml
<adrien>
thelema: that works ;-) even with two keys
<adrien>
(I have no idea how that works, maybe that only works for small hashtables by pure luck?)
<thelema>
huh. I'm surprised - I expected the polymorphic (=) to fail
iris1 has joined #ocaml
<adrien>
doesn't (=) start by comparing addresses?
<adrien>
if you use (fun x -> x) as a key and not (let f x = x), it'll fail of course
<adrien>
maybe all functions hash to the same value and are then handled with (=); would have to read the source or do a bit more analysis to know more
<zorun>
using Hashtbl.hash on various functions, different functions hash to a different value
<zorun>
but identical functions (functionnaly speaking) also hash to different values
<zorun>
let f x = x and g x = x in (Hashtbl.hash f, Hashtbl.hash g);;
<zorun>
so it might well be the address of the function
<zorun>
furthermore, something like Hashtbl.hash (fun x -> x);; returns a different result each time it is run
Anarchos has joined #ocaml
sepp2k has quit [Quit: Leaving.]
ikaros has quit [Quit: Ex-Chat]
joelr has joined #ocaml
<joelr>
has anyone used netclient from ocamlnet?
GOP-USA_dotcom has joined #ocaml
Tobu has quit [Read error: Connection reset by peer]
Tobu has joined #ocaml
ulfdoz has quit [Remote host closed the connection]
ulfdoz has joined #ocaml
exa_ has joined #ocaml
exa_ has quit [Ping timeout: 252 seconds]
edwin has quit [Disconnected by services]
edwin1 has joined #ocaml
edwin1 is now known as edwin
Anarchos has quit [Quit: Vision[0.9.7-H-090423]: i've been blurred!]
Associat0r has joined #ocaml
GOP-USA_dotcom has quit [Ping timeout: 268 seconds]
GOP-USA_dotcom has joined #ocaml
agarwal1975 has joined #ocaml
mjonsson has joined #ocaml
ygrek has joined #ocaml
ulfdoz has quit [Ping timeout: 240 seconds]
dnolen has joined #ocaml
ulfdoz has joined #ocaml
^micro has joined #ocaml
<^micro>
/window set * status_format3 %C %+ %- double split on
lopex has quit [Ping timeout: 260 seconds]
<mfp>
joelr: IIRC you have to reuse a pipeline
ygrek has quit [Ping timeout: 250 seconds]
philtor has joined #ocaml
eikke has joined #ocaml
eye-scuzzy has quit [Remote host closed the connection]
Yoric has quit [Quit: Leaving.]
eikke has quit [Ping timeout: 240 seconds]
munga has quit [Ping timeout: 260 seconds]
<joelr>
mfp: what?
<joelr>
mfp: isn't that the default behavior
eikke has joined #ocaml
Anarchos has joined #ocaml
Anarchos has quit [Client Quit]
boscop_ has joined #ocaml
boscop has quit [Ping timeout: 255 seconds]
avsm has joined #ocaml
lopex has joined #ocaml
jamii has joined #ocaml
avsm has quit [Quit: Leaving.]
joelr has quit [Quit: joelr]
avsm has joined #ocaml
ikaros has joined #ocaml
eikke has quit [Ping timeout: 240 seconds]
penryu has joined #ocaml
DimitryKakadu has quit [Remote host closed the connection]
penryu has left #ocaml []
Snark has quit [Quit: Ex-Chat]
vivanov has quit [Ping timeout: 260 seconds]
jamii has quit [Ping timeout: 258 seconds]
Anarchos has joined #ocaml
jamii has joined #ocaml
impy has quit [Quit: impy]
impy has joined #ocaml
Yoric has joined #ocaml
axiles has quit [Remote host closed the connection]
eikke has joined #ocaml
edwin has quit [Remote host closed the connection]
<orbitz>
mfp: you around?
Cyanure has quit [Remote host closed the connection]
Cyanure has joined #ocaml
jamii has quit [Ping timeout: 258 seconds]
avsm has quit [Quit: Leaving.]
jamii has joined #ocaml
eikke has quit [Ping timeout: 240 seconds]
<orbitz>
mfp: Have you seen any issues with ocamlmq where under heavy load messages get interwoven?
<adrien>
hcarty: how do I build xstrp4? :P
<adrien>
hcarty: and is it possible to format with something like: function | None -> "" | Some x -> sprintf "FOO= %s" x ?
jamii has quit [Ping timeout: 260 seconds]
mjonsson has quit [Remote host closed the connection]
Yoric has quit [Quit: Leaving.]
jamii has joined #ocaml
jamii has quit [Ping timeout: 258 seconds]
jamii has joined #ocaml
Anarchos has quit [Quit: Vision[0.9.7-H-090423]: i've been blurred!]
Xaseron has joined #ocaml
boscop_ is now known as boscop
<Xaseron>
im using a lot of List.nth in my code and one of them throws an exception, how can i figure out which one it does?
<orbitz>
Why are you usign so many list.nth?
<orbitz>
Xaseron: turn stacktraces on
philtor has quit [Ping timeout: 250 seconds]
jamii has quit [Ping timeout: 258 seconds]
jamii has joined #ocaml
<Xaseron>
i'm trying to implement a Btree
<Xaseron>
type 'a btree = Node of 'a list * 'a btree list thats my type
ulfdoz has quit [Ping timeout: 250 seconds]
ftrvxmtrx has quit [Quit: This computer has gone to sleep]