00:04
groovy2shoes has joined #ocaml
00:25
lamawithonel has joined #ocaml
00:28
<
_habnabit >
is there a way to do both `include Batteries` and `module String = struct include Batteries.String ... end` in the same module?
00:28
<
_habnabit >
either ordering, I get an error saying that names must be unique.
00:47
fraggle_ has quit [Remote host closed the connection]
00:52
junsuijin has quit [Ping timeout: 240 seconds]
00:53
Reaganomicon has quit [Read error: Connection reset by peer]
00:54
Reaganomicon has joined #ocaml
00:59
<
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.
00:59
<
_habnabit >
still 3.11!
01:01
<
_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.
01:01
<
_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.
01:06
iratsu has quit [Ping timeout: 255 seconds]
01:12
groovy2shoes has quit [Read error: Connection reset by peer]
01:20
groovy2shoes has joined #ocaml
01:20
junsuijin has joined #ocaml
01:40
groovy2shoes has quit [Read error: Connection reset by peer]
01:55
groovy2shoes has joined #ocaml
02:02
groovy2shoes has quit [Read error: Connection reset by peer]
02:04
<
kaustuv >
why on earth are you including Batteries?
02:04
<
kaustuv >
as opposed to just open Batteries
02:11
groovy2shoes has joined #ocaml
02:18
groovy2shoes has quit [Read error: Connection reset by peer]
02:35
junsuijin has quit [Ping timeout: 276 seconds]
02:39
Tobu has quit [Read error: Operation timed out]
02:39
Tobu has joined #ocaml
02:47
iratsu has joined #ocaml
02:51
seafood has joined #ocaml
03:13
sebz has joined #ocaml
03:14
<
NaCl >
gildor: managed to get oasis to be not-stripped. why is it not native by default, anyway?
03:15
<
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"
03:15
<
NaCl >
like, there is an x,y point with ints, one with floats, one with doubles...
03:24
sebz has quit [Quit: Computer has gone to sleep.]
03:29
sebz has joined #ocaml
03:31
seafood has quit [Quit: seafood]
03:38
sebz has quit [Quit: Computer has gone to sleep.]
03:40
sebz has joined #ocaml
03:46
<
NaCl >
adrien: hmmm... this may require submodules... or I may not be able to use record types...
03:47
<
NaCl >
adrien: or maybe I'm in over my head...
03:52
<
NaCl >
adrien: or objects (that's how python does it)
04:22
ulfdoz has joined #ocaml
04:38
<
adrien >
NaCl: do you have a link to the relevant section of the API (yeah, a bit lazy right now ;-) )
04:39
<
NaCl >
adrien: there's the C++ stuff, and the C stuff
04:39
<
NaCl >
and I think that the C++ stuff will be Harder.
04:39
<
NaCl >
but anyway, I needs to sleep
04:43
<
adrien >
NaCl: first, the C++ needs to be wrapped in extern "C" { }, and it's usually harder
04:43
<
adrien >
NaCl: why do the URIs say "old_" sometimes? deprecated?
04:45
<
adrien >
NaCl: and maybe you can make the types opaque if it fits the caml-side API and uses
05:31
ulfdoz has quit [Ping timeout: 240 seconds]
05:31
ulfdoz has joined #ocaml
05:36
ulfdoz has quit [Ping timeout: 255 seconds]
05:42
sebz has quit [Quit: Computer has gone to sleep.]
05:48
sebz has joined #ocaml
06:07
Dima_ has joined #ocaml
06:09
Dima_ has left #ocaml []
06:11
ftrvxmtrx has quit [Quit: This computer has gone to sleep]
06:16
Dima_ has joined #ocaml
06:23
ankit9 has quit [Quit: Leaving]
06:56
ftrvxmtrx has joined #ocaml
07:03
Ptival has joined #ocaml
07:13
edwin has joined #ocaml
07:14
eikke has joined #ocaml
07:28
ankit9 has joined #ocaml
07:44
Cyanure has joined #ocaml
07:59
malc_ has joined #ocaml
08:11
malc_ has quit [Quit: leaving]
08:22
lamawithonel has quit [Ping timeout: 255 seconds]
08:33
Cyanure has quit [Remote host closed the connection]
08:46
ftrvxmtrx_ has joined #ocaml
08:46
ftrvxmtrx has quit [Read error: No route to host]
09:10
kaustuv has quit [Remote host closed the connection]
09:10
avsm has joined #ocaml
09:16
thomasga has joined #ocaml
09:17
Amorphous has quit [Ping timeout: 264 seconds]
09:31
Amorphous has joined #ocaml
09:37
larhat has joined #ocaml
09:38
<
gildor >
NaCl: oasis is a bytecode application, because there is no real need for speed
09:52
avsm has quit [Quit: Leaving.]
10:24
_andre has joined #ocaml
10:28
oriba has joined #ocaml
10:28
oriba has left #ocaml []
10:33
lopex has joined #ocaml
10:40
ankit9 has quit [Ping timeout: 258 seconds]
10:40
dima_ has joined #ocaml
10:41
dima_ has quit [Client Quit]
10:54
avsm has joined #ocaml
10:57
lamawithonel has joined #ocaml
11:07
ankit9 has joined #ocaml
11:09
avsm has quit [Quit: Leaving.]
11:22
avsm has joined #ocaml
11:46
dnolen has joined #ocaml
11:58
ftrvxmtrx_ is now known as ftrvxmtrx
12:17
<
NaCl >
adrien: probably.
12:18
<
NaCl >
adrien: from what I can tell the point data will probably need to be visible and mutable
12:18
<
hcarty >
NaCl: You could use multiple modules or functors to support the variable data types in OpenCV
12:18
<
hcarty >
NaCl: Or restrict the initial bindings to only support one type (ex. OCaml floats <-> C/C++ doubles)
12:19
<
NaCl >
yeah, I may be stuck with ints and doubles at first
12:19
<
hcarty >
Do you lose any functionality (beyond support for other types) when you do that?
12:20
<
adrien >
I'd advise you to go for only one type at first, and once it works, try others
12:20
<
hcarty >
If not then it's probably a reasonable compromise. Those are the only two types OCaml supports natively anyway.
12:21
<
NaCl >
the whole "one bit less" thing may be a problem
12:21
<
adrien >
you have Int64/Int32 and BigArray for these
12:22
<
NaCl >
then they will definitely be needed
12:25
<
olasd >
sgnb: I'm not sure we actually used those...
12:25
<
olasd >
chambart: ^
12:30
<
NaCl >
only been around for a month
12:38
<
NaCl >
This is much greater than my feeble ocaml knowledge. :P
12:39
<
adrien >
oh, pkg-config :-)
12:42
<
NaCl >
this looks like a good start, directed at precisely what krobot is trying to do. :P
12:49
<
gildor >
adrien: don't make fun of me with pkg-config
12:49
<
gildor >
adrien: ;-)
12:49
<
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)
12:50
* NaCl
should have taken french in high school
12:52
<
adrien >
gildor: oh, I'm not at all, I'm still not using it either ='(
12:54
* NaCl
wasn't trying to rub anything in either
12:54
lamawithonel has quit [Ping timeout: 260 seconds]
12:55
<
NaCl >
adrien: ocaml is the lingua franca in France?
12:55
<
gildor >
NaCl: not sure about that
12:56
<
gildor >
NaCl: there are probably a greater % of users, but this is not the main PL in France
12:57
<
adrien >
but as gildor said, unfortunately, no ='(
12:57
* adrien
grabs the creator of Qt's layout system and some random weapon
12:57
<
NaCl >
you are in the same country. :P
12:59
<
adrien >
you mean my target is dutch?
13:01
<
NaCl >
too far south. :P
13:04
<
adrien >
I'll probably see him this week-end anyway :P
13:35
avsm1 has joined #ocaml
13:38
avsm has quit [Ping timeout: 252 seconds]
14:13
dnolen has quit [Quit: dnolen]
14:15
fraggle_ has joined #ocaml
14:16
betta_y_omega has quit [Ping timeout: 255 seconds]
14:18
betta_y_omega has joined #ocaml
14:21
ankit9 has quit [Quit: Leaving]
14:31
<
eikke >
does ocaml have a composition operator like (.) in Haskell?
14:37
avsm has joined #ocaml
14:37
avsm1 has quit [Read error: Connection reset by peer]
14:38
avsm has quit [Client Quit]
14:40
sebz has joined #ocaml
14:42
avsm has joined #ocaml
14:46
ftrvxmtrx has quit [Quit: This computer has gone to sleep]
14:52
Ptival has quit [Quit: Leaving]
14:59
larhat has quit [Quit: Leaving.]
15:04
BiDOrD_ has quit [Read error: Operation timed out]
15:04
BiDOrD has joined #ocaml
15:09
oriba has joined #ocaml
15:10
oriba has left #ocaml []
15:14
sebz has quit [Quit: Computer has gone to sleep.]
15:28
eikke has quit [Quit: Lost terminal]
15:29
ankit9 has joined #ocaml
15:30
junsuijin has joined #ocaml
15:36
eb4890 has joined #ocaml
15:38
iratsu has quit [Ping timeout: 255 seconds]
15:41
sebz has joined #ocaml
15:41
<
hcarty >
( >> ) and ( & ) need a bit of care - ( >>
15:41
<
hcarty >
( >> ) can cause conflicts with camlp4
15:41
<
hcarty >
( & ) can cause conflicts with JoCaml
15:42
Modius has joined #ocaml
15:42
<
hcarty >
( |> ) is used for ( >> ) in Batteries, and I think Core uses ( |! )
15:43
avsm has quit [Quit: Leaving.]
15:44
avsm has joined #ocaml
15:47
<
NaCl >
adrien: looks like openCV is preferring C++ to C
15:48
<
NaCl >
everything is tending towards templates
15:50
<
hcarty >
NaCl: Does openCV provide a C interface? That may or may not be easier to wrap, depending on the approach you take
15:52
<
NaCl >
hcarty: yeah, it does, but I read some of it, and it said that the C matrix type was obsolete
15:53
* NaCl
sees why his computer vision class defaulted to MATLAB
15:55
<
NaCl >
also, openCV's C++ components seem to have some autodeallocater or something
16:03
sebz has quit [Quit: Computer has gone to sleep.]
16:05
iratsu has joined #ocaml
16:05
sebz has joined #ocaml
16:21
Ptival has joined #ocaml
16:24
yezariaely has joined #ocaml
16:31
ygrek has joined #ocaml
16:42
yezariaely has quit [Quit: Leaving.]
16:49
sebz has quit [Quit: Computer has gone to sleep.]
16:52
sebz has joined #ocaml
16:54
f[x] has quit [Ping timeout: 240 seconds]
17:10
tautologico has joined #ocaml
17:29
Anarchos has joined #ocaml
17:38
thomasga has quit [Quit: Leaving.]
17:40
Ptival has quit [Ping timeout: 258 seconds]
17:51
Ptival has joined #ocaml
18:48
tautologico_ has joined #ocaml
18:48
tautologico has quit [Ping timeout: 252 seconds]
18:48
tautologico_ is now known as tautologico
18:48
iratsu has quit [Ping timeout: 246 seconds]
18:53
ccasin has quit [Quit: leaving]
18:53
ccasin has joined #ocaml
18:54
ccasin has quit [Client Quit]
18:54
ccasin has joined #ocaml
19:02
ygrek has quit [Ping timeout: 250 seconds]
19:07
iratsu has joined #ocaml
19:16
ygrek has joined #ocaml
20:16
_andre has quit [Quit: leaving]
20:28
ulfdoz has joined #ocaml
20:42
ankit9 has quit [Read error: Connection reset by peer]
20:43
metasyntax|work has quit [Quit: WeeChat [quit]]
20:46
<
_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.
20:47
<
hcarty >
_habnabit: There may be something in the BatIO module
20:48
<
_habnabit >
yeah, it looks like you can go to an in_channel, but not out_channel.
20:52
* NaCl
still sees Bat, and thinks Batman
21:01
ygrek has quit [Ping timeout: 250 seconds]
21:19
edwin has quit [Remote host closed the connection]
21:21
ankit9 has joined #ocaml
21:26
avsm has quit [Quit: Leaving.]
21:31
<
gildor >
_habnabit: the server has crashed, relaunching it
21:32
<
gildor >
_habnabit: done
21:32
<
_habnabit >
thanks.
21:46
chrissbx has quit [Ping timeout: 276 seconds]
21:55
<
_habnabit >
hmph. it seems like csv's interoperability is incomplete, or I'm just using it incorrectly. pastebin incoming...
21:56
<
_habnabit >
is there something I'm doing wrong here, or is there a way to tell ocaml to not care about /extra/ methods?
21:59
chrissbx has joined #ocaml
22:04
<
hcarty >
_habnabit: You may need to do an explicit type cast
22:04
lopexx has joined #ocaml
22:04
<
_habnabit >
how so?
22:04
<
_habnabit >
I tried using (x: ...), but it complained.
22:05
<
Anarchos >
_habnabit try :> for objects constraints
22:05
<
_habnabit >
aha, that did it.
22:06
Anarchos has quit [Quit: need some sleep]
22:07
<
_habnabit >
well, kinda. I can do :> < [the interface] >, but is there a way of saying :> some_class?
22:07
<
_habnabit >
I tried :> Csv.obj_out_channel, but that says 'unbound type constructor'
22:07
<
_habnabit >
and :> #Csv.obj_out_channel says 'unbound class'
22:07
junsuijin has quit [Quit: Leaving.]
22:09
eb4890 has quit [Ping timeout: 260 seconds]
22:15
tautologico has quit [Quit: tautologico]
22:16
iratsu has quit [Ping timeout: 252 seconds]
22:23
<
hcarty >
_habnabit: You would have to define a class type, or used an already defined class type if one exists
22:35
lopex has joined #ocaml
22:36
sebz has quit [Quit: Computer has gone to sleep.]
22:38
sebz has joined #ocaml
22:43
drake01 has joined #ocaml
22:43
drake01 has quit [Client Quit]
22:44
lamawithonel has joined #ocaml
22:47
Guest5921 has joined #ocaml
22:47
Guest5921 has quit [Client Quit]
22:51
dnolen has joined #ocaml
23:00
drake01__ has joined #ocaml
23:07
drake01__ has quit [Quit: Ex-Chat]
23:37
iratsu has joined #ocaml
23:49
groovy2shoes has joined #ocaml
23:54
groovy2shoes has quit [Read error: Connection reset by peer]