gl changed the topic of #ocaml to: OCaml 3.07 ! -- Archive of Caml Weekly News: http://pauillac.inria.fr/~aschmitt/cwn , A tutorial: http://merjis.com/richj/computers/ocaml/tutorial/ , A free book: http://cristal.inria.fr/~remy/cours/appsem, Mailing List (best ml ever for any computer language): http://caml.inria.fr/bin/wilma/caml-list | http://icfpcontest.org/ !!
GreyLensman has joined #ocaml
cjohnson has quit [Connection timed out]
cjohnson has joined #ocaml
yauz_ has joined #ocaml
yauz has quit [Read error: 60 (Operation timed out)]
kinners has quit ["leaving"]
eigenspace has joined #ocaml
cjohnson has quit [Read error: 110 (Connection timed out)]
eigenspace has quit ["Leaving"]
cjohnson has joined #ocaml
bk_ has quit ["Leaving IRC - dircproxy 1.1.0"]
GreyLensman has quit ["Leaving"]
cjohnson has quit [Read error: 104 (Connection reset by peer)]
CosmicRay has joined #ocaml
monotonom has joined #ocaml
monotonom has quit ["Don't talk to those who talk to themselves."]
kinners has joined #ocaml
Herrchen_ has joined #ocaml
Herrchen has quit [Connection timed out]
magnus-- has quit [Read error: 104 (Connection reset by peer)]
kinners has quit ["leaving"]
monotonom has joined #ocaml
vezenchio has joined #ocaml
mrsolo has joined #ocaml
vezenchio has quit [Read error: 60 (Operation timed out)]
monotonom has quit ["Don't talk to those who talk to themselves."]
CosmicRay has quit [No route to host]
vezenchio has joined #ocaml
lus|wats has joined #ocaml
vezenchio has quit [Read error: 60 (Operation timed out)]
kosmikus|away is now known as kosmikus
eigenspace has joined #ocaml
smimou has joined #ocaml
eigenspace has quit ["Leaving"]
karryall has joined #ocaml
dobrek_ has joined #ocaml
dobrek has quit [Read error: 60 (Operation timed out)]
Herrchen_ is now known as Herrchen
<slashvar> Yop
gl has quit [Client Quit]
gehel has joined #ocaml
gehel is now known as gl
fab_ has joined #ocaml
_fab has quit [Read error: 104 (Connection reset by peer)]
fab_ is now known as _fab
Iter has joined #ocaml
magnus-- has joined #ocaml
ita has joined #ocaml
<ita> hi all
<ita> is it possible to make a commercial program compiled using ocamlopt (binary) ?
buggs has quit [sterling.freenode.net irc.freenode.net]
<smimou> of course why wouldn't it be possible ?
<ita> i wasn't sur
<ita> e
buggs has joined #ocaml
<Banana> ita: you were worying about Licence issues or technical problems ?
<ita> and another question .. i want to make a closed-source program which uses a library made with ocaml - if it is compiled statically, i have to distribute my object files, right ?
<ita> Banana: both, licencing come first :)
<Banana> then no problem.
<slashvar> ita: it's depend on which lib you want to use
<Banana> the standart library at least is under modified GPL which allow you to link (statically or dynamicaly) into a program distributed with the licence of your choice.
<Banana> you have to be carefull with third party library though.
<slashvar> you can't distribute staticaly linked programs against GPL lib, if you're prog is not GPL
<ita> slashvar: oh yes i forgot to mention that the library is lgpl
<slashvar> hum ... I'm not sure, here
<slashvar> because a staticaly linked program contains parts of the lib
<slashvar> so it is a kind of distribution
<ita> eek, i'll have to make a shared library
<mellum> ita: Why don't you just *read* the damn license instead of asking random people on an IRC channel?
<Banana> mellum: don't be so harsh...
<ita> mellum: because i'm not *sure*
<Banana> it doesn't bother me :/
<ita> mellum: i've read and re-read and searched on irc and i still doubt
<mellum> ita: which line did you not understand?
<slashvar> mellum: I think understanding all consequences of GPL and LGPL, needs a full time year of study ;)
<Banana> ocaml is under QPL and modified GPL wish allows linking into non GPL program.
<mellum> slashvar: bullshit. The relevant portion is about 5 lines.
<slashvar> Banana: ocaml, yes, but the problem is more with third party libs
<mellum> and it is really about as clear as possible.
<Banana> well he asked for ocaml so i answer for ocaml.
<ita> Banana: thanks
<Banana> mellum: are'nt you nice today :)
<ita> so it's clear for me now - i'm looking for a tutorial for how to build shared library in objective caml (no bytecode, compiled for x86) - do you have that by any chance ?
<slashvar> mellum: I'm not sure about that, after 10 or more reading, I still found some obscure points ... that's why I keep myself as far as I can of GPL
<Banana> ita: i'm not sure you can actually build shared libraries with ocaml.
<slashvar> (but, take this with a smile, I don't want to start a flame war about licences ;)
<Banana> you can have the C part of an Ocaml lib loaded dynamically.
<vegai> GPL, clear
* vegai laughs at that concept.
<Banana> but the .cmxa is not, afaik.
<Banana> hoooooo.
<ita> ahem
* Banana 's Troll-o-meter exploded ....
<vegai> =)
<ita> hey, i'm not trolling
<Banana> ita: not for you.
<vegai> I probably was
<slashvar> Banana: you can't build shared ocaml lib, but you can have dynamicaly linked with C lib ocaml prog
<Banana> slashvar: that's what i just say.
<Banana> open your eyes and eat your beard.
<slashvar> Banana: I just throw away the conditionnal in your statement
<ita> just by curiosity, is that possible to compile ocaml code into java bytecode ?
<slashvar> ouch
<mellum> ita: there's no program for that
<slashvar> not actualy, jvm lakes some functionnality
<mellum> slashvar: well, it's turing complete.
<mellum> so of course it would work. Only it doesn't make a lot of sense.
<ita> nah, it's ocaml - it is so incompatible - we can compile c++ into java bytecode at least - wait, am i trolling ? :))
<slashvar> mellum: yes, but, there's problems that rise with abstract/virtual machine when compiling higher order languages
<Banana> i don't think there are any problems compiling ocaml to java bytecode.
<slashvar> (that's why there's functionnal extension in .NET)
<Banana> it's just that people are relluctant to code for a satck based architecture.
<slashvar> Banana: it's not that simple
<Banana> it's.
<Banana> give me one week.
<Banana> ;)
<Banana> ok it's a lie.
<slashvar> no, I don't think Bp will agree about that week
<slashvar> ;)
Iter has quit [Read error: 110 (Connection timed out)]
<slashvar> Banana: I prefer to see a good semantic/type checking of filter than a useless jvm target for ocamlc
<Banana> slashvar: i read that as stfu and go back to work lil' chinese ?
<Banana> sounds good to me.
<Banana> ^_^
<slashvar> ;)
<slashvar> hum ... in fact, no, if filters are finished befor the end of my phd, I will have to extend my analyses
slashvar is now known as slashvar[lri]
<slashvar[lri]> coffee/cigarets time
<Banana> sorry for the OT, people.
* slashvar[lri] bbl
<slashvar[lri]> OT ?
<Banana> off topic ?
<slashvar[lri]> but since CDuce is write in OCaml, it's not completely OT ;)
* slashvar[lri] bbl (for real, now)
slashvar[lri] is now known as slashvar[AFK]
<ita> and .. is there any good resource for building libraries and compiled programs with ocaml ?
<karryall> ita: the reference manual is a pretty good resource
<ita> ok, i was thinking more about some sort of extended tutorial - i'll stick with this one then
<ita> advanced tutorial even
<ita> thanks
<cDlm> ita: topic ?
<cDlm> ita: or the oreilly book which is freely available on the ocaml site
settra has joined #ocaml
<settra> hi everyone, may i ask for some help ?
<settra> i'm getting the error:
<settra> Cannot load required shared library: xxx.so
<karryall> settra: you need to set an env variable
<settra> but the file does exist in /usr/lib/ocaml/stublibs/
<karryall> ah
<karryall> do you hace a /usr/lib/ocaml/ld.conf ?
<settra> yes
<settra> oh, it does not refer the stublibs subdir
<karryall> and what's in it ?
<settra> is that the problem ?
<karryall> yep
<settra> ok, thx, i'm trying
<settra> yes, it's working now
<settra> thanx again
CosmicRay has joined #ocaml
Nutssh has joined #ocaml
bk_ has joined #ocaml
kosmikus is now known as kosmikus|away
smimou has quit ["Bye"]
_fab has quit [Remote closed the connection]
smimou has joined #ocaml
<ita> later
ita has quit ["leaving"]
<settra> did anyone got this to work ?
<settra> i can't even compile it some error about an mlg.cmxa
<karryall> no, never tried.
<karryall> what error do you get ?
<settra> exactly it is:
<settra> Cannot find file ../MLG/mlg.cmxa
<settra> but i get another error first
<settra> it is :File "lexer.mll", line 40, character 2: illegal character '.
buggs^z has joined #ocaml
<karryall> rm well sorry, can't help
karryall has quit ["tcho"]
<mattam> settra: maybe you do not have the right ocaml version (assuming you haven't modified the sources)
bk_ has quit ["Leaving IRC - dircproxy 1.1.0"]
buggs has quit [Connection timed out]
bk_ has joined #ocaml
maihem has joined #ocaml
<settra> mattam: maybe (right, I did not touch the sources)
bzzbzz has joined #ocaml
<Nutssh> settra, look at the line of text.
<Nutssh> It looks like the ocamllex is failing on line 40.
<settra> Nutssh: line 40 is the last one
<settra> rule lex = parse
<settra> | skip {lex lexbuf}
<settra> | eol {Eol}
<settra> | eof {Eol} (* End of string *)
<settra> | ';' {Semi}
<settra> | '{' {Begin}
<settra> | '}' {End}
<settra> | '$' {lex_var lexbuf}
<settra> | word {Word (Lexing.lexeme lexbuf)}
<settra> | '#' any+ {lex lexbuf}
<settra> | '\"' {lex_special lexbuf}
<mattam> \\ probably
<settra> mattam: same error :(
<settra> anyway, don't bother too musch, it was just for testing
<settra> not a real usage
<settra> removing the \ made 'make' to a little bit further but it then complains it does not find libasound.a
<settra> i looked for it and what i have is a libasound.so.1 :- /
GSF has joined #ocaml
GSF has quit []
mattam_ has joined #ocaml
valik has joined #ocaml
valik has quit [Client Quit]
mattam has quit [Read error: 60 (Operation timed out)]
mattam_ is now known as mattam
Snark has joined #ocaml
<Snark> slt
<Nutssh> settra, get the -dev package to get the *.a file.
bzzbzz has quit [Remote closed the connection]
vegai has quit [Read error: 104 (Connection reset by peer)]
vegai has joined #ocaml
magnus-- has quit [Read error: 110 (Connection timed out)]
dobrek_ has quit ["Lost terminal"]
Nutssh has quit [Read error: 110 (Connection timed out)]
Nutssh has joined #ocaml
Snark has quit [Read error: 110 (Connection timed out)]
Snark has joined #ocaml
Snark has quit [Client Quit]
mrsolo has quit [Read error: 110 (Connection timed out)]
cjohnson has joined #ocaml
monotonom has joined #ocaml
CosmicRay has quit ["Client exiting"]
maihem has quit ["Read error: 54 (Connection reset by chocolate)"]
monotonom has quit ["Don't talk to those who talk to themselves."]
Iter has joined #ocaml
smimou has quit ["?"]
lus|wats has quit ["According to [a processor for game design], you statistically have a better chance of becoming a rock star than you do of suc]
<vincenz> settra: it's best to always return pairs with as second param the current position in the file, it greatly helps errors later on