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
willb has quit [Read error: Operation timed out]
willb has joined #ocaml
mjonsson has joined #ocaml
oriba has quit [Quit: Verlassend]
iago has quit [Quit: Leaving]
willb has quit [Ping timeout: 252 seconds]
willb has joined #ocaml
zubeen has joined #ocaml
<zubeen> fun p -> let d = derivative p !vref in incr vref; d
<zubeen> what does this statement mean?
<zubeen> hello
zubeen has quit []
wuj has quit [Ping timeout: 265 seconds]
jpd has quit [Quit: This computer has gone to sleep]
walrus__ has joined #ocaml
valross has quit [Quit: Ex-Chat]
walrus__ has quit [Client Quit]
valross has joined #ocaml
ulfdoz has joined #ocaml
mjonsson has quit [Remote host closed the connection]
hto has quit [Read error: Connection reset by peer]
hto has joined #ocaml
jakedouglas has quit [Quit: Leaving.]
valross has quit [Quit: Ex-Chat]
ulfdoz has quit [Ping timeout: 260 seconds]
Yoric has joined #ocaml
ttamttam has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
ygrek has joined #ocaml
coucou747 has joined #ocaml
jonafan has quit [Read error: Connection reset by peer]
Yoric has quit [Quit: Yoric]
rwmjones has joined #ocaml
yezariaely has joined #ocaml
Yoric has joined #ocaml
Yoric_ has joined #ocaml
Yoric has quit [Read error: Connection reset by peer]
Yoric_ is now known as Yoric
Yoric has quit [Read error: Connection reset by peer]
Yoric has joined #ocaml
rwmjones has quit [Ping timeout: 260 seconds]
ftrvxmtrx has joined #ocaml
rwmjones has joined #ocaml
drk-sd has joined #ocaml
drk-sd has left #ocaml []
yezariaely has left #ocaml []
th5 has joined #ocaml
ikaros has joined #ocaml
ygrek has quit [Ping timeout: 245 seconds]
ygrek has joined #ocaml
_2x2l_ is now known as _2x2l
ygrek has quit [Ping timeout: 245 seconds]
_andre has joined #ocaml
bohanlon has quit [Quit: Back later!]
drk-sd has joined #ocaml
init1 has joined #ocaml
drk-sd has quit [Quit: bllblbl]
Amorphous has quit [Ping timeout: 255 seconds]
Amorphous has joined #ocaml
boscop_ has joined #ocaml
boscop has quit [Ping timeout: 272 seconds]
boscop_ is now known as boscop
junis has joined #ocaml
Yoric_ has joined #ocaml
Yoric has quit [Read error: Connection reset by peer]
Yoric_ is now known as Yoric
Yoric has quit [Read error: Connection reset by peer]
Yoric has joined #ocaml
Modius has quit [Quit: I'm big in Japan]
Yoric_ has joined #ocaml
Yoric has quit [Read error: Connection reset by peer]
Yoric_ is now known as Yoric
Yoric has quit [Read error: Connection reset by peer]
Yoric_ has joined #ocaml
Yoric_ has quit [Read error: Connection reset by peer]
th5 has quit [Read error: Connection reset by peer]
iago has joined #ocaml
jpd has joined #ocaml
jpd has quit [Client Quit]
oriba has joined #ocaml
bohanlon has joined #ocaml
Yoric has joined #ocaml
ttamttam has left #ocaml []
pierreN has joined #ocaml
<pierreN> hi
<pierreN> i'm looking for a way to use mutable types (in my case queue) in a vector. is there a way to do such a thing please ?
<hcarty> pierreN: Not sure I understand the question. You could initialize an array with queues as the values in the array.
stdDoubt has joined #ocaml
<stdDoubt> should a module type signature be placed in the mli file or should always go to the ml file?
<pierreN> yeah but according to caml doc : "if x is mutable, it is shared among all elements of the vector, and modifying x through one of the vector entries will modify all other entries at the same time. " So it is somehow useless to do that
<hcarty> pierreN: That's only with Array.make
rwmjones has quit [Ping timeout: 260 seconds]
<hcarty> pierreN: See Array.init
<hcarty> pierreN: Creating a new Queue.t for each element, of course
<pierreN> hcarty: i'm sorry but i'm using caml light
<hcarty> pierreN: Ah, I'm not sure then - I've never used caml light. Does it not have an Array.init?
<hcarty> pierreN: You could make the array, then replace each element with a fresh queue.
<hcarty> stdDoubt: Generally the .mli, as it makes it easier to install/provide the .mli with the compiled library, without requiring the full source code
<hcarty> stdDoubt: Both work, but the mli is the more common approach
<pierreN> hcarty: thank you (gaah that was obvious)
<hcarty> pierreN: You're welcome - I've run in to the same problem in the past :-)
<hcarty> Using Array.make with a mutable value that is
jakedouglas has joined #ocaml
rwmjones has joined #ocaml
ccasin has joined #ocaml
munga has joined #ocaml
yezariaely has joined #ocaml
yezariaely has left #ocaml []
pierreN has quit [Quit: Page closed]
Snark_ has joined #ocaml
oriba has quit [Remote host closed the connection]
ftrvxmtrx has quit [Quit: Leaving]
jonafan has joined #ocaml
<hcarty> 'print_endline (show (option int * string) (Some 3, "four"));;' with no syntax extensions involved
<adrien> like I said yesterday: Oleg is crazy :p
<hcarty> adrien: Indeed :-) But it's the kind of crazy I'm glad exists.
<adrien> yeah, definitely =)
ygrek has joined #ocaml
jpd has joined #ocaml
munga has quit [Ping timeout: 240 seconds]
lpereira has joined #ocaml
Edward__ has joined #ocaml
stdDoubt has quit [Remote host closed the connection]
Yoric has quit [Quit: Yoric]
ftrvxmtrx has joined #ocaml
wuj has joined #ocaml
ulfdoz has joined #ocaml
<orbitz> i still don't think i grok modules in ML yet, mostly from lack of use
<sdschulze> orbitz: ?
Yoric has joined #ocaml
<sdschulze> orbitz: I don't understand that question.
<orbitz> i didn't ask one
<adrien> you actually use them all the time ;-)
<orbitz> s/lack of use/lack of writing/
<sdschulze> orbitz: There's something you don't understand -- what exactly?
<orbitz> just all the stuff you can do witht hem
<orbitz> coming from languagse that have a module system like python or haskell you don't think of modules like you do in ML
<sdschulze> Is is that different?
<orbitz> yes
<orbitz> IMO
<orbitz> the basics are similar, but things like functors do not exist there
Snark_ has quit [Quit: Ex-Chat]
Yoric has quit [Quit: Yoric]
Yoric has joined #ocaml
Edward__ has quit [Ping timeout: 252 seconds]
Modius has joined #ocaml
ulfdoz_ has joined #ocaml
ulfdoz has quit [Ping timeout: 265 seconds]
ulfdoz_ is now known as ulfdoz
Edward__ has joined #ocaml
ccasin has quit [Quit: Leaving]
_unK has joined #ocaml
init1 has quit [Quit: Quitte]
Edward__ has quit [Ping timeout: 250 seconds]
coucou747 has quit [Quit: 0x2a]
ygrek has quit [Ping timeout: 245 seconds]
rwmjones is now known as rwmjones_afk
_andre has quit [Quit: *puff*]
Yoric has quit [Quit: Yoric]
Edward__ has joined #ocaml
ulfdoz has quit [Read error: Operation timed out]
bohanlon has quit [Quit: Back later!]
cthuluh_ has joined #ocaml
cthuluh has quit [Disconnected by services]
cthuluh_ is now known as cthuluh
lpereira has quit [Quit: Leaving.]
ikaros has quit [Quit: Leave the magic to Houdini]
junis has quit [Read error: Connection reset by peer]
valross has joined #ocaml
valross has quit [Ping timeout: 265 seconds]
valross has joined #ocaml
valross has quit [Client Quit]
valross has joined #ocaml
valross has quit [Client Quit]
valross has joined #ocaml
valross has quit [Remote host closed the connection]
valross has joined #ocaml
oriba has joined #ocaml
<oriba> hi. can I use let _ = .... as startsymbol in every compilation unit?
<oriba> when is the code executed?
<oriba> I mean... I found an example, where let _ = ... is used in ocamllex for setting up a symboltable
<oriba> but when my program starts somewhere else (say main.ml)
<oriba> ... what execution order would I have with more then one let _ = ... ?
_unK has quit [Remote host closed the connection]
iago has quit [Quit: Leaving]
<orbitz> i usually do let () = main...
mjonsson has joined #ocaml