mbishop changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | Grab Ocaml 3.10.0 from http://caml.inria.fr/ocaml/release.html (featuring new camlp4 and more!)
psnively_ has joined #ocaml
psnively_ has quit [Client Quit]
psnively has quit [Read error: 110 (Connection timed out)]
beterraba has quit ["Ex-Chat"]
smimou has quit ["bli"]
joshcryer has quit [Read error: 104 (Connection reset by peer)]
joshcryer has joined #ocaml
david_koontz has quit ["This computer has gone to sleep"]
l_a_m has quit [Remote closed the connection]
magnus_ has joined #ocaml
seafoodX has joined #ocaml
bzzbzz has joined #ocaml
piggybox_ has quit [Client Quit]
piggybox has joined #ocaml
piggybox has quit ["Leaving."]
piggybox has joined #ocaml
seafoodX has quit []
seafoodX has joined #ocaml
Mr_Awesome has quit ["time to impregnate a moth"]
ygrek has joined #ocaml
seafoodX has quit []
seafoodX has joined #ocaml
Cygal has joined #ocaml
david_koontz has joined #ocaml
Cygal has quit [Read error: 104 (Connection reset by peer)]
Cygal has joined #ocaml
Cygal has quit [Remote closed the connection]
Cygal` has joined #ocaml
david_koontz has quit ["Leaving"]
l_a_m has joined #ocaml
piggybox_ has joined #ocaml
piggybox has quit [Read error: 110 (Connection timed out)]
david_koontz has joined #ocaml
magicjm has joined #ocaml
seafoodX has quit []
joshcryer has quit [Client Quit]
david_koontz has quit ["Leaving"]
smimou has joined #ocaml
magicjm has left #ocaml []
pantsd has quit [Remote closed the connection]
G_ has joined #ocaml
G has quit [Read error: 110 (Connection timed out)]
_blackdog has joined #ocaml
_blackdog has left #ocaml []
Cygal` has quit [Read error: 104 (Connection reset by peer)]
gene9 has joined #ocaml
gene9 has quit ["Leaving"]
ygrek has quit [Remote closed the connection]
ygrek has joined #ocaml
pango has quit [Remote closed the connection]
pango has joined #ocaml
ednarofi has joined #ocaml
piggybox__ has joined #ocaml
piggybox_ has quit [Connection timed out]
<flux> hm, this can be interesting for ocaml-windows-environments: http://caml.inria.fr/cgi-bin/hump.cgi?contrib=359
<flux> (I think I'm going to try that out at work..)
<flux> actually the final url is: http://ibgs.christoph-bauer.net/~fridolin/omm/
<flux> and here is where I found the url: Planet Ocaml http://ocaml.cn/planet (and that I picked (I think..) from programming.reddit.com discussion..)
<flux> now if it just packaged everything debian has that'd be a serious contender for windows development ;-)
<TFK> flux, I'd be happy if just the profiler and debugger were provided...
<TFK> flux, your job involves OCaml code?
<flux> yes, at work some pieces of software are written in OCaml
<flux> mostly they've been utilities, though, which perhaps could be useful for the sales-kind-of-people
<flux> and perhaps one can guess who run linux and who run windows ;)
<Smerdyakov> flux, is it just you writing in OCaml there?
<flux> yes
<Smerdyakov> Is it a small company?
<flux> yes..
<TFK> Are you spreading the good word? ;-)
<flux> I'm thinking ocaml will find more use - it's been quite a fast way to prototype and build working software
<Smerdyakov> flux, apply to Jane Street and save yourself the trouble. ;)
<TFK> Jane Street?
<flux> smerdyakov, I think it's some trouble to move over to the other side of the Great Pond ;)
magicjm has joined #ocaml
<Smerdyakov> flux, OK, but isn't it also some trouble to work with crappy programming languages?
<TFK> flux, what language(s) do you write in at work (besides OCaml)?
<flux> tfk, c, c++
<flux> smerdyakov, well, it can be an inconvenience..
<flux> smerdyakov, I guess the most trouble comes from debugging the old software written in C ;)
<Smerdyakov> flux, working for someone else at all is an inconvenience. Apparently you found a price for it that inspires you to do it anyway.
<flux> tfk, and the obvious ones: perl, sh
* TFK <3 pointer arithmetic ^_^
<Smerdyakov> It makes a joke?
xtacy[] has quit [Remote closed the connection]
<flux> I almost blisfully forgot about java, that too..
|Lupin| has joined #ocaml
<|Lupin|> Hello, there.
<TFK> howdy
<|Lupin|> Anybody willing to help with compiling Caml bindings for a C library in a proper and portable way ?
<Smerdyakov> There aren't examples you can work from?
<|Lupin|> Smerdyakov: I don't know actually
<Smerdyakov> Maybe you should look first....
<|Lupin|> any suggestion welcome
<|Lupin|> the library I am working on consists of a C file and two Caml modules
<|Lupin|> also, it comes from the same package as the C library it provides an interface too
<Smerdyakov> No, I don't know anything about the subject.
<|Lupin|> so when the Caml bindings are compiled, the -L flag it receives points at the compiled C lib, but the -L flag that should be used later should point to the installed lib
<|Lupin|> (this is one of the issues)
Len1 has joined #ocaml
_andre has joined #ocaml
<_andre> hello
<|Lupin|> Hi.
<_andre> when i define a function as "let f ~a = print_int a; raise Exit;;", if i call it without the label (e.g. "f 1;;"), i get this warning: "Warning X: this argument will not be used by the function."
<_andre> why is that? (if i remove the "raise" statement, "f 1;;" works fine)
<Smerdyakov> The argument you're passing is treated as an argument to "raise Exit".
<Smerdyakov> Or, that's my guess.
<_andre> hmm
<Smerdyakov> Labeled and optional arguments make me suspicious, so I don't remember much about them. :)
<_andre> it seems to be a problem only with 'raise' though (maybe because it causes the return value of f to be 'a?)
<Smerdyakov> That's what I'm thinking, though I would say "return type" instead of "return value."
<_andre> i meant to write "to be of type" :P
<flux> I must admit that that looks like a bug to me :-o
<flux> perhaps someone can explain what's happening
<_andre> should i ask it at caml-list?
<flux> maybe, just maybe, it is like a function a:int -> 'a, which can be interpreted to be for example a:int -> ('a -> 'b), which is the same as a:int -> 'a -> 'b, and the application without label applies it to the second parameter..
<flux> but yeah, go ahead
<Smerdyakov> This is a good example illustrating why labeled arguments are a bad idea. :P
<flux> well, an obscure corner case I'd say.. labeled arguments are nice for currying, and optional ones nice for extending interfaces without breaking existing code.
tty56_ has joined #ocaml
tty56 has quit [Read error: 60 (Operation timed out)]
leo037 has joined #ocaml
tty56_ has quit [Read error: 110 (Connection timed out)]
<pango> it seems to match the documented behavior "But beware that functions [...] whose result type is a type variable will never be considered as totally applied. [hence labels can't be omitted]"
<pango> I don't know what's the reason for that, though
<flux> I like my theory :)
leo037 has quit ["Leaving"]
<flux> it apparently cannot be worked around either.. I thought adding a unit parameter would work, but no
schme has joined #ocaml
<pango> yes, only using f ~a:1 works
<|Lupin|> still no library compiling expert available ?
<pango> flux: "[...] since fold has its return argument of polymorphic type, its arity is not known, and we cannot tell whether an application is complete or not" http://caml.inria.fr/pub/ml-archives/caml-list/2001/04/42d842100884c99efd4353cee2cbed9c.en.html
<pango> flux: to keep it short, I guess your theory is correct
<pango> (seems they were lots of discussions about labels in the mailing list around 2000~2001)
<flux> I wonder if it'd help if labeled arguments were required to considered first.. but I'm not going to start reading the threads at this hour :)
_andre has quit ["Lost terminal"]
<|Lupin|> bye everybody.
ygrek has quit ["Leaving"]
|Lupin| has left #ocaml []
mattam has joined #ocaml
rjones has quit ["Closed connection"]
dmentre has joined #ocaml
magicjm has left #ocaml []
Mr_Awesome has joined #ocaml
dmentre has quit ["Leaving."]
pantsd has joined #ocaml
Len1 has left #ocaml []
joshcryer has joined #ocaml
slipstream-- has joined #ocaml
slipstream has quit [Read error: 110 (Connection timed out)]
tty56 has joined #ocaml
tty56_ has joined #ocaml
l_a_m has quit [Remote closed the connection]
tty56 has quit [Read error: 110 (Connection timed out)]
tty56 has joined #ocaml
tty56_ has quit [Read error: 110 (Connection timed out)]