gildor changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 3.11.2 released
travisbrady has quit [Quit: travisbrady]
ulfdoz has quit [Ping timeout: 265 seconds]
ulfdoz has joined #ocaml
sshc has quit [Quit: leaving]
neorab has quit [Quit: WeeChat 0.3.2]
neorab has joined #ocaml
joewilliams_away is now known as joewilliams
joewilliams is now known as joewilliams_away
aja has joined #ocaml
det has joined #ocaml
travisbrady has joined #ocaml
sshc has joined #ocaml
sshc has quit [Client Quit]
sshc has joined #ocaml
avsm has joined #ocaml
avsm has quit [Client Quit]
Amorphous has quit [Ping timeout: 248 seconds]
travisbrady has quit [Quit: travisbrady]
Associat0r has quit [Quit: Associat0r]
Amorphous has joined #ocaml
ygrek has joined #ocaml
aja has quit [Read error: Connection reset by peer]
lxnay has joined #ocaml
ygrek has quit [Ping timeout: 245 seconds]
ygrek has joined #ocaml
Yoric has joined #ocaml
Tianon has quit [Ping timeout: 260 seconds]
Tianon has joined #ocaml
Tianon has quit [Changing host]
Tianon has joined #ocaml
leino has joined #ocaml
ztfw has joined #ocaml
Snark has joined #ocaml
ttamttam has joined #ocaml
peddie has joined #ocaml
peddie has quit [Client Quit]
sdschulz` has quit [Ping timeout: 240 seconds]
ttamttam has quit [Quit: Leaving.]
lxnay has quit [Ping timeout: 260 seconds]
Yoric has quit [Quit: Yoric]
LionMadeOfLions has quit [Ping timeout: 248 seconds]
infoe has quit [Ping timeout: 276 seconds]
infoe has joined #ocaml
LionMadeOfLions has joined #ocaml
ttamttam has joined #ocaml
ttamttam has quit [Client Quit]
Associat0r has joined #ocaml
sepp2k has joined #ocaml
Yoric has joined #ocaml
<adrien> would anyone have conversion macros/functions for the C interface? like 'a array conversion to/from C?
oriba has joined #ocaml
Yoric has quit [Quit: Yoric]
Yoric has joined #ocaml
thelema_ is now known as thelema
<thelema> adrien: ocaml arrays don't have to be converted to c arrays - an ocaml [value] representing an array is either a pointer to a C array of doubles or [value]s. The tag info is stored at array index -1.
<adrien> thelema: yeah, but sometimes I need to null-terminate the arrays and maybe prepend them with their length (not in the same way as ocaml of course), and I'll still need to turn C arrays into ocaml ones
<thelema> that's dangerous to do, as the memory location just past the end of the array is possibly used. You're copying the array, no?
<adrien> yeah, will do
<mrvn> Use an Bigarray
<mrvn> or string if you can live with the GC moving the string.
ftrvxmtrx has quit [Ping timeout: 258 seconds]
<adrien> hmmm, I had forgotten about bigarrays, I need to look more at the C APIs
<eelte> size : mlsize_t size = Wosize_val(in); values : Field(in, i)
<eelte> i is the index
<eelte> we use this kind of conversion for prologin contest
<eelte> but we have segfault sometimes :( I don't understant why
<mrvn> eelte: Did you declare the value to the GC? Usualy segfaults with C functions are because the GC compacts the heap and moves something and you forgot to declare some value.
<eelte> I don't know, I'm not the author of the Cpp/caml interface
<eelte> I made the Cpp/ruby interface, the Cpp/pascal interface, the Cpp/C interface, a part of the Cpp/java interface, and the Cpp/prolog interface, but the Cpp/prolog interface does not work :(
dbud1 has joined #ocaml
dbud1 has left #ocaml []
dbud1 has joined #ocaml
travisbrady has joined #ocaml
Yoric has quit [Quit: Yoric]
oriba has quit [Quit: Verlassend]
avsm has joined #ocaml
sepp2k1 has joined #ocaml
sepp2k has quit [Quit: Leaving.]
jeddhaberstro has joined #ocaml
caligula_ has joined #ocaml
caligula__ has quit [Ping timeout: 260 seconds]
maskd has joined #ocaml
avsm has quit [Quit: Leaving.]
itewsh has joined #ocaml
ztfw has quit [Ping timeout: 264 seconds]
ztfw has joined #ocaml
Snark has quit [Quit: Ex-Chat]
travisbrady has quit [Quit: travisbrady]
<flux> adrien, ocamlidl does something like that?
ttamttam has joined #ocaml
neorab has quit [Quit: switching to xmonad]
ttamttam has quit [Quit: Leaving.]
neorab has joined #ocaml
mbishop has quit [Ping timeout: 260 seconds]
mbishop has joined #ocaml
avsm has joined #ocaml
<gildor> sgnb: ping ?
thrasibule has joined #ocaml
<gildor> sgnb: have you have time to look for a SSL cert ?
avsm has quit [Quit: Leaving.]
eelte is now known as coucou747
dbud1 has left #ocaml []
neorab has quit [Quit: WeeChat 0.3.2]
neorab has joined #ocaml
ygrek has quit [Ping timeout: 245 seconds]
|Jedai| has joined #ocaml
Jedai has quit [Ping timeout: 258 seconds]
itewsh has quit [Quit: There are only 10 kinds of people: those who understand binary and those who don't]
boscop has quit [Ping timeout: 240 seconds]
boscop has joined #ocaml
npouillard has quit [Read error: Operation timed out]
npouillard has joined #ocaml
thrasibule has quit [Ping timeout: 240 seconds]
Yoric has joined #ocaml
Yoric has quit [Client Quit]
alpounet has left #ocaml []
thrasibule has joined #ocaml
mbishop_ has joined #ocaml
mbishop has quit [Ping timeout: 265 seconds]
Associat0r has quit [Quit: Associat0r]
sepp2k1 has quit [Quit: Leaving.]
ulfdoz has quit [Ping timeout: 258 seconds]