Yoric[DT] changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | 3.11.1 out now! Get yours from http://caml.inria.fr/ocaml/release.html | Want to join the GODI packaging day?
tmaedaZ is now known as tmaeda
tmaeda is now known as tmaedaZ
<hcarty> Is anyone here still working on ocamlfind/GODI updates for packages?
onigiri has quit []
Demitar has joined #ocaml
tmaedaZ is now known as tmaeda
slash_ has quit [Client Quit]
hcarty changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | 3.11.1 out now! Get yours from http://caml.inria.fr/ocaml/release.html
pandamonial has joined #ocaml
verte has joined #ocaml
mol has joined #ocaml
caligula_ has quit [Read error: 104 (Connection reset by peer)]
kaustuv_` has joined #ocaml
caligula_ has joined #ocaml
kaustuv_ has quit [Read error: 110 (Connection timed out)]
julm_ has joined #ocaml
julm has quit [Read error: 145 (Connection timed out)]
mihamina has quit ["Leaving."]
mjs22 has joined #ocaml
mjs22 has quit []
mihamina has joined #ocaml
<mihamina> hi all
caligula__ has joined #ocaml
caligula_ has quit [Read error: 110 (Connection timed out)]
Pepe_ has quit [Read error: 113 (No route to host)]
ttamttam has joined #ocaml
bluestorm has joined #ocaml
ttamttam has quit ["Leaving."]
<mihamina> have you got some session management example with ocamlnet (CGI)?
Yoric[DT] has joined #ocaml
f[x] has joined #ocaml
verte_ has joined #ocaml
verte has quit [Nick collision from services.]
verte_ is now known as verte
bluestorm has left #ocaml []
bluestorm has joined #ocaml
Yoric[DT] has quit ["Ex-Chat"]
mishok13 has joined #ocaml
ttamttam has joined #ocaml
bluestorm has quit [Read error: 60 (Operation timed out)]
jonafan has quit [Read error: 104 (Connection reset by peer)]
onigiri has joined #ocaml
dmentre has joined #ocaml
_zack has joined #ocaml
onigiri has quit []
Alpounet has joined #ocaml
albacker has joined #ocaml
<albacker> so is ocaml-tutorial.org a good starting point ?
komar_ has joined #ocaml
<mihamina> albacker: strting point for... what?
<albacker> learning ocaml
<schme> Yes.
<albacker> thanks
<albacker> i was reading, wanted to be sure i wasn't reading the 'wrong' material :)
<schme> Ah ok. Nah it's good. and also I think maybe the only tutorial on ocaml available too :)
<albacker> no, there was something on inria.fr too
<flux> albacker, I very much recommend reading the original material too. It's linked from the site.
<flux> also, there are a few books available. also linked there :)
komar_ has quit [Read error: 60 (Operation timed out)]
<albacker> I'm reading little by little.. thanks flux.
<schme> (just avaid practical ocaml)
<flux> ;)
<schme> avoid too
<albacker> i'll avaid it
<albacker> :P
<albacker> by the way, that's the book i was planning to get Apress practical ocaml. :)
<schme> It's shit.
<schme> But maybe you will like it. Personally I'd rather flush money down the toilet.
<albacker> to be honest i was going to download it.
<schme> albacker: ocaml for scientists I like, but it's a bit pricey.
<schme> albacker: I'd rather flush my harddrive down the toilet than download it :)
<albacker> :D
cedric__ has joined #ocaml
ski_ has joined #ocaml
f[x] has quit [Read error: 110 (Connection timed out)]
<mihamina> http://pastebin.com/m11bc69d3, I compile it with the command in the first part of the file... (it's an ocamlnet example), but => Reference to undefined global `Netchannels'
<mihamina> What did I miss?
<mihamina> I really want to do it without ocamlfind for the first time
<mihamina> netchannels is in netstring
<mihamina> /usr/lib/ocaml/3.10.2/netstring/netchannels.cmi and mli
Snark has joined #ocaml
patronus has joined #ocaml
<flux> so what is the exact compilation command?
<flux> the same command beginning with ocamlfind should work there too
<mihamina> ocamlc -I /usr/lib/ocaml/3.10.2/netcgi2 -I /usr/lib/ocaml/3.10.2/netcgi_apache -I /usr/lib/ocaml/3.10.2/netstring -I /usr/lib/ocaml/3.10.2/netsys \
<mihamina> -thread -o hello hello.ml
<mihamina> ocamlc -I /usr/lib/ocaml/3.10.2/netcgi2 -I /usr/lib/ocaml/3.10.2/netcgi_apache -I /usr/lib/ocaml/3.10.2/netstring -I /usr/lib/ocaml/3.10.2/netsys -thread -o hello hello.ml
<mihamina> sorry
<mihamina> this drives me to Reference to undefined global `Netchannels'
<flux> you can replace those patchs with +, it'll automatically search there
<flux> you are missing the .cma-files
<flux> likely add netstring.cma before hello.ml
<mihamina> arg... what patchs are to be replaced with '+' ?
<mihamina> ocamlc -I /usr/lib/ocaml/3.10.2/netcgi2 -I /usr/lib/ocaml/3.10.2/netcgi_apache -I /usr/lib/ocaml/3.10.2/netstring -I /usr/lib/ocaml/3.10.2/netsys -thread -o hello netsys.cma unix.cma netstring.cma hello.ml
<mihamina> => Error on dynamically loaded library: /usr/lib/ocaml/3.10.2/stublibs/dllnetsys.so: /usr/lib/ocaml/3.10.2/stublibs/dllnetsys.so: undefined symbol: uerror
komar_ has joined #ocaml
<flux> well, I managed to compile it with this: ocamlfind ocamlc -verbose -linkpkg -package str,netcgi_apache,netstring -o hello hello.ml
<flux> that will also show the command line it uses
<flux> replace -o hello hello.ml with -c hello.ml and dropping -linkpkg will show only the compilation part
<flux> the problem apparently was that there were more dependencies than listed
<flux> ..also, Str was missing on the list of deps
<flux> (in ocamlnet)
verte has quit ["~~~ Crash in JIT!"]
mol has quit ["Leaving"]
rjones has joined #ocaml
rjones is now known as rwmjones-lptp
orbitz has quit [Read error: 104 (Connection reset by peer)]
f[x] has joined #ocaml
orbitz has joined #ocaml
mishok13 has quit ["Stopping IRC chat... [OK]"]
Ori_B_ has joined #ocaml
Ori_B has quit [Read error: 104 (Connection reset by peer)]
kaustuv_ has joined #ocaml
kaustuv_` has quit [Read error: 145 (Connection timed out)]
ski_ has quit [Nick collision from services.]
<albacker> I know this might be a stupid question for some, but i was trying to experiment and i get this : http://pastebin.com/m64e8728a
<albacker> rep is meant to be the function that repeats the string s , a times.
ski_ has joined #ocaml
<tiz> albacker: You need to "lec rec" instead of "let" if you call a function recursively.
<albacker> tiz, oh.. :( thanks
<tiz> NPs
<tiz> (Also, a more efficient implementation would use Buffer.t, but if you are just experimenting this is probably not important)
<albacker> i'm learning in fact.
<albacker> there was this example of repeated in C, and how a function gets arguments (without ',' from one and another) and thought to write it..
<albacker> where can i read about Buffer.t just to have an idea..?
<tiz> Similar concept to a StringBuffer in Java, if you are familiar with that.
<albacker> no learning both this semester so.. can't really compare them together :)
<albacker> thanks for the link.
gim has quit []
gim has joined #ocaml
bombshelter13__ has joined #ocaml
julm_ is now known as julm
verte has joined #ocaml
bombshelter13_ has quit [Connection timed out]
hkBst has joined #ocaml
remy_ has joined #ocaml
remy_ has quit [Remote closed the connection]
remy_ has joined #ocaml
mihamina has quit [Read error: 113 (No route to host)]
Snark has quit ["Ex-Chat"]
remy_ has quit [Client Quit]
_zack has quit [Remote closed the connection]
_zack has joined #ocaml
f[x] has quit [Read error: 60 (Operation timed out)]
pandamonial has quit [Read error: 113 (No route to host)]
f[x] has joined #ocaml
_andre has joined #ocaml
pandamonial has joined #ocaml
cedric__ is now known as Sedrikov
ngood has joined #ocaml
pandamonial has quit [Read error: 113 (No route to host)]
ngood has left #ocaml []
<hcarty> Sedrikov: /away
<hcarty> Oops ... sorry about that
<hcarty> Sedrikov: Thanks for the update on mlpost. I'm getting the extra texlive package now and will test again once it's installed.
<Sedrikov> hcarty: ok
jimmyb2187 has left #ocaml []
<Sedrikov> hcarty: my packages are ready, but I had some problems with my password, then I'll commit them. Next week I hope to make them available for GODI users, having time to test by submitters
jimmyb2187 has joined #ocaml
<hcarty> Sedrikov: Where are you having password troubles?
Amorphous has quit [Read error: 105 (No buffer space available)]
<hcarty> There was a problem in the GODI email I received - one of the links was incorrect
<hcarty> The text was correct, but the actual link was not.
<hcarty> Also, mlpost works here now. So excellent work on all three packages :-)
<Sedrikov> hcarty: what link was it? I have tried "svn ci" and to connect to the administration part of the svn.
<hcarty> Sedrikov: svn worked for me (co and ci) but the web site did not.
Amorphous has joined #ocaml
<Sedrikov> hcarty: in fact cairo is a little bugged, I assume lablgtk was installed in your system, I have reinstalled GODI today and tried to install cairo without having installed lablgtk and lablgtk2; it did not work. Then I modified the dependencies in the Makefile and it worked, but some flaws may have stayed...
willb has joined #ocaml
tmaeda has quit ["Quit Nadoka 0.7.1-trunk (rev: 187) - http://www.atdot.net/nadoka/"]
komar__ has joined #ocaml
tmaeda has joined #ocaml
<hcarty> Sedrikov: Is this a problem in Cairo-OCaml or in the packaging?
<hcarty> If it's a problem in the library then I can commit a fix if we find one.
jonafan has joined #ocaml
komar_ has quit [Read error: 110 (Connection timed out)]
smimou has joined #ocaml
<Sedrikov> hcarty:
<Sedrikov> hcarty:
<Sedrikov> hcarty: it is a problem in the packaging, but it may be fixed now
Yoric[DT] has joined #ocaml
<Yoric[DT]> Hi
<hcarty> Yoric[DT]: Hello
<hcarty> Yoric[DT]: How did your efforts with coThreads turn out?
<gildor_> Yoric[DT]: hi
<gildor_> I just submit an integration request for batteries (wrt to ocaml-fileutils)
<gildor_> we talked about this 6 months ago and I told you I was working on something more clear
<gildor_> Yoric[DT]: if you are still interested, just tell me
* gildor_ need to go
Snark has joined #ocaml
dmentre has quit ["Leaving."]
verte has quit ["~~~ Crash in JIT!"]
rwmjones-lptp has quit ["Leaving"]
<Yoric[DT]> hi
<Yoric[DT]> gildor_: I'm afraid you'll have to talk to someone else.
rjones has joined #ocaml
<Yoric[DT]> Now that I'm working fulltime on a new programming language, I won't have much time for Batteries.
<Yoric[DT]> hcarty: I'll try and check today.
_zack has quit ["Leaving."]
ttamttam has quit ["Leaving."]
slash_ has joined #ocaml
<hcarty> Yoric[DT]: Just curious. Given that your language focus is elsewhere now, it's quite understandable if you're unable to do so.
<Yoric[DT]> I know, I know.
<Yoric[DT]> It *should* be mostly ready.
<Yoric[DT]> I'm just deep into concurrency issues :)
<Yoric[DT]> (unrelated to coThreads)
<hcarty> How is the new language coming along? Out of curiosity, will it have OCaml-like type inference?
onigiri has joined #ocaml
<Yoric[DT]> 1) Fine (although, as usual, things take a bit longer than expected) 2) Yup.
<hcarty> I look forward to hearing more about it as it progresses
sramsay has joined #ocaml
<Sedrikov> hcarty: taking a look at ocamlgsl, I got an error: "gsl-config : commande introuvable" [that is "command not found"]
<Sedrikov> hcarty:
<Sedrikov> hcarty: did you add a file (in ocaml-sgl/file) you forgot to move or something like that?
<Sedrikov> hcarty: is there a script that must be run before?
<hcarty> Sedrikov: There shouldn't be
<hcarty> Do you have the GSL development package installed?
<hcarty> gsl-config should be in $PATH
<hcarty> This is why I need to learn to make conf- packages for GODI :-)
<Sedrikov> hcarty: you must be right I forgot to do it, maybe a configure script telling that the lib is not found would be better (but that is not your fault)
<hcarty> Sedrikov: A basic conf package should be pretty simple to do. I'm not sure how to do proper version checking though.
<Sedrikov> hcarty: in fact conf-* are like godi-* packages, but cannot be made via GODIVA (if you used it)
<hcarty> godiva has options for conf packages
<hcarty> I haven't tried it though.
<hcarty> I don't think it has a way to pick up any configured values though without manual post-processing of the godi-* package output from godiva.
<hcarty> s/though//
<Sedrikov> hcarty: but I am not sure a conf package is the good idea, conf packages are mostly here to set environnement variables for godi; so that all depending libraries can use it
<hcarty> Sedrikov: I'll have to ask Gerd what the appropriate approach is. Most of the established C and Fortran library bindings in GODI seem to have matching conf- packages.
<hcarty> In the mean time, a "make check" target which is required by "make all" would probably provide a reasonable short-term solution.
<hcarty> The same basic logic could be used for the GSL and Cairo bindings.
<Sedrikov> hcarty: cairo has none since it has no environnement variables defined, although it is a binding. I don't see what I could put in a cairo conf-*
<Sedrikov> hcarty: ok gsl is installed
<hcarty> Sedrikov: I'm just going by what is done for PCRE, Lapack, Gtk+ and others.
<hcarty> Sedrikov: Good! I'm glad it works.
<Sedrikov> hcarty: all these packages define environnement variables useful for other packages
<Sedrikov> hcarty: uuidm has not been commited?
<hcarty> Sedrikov: No, I am waiting to hear from Hans to see if he wants me to commit the package or if he is getting a GODI account.
<Sedrikov> ok
<hcarty> As far as I know, ocamlgsl is the only package which has been made fully available so far, out of the packages worked on yesterday.
<thelema> gildor_: I don't see anyone available to integrate coThreads into Batteries - know anyone?
<Sedrikov> taking a look at conf-* packages, eventually you seem to be right; almost all conf has a description "Configures which *** library to use", but I don't think people really want to install multiple version and select the one they want, since package managers hardly ever have systems to have multiple version of the same library installed
<hcarty> Sedrikov: I think it's more for "do I use the system version in /usr or the custom version in /usr/local (or $HOME/..., etc.)"
<hcarty> It's useful to, for example, have the system library available for system applications and the latest git/svn/etc. for testing.
<hcarty> I don't know if it is the right way to do it. One could argue, I suppose, that a conf- package is generally very small so there is very little cost in time or transmitted bits relative to downloading the full godi- package, only to have it fail.
<Sedrikov> yes, I'll try to make that package later, it is not very urgent, since I doubt ocaml users have 2 versions of cairo
<hcarty> No, I think Cairo is generally pretty safe as long as the dev package/files are available.
<hcarty> That may not be the case on a server though, if someone has a custom build of Cairo. Then it may not be a matter of two versions of Cairo, but rather a non-standard location for the library.
Smerdyakov has joined #ocaml
* Camarade_Tux had to install glib2, pango, atk, gstreamer, webkit, ... in a different prefix
schme has quit [Remote closed the connection]
schme has joined #ocaml
<Sedrikov> ok, I'll take a look this weekend
<hcarty> Camarade_Tux: Indeed :-) I have a RHEL 4.x system I use at work for number crunching which needed a similar stack of hand-compiled libraries.
<hcarty> Sedrikov: I'll try to do so as well. I would like ocamlgsl to play nicely.
<hcarty> Sedrikov: It may not require a conf- package, as these items could be made in to configuration options for the godi- packages themselves.
<hcarty> Sedrikov: But conf- packages seem to be the standard GODI way.
<Sedrikov> hcarty: sqlite3 has no conf, but postgre has
_zack has joined #ocaml
<hcarty> Sedrikov: Very interesting... and the sqlite3 package provides a configuration option in the godi-sqlite3 package for where to look for the headers and library.
<Sedrikov> I didn't take a look
_zack has quit ["Leaving."]
mellum has quit [Read error: 104 (Connection reset by peer)]
ttamttam has joined #ocaml
thelema_ has joined #ocaml
rjones has left #ocaml []
thelema has quit [Read error: 104 (Connection reset by peer)]
ttamttam has quit [Remote closed the connection]
ttamttam has joined #ocaml
<gildor_> thelema_: maybe ask mehdid_ or meganerd (Erik de Castro Lopo)
<gildor_> thelema_: I think they maybe use it
<gildor_> thelema_: since Yoric[DT] seems busy are you interested in ocaml-fileutils for Batteries ?
mjs22 has joined #ocaml
kaustuv_` has joined #ocaml
Snark has quit ["Ex-Chat"]
Narrenschiff has joined #ocaml
<Camarade_Tux> ocamlopt calls "as", anyone know where this call is?
<Camarade_Tux> (I need it to call i686-w64-mingw32-as)
kaustuv_ has quit [Read error: 110 (Connection timed out)]
ski_ has quit ["Lost terminal"]
Narrenschiff has quit []
f[x] has quit [Read error: 110 (Connection timed out)]
<Camarade_Tux> if anyone know where ocaml does this call to 'as' (or even a rough idea)... :P
Smerdyakov has quit ["Leaving"]
<julm> Camarade_Tux: for my arch it is in asmcomp/amd64/proc.ml : function [assemble_file]
<julm> see utils/config.ml for as' name
<Camarade_Tux> julm: thanks, found it :)
<Camarade_Tux> I had tried grep but grepping for 'as' in ocaml sources isn't very efficient
<julm> I grep for "verbose", found utils/ccomp.ml, then grep for "command" and found proc.ml
<Camarade_Tux> how did you come to grepping for "verbose"?
<julm> because of the -verbose option
<julm> which prints calls to as
<Camarade_Tux> hmmm:)
_andre has quit ["leaving"]
ttamttam1 has joined #ocaml
<Camarade_Tux> same with ar
<Camarade_Tux> ='(
<julm> Camarade_Tux: utils/ccomp.ml function [create_archive]
Alpounet has quit ["Leaving"]
mjs22 has quit []
* Camarade_Tux hugs julm
<julm> want my IBAN this time ? :P
<Camarade_Tux> julm: know of any app that may need to be called as i686-w64-mingw32-ar instead of just ar?
<Camarade_Tux> julm: why not :D
<julm> no idea, never touched mingw stuffs
ttamttam has quit [Read error: 110 (Connection timed out)]
<julm> Camarade_Tux: ranlib ?
<julm> it's called just after ar
<julm> Camarade_Tux: ocamlc -config shows also ld and of course gcc
<Camarade_Tux> argh, it regenerates these files
<Camarade_Tux> anyway, time to sleep (we're four in 25 sq. m today :) )
<julm> good night \o_
Yoric[DT] has quit ["Ex-Chat"]
albacker has quit ["Leaving"]
ttamttam1 has quit ["Leaving."]
<thelema_> gildor_: I am interested in them, and will dedicate some time integrating it.
hkBst has quit [Read error: 104 (Connection reset by peer)]
thelema has joined #ocaml
thelema_ has quit [Read error: 110 (Connection timed out)]
Narrenschiff has joined #ocaml
smimou has quit ["bli"]
karasuman has joined #ocaml
<karasuman> I'm trying to install ocaml version 3.09.3 on ubuntu. I've downloaded the tar.gz,, done ./configure, make world, etc., but which ocaml claims that it's not installed and suggests that I use apt-get to grab some other files, but these force version 3.10. I know I had this problem before, but I can't remember how to solve it. Any suggestions?
<julm> karasuman: perhaps your PATH is not set to handle the location where make install put ocaml
<karasuman> how can I find out where make install put ocaml?
Narrenschiff has quit []
<julm> ./configure prints it
<julm> for instance: binaries.................. /usr/local/bin
<karasuman> okay, I see. that's what it says for binaries; it has a path for standard library /usr/local/lib/ocaml and man pages, too.
<julm> could you run /usr/local/bin/ocaml ?
<karasuman> no, I get a bash error.
<julm> what error ?
<karasuman> bash: /usr/local/bin/ocaml: No such file or directory
<julm> have you done the make install with the superuser's rights ?
<karasuman> yes.
<julm> could you redo make install and see if there is any warning/error message ?
<karasuman> I was just doing that to double-check. :)
<julm> and also have you any executable named "ocaml" in the directory of ocaml's sources ?
<karasuman> wait, should I be doing make install or make world?
<karasuman> the README says make world
<julm> make world then make install
<karasuman> ok, right.
sramsay has quit [Read error: 110 (Connection timed out)]
jeddhaberstro has joined #ocaml
<karasuman> in the middle of make install, I have errors "cp: cannot stat `mlast.cmo
<karasuman> : No such file or directory"
<karasuman> also for several .cmx and .o files.
<julm> strange.. could you do a make world.opt ? and retry make install
<karasuman> okay, trying that.
<julm> and do you have an "ocaml" executable at the root of the sources' directory ?
<karasuman> I do.
<julm> does it run well ?
<karasuman> It doesn't run. :-/
<julm> what is the error when you run ./ocaml ?
<karasuman> ha, that was me being very silly.
<karasuman> that's doing it, so I guess this is a work-around if the reinstall doesn't fix it. I didn't know that was there.
<julm> sudo make install simply does a cp ocaml /usr/local/bin/ocaml
<karasuman> That's good to know. Thank you.
<julm> hm, but perhaps it does not take care of creating the directory /usr/local/bin ..
<karasuman> I'm doing this for work, but I don't really know what I'm doing and my professor just gets angry that I can't do it. :-/ He's trying to get a checkpointing program to work, too, but he can't figure that out, so I don't feel bad.
<julm> have you such directory ?
<karasuman> it's done installing again
<karasuman> which ocaml gives /usr/local/bin/ocaml .... and now it runs!
<julm> nice ;)
<karasuman> very nice. :) thank you.