pango has quit [tolkien.freenode.net irc.freenode.net]
Godeke has quit [tolkien.freenode.net irc.freenode.net]
pango has joined #ocaml
Godeke has joined #ocaml
GreyLensman has joined #ocaml
CosmicRay has joined #ocaml
srv has joined #ocaml
srv_ has quit [Read error: 104 (Connection reset by peer)]
salo has joined #ocaml
CosmicRay has quit ["Leaving"]
monochrom has quit ["hello"]
salo has quit []
mrsolo has joined #ocaml
async_ has joined #ocaml
GreyLensman has quit ["Leaving"]
<async_>
i declared an external procedure in a file.mli file, but when i try to compile, it complains that the function is not defined in file.ml
<async_>
do i need to use an interface that doesn't have a corresponding .ml file?
<avlondono>
if you declare it external in the mli file it will be slightly more efficient, but you still need the declaration in the ml file.
<async_>
how do you declare an external funtion in the .ml file?
<avlondono>
same thing afaik
<avlondono>
let me know if I'm wrong though :-)
<async_>
nope, you're right :)
<async_>
thanks
<avlondono>
you're welcome
<async_>
hmm.. i do that, but when i try to compile it with ocamlc -custom, i get "undefined reference to `CAMLparam1` and `CAMLreturn`
<async_>
it seems that it's not linking with the ocaml libraries
<async_>
nvm, i wasn't including memory.h
async_ has quit ["leaving"]
rhar has joined #ocaml
<rhar>
so i thought i would teach myself ocaml by writing an IMAP POP3 SMTP test engine but I'm having a bit of trouble finding any docs on sockets or what other libraries are available for ocaml and i was wondering if someone could point me in the right direction
<mflux>
ocaml documentation itself covers sockets, although not much in depth if you haven't done socket programming before
<mflux>
and then you might also want to google for hump+ocaml
<mflux>
actually humps+ocaml and the first hit
<rhar>
where is it the ocaml docs, i've been browsing for a while but i have been unable to locate it. I'm really just looking for a spec and some basic examples
<Nutssh>
caml.inria.fr, I believe.
<mrvn_>
google for ocaml and pick the caml.inria.fr url.
mlh has quit [Client Quit]
vezenchio has joined #ocaml
mlh has joined #ocaml
_fab has joined #ocaml
mrsolo has quit [Read error: 110 (Connection timed out)]
pango has quit ["Client exiting"]
pango has joined #ocaml
shawn_ has joined #ocaml
_shawn has joined #ocaml
shawn_ has quit [Read error: 60 (Operation timed out)]
shawn_ has joined #ocaml
shawn has quit [Read error: 110 (Connection timed out)]
shawn has joined #ocaml
_fab has quit [Remote closed the connection]
_shawn has quit [Connection timed out]
shawn_ has quit [Connection timed out]
eugos has joined #ocaml
srv has quit [Read error: 104 (Connection reset by peer)]
srv has joined #ocaml
karryall has quit ["hop"]
malte has joined #ocaml
solarwind has quit [Remote closed the connection]
llywelyn has joined #ocaml
malte has quit ["Lämnar"]
malte has joined #ocaml
mrvn has joined #ocaml
mrvn_ has quit [Read error: 110 (Connection timed out)]
budjet has joined #ocaml
async has quit [Read error: 110 (Connection timed out)]
async has joined #ocaml
Submarine has joined #ocaml
budjet has quit [Read error: 110 (Connection timed out)]
mlh has quit [Client Quit]
malte has quit ["Lämnar"]
_fab has joined #ocaml
eugos has quit ["Leaving"]
gl has joined #ocaml
cmeme has quit [Read error: 113 (No route to host)]
cmeme has joined #ocaml
gl has left #ocaml []
<vincenz>
hi
CosmicRay has joined #ocaml
pango has quit ["Leaving"]
pango has joined #ocaml
themus has quit [Remote closed the connection]
themus has joined #ocaml
themus has quit ["Client Exiting"]
Submarine has quit [Remote closed the connection]
<Nutssh>
hi.
<mflux>
hmm, ocamldeps seems to fail when I offer it a file I use streams in, with the help of the camlp4o, any suggestions on workarounds?
<mflux>
actually it might not even be fatal in this case as I don't have much code after the point of error (such as [<>])
<mflux>
nope, it's fatal ;)
<mflux>
it seems also ocamldsort has the same problem
* Nutssh
has never used them.
<mflux>
apparently one can pass -pp -flag to those tools although their manual page doesn't suggest that
<mflux>
but the streams are great, you should look it up ;)
<mflux>
atleast after taking a short peek at haskell
<Nutssh>
bbl
smimou has joined #ocaml
_fab has quit [Remote closed the connection]
smimou has quit [Read error: 110 (Connection timed out)]
smimou has joined #ocaml
Submarine_ has joined #ocaml
kencausey has joined #ocaml
<kencausey>
Is the comment in the README for OCamlMakefile serious when it says you need a version of GNU make GREATER than 3.80? That's the latest version in Debian Unstable.
<mrvn>
kencausey: ocaml 3.07 has memory leaks and 3.06 is a bit old.
<mrvn>
So even if you don't need 08 you want 08.
<kencausey>
Huh? I'm not talking about the OCaml version.
<kencausey>
I think that must be a typo, in doesn't appear that GNU has released a version newer than 3.80.
<mrvn>
How old is make 3.80? Is it in stable?
cmeme has quit [Read error: 104 (Connection reset by peer)]
<kencausey>
s/in/it/
<kencausey>
Stable has 3.79
<kencausey>
But the Savannah page for Make has the announcement for 3.80 dated November of 2002
<kencausey>
But there are no newer announcements.
<mrvn>
You could check if anything changed between 3.79 and 3.80 that is actually used or if its just a "it's been tested with 3.80" needs 3.80.
<kencausey>
Um, I think you are still confused :)
<kencausey>
I have 3.80, I'm using Debian Unstable.
<kencausey>
I'm asking because the README for the OCamlMakefile says '> 3.80' not '>= 3.80'
<kencausey>
However I've decided that that must be either a type or a reference to post release updates which Debian Unstable includes and that it's probably fine.
<kencausey>
s/type/typo/
<mrvn>
It is likely a typo but if you want to be sure you have to check or ask the author.
<kencausey>
I think it's OK, I'm using it now, which leads me to an error ;) Let me do a little search first and I will ask about it if I don't find anything.
<kencausey>
Looks like trying to define my own C method called initialize was a bad idea.
<kencausey>
s/method/function/
<kencausey>
It's kind of strange that the macro for CAMLparam0 is defined: '#define CAMLparam0()' but CAMLreturn0 is defined: '#define CAMLreturn0'
vezenchio has quit ["Deadpool still votes for Perot. Every time. Just in case."]
srv_ has joined #ocaml
srv has quit [Read error: 104 (Connection reset by peer)]
srv_ is now known as srv
<vincenz>
3,80?
<vincenz>
you mean 3.08
_fab has joined #ocaml
<kencausey>
Again :) I'm talking about GNU Make not OCaml.
<kencausey>
Please read the linked README (it's in the first lines) for context.
<vincenz>
k, sowwy
<kencausey>
s'alright
<vincenz>
I ahve looked at the OCAMLMakefile
<vincenz>
but what it lacks imho is subdirs
<vincenz>
or, subdir support
<vincenz>
I have one piece of ocaml software where I have subdirs and I make each compile into a .cm(x)a
<vincenz>
and then link at the end
<vincenz>
sadly it recompiles everything that's included when going into each subdir
<kencausey>
The README does state that it only support a certain level of complexity and that above that you should write your own full Makefile.