dylan changed the topic of #ocaml to: OCaml 3.09.1 available! Archive of Caml Weekly News: http://sardes.inrialpes.fr/~aschmitt/cwn/ | A free book: http://cristal.inria.fr/~remy/cours/appsem/ | Mailing List: http://caml.inria.fr/bin/wilma/caml-list/ | Cookbook: http://pleac.sourceforge.net/
Snark has joined #ocaml
ski has joined #ocaml
mrsolo__ has quit [Read error: 104 (Connection reset by peer)]
mrsolo__ has joined #ocaml
Slick18 has joined #ocaml
ellisonch has quit [Read error: 104 (Connection reset by peer)]
mrsolo__ has quit [Read error: 104 (Connection reset by peer)]
mrsolo__ has joined #ocaml
pango is now known as pangoafk
pangoafk is now known as pango
Skal has joined #ocaml
mikeX has joined #ocaml
Revision17 has quit [Read error: 110 (Connection timed out)]
skywire has joined #ocaml
ertai has quit ["leaving"]
Slick18 is now known as ellisonch
mikeX has quit ["leaving"]
ertai has joined #ocaml
<ulfdoz> When I allocate a custom block via alloc_custom, do I still need to register it with the gc, or is it already registered?
<zmdkrbou> you don't need more
<dylan> But do remember to use CAMLparam and CAMLreturn with it. :)
<dylan> (or, rather, whatever C-level variable that eventually contains it)
<ulfdoz> C-Code looks quite good until now, but there are still ~80% of it todo.
<ulfdoz> The things with side effects in ML-structures caused in C-World belong to them. :(
ski_ has joined #ocaml
ski has quit [Nick collision from services.]
ski_ is now known as ski
Smerdyakov has joined #ocaml
skylan_ has joined #ocaml
joshcryer has joined #ocaml
skylan has quit [Success]
<ulfdoz> Is there a clean way to convert an value with an type 'a (polymorphic in ml) to a void pointer, which then can be safely accessed in c-world, so that there is a valid value at the target of the void pointer? Unfortunately there is no way to predict, what the void pointer is casted to.
<ulfdoz> to illustrate it: in C - struct foo { void *bar } is represented in ocaml as type 'a foo { bar : 'a};; Now I need some translation for ml's foo.bar to C's foo->bar.
<fluxx> I just represent C structs as 'type foo'
<fluxx> so only C-code can construct or access them
<fluxx> but I guess this is not what you're after?
<fluxx> I suppose the type could just as well be 'a foo :)
<fluxx> and then val get_foo : 'a foo -> 'a
mikeX has joined #ocaml
dark_light has quit ["Fui embora"]
mikeX has quit [Read error: 110 (Connection timed out)]
Revision17 has joined #ocaml
Schmurtz has joined #ocaml
ski_ has joined #ocaml
<ulfdoz> fluxx: No it is data to exchange between the library and the programm. E.g. it could be a supplied username or a hash of a password. It can be necessary to modify this in the app.
<ulfdoz> But currently gcc complains about caml__frame not being declared, and indeed, I can't find any declaration. It seems to be used by CAMLreturn.
ski has quit [Read error: 110 (Connection timed out)]
dylan has quit ["odin's CPU fan is broken..."]
<ulfdoz> Hah! compiles. actually I haven't uses CAMLparamN, which seems necessary.
mikeX has joined #ocaml
bluestorm has joined #ocaml
pango is now known as pangoafk
pangoafk is now known as pango
jgrimes has quit [Remote closed the connection]
skywire has quit ["( www.nnscript.de :: NoNameScript 3.81 :: www.XLhost.de )"]
_JusSx_ has joined #ocaml
mikeX has quit ["leaving"]
mikeX has joined #ocaml
mikeX has quit ["leaving"]
Snark has quit ["Leaving"]
ramenboy has joined #ocaml
mikeX has joined #ocaml
mikeX has quit ["leaving"]
mikeX has joined #ocaml
<ulfdoz> Can I tag a string after creation, to have ml and c refering to the physically same string?
<ulfdoz> Basically, this would mean, to declare the C-string an ocaml-block.
<ulfdoz> Evil voices tell me something like str = (value *) caml_alloc(string_length(c_str), String_tag); Store_field(str, 0, c_str);
<ulfdoz> err, s/string_length(c_str)/sizeof(char *)/
dylan_ has joined #ocaml
_JusSx_ has quit [Client Quit]
bluestorm has quit ["Leaving"]
dylan_ has quit [Read error: 110 (Connection timed out)]
gim has quit ["dodo"]
Skal has quit [Remote closed the connection]
kryptt has joined #ocaml
mikeX has quit ["zZzz"]
mfurr has joined #ocaml
Anarchos has joined #ocaml
kryptt has quit ["Download Gaim: http://gaim.sourceforge.net/"]
ramenboy has quit [Remote closed the connection]
Anarchos has quit ["Vision[0.8.5-0418]: i've been blurred!"]
skylan_ is now known as skylan
mfurr has quit ["Client exiting"]
Smerdyakov has quit ["Leaving"]
Submarine_ has joined #ocaml
Submarine_ is now known as Submarine
mrsolo_ has joined #ocaml
Skal has joined #ocaml
mrsolo__ has quit [Read error: 113 (No route to host)]