fraggle_ has quit [Read error: Connection timed out]
studybot_ is now known as talzeus
eikke has joined #ocaml
madroach has quit [Ping timeout: 248 seconds]
madroach has joined #ocaml
tane has quit [Quit: Verlassend]
rgrinberg has joined #ocaml
rgrinberg has quit [Client Quit]
rudi1 has joined #ocaml
rudi1 is now known as rgrinberg
emmanuelux has quit [Quit: emmanuelux]
eikke has quit [Ping timeout: 252 seconds]
q66 has quit [Remote host closed the connection]
eikke has joined #ocaml
walter|r has quit [Ping timeout: 246 seconds]
walter has joined #ocaml
ggole has joined #ocaml
nalaginrut has joined #ocaml
gnuvince has joined #ocaml
Drup has quit [Quit: Leaving.]
Arsenik has quit [Remote host closed the connection]
Watcher7 is now known as Watcher7|off
dtg_ has joined #ocaml
dtg has quit [Ping timeout: 245 seconds]
dtg_ is now known as dtg
eikke has quit [Ping timeout: 276 seconds]
Watcher7|off is now known as Watcher7
cdidd has quit [Ping timeout: 260 seconds]
Watcher7 is now known as Watcher7|off
Kakadu has joined #ocaml
UncleVasya has joined #ocaml
leoncamel has quit [Ping timeout: 246 seconds]
leoncamel has joined #ocaml
nalaginrut has quit [Ping timeout: 245 seconds]
Kakadu has quit [Read error: Connection reset by peer]
Kakadu has joined #ocaml
rgrinberg has quit [Ping timeout: 276 seconds]
ttamttam has joined #ocaml
ttamttam has quit [Remote host closed the connection]
ttamttam has joined #ocaml
ttamttam has left #ocaml []
chrisdotcode has quit [Ping timeout: 245 seconds]
chrisdotcode has joined #ocaml
zpe has joined #ocaml
chrisdotcode has quit [Ping timeout: 256 seconds]
mcclurmc has joined #ocaml
awm22 has joined #ocaml
ulfdoz has joined #ocaml
barbapapa has joined #ocaml
contempt has quit [Ping timeout: 245 seconds]
mcclurmc has quit [Ping timeout: 245 seconds]
contempt has joined #ocaml
<wwilly>
bonjour
<Kakadu>
salut
contempt has quit [Ping timeout: 240 seconds]
contempt has joined #ocaml
contempt has quit [Ping timeout: 268 seconds]
contempt has joined #ocaml
tane has joined #ocaml
contempt has quit [Ping timeout: 276 seconds]
contempt has joined #ocaml
contempt has quit [Ping timeout: 252 seconds]
contempt has joined #ocaml
eni has quit [Ping timeout: 256 seconds]
ivan\ has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
smerz_ has quit [Ping timeout: 256 seconds]
contempt has quit [Ping timeout: 256 seconds]
ulfdoz has quit [Quit: kernel update]
contempt has joined #ocaml
mcclurmc has joined #ocaml
ulfdoz has joined #ocaml
contempt has quit [Ping timeout: 268 seconds]
contempt has joined #ocaml
ulfdoz has quit [Quit: deprecated]
ulfdoz has joined #ocaml
ivan\ has joined #ocaml
contempt has quit [Ping timeout: 258 seconds]
contempt has joined #ocaml
zpe has quit [Remote host closed the connection]
eikke has joined #ocaml
contempt has quit [Ping timeout: 258 seconds]
contempt has joined #ocaml
eni has joined #ocaml
contempt has quit [Ping timeout: 268 seconds]
barbapapa has quit [Remote host closed the connection]
contempt has joined #ocaml
contempt has quit [Ping timeout: 245 seconds]
UncleVasya has quit [Read error: Connection reset by peer]
contempt has joined #ocaml
zpe has joined #ocaml
UncleVasya has joined #ocaml
zpe has quit [Remote host closed the connection]
ontologiae has joined #ocaml
UncleVasya has quit [Read error: Connection reset by peer]
ttamttam has joined #ocaml
eikke has quit [Ping timeout: 245 seconds]
q66 has joined #ocaml
eikke has joined #ocaml
ulfdoz has quit [Ping timeout: 248 seconds]
jsvgoncalves has joined #ocaml
eikke has quit [Ping timeout: 264 seconds]
eikke has joined #ocaml
zpe has joined #ocaml
zpe has quit [Ping timeout: 256 seconds]
bitbckt has quit [Ping timeout: 264 seconds]
bitbckt has joined #ocaml
zpe has joined #ocaml
cdidd has joined #ocaml
tane has quit [Quit: Verlassend]
zpe has quit [Remote host closed the connection]
Anarchos has joined #ocaml
awm22 has quit [Ping timeout: 256 seconds]
awm22 has joined #ocaml
yacks has quit [Quit: Leaving]
asmanur has quit [Read error: Connection reset by peer]
<Anarchos>
nobody already did an interfacing between ocaml and C ?
<ousado>
Anarchos: what do you mean?
<Anarchos>
ousado i don"'t know how to keep track of ocaml classes in the C++ side...
<ousado>
ah still the moving GC issue?
<pippijn>
ocaml classes?
<Anarchos>
ousado yes...
<Anarchos>
pippijn yes
<pippijn>
what do you want to do with them?
<Anarchos>
pippijn i want my C++ class to be able to call method for its corresponding ocaml class
<Kakadu>
Anarchos: what is the problem? same ocaml value on C++ side
<Kakadu>
s/same/save/
<pippijn>
ah
<pippijn>
Anarchos: you need to register a generational root or something
<pippijn>
and all mutations must then go through caml_mutate_generational or something
<pippijn>
let me check the actual names
<ggole>
caml_modify
<ousado>
caml_named_value(n)
<ousado>
"On the C side, a pointer to the value registered under name n is obtained by calling caml_named_value(n). The returned pointer must then be dereferenced to recover the actual OCaml value"
<Anarchos>
ousado i know that , is there not another solution ?
<pippijn>
see caml/memory.h
<pippijn>
it explains in the comments
<Anarchos>
i tried to implement an ocaml map between c pointers (as values) and ocaml objects, but the typechecker complains because of ocaml classes type have rank type variable that escape the scope of the map...
<ousado>
I don't know - but it seems to me any possible mechanism would be doing somehting equivalent
<ousado>
and thelema mentioned you can tweak how the GC works
<ousado>
using some OCAMLRUNPARAM IIRC
<ousado>
Anarchos: how many classes do you have there?
<Anarchos>
maybe 30
<ousado>
can't you just use an ADT then
<Anarchos>
ADT ?
<ousado>
data type
<pippijn>
Anarchos: what are you doing?
<Anarchos>
pippijn interfacing with my operating system API
<pippijn>
I think the global generational root is more efficient than the named value
<pippijn>
but that's just my feeling, I haven't tested the named value at all
<Anarchos>
pippijn yes, but in the manual, it says that caml_generational_global_root must be called just before or after the value is first assigned a valid content...
<pippijn>
yes
<pippijn>
after
<Anarchos>
but my ocaml value can be created from the ocaml code, so how to call this function on an ocaml object ?
<Anarchos>
and if i modify attributes of the ocaml object, does it modify the value cell of the object ?