gildor changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 3.12.0 http://bit.ly/aNZBUp
clog has joined #ocaml
likebike has joined #ocaml
zpop has joined #ocaml
khia0 has joined #ocaml
khia0 has left #ocaml []
Associat0r has joined #ocaml
itegebo has quit [Ping timeout: 276 seconds]
mjonsson has quit [Read error: Connection reset by peer]
zpop has quit [Quit: leaving]
ygrek has joined #ocaml
vivanov has joined #ocaml
f[x] has quit [Read error: Connection reset by peer]
vivanov has quit [Quit: Lost terminal]
einstein` has joined #ocaml
einstein` has left #ocaml []
vivanov has joined #ocaml
sepp2k has quit [Ping timeout: 255 seconds]
ymasory has quit [Ping timeout: 255 seconds]
ymasory has joined #ocaml
sepp2k has joined #ocaml
ygrek has quit [Ping timeout: 250 seconds]
ygrek has joined #ocaml
dnolen has joined #ocaml
dnolen has quit [Client Quit]
Snark has joined #ocaml
ymasory has quit [Quit: Leaving]
Cyanure has joined #ocaml
ismarc_netbook has quit [Quit: Leaving]
Tobu has joined #ocaml
Associat0r has quit [Quit: Associat0r]
ygrek has quit [Ping timeout: 250 seconds]
edwin has joined #ocaml
boscop_ has joined #ocaml
boscop has quit [Ping timeout: 255 seconds]
mcclurmc_home has joined #ocaml
philtor has joined #ocaml
philtor has quit [Ping timeout: 240 seconds]
Tobu has quit [Ping timeout: 268 seconds]
axiles has joined #ocaml
vivanov has quit [Ping timeout: 260 seconds]
vivanov has joined #ocaml
GOP-USA_dotcom has quit [Ping timeout: 255 seconds]
Tobu has joined #ocaml
GOP-USA_dotcom has joined #ocaml
GOP-USA_dotcom has quit [Ping timeout: 276 seconds]
GOP-USA_dotcom has joined #ocaml
GOP-USA_dotcom has quit [Ping timeout: 268 seconds]
GOP-USA_dotcom has joined #ocaml
GOP-USA_dotcom has quit [Ping timeout: 268 seconds]
GOP-USA_dotcom has joined #ocaml
<vivanov> although applied to more arguments than Hashtbl.find expects, it works -- why? open Hashtbl
<vivanov> let h = create 10
<vivanov> let () = add h 0 (fun x -> x )
<vivanov> let res = find h 0 87;;
GOP-USA_dotcom has quit [Ping timeout: 258 seconds]
GOP-USA_dotcom has joined #ocaml
<adrien> because it is: let res = (find h 0) 87;; which is pretty much like: let res0 = find h 0 in res0 87;;
GOP-USA_dotcom has quit [Read error: Connection reset by peer]
<zorun> funny, didn't know you could store functions on hash table
<vivanov> :)
GOP-USA_dotcom has joined #ocaml
GOP-USA_dotcom has quit [Ping timeout: 246 seconds]
boscop_ is now known as boscop
ikaros has joined #ocaml
ulfdoz has quit [Read error: Operation timed out]
ulfdoz has joined #ocaml
GOP-USA_dotcom has joined #ocaml
Yoric has joined #ocaml
vivanov has quit [Quit: Lost terminal]
GOP-USA_dotcom has quit [Ping timeout: 252 seconds]
GOP-USA_dotcom has joined #ocaml
bacam has joined #ocaml
GOP-USA_dotcom has quit [Ping timeout: 246 seconds]
<hcarty> zorun: In 3.12, you can store modules in a hash table too
GOP-USA_dotcom has joined #ocaml
GOP-USA_dotcom has quit [Ping timeout: 250 seconds]
ulfdoz has quit [Ping timeout: 260 seconds]
ulfdoz has joined #ocaml
GOP-USA_dotcom has joined #ocaml
GOP-USA_dotcom has quit [Read error: Connection reset by peer]
<zorun> hcarty: awesome! the hash function must be pretty smart
Yoric has quit [Quit: Leaving.]
<thelema> zorun: sadly functions can't be keys, only values
vivanov has joined #ocaml
Yoric has joined #ocaml
<adrien> actually, ... # h;;
<adrien> - : ('_a -> '_a, int) Hashtbl.t = <abstr>
<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]
ftrvxmtrx has joined #ocaml
jamii has quit [Ping timeout: 258 seconds]
ftrvxmtrx has quit [Client Quit]
agarwal1975 has quit [Ping timeout: 255 seconds]
agarwal1975 has joined #ocaml
Morphous has quit [Ping timeout: 255 seconds]
sepp2k has joined #ocaml
Morphous has joined #ocaml
<orbitz> mfp: Here is a dump of, AFAIK< raw bytes from the socket, notice the headers: https://gist.github.com/318c91cb1252f20f6e4d
ulfdoz has joined #ocaml
munga has joined #ocaml
jld has joined #ocaml
<thelema> Xaseron: maybe arrays would be better for you?
iris1 has quit [Quit: iris1]
jld has left #ocaml []