Mongo has joined #ocaml
Mongo_ has quit [Read error: 104 (Connection reset by peer)]
tmcm has quit [carter.openprojects.net irc.openprojects.net]
tmcm has joined #ocaml
Mongo has quit [Read error: 104 (Connection reset by peer)]
gl has joined #ocaml
tav|r has quit [carter.openprojects.net irc.openprojects.net]
tav|r has joined #ocaml
tav|r has quit [Excess Flood]
gl has quit [carter.openprojects.net irc.openprojects.net]
smkl has quit [carter.openprojects.net irc.openprojects.net]
physarum has quit [carter.openprojects.net irc.openprojects.net]
scipient has quit [carter.openprojects.net irc.openprojects.net]
emu has quit [carter.openprojects.net irc.openprojects.net]
Taaus has quit [carter.openprojects.net irc.openprojects.net]
tmcm has quit [carter.openprojects.net irc.openprojects.net]
awwaiid has quit [carter.openprojects.net irc.openprojects.net]
gl has joined #ocaml
tmcm has joined #ocaml
smkl has joined #ocaml
physarum has joined #ocaml
scipient has joined #ocaml
Taaus has joined #ocaml
emu has joined #ocaml
awwaiid has joined #ocaml
tmcm has quit [carter.openprojects.net irc.openprojects.net]
awwaiid has quit [carter.openprojects.net irc.openprojects.net]
Taaus has quit [carter.openprojects.net irc.openprojects.net]
gl has quit [carter.openprojects.net irc.openprojects.net]
smkl has quit [carter.openprojects.net irc.openprojects.net]
scipient has quit [carter.openprojects.net irc.openprojects.net]
emu has quit [carter.openprojects.net irc.openprojects.net]
physarum has quit [carter.openprojects.net irc.openprojects.net]
gl has joined #ocaml
tmcm has joined #ocaml
smkl has joined #ocaml
physarum has joined #ocaml
scipient has joined #ocaml
Taaus has joined #ocaml
emu has joined #ocaml
awwaiid has joined #ocaml
Yurik has joined #ocaml
Yurik has quit [Client Quit]
tav` has joined #ocaml
Yurik has joined #ocaml
tmcm has quit [carter.openprojects.net irc.openprojects.net]
tmcm has joined #ocaml
Yurik has quit [Read error: 104 (Connection reset by peer)]
tmcm has quit [carter.openprojects.net irc.openprojects.net]
physarum has quit [carter.openprojects.net irc.openprojects.net]
scipient has quit [carter.openprojects.net irc.openprojects.net]
gl has quit [carter.openprojects.net irc.openprojects.net]
smkl has quit [carter.openprojects.net irc.openprojects.net]
emu has quit [carter.openprojects.net irc.openprojects.net]
Taaus has quit [carter.openprojects.net irc.openprojects.net]
awwaiid has quit [carter.openprojects.net irc.openprojects.net]
tav` has quit [carter.openprojects.net irc.openprojects.net]
tmcm has joined #ocaml
tav` has joined #ocaml
gl has joined #ocaml
smkl has joined #ocaml
awwaiid has joined #ocaml
emu has joined #ocaml
Taaus has joined #ocaml
scipient has joined #ocaml
physarum has joined #ocaml
tav` has quit [Excess Flood]
tav` has joined #ocaml
tav` has quit [carter.openprojects.net irc.openprojects.net]
tav` has joined #ocaml
tav` has quit [Excess Flood]
tav` has joined #ocaml
sylvain has joined #ocaml
<
sylvain>
helloooooooo
sylvain has quit [Client Quit]
TimFreeman has joined #ocaml
TimFreeman has left #ocaml []
monkeyiq has joined #ocaml
sylvain has joined #ocaml
<
sylvain>
is there anybody ?
sylvain has quit [Client Quit]
Yurik has joined #ocaml
ott has joined #ocaml
scipient has quit [Read error: 110 (Connection timed out)]
monkeyiq has quit ["I cant believe it's not crack!"]
ott has left #ocaml []
<
Yurik>
guys, anybody there?
<
smkl>
i am here now
<
Yurik>
can you consult me a bit?
<
Yurik>
ocaml issues
<
Yurik>
first of all,
<
Yurik>
i'm a bit confused w/ the following issue:
<
Yurik>
i wrote my simple module (mymodule.mli and mymodule.ml)
<
Yurik>
they compile correctly
<
Yurik>
then i wrote test.ml
<
Yurik>
and only notion Mymodule.func works
<
Yurik>
open Mymodule
<
Yurik>
doesn't works :(
<
Yurik>
what can be the issues
<
Yurik>
(I understand that question is quite stupid, but... :)
<
Yurik>
more commonly, i could ask what are the right commands to build modules and link app w/ it (including modules that include C extensions)
<
Yurik>
in order to support either Mymodule.fun and open Mymodule ; fun
<
smkl>
what is the error message?
<
Yurik>
Syntax error
<
smkl>
so you just have open Mymodule \n func in your file? that doesn't work. you need open Mymodule;; func;; or open Mymodule let _ = func
<
Yurik>
it now compiles
<
Yurik>
next, can I use int64, bigint, etc. from C extensions?
<
smkl>
building modules: ocamlc -c file.ml, executable: ocamlc -o a.out a.cmo b.cmo ...
<
Yurik>
and... is ocaml I/O fast enough and i can do not use C modules for it?
<
Yurik>
i mean binary file I/O
<
smkl>
binary IO should be fast, at least if you use the Unix module
<
Yurik>
but Unix provides only string output and input, right?
<
Yurik>
or am i mistaking?
<
smkl>
using bignums from C is probably quite hard, i think using int64 is possible
<
smkl>
what kind of binary IO do you want?
<
Yurik>
file binary IO
<
smkl>
well, Unix interface has exactly those functions
<
Yurik>
and can output numbers, chars and so on?
<
Yurik>
probably /me missed it... looking to unix.mli
<
smkl>
hmm perhaps it's easier to just use the Pervasives. the functions there should be equivalent to fread/fwrite
<
smkl>
the ones in Unix are more like read/write in C
<
Yurik>
i know, i've tried w/ pervasives. but are they fast or slow?
<
smkl>
i cannot see any reason why they would be slow
* Yurik
looks in pervasives.ml
<
Yurik>
really, they're external ;)
<
Yurik>
next, a bit more about integers but not 'int'
<
Yurik>
could i extract hi/lo from int64?
<
Yurik>
(using std way)
<
smkl>
just use the bitwise operators?
<
Yurik>
ok, so now hi/lo funcs ;)
<
Yurik>
and how can i say let f (v : int64.int64)?
<
Yurik>
it fails ;)
<
smkl>
use Int64.int64 ?
<
Yurik>
oh, right.. just forgot ;)
<
Yurik>
Unbound constructor Int64.int64
<
smkl>
hmm, it's just 'int64'
<
Yurik>
and how can i output it then (to channel)?
<
smkl>
as binary? looks like there is no standard way
<
Yurik>
output_value produces big output :(
<
smkl>
you can convert it to a binary string first
<
smkl>
there are all kinds of byteorder problems with binary integer IO
<
Yurik>
write ints as a strings?
<
smkl>
i mean, just like hi/lo, but into 8 parts
<
Yurik>
but each conversion will take a lot of time :-(
* Yurik
is thinking to extend outputs with int32 and int64 output in C
* Yurik
is out for few minutes
<
smkl>
it will just be few bitwise operators. i think you need to do some conversions in C too if you want to make it portable
tav` is now known as tav
karm has joined #ocaml
<
karm>
I need some help using autoconf/automake with ocaml (in fact it's ocaml functions embedded in a C program)
<
karm>
may you help me ? :-)
<
karm>
I'd like to know where i can find information on this subject, or tips to get it working..
<
gl>
(si je m'attendais a ca..)
<
smkl>
hmm, check some program like OCamlSDL
<
smkl>
it doesn't have ocaml embedded in C, though
<
karm>
it looks like i'll have to hack it
gl has quit ["La foule est une somme d'erreur qu'il faut corriger."]
<
karm>
err, always those old lame quit messages...
gl has joined #ocaml
ott has joined #ocaml
Taaus_ has joined #ocaml
tav has quit [carter.openprojects.net irc.openprojects.net]
tmcm has quit [carter.openprojects.net irc.openprojects.net]
gl has quit [carter.openprojects.net irc.openprojects.net]
physarum has quit [carter.openprojects.net irc.openprojects.net]
smkl has quit [carter.openprojects.net irc.openprojects.net]
Taaus has quit [carter.openprojects.net irc.openprojects.net]
emu has quit [carter.openprojects.net irc.openprojects.net]
gl has joined #ocaml
smkl has joined #ocaml
emu has joined #ocaml
physarum has joined #ocaml
smkl has quit [Read error: 104 (Connection reset by peer)]
tmcm has joined #ocaml
emu_ has joined #ocaml
tav has joined #ocaml
tav has quit [Excess Flood]
smkl has joined #ocaml
emu has quit [Connection reset by peer]
tmcm has quit [carter.openprojects.net irc.openprojects.net]
smkl has quit [carter.openprojects.net irc.openprojects.net]
physarum has quit [carter.openprojects.net irc.openprojects.net]
gl has quit [carter.openprojects.net irc.openprojects.net]
smkl has joined #ocaml
tmcm has joined #ocaml
gl has joined #ocaml
physarum has joined #ocaml
ott has left #ocaml []
tmcm has quit [carter.openprojects.net irc.openprojects.net]
physarum has quit [carter.openprojects.net irc.openprojects.net]
smkl has quit [carter.openprojects.net irc.openprojects.net]
gl has quit [carter.openprojects.net irc.openprojects.net]
tmcm has joined #ocaml
smkl has joined #ocaml
<
Yurik>
smkl: are you still there?
gl has joined #ocaml
physarum has joined #ocaml