gildor changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 3.12.1 http://bit.ly/nNVIVH
groovy2shoes has joined #ocaml
lamawithonel has joined #ocaml
<_habnabit> is there a way to do both `include Batteries` and `module String = struct include Batteries.String ... end` in the same module?
<_habnabit> either ordering, I get an error saying that names must be unique.
fraggle_ has quit [Remote host closed the connection]
junsuijin has quit [Ping timeout: 240 seconds]
Reaganomicon has quit [Read error: Connection reset by peer]
Reaganomicon has joined #ocaml
<hcarty> _habnabit: There are some signature tricks you can play with 3.12.x+ to make it work, but beyond that I don't think that there is any way to do that.
<_habnabit> ah.
<_habnabit> still 3.11!
lopex has quit []
<_habnabit> well, so, we'd be using 3.12 if the new godi would compile on OS X. I mentioned it before, but maybe someone else has run into this now.
<_habnabit> and I can get the exact error, but it doesn't seem very useful. ocaml 3.12 builds without issues; it's just godi that fails.
iratsu has quit [Ping timeout: 255 seconds]
groovy2shoes has quit [Read error: Connection reset by peer]
groovy2shoes has joined #ocaml
junsuijin has joined #ocaml
groovy2shoes has quit [Read error: Connection reset by peer]
groovy2shoes has joined #ocaml
groovy2shoes has quit [Read error: Connection reset by peer]
<kaustuv> why on earth are you including Batteries?
<kaustuv> as opposed to just open Batteries
groovy2shoes has joined #ocaml
groovy2shoes has quit [Read error: Connection reset by peer]
junsuijin has quit [Ping timeout: 276 seconds]
Tobu has quit [Read error: Operation timed out]
Tobu has joined #ocaml
iratsu has joined #ocaml
seafood has joined #ocaml
sebz has joined #ocaml
<NaCl> gildor: managed to get oasis to be not-stripped. why is it not native by default, anyway?
<NaCl> adrien: got something compiling here. the problem is now going to be "how do I express multiple types of points with various different size parameters"
<NaCl> like, there is an x,y point with ints, one with floats, one with doubles...
sebz has quit [Quit: Computer has gone to sleep.]
sebz has joined #ocaml
seafood has quit [Quit: seafood]
sebz has quit [Quit: Computer has gone to sleep.]
sebz has joined #ocaml
<NaCl> adrien: hmmm... this may require submodules... or I may not be able to use record types...
<NaCl> adrien: or maybe I'm in over my head...
<NaCl> adrien: or objects (that's how python does it)
ulfdoz has joined #ocaml
<adrien> NaCl: do you have a link to the relevant section of the API (yeah, a bit lazy right now ;-) )
<NaCl> adrien: there's the C++ stuff, and the C stuff
<NaCl> and I think that the C++ stuff will be Harder.
<NaCl> but anyway, I needs to sleep
<NaCl> I'll bbiab
<adrien> NaCl: first, the C++ needs to be wrapped in extern "C" { }, and it's usually harder
<adrien> NaCl: why do the URIs say "old_" sometimes? deprecated?
<adrien> NaCl: and maybe you can make the types opaque if it fits the caml-side API and uses
ulfdoz has quit [Ping timeout: 240 seconds]
ulfdoz has joined #ocaml
ulfdoz has quit [Ping timeout: 255 seconds]
sebz has quit [Quit: Computer has gone to sleep.]
sebz has joined #ocaml
sebz has quit []
Dima_ has joined #ocaml
Dima_ has left #ocaml []
ftrvxmtrx has quit [Quit: This computer has gone to sleep]
Dima_ has joined #ocaml
Dima_ has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
ankit9 has quit [Quit: Leaving]
ftrvxmtrx has joined #ocaml
Ptival has joined #ocaml
edwin has joined #ocaml
eikke has joined #ocaml
ankit9 has joined #ocaml
Cyanure has joined #ocaml
malc_ has joined #ocaml
malc_ has quit [Quit: leaving]
lamawithonel has quit [Ping timeout: 255 seconds]
Cyanure has quit [Remote host closed the connection]
ftrvxmtrx_ has joined #ocaml
ftrvxmtrx has quit [Read error: No route to host]
kaustuv has quit [Remote host closed the connection]
avsm has joined #ocaml
thomasga has joined #ocaml
Amorphous has quit [Ping timeout: 264 seconds]
Amorphous has joined #ocaml
larhat has joined #ocaml
<gildor> NaCl: oasis is a bytecode application, because there is no real need for speed
avsm has quit [Quit: Leaving.]
_andre has joined #ocaml
oriba has joined #ocaml
oriba has left #ocaml []
lopex has joined #ocaml
ankit9 has quit [Ping timeout: 258 seconds]
dima_ has joined #ocaml
dima_ has quit [Client Quit]
avsm has joined #ocaml
lamawithonel has joined #ocaml
ankit9 has joined #ocaml
avsm has quit [Quit: Leaving.]
avsm has joined #ocaml
dnolen has joined #ocaml
ftrvxmtrx_ is now known as ftrvxmtrx
<NaCl> adrien: probably.
<NaCl> adrien: from what I can tell the point data will probably need to be visible and mutable
<hcarty> NaCl: You could use multiple modules or functors to support the variable data types in OpenCV
<hcarty> NaCl: Or restrict the initial bindings to only support one type (ex. OCaml floats <-> C/C++ doubles)
<NaCl> yeah, I may be stuck with ints and doubles at first
<hcarty> Do you lose any functionality (beyond support for other types) when you do that?
<adrien> I'd advise you to go for only one type at first, and once it works, try others
<hcarty> If not then it's probably a reasonable compromise. Those are the only two types OCaml supports natively anyway.
<NaCl> ints away
<NaCl> actually...
<NaCl> the whole "one bit less" thing may be a problem
<adrien> you have Int64/Int32 and BigArray for these
<NaCl> then they will definitely be needed
<NaCl> eventually
<sgnb> I don't know what it's worth, but http://krobot.git.sourceforge.net/git/gitweb.cgi?p=krobot/krobot;a=tree;f=info/vision/camlcv/src;hb=HEAD
<sgnb> NaCl: ^^^
<NaCl> indeed
<olasd> sgnb: I'm not sure we actually used those...
<NaCl> hmmmmm]
<olasd> chambart: ^
<NaCl> only been around for a month
<NaCl> gildor: http://krobot.git.sourceforge.net/git/gitweb.cgi?p=krobot/krobot;a=blob;f=info/vision/camlcv/myocamlbuild.ml;h=1b02616a181128d6da9ea11c4f333e702bfe7121;hb=HEAD may be of interest
<NaCl> This is much greater than my feeble ocaml knowledge. :P
<adrien> oh, pkg-config :-)
<NaCl> indeed
<NaCl> this looks like a good start, directed at precisely what krobot is trying to do. :P
<gildor> adrien: don't make fun of me with pkg-config
<gildor> adrien: ;-)
<gildor> time will come that oasis will get a full pkg-config support (for now I am letting other people build great stuff, before copying their work)
* NaCl should have taken french in high school
<adrien> gildor: oh, I'm not at all, I'm still not using it either ='(
* NaCl wasn't trying to rub anything in either
lamawithonel has quit [Ping timeout: 260 seconds]
<NaCl> adrien: ocaml is the lingua franca in France?
* NaCl lulz
<gildor> NaCl: not sure about that
<gildor> NaCl: there are probably a greater % of users, but this is not the main PL in France
<adrien> NaCl: ;-)
<adrien> but as gildor said, unfortunately, no ='(
<NaCl> hah
* adrien grabs the creator of Qt's layout system and some random weapon
<NaCl> you are in the same country. :P
<adrien> you mean my target is dutch?
<NaCl> oh.
<NaCl> no, then
<NaCl> too far south. :P
<NaCl> Norway
<adrien> I'll probably see him this week-end anyway :P
<NaCl> heh
avsm1 has joined #ocaml
avsm has quit [Ping timeout: 252 seconds]
dnolen has quit [Quit: dnolen]
fraggle_ has joined #ocaml
betta_y_omega has quit [Ping timeout: 255 seconds]
betta_y_omega has joined #ocaml
ankit9 has quit [Quit: Leaving]
<eikke> does ocaml have a composition operator like (.) in Haskell?
<larhat> by default no, but you can define it. We collect some useful infix operators: https://github.com/camlunity/kamlo_wiki/blob/master/InfixOperators.md (comments are in russian)
avsm has joined #ocaml
avsm1 has quit [Read error: Connection reset by peer]
avsm has quit [Client Quit]
sebz has joined #ocaml
avsm has joined #ocaml
ftrvxmtrx has quit [Quit: This computer has gone to sleep]
Ptival has quit [Quit: Leaving]
<eikke> ty
larhat has quit [Quit: Leaving.]
BiDOrD_ has quit [Read error: Operation timed out]
BiDOrD has joined #ocaml
oriba has joined #ocaml
oriba has left #ocaml []
sebz has quit [Quit: Computer has gone to sleep.]
eikke has quit [Quit: Lost terminal]
ankit9 has joined #ocaml
junsuijin has joined #ocaml
eb4890 has joined #ocaml
iratsu has quit [Ping timeout: 255 seconds]
sebz has joined #ocaml
<hcarty> ( >> ) and ( & ) need a bit of care - ( >>
<hcarty> ( >> ) can cause conflicts with camlp4
<hcarty> ( & ) can cause conflicts with JoCaml
Modius has joined #ocaml
<hcarty> ( |> ) is used for ( >> ) in Batteries, and I think Core uses ( |! )
avsm has quit [Quit: Leaving.]
avsm has joined #ocaml
<NaCl> adrien: looks like openCV is preferring C++ to C
<NaCl> everything is tending towards templates
<hcarty> NaCl: Does openCV provide a C interface? That may or may not be easier to wrap, depending on the approach you take
<hcarty> NaCl: If you take the C++ route, cxx_wrapped may help: http://ygrek.org.ua/p/ocaml.html
<NaCl> hcarty: yeah, it does, but I read some of it, and it said that the C matrix type was obsolete
* NaCl sees why his computer vision class defaulted to MATLAB
<NaCl> also, openCV's C++ components seem to have some autodeallocater or something
<NaCl> or
sebz has quit [Quit: Computer has gone to sleep.]
iratsu has joined #ocaml
sebz has joined #ocaml
Ptival has joined #ocaml
yezariaely has joined #ocaml
ygrek has joined #ocaml
yezariaely has quit [Quit: Leaving.]
sebz has quit [Quit: Computer has gone to sleep.]
sebz has joined #ocaml
f[x] has quit [Ping timeout: 240 seconds]
tautologico has joined #ocaml
Anarchos has joined #ocaml
thomasga has quit [Quit: Leaving.]
Ptival has quit [Ping timeout: 258 seconds]
Ptival has joined #ocaml
tautologico_ has joined #ocaml
tautologico has quit [Ping timeout: 252 seconds]
tautologico_ is now known as tautologico
iratsu has quit [Ping timeout: 246 seconds]
ccasin has quit [Quit: leaving]
ccasin has joined #ocaml
ccasin has quit [Client Quit]
ccasin has joined #ocaml
ygrek has quit [Ping timeout: 250 seconds]
iratsu has joined #ocaml
ygrek has joined #ocaml
_andre has quit [Quit: leaving]
ulfdoz has joined #ocaml
ankit9 has quit [Read error: Connection reset by peer]
metasyntax|work has quit [Quit: WeeChat [quit]]
<_habnabit> is there a way to adapt from a unit BatIO.output to a Pervasives.out_channel? ocaml-csv only wants out_channels, it seems.
<hcarty> _habnabit: There may be something in the BatIO module
<_habnabit> yeah, it looks like you can go to an in_channel, but not out_channel.
* NaCl still sees Bat, and thinks Batman
ygrek has quit [Ping timeout: 250 seconds]
<_habnabit> is there an oasis mirror, maybe? http://oasis.ocamlcore.org/dev/home is giving a 503.
edwin has quit [Remote host closed the connection]
ankit9 has joined #ocaml
avsm has quit [Quit: Leaving.]
<gildor> _habnabit: the server has crashed, relaunching it
<_habnabit> ah.
<gildor> _habnabit: done
<_habnabit> thanks.
chrissbx has quit [Ping timeout: 276 seconds]
<_habnabit> hmph. it seems like csv's interoperability is incomplete, or I'm just using it incorrectly. pastebin incoming...
<_habnabit> is there something I'm doing wrong here, or is there a way to tell ocaml to not care about /extra/ methods?
chrissbx has joined #ocaml
<hcarty> _habnabit: You may need to do an explicit type cast
lopexx has joined #ocaml
<_habnabit> how so?
<_habnabit> I tried using (x: ...), but it complained.
<Anarchos> _habnabit try :> for objects constraints
<_habnabit> aha, that did it.
Anarchos has quit [Quit: need some sleep]
<_habnabit> well, kinda. I can do :> < [the interface] >, but is there a way of saying :> some_class?
<_habnabit> I tried :> Csv.obj_out_channel, but that says 'unbound type constructor'
<_habnabit> and :> #Csv.obj_out_channel says 'unbound class'
junsuijin has quit [Quit: Leaving.]
eb4890 has quit [Ping timeout: 260 seconds]
tautologico has quit [Quit: tautologico]
iratsu has quit [Ping timeout: 252 seconds]
lopex has quit []
<hcarty> _habnabit: You would have to define a class type, or used an already defined class type if one exists
lopexx has quit []
lopex has joined #ocaml
sebz has quit [Quit: Computer has gone to sleep.]
sebz has joined #ocaml
drake01 has joined #ocaml
drake01 has quit [Client Quit]
lamawithonel has joined #ocaml
Guest5921 has joined #ocaml
Guest5921 has quit [Client Quit]
dnolen has joined #ocaml
drake01__ has joined #ocaml
drake01__ has quit [Quit: Ex-Chat]
iratsu has joined #ocaml
groovy2shoes has joined #ocaml
lopex has quit []
groovy2shoes has quit [Read error: Connection reset by peer]