Taaus changed the topic of #ocaml to: http://caml.inria.fr/oreilly-book/
tav`` has quit ["Hakuna Matata"]
tav`` has joined #ocaml
skylan has quit [Read error: 104 (Connection reset by peer)]
skylan has joined #ocaml
thelema|away has quit [Read error: 104 (Connection reset by peer)]
timmy has quit [Read error: 113 (No route to host)]
timmy has joined #ocaml
thelema|away has joined #ocaml
gl has joined #ocaml
<timmy> what is the gui support in ocaml like?
<gl> no idea
<timmy> it looks like there is tk and stuff
<Taaus> And GTK+, though I've never been able to get it to work... (Prolly because I'm a win32 user ;)
<Taaus> Go check out the GUI section of the Hump. (That is, I think there's one... Maybe it's called Graphics, or something :)
gl has quit [Read error: 113 (No route to host)]
gl has joined #ocaml
* gl is away: work in progress
gl has quit [carter.openprojects.net irc.openprojects.net]
skylan has quit [carter.openprojects.net irc.openprojects.net]
scipient has quit [carter.openprojects.net irc.openprojects.net]
Yurik has quit [carter.openprojects.net irc.openprojects.net]
tav`` has quit [carter.openprojects.net irc.openprojects.net]
Taaus has quit [carter.openprojects.net irc.openprojects.net]
thelema|away has quit [carter.openprojects.net irc.openprojects.net]
smkl has quit [carter.openprojects.net irc.openprojects.net]
timmy has quit [carter.openprojects.net irc.openprojects.net]
gl has joined #ocaml
timmy has joined #ocaml
skylan has joined #ocaml
tav`` has joined #ocaml
Yurik has joined #ocaml
Taaus has joined #ocaml
scipient has joined #ocaml
Taaus has quit [carter.openprojects.net irc.openprojects.net]
Taaus has joined #ocaml
thelema|away has joined #ocaml
smkl has joined #ocaml
Taaus_ has joined #ocaml
Taaus has quit [Read error: 104 (Connection reset by peer)]
Demitar has joined #ocaml
<Demitar> Anyone around? (Segfault in OCamlSDL, convert_color().)
<Demitar> Hmm.. I wonder what Is_long(Field(color, 0)) really does... (color is an int triplet)
Yurik has quit [Read error: 95 (Operation not supported)]
Yurik has joined #ocaml
Demitar has quit []
robin has joined #ocaml
robin is now known as puffin
puffin has quit [Client Quit]
puffin has joined #ocaml
kjs3 has joined #ocaml
malc has joined #ocaml
kjs3 has quit [Read error: 110 (Connection timed out)]
physarum has joined #ocaml
malc has quit ["Changing server..."]
lgv_ has joined #ocaml
lgv_ is now known as lgv
* gl is back (gone 09:20:29)
skylan has quit [Read error: 104 (Connection reset by peer)]
Dimka has joined #ocaml
Dimka has quit ["Client Exiting"]
vect- has joined #ocaml
gl has quit [No route to host]
Demitar has joined #ocaml
kjs3 has joined #ocaml
<Dieb> hello all
<Dieb> How can i know the length of a matrix? we can for a vect (vect_length) but i didn't found for a matrix. Have i to buils my own function?
<Dieb> the size, i mean
<Demitar> Matrix as in array of arrays?
<Dieb> style [|[|0; 0; 0|]; [|0; 0; 0|]; [|0; 0; 0|]|]
<Dieb> or more. But how to know how long it is (in the two length, x and y)
<Dieb> am i enought clear ? ;)
<Demitar> Well you have to remember that it is *possible* to have different y lengths.
<Dieb> yes of course
<Demitar> But generally x <- Array.length arr; y <- Array.length (arr.(0));
<Dieb> but, for exemple a function define #let m = make_matrix 3 4;; how can i know after those different length? (i tried #array_length arr;; and it didn't workrd
<Demitar> val make_matrix : int -> int -> 'a -> 'a array array
<Demitar> You need to pass the inital value (as well as type).
<Demitar> # let m = make_matrix 3 4;;
<Demitar> val m : '_a -> '_a array array = <fun>
<Demitar> # let m = make_matrix 3 4 0;;
<Demitar> val m : int array array = [|[|0; 0; 0; 0|]; [|0; 0; 0; 0|]; [|0; 0; 0; 0|]|]
<Demitar> # length m;;
<Demitar> - : int = 3
<Demitar> # length (m.(0));;
<Demitar> - : int = 4
<Dieb> ok. it didn't work for me. Maybe becouse i'm using camllight. grrr
<Dieb> however, thank's a lot for your help
* Demitar goes to look in the camllight manual..
<Demitar> Where did it break? length?
<Dieb> yes
<Demitar> You'll need to use vect_length since it's camllight (I used open Array;; in ocaml).
<Dieb> yees!! this work! i didn'd beleived a vect function could work for an array
<Dieb> thank you very much Demitar
<Demitar> Well if you look closely the make_matrix creates a vector of vectors.
<Dieb> yes
<Dieb> and the first argument, x in m.(x).(y) is the id of the vector and y the id of the element in the vector. Thank's again!!
<Demitar> Hmm... wonder why it doesn't want to know of event...
<Demitar> File "splorch.ml", line 259, characters 18-35:
<Demitar> Unbound value Event.new_channel
<Demitar> let channel = Event.new_channel () in
<smkl> you should use "-threads" when compiling stuff using threads
<Dieb> i really don't know what is your pb. I'm a simple beginner. this help? http://pauillac.inria.fr/caml/caml-list/1474.html
<Demitar> Much better (although that is -thread).
vect- is now known as gl
Demitar has quit []
thelema|away is now known as thelema
skylan has joined #ocaml
malc has joined #ocaml
gl has quit ["LA foule est une somme d'erreurs qu'il faut corriger"]
Taaus_ is now known as Taaus
lgv has quit [Remote closed the connection]
malc has quit ["no reason"]