cjeris changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/
jlouis has quit [Connection timed out]
_chris_ has joined #ocaml
_chris has quit [Read error: 110 (Connection timed out)]
Z4rd0Z has joined #ocaml
scruffie has joined #ocaml
mikeX has quit ["leaving"]
tz has joined #ocaml
<tz> Is there any documentation regarding the proper way to split up the interface/implementation of classes? I downloaded unison to see what it did but it doesn't appear to use classes.
<Smerdyakov> Hardly anyone in the OCaml world use classes.
<Smerdyakov> I'd recommend you think long and hard before doing so in every particular case.
<tz> That was going to be my next question, there didn't seem to bee much use in code I've looked at
<tz> Is there any particular reason why? For an example I am going to implement a few earth models (spherical, oblate, etc.). My first idea was to have a earth_model virtual base class and then have spherical and oblate inherit it
<Smerdyakov> OO was invented for simulations. It's quite likely to be a good fit there.
<tz> So for places where I intend on having virtual methods, use classes. But for things like coordinate frames, vectors, don't use them
<Smerdyakov> No.
<Smerdyakov> First-class functions work better for most uses of virtual methods.
MarcWeber has joined #ocaml
<MarcWeber> Where can I read more about the type unit? (return value of print_string ?)
<Smerdyakov> It has one value, ().
<Smerdyakov> That's all you need to know.
<MarcWeber> Ah. So let main () let foo () does mean the function has one argument beeing () in any case, right?
<Smerdyakov> Yes
tz has left #ocaml []
_chris_ has quit [Remote closed the connection]
scruffie has quit []
Mr_Awesome has joined #ocaml
johnnowak has joined #ocaml
Smerdyakov has quit ["Leaving"]
MarcWeber has quit ["leaving"]
johnnowak has quit []
pstickne_ has quit [Read error: 145 (Connection timed out)]
Amorphous has quit [Read error: 110 (Connection timed out)]
pstickne_ has joined #ocaml
Z4rd0Z has quit []
benny has joined #ocaml
benny_ has quit [Read error: 145 (Connection timed out)]
smimou has joined #ocaml
Submarine has joined #ocaml
love-pingoo has joined #ocaml
johnnowak has joined #ocaml
pstickne_ has quit [Read error: 60 (Operation timed out)]
pstickne_ has joined #ocaml
Mr_Awesome has quit ["...and the Awesome level drops"]
jlouis has joined #ocaml
Riesz has joined #ocaml
jlouis has quit [Read error: 145 (Connection timed out)]
jlouis has joined #ocaml
johnnowak has quit []
Submarine has quit [Remote closed the connection]
malc_ has joined #ocaml
Amorphous has joined #ocaml
jacobian has quit ["Ex-Chat"]
Z4rd0Z has joined #ocaml
joshcryer has quit [Client Quit]
mikeX has joined #ocaml
MarcWeber has joined #ocaml
malc_ has quit ["leaving"]
<MarcWeber> I'm trying to compile the MLChineseChess application using F#. I'm getting the error that there are two matching overloaded messages. (float32 and int). How do I select the right one using type hinting? The line is grfx.DrawLine(pen,x-3-sx,y-3,x-3,y-3);
<MarcWeber> You can point me to the documentation, too. I just don't know which keyword to use.
<MarcWeber> Got it :int is working with some ( )
MarcWeber has quit ["User pushed the X - because it's Xtra, baby"]
postalchris has joined #ocaml
love-pingoo has quit ["Leaving"]
slipstream-- has joined #ocaml
slipstream has quit [Read error: 131 (Connection reset by peer)]
pango has quit [Remote closed the connection]
jer has quit [Read error: 145 (Connection timed out)]
pango has joined #ocaml
cjeris has joined #ocaml
slipstream-- has quit [Read error: 54 (Connection reset by peer)]
Smerdyakov has joined #ocaml
slipstream has joined #ocaml
jer has joined #ocaml
slipstream has quit [Read error: 60 (Operation timed out)]
pi-meson has joined #ocaml
<pi-meson> I'm thinking about writing an ocaml interface to the hdf5 hierarchical data format, but i'm curious where to start
<pi-meson> are there any good examples of file format APIs in ocaml that people would recommend as a starting point?
<pi-meson> (or should I just loosly wrap the hdf5 library?)
<mikeX> you mean create a C wrapper?
<pi-meson> mikeX: yea, just create a loose wrapper
<pi-meson> basically, I'm asking if there's a good stateful disk data interface / library for ocaml that I could use as an example of "the ocaml way", or if I should just not worry about that and write a loose c wrapper
<mikeX> not sure about such a library, but since it's a format specification more so than a library, you might as well implement it in ocaml
<mikeX> you might still have some issues with szip and zlib though
<pi-meson> mikeX: my understanding was that the First Rule of HDF5 was "don't implement your own hdf5lib"
<mikeX> oh, didn't know that, didn't really know anything about hdf5 10 minutes ago : )
<mikeX> in that case a C wrapper might be more appropriate
<mikeX> but it's always an extra dependency : /
<pi-meson> yea, and it's going to be ugly and imperative
<pi-meson> but okay, that'll at least be a good first start
<cjeris> "I have to interface with ugly and imperative code" is one of the strengths of ocaml, isn't it? :)
<pi-meson> cjeris, you're right
<pi-meson> a friend got an Ocaml summer project for doing some data visualization, and I wanted to use this as an excuse to rewrite some lab software in ocaml, but it'll have to talk hdf5
<pi-meson> but great, thanks everyone!
pi-meson has quit ["Leaving"]
bluestorm_ has joined #ocaml
david_koontz has quit ["Leaving"]
<hcarty> Curses... another HDF-hopeful and I missed them
vital303 has quit [Read error: 110 (Connection timed out)]
Submarine has joined #ocaml
jlouis has quit [Remote closed the connection]
jlouis has joined #ocaml
descender has quit [Remote closed the connection]
descender has joined #ocaml
slipstream has joined #ocaml
mnemonic has joined #ocaml
<mnemonic> hi
descender has quit [Read error: 104 (Connection reset by peer)]
ikaros_ has joined #ocaml
ikaros_ has quit [Remote closed the connection]
slipstream has quit [Read error: 60 (Operation timed out)]
descender has joined #ocaml
slipstream has joined #ocaml
johnnowak has joined #ocaml
Submarine is now known as Sub_email
malc_ has joined #ocaml
Sub_email is now known as Submarine
cheal has joined #ocaml
chealer has quit [Read error: 110 (Connection timed out)]
cheal has left #ocaml []
Mr_Awesome has joined #ocaml
Z4rd0Z has quit []
trisiak has quit [Read error: 104 (Connection reset by peer)]
trisiak has joined #ocaml
mnemonic has quit ["leaving"]
smimou has quit ["bli"]
Shreps has joined #ocaml
bluestorm_ has quit ["Konversation terminated!"]
trisiak has quit [Read error: 104 (Connection reset by peer)]
trisiak has joined #ocaml
cjeris has quit [Read error: 104 (Connection reset by peer)]
postalchris has quit ["Leaving."]