smkl 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
mattam has quit [Read error: 110 (Connection timed out)]
bk_ has quit ["I'll be back"]
anon_lurker has left #ocaml []
mimosa has quit ["J'ai fini."]
gim has quit []
buggs|afk has quit [orwell.freenode.net irc.freenode.net]
buggs|afk has joined #ocaml
carm has quit [Client Quit]
Nutssh has quit ["Client exiting"]
Iorek has joined #ocaml
jonka has joined #ocaml
rox has quit [Connection timed out]
Nutssh has joined #ocaml
kinners has quit ["leaving"]
Iorek has quit ["F(YF) = YF"]
jdmarshall has joined #ocaml
reltuk has joined #ocaml
srv has joined #ocaml
Nutssh has quit ["Client exiting"]
jdmarshall has quit ["ChatZilla 0.9.52B [Mozilla rv:1.6/20040113]"]
srv has quit [Read error: 60 (Operation timed out)]
srv has joined #ocaml
olczyk has joined #ocaml
<olczyk> I've got a C file that I call from ocaml. When I compile using ocamlopt, no problem. But when using ocamlc I get external function "foo" not available.
<olczyk> I've compiled the C file to an obj file using ocamlc, then put it in a cma file. I've included the cma file and the C file in my final compile and link.
<olczyk> Any idea what's wrong?
gim has joined #ocaml
olczyk has quit [Read error: 104 (Connection reset by peer)]
__DL__ has joined #ocaml
juergen has joined #ocaml
juergen has quit ["Leaving"]
juergen has joined #ocaml
mimosa has joined #ocaml
karryall has joined #ocaml
demitar_ has quit [Remote closed the connection]
Demitar has joined #ocaml
lam has quit ["Lost terminal"]
bk_ has joined #ocaml
lam has joined #ocaml
wazze has joined #ocaml
algo has joined #ocaml
<algo> iop
<Demitar> I'm wrapping a C library. Does it make sense to convert all the function names from UppercaseSeparatorStyle to underline_separator_style (which is more mlish)?
<karryall> hum yes
<karryall> do what you want :)
algo has left #ocaml []
<Demitar> Was that a do convert or I don't really care type of answer? :)
<andrewb> Demitar: Value names in ocaml are all lower case, only type constructors start with upper case.
<Demitar> andrewb, yes, I'd have to toggle the first letter either way. But that's a much smaller difference than the entire style conversion..
<karryall> sometimes thes mixed-case ids really look weird with the first letter lower case
<karryall> personnaly, I convert to underline_separator_style
<Demitar> It might be easier to move code between OCaml if I do the minor change.
<Demitar> s/OCaml/OCaml and C/
<andrewb> FWIW, SWIG-generated code keeps the original capitalisation. But that's no argument either way :-)
<Demitar> SWIG isn't much of an argument either way. :)
<andrewb> heh
<karryall> Demitar: unless you use some automated way to generate wrapper code, I don't it will make much of a difference
<Demitar> Now it strikes me that one of the real reasons I begun using camlidl is that SWIG is terrible at C++. And here I am wrapping a C library instead but not using swig. :)
<Demitar> Does swig handle finalization well? This library uses refcounting internally.
<Demitar> Remind me, does OCaml support .3F syntax?
<karryall> what's that ?
<Demitar> In C that forces the number to becoma float (rather than a double).
<karryall> mm, ocaml only supports doubles (which are called floats)
<Demitar> Yes, but is the syntax still valid?
<karryall> no
<Demitar> Good then I don't need to compile to find that out. :)
<karryall> heh, no need to compile, use the toplevel !
<Demitar> It would have been faster to compile anyway. I'm currently converting a demo to OCaml code.
<Demitar> This is a strictly imperative library however. Using a garbage collected functional language it will be a bit too easy to shoot yourself in the foot I'm afraid.
<karryall> if it has refcounting that's fine usually
<karryall> the gc automatically unrefs objects it collects
<Demitar> Well it's a scene graph more specifically. None of the functional paradigms will work since you can't simply use an object more than once.
<Demitar> Well not none I guess. Just that extra care needs to be taken to ensure you create a new object each time you want to use it.
<Demitar> Unless...
<karryall> yeah but that's orthogonal to memory management. That's about correctly using stateful values.
<Demitar> Yes, but if I don't do this right you could break the library by using values incorrectly. But I have a suspicion it might be a bit more intelligent than I remembered it.
* Demitar goes about currying the function invocations.
reltuk has quit ["leaving"]
shawn_ has joined #ocaml
shawn has quit [Connection reset by peer]
_shawn has joined #ocaml
_shawn has quit [Read error: 54 (Connection reset by peer)]
shawn_ has quit [Read error: 60 (Operation timed out)]
gim has quit ["a+"]
<Demitar> Can I use polymorphic variants with camlidl?
<karryall> don't know
<Demitar> Are there more examples than the one in the camlidl distribution?
<Demitar> More specifically, something using errorfn.
* karryall never use camlidl
<Demitar> Do you wrap lots of libraries? (Ie is there a better way? :)
<karryall> sure, do it manually :)
<Demitar> Sure. Well if there wasn't 370 functions to wrap that is. :)
<Demitar> weren't even.
<karryall> mmm
juergen has quit ["Leaving"]
sproctor has joined #ocaml
shawn has joined #ocaml
whiskas has joined #ocaml
gim has joined #ocaml
whiskas has quit ["Pa / Bye."]
Defcon7 is now known as Def`Away
sproctor has quit ["I like core dumps"]
karryall has quit ["go"]
Nutssh has joined #ocaml
anon_lurker has joined #ocaml
Jabberwoc has joined #ocaml
<Jabberwoc> Hi, there...
<Jabberwoc> As a newbie to OCaml... what XML library is the one of choice?
<mattam_> pxp is the more complete one.
mattam_ is now known as mattam
<Jabberwoc> mattam: Thanks :)
__DL__ has quit ["Bye Bye"]
Nutssh has quit ["Client exiting"]
reltuk has joined #ocaml
Nutssh has joined #ocaml
maihem has joined #ocaml
buggs^z has joined #ocaml
ayrnieu has quit [Success]
buggs|afk has quit [Read error: 110 (Connection timed out)]
<Demitar> Can I do labeled arguments with camlidl? And I can't seem to find how to rename a function/type, mlname()?
<Jabberwoc> Good night :)
<Demitar> Night.
Jabberwoc has quit ["Client exiting"]
ShereKahn has joined #ocaml
sproctor has joined #ocaml
sproctor has quit ["Leaving"]
Def`Away is now known as Defcon7
ShereKahn has quit ["Leaving"]
lam_ has joined #ocaml
lam has quit [Read error: 110 (Connection timed out)]
gim has quit ["ZZzz."]
mattam_ has joined #ocaml
mimosa has quit ["J'ai fini."]