00:38
tav`` has quit ["Hakuna Matata"]
00:44
tav`` has joined #ocaml
03:31
skylan has quit [Read error: 104 (Connection reset by peer)]
03:31
skylan has joined #ocaml
04:47
thelema|away has quit [Read error: 104 (Connection reset by peer)]
05:01
timmy has quit [Read error: 113 (No route to host)]
05:11
timmy has joined #ocaml
05:36
thelema|away has joined #ocaml
06:30
gl has joined #ocaml
06:33
<
timmy >
what is the gui support in ocaml like?
06:35
<
timmy >
it looks like there is tk and stuff
06:37
<
Taaus >
And GTK+, though I've never been able to get it to work... (Prolly because I'm a win32 user ;)
06:37
<
Taaus >
Go check out the GUI section of the Hump. (That is, I think there's one... Maybe it's called Graphics, or something :)
06:59
gl has quit [Read error: 113 (No route to host)]
06:59
gl has joined #ocaml
07:03
* gl
is away: work in progress
07:09
gl has quit [carter.openprojects.net irc.openprojects.net]
07:09
skylan has quit [carter.openprojects.net irc.openprojects.net]
07:09
scipient has quit [carter.openprojects.net irc.openprojects.net]
07:09
Yurik has quit [carter.openprojects.net irc.openprojects.net]
07:09
tav`` has quit [carter.openprojects.net irc.openprojects.net]
07:09
Taaus has quit [carter.openprojects.net irc.openprojects.net]
07:09
thelema|away has quit [carter.openprojects.net irc.openprojects.net]
07:09
smkl has quit [carter.openprojects.net irc.openprojects.net]
07:09
timmy has quit [carter.openprojects.net irc.openprojects.net]
07:12
gl has joined #ocaml
07:12
timmy has joined #ocaml
07:12
skylan has joined #ocaml
07:12
tav`` has joined #ocaml
07:12
Yurik has joined #ocaml
07:12
Taaus has joined #ocaml
07:12
scipient has joined #ocaml
07:25
Taaus has quit [carter.openprojects.net irc.openprojects.net]
07:25
Taaus has joined #ocaml
07:32
thelema|away has joined #ocaml
07:32
smkl has joined #ocaml
07:49
Taaus_ has joined #ocaml
07:51
Taaus has quit [Read error: 104 (Connection reset by peer)]
09:57
Demitar has joined #ocaml
09:58
<
Demitar >
Anyone around? (Segfault in OCamlSDL, convert_color().)
10:04
<
Demitar >
Hmm.. I wonder what Is_long(Field(color, 0)) really does... (color is an int triplet)
10:29
Yurik has quit [Read error: 95 (Operation not supported)]
10:31
Yurik has joined #ocaml
10:47
Demitar has quit []
12:30
robin has joined #ocaml
12:30
robin is now known as puffin
12:31
puffin has quit [Client Quit]
12:32
puffin has joined #ocaml
14:09
kjs3 has joined #ocaml
14:33
malc has joined #ocaml
14:48
kjs3 has quit [Read error: 110 (Connection timed out)]
15:26
physarum has joined #ocaml
16:20
malc has quit ["Changing server..."]
16:21
lgv_ has joined #ocaml
16:22
lgv_ is now known as lgv
16:24
* gl
is back (gone 09:20:29)
16:56
skylan has quit [Read error: 104 (Connection reset by peer)]
17:22
Dimka has joined #ocaml
18:10
Dimka has quit ["Client Exiting"]
18:54
vect- has joined #ocaml
18:58
gl has quit [No route to host]
19:56
Demitar has joined #ocaml
20:12
kjs3 has joined #ocaml
21:00
<
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?
21:05
<
Dieb >
the size, i mean
21:10
<
Demitar >
Matrix as in array of arrays?
21:12
<
Dieb >
style [|[|0; 0; 0|]; [|0; 0; 0|]; [|0; 0; 0|]|]
21:13
<
Dieb >
or more. But how to know how long it is (in the two length, x and y)
21:13
<
Dieb >
am i enought clear ? ;)
21:14
<
Demitar >
Well you have to remember that it is
*possible* to have different y lengths.
21:15
<
Dieb >
yes of course
21:15
<
Demitar >
But generally x <- Array.length arr; y <- Array.length (arr.(0));
21:17
<
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
21:19
<
Demitar >
val make_matrix : int -> int -> 'a -> 'a array array
21:19
<
Demitar >
You need to pass the inital value (as well as type).
21:19
<
Demitar >
# let m = make_matrix 3 4;;
21:19
<
Demitar >
val m : '_a -> '_a array array = <fun>
21:19
<
Demitar >
# let m = make_matrix 3 4 0;;
21:19
<
Demitar >
val m : int array array = [|[|0; 0; 0; 0|]; [|0; 0; 0; 0|]; [|0; 0; 0; 0|]|]
21:20
<
Demitar >
# length m;;
21:20
<
Demitar >
- : int = 3
21:20
<
Demitar >
# length (m.(0));;
21:20
<
Demitar >
- : int = 4
21:21
<
Dieb >
ok. it didn't work for me. Maybe becouse i'm using camllight. grrr
21:23
<
Dieb >
however, thank's a lot for your help
21:23
* Demitar
goes to look in the camllight manual..
21:25
<
Demitar >
Where did it break? length?
21:25
<
Demitar >
You'll need to use vect_length since it's camllight (I used open Array;; in ocaml).
21:26
<
Dieb >
yees!! this work! i didn'd beleived a vect function could work for an array
21:27
<
Dieb >
thank you very much Demitar
21:27
<
Demitar >
Well if you look closely the make_matrix creates a vector of vectors.
21:30
<
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!!
21:35
<
Demitar >
Hmm... wonder why it doesn't want to know of event...
21:35
<
Demitar >
File "splorch.ml", line 259, characters 18-35:
21:35
<
Demitar >
Unbound value Event.new_channel
21:36
<
Demitar >
let channel = Event.new_channel () in
21:39
<
smkl >
you should use "-threads" when compiling stuff using threads
21:43
<
Demitar >
Much better (although that is -thread).
21:47
vect- is now known as gl
21:59
Demitar has quit []
22:00
thelema|away is now known as thelema
22:02
skylan has joined #ocaml
22:24
malc has joined #ocaml
22:54
gl has quit ["LA foule est une somme d'erreurs qu'il faut corriger"]
22:57
Taaus_ is now known as Taaus
23:00
lgv has quit [Remote closed the connection]
23:55
malc has quit ["no reason"]