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
srcerer has joined #ocaml
Tobu has joined #ocaml
letrec has joined #ocaml
BiDOrD has joined #ocaml
BiDOrD_ has quit [Ping timeout: 240 seconds]
Drakken has left #ocaml []
wagle has quit [Ping timeout: 240 seconds]
wagle has joined #ocaml
iago has quit [Quit: Leaving]
Tobu has quit [Ping timeout: 248 seconds]
lamawithonel_ has joined #ocaml
linshuai_irc has joined #ocaml
ftrvxmtrx has quit [Ping timeout: 244 seconds]
sebz has joined #ocaml
Tobu has joined #ocaml
linshuai_irc has left #ocaml []
Tobu has quit [Read error: Operation timed out]
linshuai_irc has joined #ocaml
lamawithonel_ has quit [Ping timeout: 253 seconds]
ulfdoz has joined #ocaml
ulfdoz has quit [Ping timeout: 248 seconds]
philtor has joined #ocaml
jonfk has quit [Remote host closed the connection]
Snark has joined #ocaml
ftrvxmtrx has joined #ocaml
tautologico has quit [Quit: tautologico]
linshuai_irc has quit [Quit: Leaving.]
mdelaney has joined #ocaml
philtor has quit [Ping timeout: 245 seconds]
silver has joined #ocaml
mdelaney has quit [Client Quit]
Tobu has joined #ocaml
Tobu has quit [Changing host]
Tobu has joined #ocaml
mdelaney has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
thorat has joined #ocaml
thorat has quit [Changing host]
thorat has joined #ocaml
cago has joined #ocaml
lamawithonel has joined #ocaml
edwin has joined #ocaml
ftrvxmtrx has joined #ocaml
milosn has joined #ocaml
Tobu has quit [Read error: Operation timed out]
mdelaney has quit [Quit: mdelaney]
raichoo has joined #ocaml
<bobry> did anyone try piqi https://github.com/alavrik/piqi -- i'm looking for some feedback, zero open issues looks a bit disturbing :)
<flux> :)
Nass has quit [Ping timeout: 276 seconds]
Nass has joined #ocaml
Cyanure has joined #ocaml
Drakken has joined #ocaml
<maufred> bodry: funny you talk about it I have a question too. So far, it works quite well for me
<maufred> My question is : I have 2 files: api.ml and api.mli. I want to build a x.cmxa that contains every thing (I mean libs) so that when I use x.cmxa in another build, it does not complain about 'no implementation provided for libx used un x.cmxa'
<maufred> how can I do that ?
<f[x]> maufred, normal way is to write proper META and list all dependencies there and install your lib with findlib
<f[x]> then building target project will pull in all depencies
<f[x]> linking cmxa's into one cmxa is not supported (due to some limitations of C linker, I believe)
Tobu has joined #ocaml
<maufred> hm, when I try to do this (but I must do some mistakes) I always end up with a 'collect2: ld returned 1 exit status' 'Error: Error during linking
sebz has quit [Quit: Computer has gone to sleep.]
<f[x]> show more output
<f[x]> and what exactly do you try to do?
edwin has quit [Ping timeout: 240 seconds]
<maufred> Ok so sorry for the comming 'spam lines'
<maufred> ocamlfind ocamlopt -package piqi.lib api_piqi.cmx api_piqi_ext.cmx api.cmx -a -o x1.cmxa
<maufred> this I my compilation line for building my library 'api'
<maufred> this library use piqi
<maufred> so far there is no problem
<maufred> next is to link this api.cmx with my program serv.ml
<maufred> $(OCAMLOPT) $(STATIC) unix.cmxa $(LIBUNIX) -I $(CAMLP5D) gramlib.cmxa $(OBJS:.cmo=.cmx) $(LIBPIQI) service/x1.cmxa api_request.cmx api_server.cmx -o api.opt
<flux> maufred, do you have -linkpkg ?
<flux> oh, nevermind, you weren't using ocamlfind
<flux> ..why not?
<flux> ocamlfind ocamlopt .. -package piqi.lib .. foo.cmxa .. -o api.opt ?
<maufred> flux: I use ocamlfind in the lib because it's written in OCaml :)
<maufred> But I don't use it in serv because it's written in camlp5 :(
<flux> (heh, except with the -linkpkg)
<flux> but in the final linking stage you should use ocamlfind for least pain
<flux> camlp5 would be a compile-time-thing anyway
<maufred> flux: yes you're right ... I'll do it some day
<flux> (and perhaps some runtime support, but ocamlfind can handle that)
<maufred> Since I don't understand completly my old makefiles, I need to study them before using ocamlfind
Kakadu has joined #ocaml
<maufred> flux: If i use -linkpkg I have this error 'Error: /usr/local/lib/ocaml/3.11.2/piqi/ulexing.cmxa'
<maufred> is not a compilation unit description.
<f[x]> maufred, you probably have ocaml libs compiled with different ocaml versions
<maufred> Ah ! you must be right !!
<maufred> I hade some experience installing different versions
<f[x]> maufred, and do not show the makefile commands - show the real commands that get executed
<f[x]> it is hard to guess what LIBUNIX expands to
<maufred> yes you're completly right !
<f[x]> but if you have mixed-version environment - you should first fix it
<f[x]> remove everything and rebuild :)
<maufred> yes i'll try it right now :)
<maufred> thanks very much !
<f[x]> u r welcome
ikaros has joined #ocaml
<thorat> Hmmm, mixed-version environment. I installed the Mac binary from INRIA a while ago and just ran the GODI bootstrap. Should I remove the INRIA version? What's the easiest way? Should I download the makefile and do make uninstall?
<thorat> (I mean download the source tarball and configure && make uninstall)
_andre has joined #ocaml
<f[x]> it doesn't have uninstall
<thorat> ok
<f[x]> thorat, how many ocamlopt binaries do you have on your system?
<thorat> manual it is
<thorat> I haven't installed anything
<thorat> just the standard libraries I suppose
<thorat> I guess there's no risk in that case?
<f[x]> looks like
<thorat> ok, thanks
Drup has joined #ocaml
Drup has quit [Read error: No route to host]
antegallya has joined #ocaml
linshuai_irc has joined #ocaml
Xizor has joined #ocaml
edwin has joined #ocaml
Tobu has quit [Ping timeout: 248 seconds]
Tobu has joined #ocaml
Cyanure has quit [Remote host closed the connection]
linshuai_irc has left #ocaml []
iago has joined #ocaml
Kakadu has quit [Quit: Konversation terminated!]
Tobu has quit [Read error: Operation timed out]
Xizor has quit []
Tobu has joined #ocaml
Tobu has quit [Changing host]
Tobu has joined #ocaml
lamawithonel has quit [Read error: Connection reset by peer]
lamawithonel has joined #ocaml
avsm has joined #ocaml
oriba has joined #ocaml
Tobu has quit [Read error: Operation timed out]
Tobu has joined #ocaml
fantasticsid has joined #ocaml
avsm has quit [Quit: Leaving.]
Kakadu has joined #ocaml
Kakadu has quit [Client Quit]
Kakadu has joined #ocaml
linshuai_irc has joined #ocaml
avsm has joined #ocaml
Tobu has quit [Read error: Operation timed out]
Tobu has joined #ocaml
chambart has quit [Ping timeout: 240 seconds]
lamawithonel_ has joined #ocaml
lamawithonel has quit [Ping timeout: 240 seconds]
chambart has joined #ocaml
linshuai_irc has left #ocaml []
alaa has joined #ocaml
<alaa> Hello
raichoo has quit [Read error: Connection reset by peer]
raichoo has joined #ocaml
<thelema_> hi
<alaa> does anyone have a link to an OCaml course or a tutorial please?
<thelema_> first link in google for 'ocaml tutorial': http://www.cs.jhu.edu/~scott/pl/lectures/caml-intro.html
<alaa> ok thank you
<thorat> ah, quotes
<thorat> nm
<thelema_> that page isn't bad either, but its wikiness is gone - it's a mirror of a now-nonexistent wiki
<thorat> ok
fantasticsid has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
malouin has quit [Ping timeout: 252 seconds]
malouin has joined #ocaml
goldfish has joined #ocaml
goldfish is now known as Guest37545
<Guest37545> Bonjour
raichoo has quit [Quit: Lost terminal]
letrec has quit [Ping timeout: 244 seconds]
<alaa> Bonjour
<Guest37545> Est-ce que quelqu'un s'y connaitraît en chargement dynamique de fichier via Dynlink ?
<adrien> quel est le problème / what's the issue?
<adrien> (I would usually say "#ocaml-fr" but the channel has been pretty sleepy during the past few weeks)
ftrvxmtrx has quit [Quit: Leaving]
<Guest37545> (Vous préférez que je l'explique en français ou en anglais ?)
<adrien> english would be better on this channel ;-)
<bnwr> Guest37545: you'll have more answers in english
<bnwr> if it really is a problem try to convince someone to go with you to ocaml-fr
<Guest37545> Okay (i'm not a very good english speaker, but i will try)
<adrien> copy-paste/pastebin the issue often works :p
<Guest37545> So, i want to load dynamically a file .ml that i've compiled
<Guest37545> Yes, but i think it will not help at the moment :)
<Guest37545> I've just made some test
<Kakadu> Qrntzz: how do u do.
<Guest37545> I try to compile it with "ocamlopt -shared myfile.ml -o myfile.cmxs"
<Guest37545> and then i load it with "Dynlink.loadfile "myfile.ml";;" but then, it returns Not_a_bytecode_file...
oriba has quit [Quit: oriba]
<adrien> you need to load the .cmxs file, not the .ml
<adrien> you also have the "adapt_filename" function (I think) which will: "a.cma" -> "a.cma" if you're in bytecode and: "a.cma" -> "a.cmxs" if you're in native code
<Guest37545> Oh excuse, i've just mispelled it, i use "Dynlink.loadfile "amsmath.cmxs";;"
<Guest37545> where amsmath.cmxs is my compiled file
<adrien> so you can use: [ Dynlink.loadfile (Dynlink.adapt_filename "myfile.cma") ] all the time and it'll work both in bytecode and native code
<adrien> Guest37545: and you're in native code?
<adrien> yeah, you seem to be using bytecode
<adrien> in native code, you use .cmxs file which you create like what you've done
<adrien> in bytecode, you use .cma files which you create like any .cma file
<adrien> is the distinction between bytecode and native code, and the various .cm* files clear?
<Guest37545> Okay, i see, i will try
<Guest37545> (I was thinking that i can load a native code in a bytecode file... So, as it appears i can't
<Guest37545> Okay, like that it works, but there is a second problem... :)
<Guest37545> In my file I use a module that i've called Config, to provide some functions. And the file Config is loading my compiled my file
cago has quit [Quit: Leaving.]
Xizor has joined #ocaml
<Guest37545> I've tried to compile it with "ocamlc config.cma -a myfile.ml -o myfile.cma" but it fail, saying "File "myfile.ml" Error: Unbound value add" where add is a function provided by Config, (i've made a "open Config;;" before).
<Guest37545> As i think it was the good way to compile my file.
<adrien> you need to compile Config.ml first
<adrien> so that the compilation process for myfile.ml can find some files it requires
<adrien> (quite obviously: information about the information of Config)
<adrien> about the interface*
<Guest37545> If i do "ocamlc -a config.ml -o config.cma", it's not good ?
<adrien> should be good
<Guest37545> So, I do "ocamlc config.mli", "ocamlc -a config.ml -o config.cma", "ocamlc config.cma -a myfile.ml -o myfile.cma" and then get always the same error that there is unbound value called add...
Tobu has quit [Ping timeout: 272 seconds]
<adrien> is add in the .mli file?
<Guest37545> yes, "val add : string -> typeCommand -> unit"
sepp2k has joined #ocaml
<adrien> don't know; you can run "ocamlbuild -classic-display myfile.cma" to both get it built and get how it should/could be built
<adrien> ocamlbuild is a good tool but it's also good to know how to do things by hand
ftrvxmtrx has joined #ocaml
blackdog_ has joined #ocaml
Tobu has joined #ocaml
<Guest37545> So, when i try with "open Config", it doesn't work because i've not prefixed add, but i i prefixed it with "Config." ocamlbuild works
<adrien> hmmm, that shouldn't be an issue
<Guest37545> Oh sorry, i founded why i needed this prefix...
<Guest37545> I have wrapped my module with "module Config = struct ..." so i should have write open Config.Config;; and not only open Config;;
<adrien> hahah :P
<Guest37545> :)
<Guest37545> Thank you, now, i think it will work better... :)
<Qrntzz> Kakadu: oh, hello!
<Kakadu> Qrntzz: What about free time for qt?
<Qrntzz> Kakadu: I don't have much free time as of now, have to do a lot of stuff not related to ocaml
<Qrntzz> I figured out how to use yojson, though
<Kakadu> Qrntzz: I'm speding most of my free time for my diploma :-(
<Qrntzz> Kakadu: in fact, that also holds true for me, lol
<Qrntzz> I think we definitely could use yojson to parse qml with a few tweaks
<Kakadu> Qrntzz: Why we should parse qml?!?!?
<Qrntzz> oh, right. :-)
<Qrntzz> nvm, I'm tired
<Qrntzz> s/qml/json/
<Kakadu> :-)
<Kakadu> Qrntzz: What your diploma is?
<Qrntzz> Kakadu: my primary paper is on biology
Anarchos has joined #ocaml
antegallya has quit [Ping timeout: 252 seconds]
clog has joined #ocaml
Asmadeus has joined #ocaml
maufred has joined #ocaml
silver has joined #ocaml
iago has joined #ocaml
kmc has joined #ocaml
ztfw has joined #ocaml
lamawithonel_ has joined #ocaml
Drakken has joined #ocaml
Dettorer has joined #ocaml
sepp2k has joined #ocaml
BiDOrD has joined #ocaml
zzz_ has joined #ocaml
joewilliams has joined #ocaml
pr has joined #ocaml
pr has quit [Changing host]
pr has joined #ocaml
raichoo has joined #ocaml
avsm has quit [Quit: Leaving.]
silver has quit [Remote host closed the connection]
Kakadu has quit [Read error: Connection reset by peer]
thorat has quit [Quit: thorat]
pangoafk is now known as pango
sepp2k has quit [Ping timeout: 276 seconds]
Kakadu has joined #ocaml
_andre has quit [Quit: leaving]
Kakadu has quit [Quit: Konversation terminated!]
Anarchos has quit [Quit: Vision[0.9.7-H-090423]: i've been blurred!]
Tobu has quit [Read error: Operation timed out]
<bobry> Qrntzz: sounds interesting, what kind of biology are you doing?
<Qrntzz> bobry: molecular biology (which often (due to no strict definition of it) includes biochemistry, genetic engineering, cytology, microbiology and related areas)
<bobry> okay, that's even more interesting! what's the topic of your paper?
<Qrntzz> my papers are mostly on plant genetic engineering yet, but I look forward to investigating senescence mechanisms in animal cells at some point
<Qrntzz> this one is pretty basic, "effects of folic and ascorbic acid on green fluorescent gene expression in the callus cell culture of Nicotiana benthamiana"
<bobry> are they available to read anywhere?
<Qrntzz> no, but I'll make sure they are if you're interested :-)
<bobry> so is it computational biology or just biology you're doing
<Qrntzz> note all the text is in ukrainian though
<bobry> i mean, is ocaml (or any other language in fact :) involved?
<Qrntzz> heh, nope. just low-level biology.
<bobry> ouch, i can't read ukrainian :(
<Qrntzz> I'm interested in both CS and biology, but biology is my primary research subject, CS is more of a side project
<Qrntzz> too bad :-(
Tobu has joined #ocaml
Guest37545 is now known as Goldfish
Goldfish is now known as Goldfish731
Submarine has joined #ocaml
Submarine has quit [Changing host]
Submarine has joined #ocaml
sebz has joined #ocaml
Goldfish731 has quit [Quit: Quitte]
mdelaney has joined #ocaml
Snark has quit [Quit: Quitte]
Xizor has quit []
Submarine has quit [Quit: Leaving]
ftrvxmtrx_ has joined #ocaml
sebz has quit [Quit: Computer has gone to sleep.]
Ralith has joined #ocaml
<Ralith> Are there any OpenGL bindings appropriate for use with GL4?
ftrvxmtrx has quit [Ping timeout: 260 seconds]
<thelema_> GLCaml goes up to 2.1...
<thelema_> you may be able to extend it for what you want.
<Ralith> 2.1 is hopelessly ancient
<Ralith> :/
<Ralith> a lot has changed.
edwin has quit [Remote host closed the connection]
antegallya has joined #ocaml
antegallya has quit [Ping timeout: 260 seconds]
antegallya has joined #ocaml
emmanuelux has quit [Ping timeout: 240 seconds]
daimrod has quit [Read error: Connection reset by peer]
oriba has joined #ocaml
blackdog_ has quit [Quit: Leaving]
Tobu has quit [Ping timeout: 252 seconds]
Tobu has joined #ocaml
BiDOrD has quit [Ping timeout: 252 seconds]
ikaros has quit [Quit: Ex-Chat]
mdelaney has quit [Quit: mdelaney]
sebz has joined #ocaml
antegallya has quit [Remote host closed the connection]
Tobu has quit [Ping timeout: 252 seconds]
oriba has quit [Ping timeout: 244 seconds]
letrec has joined #ocaml
oriba has joined #ocaml
<Ralith> I get this error trying to run its code:
<Ralith> Error: Reference to undefined global `Unix'
ftrvxmtrx_ has quit [Ping timeout: 260 seconds]
iago has quit [Quit: Leaving]
letrec has quit [Remote host closed the connection]