gl changed the topic of #ocaml to: OCaml 3.07 ! -- Archive of Caml Weekly News: http://pauillac.inria.fr/~aschmitt/cwn , A tutorial: http://merjis.com/richj/computers/ocaml/tutorial/ , A free book: http://cristal.inria.fr/~remy/cours/appsem, Mailing List (best ml ever for any computer language): http://caml.inria.fr/bin/wilma/caml-list | http://icfpcontest.org/ !!
vezenchio has quit ["--- reality is that which, when you stop believing in it, doesn't go away ---"]
Shammah has joined #ocaml
kinners has quit ["leaving"]
reltuk has joined #ocaml
timofonic has quit [Read error: 110 (Connection timed out)]
Vekza has quit ["Leaving"]
farizeo has quit [Client Quit]
reltuk has quit [Read error: 60 (Operation timed out)]
Shammah has quit [Read error: 110 (Connection timed out)]
_jpl_ has quit ["Download Gaim: http://gaim.sourceforge.net/"]
fariseo has joined #ocaml
monotonom has joined #ocaml
Vekza has joined #ocaml
fariseo has quit [Client Quit]
Vekza has quit ["Leaving"]
monotonom has quit ["Don't talk to those who talk to themselves."]
Vekza has joined #ocaml
<bk_> "using tuples as parameters to a function is unusual an inefficient"
<bk_> (in ocaml)
<bk_> that claim sounds like BS to me
<Smerdyakov> It probably isn't.
<Smerdyakov> (Isn't BS, I mean.)
<bk_> could you elaborate on that a bit ? the guy claims that using fun x y z is supposedly ocaml 'convention' whereas using tuples is not
reltuk has joined #ocaml
reltuk has quit [Remote closed the connection]
<Smerdyakov> Well, the compiler just optimizes the curried case and not the tupled one.
<Smerdyakov> It's an arbitrary convention -- SML compilers tend to do the opposite.
<bk_> hm ok, thx
Alain_ has joined #ocaml
Vekza has quit ["Leaving"]
Demitar has quit [Remote closed the connection]
gim has joined #ocaml
Demitar has joined #ocaml
noss has joined #ocaml
phubuh has quit [Remote closed the connection]
phubuh has joined #ocaml
<phubuh> hm
<phubuh> isn't ocaml 3.07+2 supposed to have -vmthread?
<bk_> -vmthread Generate code that supports the threads library with VM-level scheduling
<bk_> it does, no ?
Alain_ has left #ocaml []
<phubuh> bk_: not for me, it seems
<bk_> i once had a problem w/ ocamlfind and non-working -vmthread, other than that ocamlc -help tells me -vmthread is there
kozko has joined #ocaml
kozko has left #ocaml []
Shammah has joined #ocaml
Snark has joined #ocaml
<Snark> slt
noss has quit [Client Quit]
<TramZzz> hello
<TramZzz> I have a strange problem while using a C function
<TramZzz> the program doesn't act the same way whether I declare an unsed variable or not
<TramZzz> I have been told I could be a bad memory usage
tea has joined #ocaml
<TramZzz> might it be a ocaml compiler problem?
<Demitar> Declare it where?
<Demitar> Anyway I've got to go. Basically I suspect you're missing how the C function is called. The symbol is looked up and the arguments are pushed onto the stack, thus the number of arguments and their order becomes vital. (OCaml doesn't read your C source.)
Demitar has quit ["Bubbles..."]
TramZzz is now known as tram
Axioplase has joined #ocaml
<Axioplase> Hello!
vezenchio has joined #ocaml
<Axioplase> always forgetting this: This expression has type (int * int) list but is here used with type int <-- does it mean i gave an int to my func? or that it expects an integer ?
Skal has joined #ocaml
<Banana> Axioplase: it expects an int.
<Axioplase> ergh! :/
<Axioplase> thx
Shammah has quit [Read error: 110 (Connection timed out)]
<Axioplase> i don't understand where my arg could be seen as an integer within the function :/
<Axioplase> is there a pastebot somewhere, so that someone helps me? :/
<malte> http://rafb.net/paste/ perhaps?
<mellum> Axioplase: Unbound value get_alignment
bk_ has quit ["Terminated with extreme prejudice - dircproxy 1.0.5"]
bk_ has joined #ocaml
<Axioplase> (not big, since i use it to define and test my funcs before adding them to the project's source)
<mellum> Axioplase: well, seems obvious. directions is a (int * int) list; but about the first thing you do in get_alignment is "l+dl", and "+" can only be used on ints.
<mellum> Probably you want List.length dl or so.
<Axioplase> but, i do a (fst a) (snd a). therefor, i should catch the two integers of the first element of the list, no?
<mellum> Axioplase: you do that in function get_all_align, which is *entirely* irrelevant to this error
<Axioplase> i don't understand why.
<mellum> By the way, you basically never need fst and snd, since you can match on tuples: a1, a1 :: b1, b2 :: r -> ...
<Axioplase> hum...
<Axioplase> then a1 a2 b1 b2 are integers, aren't they?
<mellum> Axioplase: Depends on the context.
<mellum> But, again, get_all_align is irrelevant to the type problems you have.
<Axioplase> erf! i just saw what you meant!
<Axioplase> i had mistaken the names of those two functions!
* Axioplase slaps himself with a big large camel.
Herrchen has joined #ocaml
cjohnson has quit [Read error: 104 (Connection reset by peer)]
Snark has quit [Remote closed the connection]
bk_ has quit ["I'll be back"]
Dybbuk has quit [Remote closed the connection]
Dybbuk has joined #ocaml
maihem has joined #ocaml
mattam_ has joined #ocaml
buggs^z has joined #ocaml
mattam has quit [Read error: 110 (Connection timed out)]
buggs|afk has quit [Read error: 60 (Operation timed out)]
anyone has joined #ocaml
GreyLensman has joined #ocaml
maihem has quit ["Client exiting"]
bchardon has joined #ocaml
bchardon is now known as Carcajou
Carcajou has quit [Client Quit]
phubuh has quit [Remote closed the connection]
tea has quit ["using sirc version 2.211+KSIRC/1.3.10"]
mattam_ has quit [calvino.freenode.net irc.freenode.net]
yella has quit [calvino.freenode.net irc.freenode.net]
mattam_ has joined #ocaml
yella has joined #ocaml
Phreaze has joined #ocaml
teratorn has joined #ocaml
_shawn has quit [Client Quit]
Axioplase has quit [Read error: 110 (Connection timed out)]
cjohnson has joined #ocaml
Demitar has joined #ocaml
tram has quit [Ping timeout: 14400 seconds]
anyone has quit ["To understand recursion, you must first understand recursion."]
Shammah has joined #ocaml
Anvil_Vapre has joined #ocaml
Xcalibor has joined #ocaml
<Xcalibor> hi all :)
Shammah has quit [Read error: 110 (Connection timed out)]
ocarina_ has joined #ocaml
<ocarina_> res all
Xcalibor has quit [Read error: 104 (Connection reset by peer)]
ocarina_ is now known as Xcalibor
Demitar has quit ["Bubbles..."]
Phreaze is now known as Axioplase
<Axioplase> hum.. i m using Graphics to set some colors with the rgb function. but is there a reverse function which can give me the three components?
<Xcalibor> Axioplase, sorry, i dunno...
<Axioplase> it is an int like RRGGBB. how can i mask it ?
<Xcalibor> however, I'd say that if you have a widget with a color, it's because you gave it to it before (surely at instantation time)
<Xcalibor> otoh, a selector widget would give you the color back
<Axioplase> (yeah, it has a color, but i dont feel like testing all the colors i ve created :/)
<Xcalibor> mmm...
<Axioplase> anyway, i have a worse problem somewhere else :)