gildor changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 3.12.1 http://bit.ly/nNVIVH
ulfdoz_ has joined #ocaml
ulfdoz has quit [Ping timeout: 252 seconds]
ulfdoz_ is now known as ulfdoz
lamawithonel_ has quit [Ping timeout: 250 seconds]
arubin has quit [Quit: arubin]
lamawithonel_ has joined #ocaml
othiym23 has joined #ocaml
lamawithonel_ has quit [Ping timeout: 260 seconds]
Smerdyakov has quit [Quit: Leaving]
lamawithonel_ has joined #ocaml
sebz has quit []
lamawithonel_ has quit [Read error: Connection reset by peer]
lamawithonel_ has joined #ocaml
sepp2k has joined #ocaml
lamawithonel_ has quit [Ping timeout: 255 seconds]
lamawithonel_ has joined #ocaml
impy has quit [Ping timeout: 240 seconds]
impy has joined #ocaml
lamawithonel__ has joined #ocaml
lamawithonel_ has quit [Ping timeout: 264 seconds]
StepanKuzmin has quit [Read error: Connection reset by peer]
ulfdoz has quit [Ping timeout: 250 seconds]
rgee has joined #ocaml
ankit9 has joined #ocaml
wormphlegm has quit [Quit: leaving]
edwin has joined #ocaml
sebz has joined #ocaml
sebz has quit [Client Quit]
micro is now known as `micro
`micro is now known as micro
sebz has joined #ocaml
larhat has joined #ocaml
ikaros has joined #ocaml
bobry1 has joined #ocaml
bobry1 has quit [Client Quit]
bobry1 has joined #ocaml
Cyanure has joined #ocaml
ftrvxmtrx has quit [Quit: This computer has gone to sleep]
sebz has quit [Quit: Computer has gone to sleep.]
sebz has joined #ocaml
StepanKuzmin has joined #ocaml
sebz has quit [Client Quit]
ftrvxmtrx has joined #ocaml
ftrvxmtrx has quit [Client Quit]
sebz has joined #ocaml
othiym23 has quit [Quit: Linkinus - http://linkinus.com]
sebz has quit [Quit: Computer has gone to sleep.]
sebz has joined #ocaml
sebz has quit [Client Quit]
sebz has joined #ocaml
ftrvxmtrx has joined #ocaml
munga has joined #ocaml
sgnb has quit [Remote host closed the connection]
StepanKuzmin has quit [Read error: Connection reset by peer]
StepanKuzmin has joined #ocaml
Amorphous has quit [Ping timeout: 240 seconds]
sgnb has joined #ocaml
avsm has joined #ocaml
Amorphous has joined #ocaml
eikke has joined #ocaml
<eikke> hija
<gildor> eikke: hi
<eikke> I'm having some troubles with ocamlbuild and C++
<gildor> ocamlbuild is not precisely targeted at C++
<eikke> trying to use some C++ code (not a library) from Ocaml, I created a C wrapper for the C++ stuff, and created a .clib file containing 2 .o entries
<eikke> I figured ;) not sure how to proceed though
<eikke> used to call a makefile from within ocamlbuild to compile everything, but then dependency calculation is all broken
<gildor> you'll have a hard time mixing makefile compilation and ocamlbuild (you need to output things into _build et al)
<gildor> what is the error ?
<eikke> I tried to add a rule similar to the default "ocaml C stubs: c -> o" rule (from ocaml_specific.ml) to my myocamlbuild file, but that doesnt work out
<eikke> which error?
<gildor> I suppose that you get some error output ?
<eikke> in which scenario I mean ;) I removed the whole makefile-trickery, now when using .clib and a .o rule in it, it fails because no input file is found (myfile.cpp isn't taken into account)
<gildor> copy/paste your ocamlbuild rules to ocaml.pastebin.com
<eikke> ah wait
<eikke> I modified too much :$
lopex has joined #ocaml
avsm has quit [Quit: Leaving.]
avsm has joined #ocaml
<eikke> thats +- what I'm trying to achievce
<eikke> it looks for t.c, but should use t.cpp instead
<eikke> looking at verbose output indicates the cpp -> o rule isnt used at all
<eikke> aha
<eikke> removing the module stuff does enable the rule
<eikke> but it fails since ocamlc doesn't know how to handle .cpp files (I think)
sebz has quit [Quit: Computer has gone to sleep.]
<gildor> eikke: check what ext_obj value is
<gildor> eikke: let () = prerr_endline x_o;; right after x_o
sebz has joined #ocaml
<eikke> I got somewhat further already :)
ztfw has joined #ocaml
avsm has quit [Quit: Leaving.]
avsm has joined #ocaml
_andre has joined #ocaml
StepanKuzmin has quit [Read error: Connection reset by peer]
lamawithonel__ has quit [Read error: Connection reset by peer]
munga has quit [Ping timeout: 255 seconds]
StepanKuzmin has joined #ocaml
lamawithonel__ has joined #ocaml
lamawithonel__ has quit [Read error: Connection reset by peer]
lamawithonel__ has joined #ocaml
lamawithonel__ has quit [Read error: Connection reset by peer]
lamawithonel__ has joined #ocaml
thomasga has joined #ocaml
dnolen_ has joined #ocaml
smerz has joined #ocaml
sepp2k has quit [Quit: Leaving.]
munga has joined #ocaml
zorun has quit [Read error: Connection reset by peer]
zorun has joined #ocaml
Julien_T has quit [Ping timeout: 240 seconds]
StepanKuzmin has quit [Remote host closed the connection]
bzzbzz has joined #ocaml
dnolen_ has quit [Quit: dnolen_]
solistic has joined #ocaml
waterChip has joined #ocaml
waterChip_ has joined #ocaml
waterChip has quit [Ping timeout: 240 seconds]
waterChip_ is now known as waterChip
zorun has quit [Quit: leaving]
waterChip has quit [Quit: waterChip]
sebz has quit []
fraggle_laptop has joined #ocaml
<solistic> Hi all, just trying to get started with OCaml. Is GODI the way to go?
<flux> solistic, it depends. what operating system do you run?
<mehdid> solistic: if you want to spend your life building all ocaml related packages, then yes.
<mehdid> (you may find gentoo interesting… if you like godi ;))
<solistic> I have an Ubuntu here
<mehdid> “apt-get install ocaml” then. (but, don't expect updates)
<flux> solistic, you will find that ubuntu has many ocaml packages
<flux> not sure if it comes with ocaml 3.12 yet, though
<solistic> no it does not
<flux> maybe it's not that critical, though
<mehdid> 3.12 is in oneric
<solistic> oneric?
<solistic> or oneiric?
<mehdid> or whatever the name of 11.10 is
<mehdid> yeah — that name
<solistic> Just tried #require "postgresql" and it gives me "Error: Reference to undefined global `Mutex'"
<solistic> what the hell
<edwin> did you load topfind?
<edwin> fwiw it gives same error on Debian
<edwin> does the ocaml toplevel support threads?
<solistic> yes i used topfind
<mehdid> edwin: can you file a bugreport afainst the relevant package?
<mehdid> *against
<flux> solistic, #thread;;
<edwin> yeah what flux said
<solistic> edwin: seems to work, thx
<edwin> mehdid: there already is, 564816, but its marked as fixed, hmm
<mehdid> edwin: thanks for the link.
<edwin> ah guess I should upgrade the package
<mehdid> it was decided that it was "normal"?
<mehdid> edwin: ah, no, note the fixed version.
<edwin> hmm I don't get that error
<edwin> let me try with ocamlfind
<mehdid> It was fixed in postgresql-ocaml/1.12.4-1, fwiw. What version are you using?
<edwin> 1.14.0-1+b1, and 1.16.0-1
<mehdid> and you have the error in the toplevel?
<edwin> ok so with ocamlfind I do get the error
Cyanure has quit [Remote host closed the connection]
<edwin> ocamlfind: Error from package `postgresql': This library requires multi-threading support
<edwin> not from toplevel
<mehdid> hum… I guess I should check _how_ it was fixed :)
<mehdid> maybe later
<edwin> +error(-mt)="This library requires multi-threading support"
* edwin not a META-file expert
<flux> solistic, just stick the stuff in your ~/.ocalminit and stop worrying ;)
<edwin> mehdid: maybe its an ocamlfind problem then? #require and topfind are ocamlfind toplevel commands, aren't they?
<solistic> fyi: my version is 1.12.5-1
<solistic> flux: Ah, can put default command for ocaml in there, right? very nice....
<flux> edwin, well, it is a problem ocamlfind provides a solution for, but apparently there is a flaw in the solution :)
<solistic> I guess an alias for 'ledit -h ~/.ocamlhst -x ocaml' is a good idea, or is there some other toplevel worth looking at?
<flux> well, there is enhtop and then lwt apparently comes with one as well..
<flux> but I've just used rlwrap (basically the same as ledit)
sebz has joined #ocaml
<solistic> ok, i'll google them up
Julien_Tz has joined #ocaml
Julien_Tz is now known as Julien_T
<solistic> I'm just puzzled why I'd use 'let _ = print_string "foo";;' istead of just 'print_string "foo";;'
<solistic> Is this just a matter of taste, or are the practical reasons?
<thelema_> solistic: best: 'let () = print_string "foo";;'
lopex has quit []
<thelema_> for complex programs: `let main () = ... \n let () = main ()`
<thelema_> also, ;; is better omitted outside the toplevel
<solistic> thelema_: ok, I just make sure that main returns unit, right?
<thelema_> yes
<solistic> ok, I'll stick to that, thx
ankit9 has quit [Quit: Leaving]
sebz has quit [Quit: Computer has gone to sleep.]
joewilliams_away is now known as joewilliams
eikke has quit [Ping timeout: 252 seconds]
ftrvxmtrx has quit [Quit: This computer has gone to sleep]
ulfdoz has joined #ocaml
ftrvxmtrx has joined #ocaml
othiym23 has joined #ocaml
avsm has quit [Quit: Leaving.]
alfa_y_omega has quit [Ping timeout: 240 seconds]
bobry1 has quit [Ping timeout: 276 seconds]
alfa_y_omega has joined #ocaml
ikaros has quit [Quit: Ex-Chat]
ikaros has joined #ocaml
thomasga has quit [Quit: Leaving.]
solistic has quit [Quit: leaving]
munga has quit [Ping timeout: 240 seconds]
alfa_y_omega has quit [Ping timeout: 260 seconds]
alfa_y_omega has joined #ocaml
solistic has joined #ocaml
eikke has joined #ocaml
eikke has quit [Ping timeout: 240 seconds]
<hcarty> solistic: If you are using GODI, it is worth getting Lwt + all of its optional dependencies working in order to have Lwt's custom toplevel
lopex has joined #ocaml
_andre has quit [Quit: leaving]
<solistic> hcarty: I insstalled godi, I,ll check that out tommorow, gtg
solistic has quit [Quit: leaving]
eikke has joined #ocaml
<thelema_> does anyone here understand Hashconsing well? I'm trying to use this: http://ocaml-batteries-team.github.com/batteries-included/hdoc/BatHashcons.html to solve my problem involving repeated computation of a function on identical map values
avsm has joined #ocaml
eikke has quit [Ping timeout: 240 seconds]
* thelema_ gives up and uses batCache
zorun has joined #ocaml
impy has quit [Quit: impy]
impy has joined #ocaml
ulfdoz has quit [Ping timeout: 258 seconds]
ftrvxmtrx has quit [Read error: Connection reset by peer]
ftrvxmtrx has joined #ocaml
thomasga has joined #ocaml
thomasga has quit [Client Quit]
jamii has joined #ocaml
emmanuelux has joined #ocaml
zorun has quit [Quit: leaving]
edwin has quit [Remote host closed the connection]
eb4890 has joined #ocaml
fraggle_laptop has quit [Ping timeout: 276 seconds]
sepp2k has joined #ocaml
bobry has quit [Ping timeout: 252 seconds]
jamii has quit [Ping timeout: 240 seconds]
bobry has joined #ocaml
ikaros has quit [Quit: Ex-Chat]
ztfw has quit [Remote host closed the connection]
wagle has quit [Ping timeout: 276 seconds]
wagle has joined #ocaml
eb4890 has quit [Ping timeout: 255 seconds]
avsm has quit [Quit: Leaving.]
lamawithonel__ has quit [Read error: Connection reset by peer]
lamawithonel__ has joined #ocaml
iratsu has quit [Read error: Connection reset by peer]
Julien_T has quit [Ping timeout: 252 seconds]
emmanuelux has quit [Read error: Connection reset by peer]
sebz has joined #ocaml
emmanuelux has joined #ocaml
rixed has quit [*.net *.split]
rixed has joined #ocaml
munga has joined #ocaml
ogd has joined #ocaml
othiym23 has quit [Read error: Connection reset by peer]
othiym23 has joined #ocaml
ogd has quit [Read error: Connection reset by peer]
ogd has joined #ocaml
othiym23 has quit [Read error: Connection reset by peer]
ogd has quit [Client Quit]
othiym23 has joined #ocaml
othiym23 has quit [Read error: Connection reset by peer]
othiym23 has joined #ocaml