mbishop changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | Grab Ocaml 3.10.0 from http://caml.inria.fr/ocaml/release.html (featuring new camlp4 and more!)
piggybox has quit [Read error: 110 (Connection timed out)]
<jonathanv> ah, this is what you call a vector huh?
<jonathanv> i call them binary random access lists because that's what they're called in that one paper
jonathanv is now known as jonafan
<jonafan> k bye
<jonafan> going hoooome
nuncanada has joined #ocaml
_crux_ has joined #ocaml
<_crux_> hello everyone ... hopefully drive-by compilation questions are good etiquette here? :)
<_crux_> I'm getting "undefined reference" errors w/ caml_alloc_custom & caml_copy_string w/ ocamlopt, 3.09.2
RobertFischer has joined #ocaml
RobertFischer has quit ["I'm out: check me out at http://smokejumperit.com"]
TaXules has quit [Remote closed the connection]
_crux_ has left #ocaml []
TaXules has joined #ocaml
piggybox has joined #ocaml
piggybox has quit [Client Quit]
loufoque has quit ["Quitte"]
seafood has quit []
smimou has quit ["bli"]
jlouis_ has joined #ocaml
jlouis has quit [Read error: 110 (Connection timed out)]
rogo has joined #ocaml
nuncanada has quit ["Leaving"]
Mr_Awesome has quit [Read error: 110 (Connection timed out)]
Mr_Awesome has joined #ocaml
jlouis has joined #ocaml
_crux_ has joined #ocaml
jlouis_ has quit [Read error: 110 (Connection timed out)]
_crux_ has quit ["Leaving."]
_crux_ has joined #ocaml
_crux_ has quit [Client Quit]
_crux_ has joined #ocaml
dbueno has quit ["This computer has gone to sleep"]
sergez has joined #ocaml
yminsky has joined #ocaml
buluca has quit [Read error: 113 (No route to host)]
seafood has joined #ocaml
_crux_ has left #ocaml []
yminsky has quit []
darinm has joined #ocaml
Abo-Marwan has quit [Read error: 104 (Connection reset by peer)]
ser has joined #ocaml
ser has quit [Read error: 104 (Connection reset by peer)]
ser has joined #ocaml
david_koontz has quit []
ser has quit [Connection timed out]
seafood has quit []
seafood has joined #ocaml
seafood has quit [Client Quit]
jlouis_ has joined #ocaml
bluestorm_ has joined #ocaml
jlouis has quit [Read error: 110 (Connection timed out)]
ser has joined #ocaml
ser has quit [Read error: 104 (Connection reset by peer)]
ser has joined #ocaml
ser has quit [Connection timed out]
screwt8 has joined #ocaml
ser has joined #ocaml
ser has quit [Read error: 104 (Connection reset by peer)]
ser has joined #ocaml
darinm has quit []
EliasAmaral has joined #ocaml
ser has quit [Read error: 104 (Connection reset by peer)]
darinm has joined #ocaml
ser has joined #ocaml
ser has quit [Read error: 104 (Connection reset by peer)]
screwt8 has quit [Remote closed the connection]
ser has joined #ocaml
ser has quit [Remote closed the connection]
mrsolo has quit ["Leaving"]
asmanur has joined #ocaml
smimou has joined #ocaml
rwmjones has joined #ocaml
Tetsuo has joined #ocaml
Abo-Marwan has joined #ocaml
seafood has joined #ocaml
seafood has quit []
Demitar has quit [Read error: 110 (Connection timed out)]
love-pingoo has joined #ocaml
EliasAmaral has quit [Remote closed the connection]
buluca has joined #ocaml
dbueno has joined #ocaml
dbueno has quit [Remote closed the connection]
dbueno has joined #ocaml
rogo has left #ocaml []
jlouis has joined #ocaml
Torment has joined #ocaml
jlouis_ has quit [Read error: 110 (Connection timed out)]
dbueno has quit ["Leaving"]
Jedai has quit [Read error: 110 (Connection timed out)]
ser has joined #ocaml
ser has quit [Read error: 104 (Connection reset by peer)]
ser has joined #ocaml
ser has quit [Read error: 113 (No route to host)]
ser has joined #ocaml
ser has quit [Read error: 104 (Connection reset by peer)]
ser has joined #ocaml
ser_ has joined #ocaml
ser has quit [Read error: 113 (No route to host)]
ser has joined #ocaml
ser_ has quit [Read error: 113 (No route to host)]
ser has quit [Read error: 104 (Connection reset by peer)]
ser has joined #ocaml
Tetsuo has quit ["Leaving"]
ser has quit [Read error: 113 (No route to host)]
RobertFischer has joined #ocaml
bluestorm_ has quit [Read error: 104 (Connection reset by peer)]
bluestorm_ has joined #ocaml
bluestorm_ has quit [Remote closed the connection]
vpalle has joined #ocaml
crathman has joined #ocaml
Demitar has joined #ocaml
buluca has quit [No route to host]
buluca has joined #ocaml
pango_ has quit [Remote closed the connection]
pango_ has joined #ocaml
<aij> I have a problem:
<zbrown> we might have a solution:
<aij> In ocamlgraph 0.99, they changed one of the functions to return a tuple of two values rather than just the single value it used to return
<aij> to get the same value, I can simply ignore the second value in the pair
<aij> the problem is I want the code to be able to compile against either version
<aij> because I don't want to force everyone to upgrade to 0.99 yet
<aij> (most distros come with 0.98)
<flux> aij, write two wrapper modules, and use makefile magic to determine which one to use
<rwmjones> aij, classive problem
<rwmjones> classive? classic
<rwmjones> you need a preprocessor
<rwmjones> or use flux's suggestion of makefile magic
<aij> is there a preprocessor that would do this cleanly?
<aij> or for makefile magic, what's the proper way to check the version of a package?
<aij> can ocamlfind do it?
<flux> ocamlfind list output atleast gives that information
<flux> I suppose the information is available through ocamlfind query also
<aij> yeah
<aij> ocamlfind query -format '%v' ocamlgraph
<aij> ^ gives just the version number
<rwmjones> aij, don't know if you're aware but you can run your code through a preprocessor by doing:
<rwmjones> ocamlc -pp "cpp"
<rwmjones> (for example)
<aij> rwmjones: ok, but cpp wouldn't know what version of ocamlgraph is installed
<aij> there aren't any header files with #defines for the version
<aij> I suppose I could write my own preprocessor
<rwmjones> I meant: ocamlc -pp "cpp -DOCAMLGRAPH_VERSION=$(shell ocamlfind query ...)"
<aij> ah, yes, I guess that would work
piggybox has joined #ocaml
<rwmjones> aij, there may be issues with running all your source through cpp, so probably still better to isolate the functions which need changes to a single file
<aij> yeah, I believe we have about 3 or 4 files that use the function
<aij> (It's the one for strongly connected components)
<zbrown> 3-212313-21
<zbrown> oh hmm
<zbrown> woops
love-pingoo has quit ["Connection reset by pear"]
RobertFischer has quit []
bluestorm_ has joined #ocaml
gunark has joined #ocaml
gim_ has joined #ocaml
<vorago> Do somebody use lablgtk? Cause... I'm programming some more/less big UI and I've created two structs with functions.
<vorago> One with functions that are called if UI catches an event.
<rwmjones> vorago, yes
<vorago> Second with functions that are 'filled' by UI during initialization which can then be used by functions to retrieve data from UI.
<vorago> Have you got a better idea of handling UI? some ideas?
<vorago> I can publish code but it's unfinished. Just to show the idea.
<rwmjones> what was wrong with plain ~callback's?
<vorago> They are more/less hard to code for me.
<vorago> I mean like I need to mix UI with other code.
<vorago> Non ui related.
<vorago> (it looks like this: http://temp.thera.be./VGen.ml.html)
<vorago> This approach is queer maybe. But it cleared mine code a bit.
<vorago> This makes me think of a 'bigger widget (being full UI)' with just more then one callbacks.
<vorago> But it's queer. So that's why I'm asking. ;)
<rwmjones> vorago, you're kind of deliberately defeating type safety there ...
<rwmjones> even defeating _run_time_ type safety :-)
<vorago> Huh, where? ;)
<vorago> Like with functions in struct?
<rwmjones> what happens if (eg) crit_set_base remains at the default?
<rwmjones> it just calls (fun a -> ())
<rwmjones> and no one is any the wiser
<rwmjones> in any case, I'd ditch the structures and any use of mutable
<rwmjones> and make sure that if the program is incorrect, it fails to compile
gunark has quit [Remote closed the connection]
<vorago> After running through init_ui it shouldn't be left original. It's type should be /inferred/ form what I've written in definition so it's not a polymorphic.
<vorago> It generally fails if I put there function with not a matching type.
<vorago> Hm.
<vorago> Hm.
loufoque has joined #ocaml
<rwmjones> I'm not saying what the code does, I'm saying what the code might do if there's a bug in it which causes you to fail to mutate one of those structure elements
<loufoque> anyone would happen to know how I create a string GTree.column with lablgtk?
<rwmjones> sorry, gotta go now
<vorago> rwmjones, thanks.
rwmjones has left #ocaml []
<vorago> loufoque, how do you compile program? I think it's not with base of GTK,
<vorago> and can't get it to run in toplevel (only .cmx file I see)
<loufoque> I want to create a combo box
<vorago> Simple combo box?
<loufoque> and thus put combo_box_entry in it
<loufoque> but it seems the entry is to be defined with a "string GTree.column"
<vorago> Hm.
<vorago> let attrcombo = GEdit.combo ~packing:pack () in
<vorago> attrcombo#set_popdown_strings [ "entry1"; "entry2" ] ;;
<vorago> Is not what you are looking for?
buluca has quit [Read error: 113 (No route to host)]
<vorago> I was creating only simple combos; without defined 'own' internals.
<loufoque> vorago: those are editable
love-pingoo has joined #ocaml
darinm has quit []
Tetsuo has joined #ocaml
The_Maru has quit []
zbrown has left #ocaml []
ita has joined #ocaml
_crux_ has joined #ocaml
buluca has joined #ocaml
<_crux_> Hi everyone ... Is anyone here familiar w/ the GC portions of C interop? I'm trying to figure out if (ab)using C++ to take care of managing caml_local_roots is a good idea ... http://pastebin.com/m7081aaaa
Abo-Marwan has quit [Read error: 104 (Connection reset by peer)]
screwt8 has joined #ocaml
vpalle_ has joined #ocaml
Abo-Marwan has joined #ocaml
<jonafan> asdf
<smimou> azer
vpalle has quit [Read error: 110 (Connection timed out)]
buluca has quit [Read error: 113 (No route to host)]
<loufoque> _crux_: sizeof(T) < 0 is impossible.
bhall has joined #ocaml
<loufoque> _crux_: isn't not defining the class enough? Anyway, how is it an abuse of C++? It's just inelegant C++, which isn't surprising at all.
<_crux_> loufoque: indeed it is; the goal there is to error-on-compile w/ the static assert macro if that class is ever created. (I'm writing template specializations of ocamlv for various types that do not fail, but I want a big fat compiler error for ones that don't have a specialization written)
<_crux_> loufoque : e..g ocamlv<int> exists but ocamlv<myweirdstruct> is an error
filp has joined #ocaml
<_crux_> I've added an example snippet of client code to the very bottom
filp has quit [Client Quit]
<loufoque> _crux_: I know
authentic has joined #ocaml
Modius has joined #ocaml
david_koontz has joined #ocaml
<_crux_> time for me to head out. loufoque: thanks for peeking @ the code. cheers!
_crux_ has quit ["Leaving."]
loufoque has quit [Read error: 113 (No route to host)]
asmanur has quit [Remote closed the connection]
crathman has quit ["ChatZilla 0.9.78.1 [Firefox 2.0.0.9/2007102514]"]
ita has quit [Remote closed the connection]
love-pingoo has quit ["Connection reset by pear"]
piggybox has quit [Read error: 110 (Connection timed out)]
b4taylor has joined #ocaml
<b4taylor> Hi again. I'm trying to load the Unix module. Easy enough in the interpreter. But in my source file, I'm having some trouble. #load "unix.cma";; isn't treating me so nice.
<bluestorm_> you shouldn't use #load directives in a source file
<bluestorm_> remove it and use
<mbishop> open Unix
<bluestorm_> ocamlc unix.cma ....
<bluestorm_> ocamlc unix.cma test.ml -o test
<b4taylor> Ahha. I spelt unix.cma wrong in my compile script.
<bluestorm_> :p
<b4taylor> Thanks.
b4taylor has left #ocaml []
gunark has joined #ocaml
gim_ has quit []
Tov has joined #ocaml
vpalle_ has quit [Read error: 113 (No route to host)]
jlouis_ has joined #ocaml
ikaros has joined #ocaml
Tetsuo has quit ["Leaving"]
piggybox has joined #ocaml
jlouis has quit [Read error: 110 (Connection timed out)]
bluestorm_ has quit ["Konversation terminated!"]
love-pingoo has joined #ocaml
Tov has quit [Remote closed the connection]
pango_ has quit [Remote closed the connection]
joshcryer has quit [Connection reset by peer]
joshcryer has joined #ocaml
pango_ has joined #ocaml
david_koontz has quit []
ikaros has quit ["segfault"]