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 quit [Ping timeout: 246 seconds]
ulfdoz has joined #ocaml
eni has quit [Ping timeout: 248 seconds]
JoeyA has joined #ocaml
xenocons has joined #ocaml
avsm has quit [Quit: Leaving.]
wagle has quit [Ping timeout: 245 seconds]
Ninju has left #ocaml []
rgrinberg has quit [Quit: Leaving]
JoeyA has quit [Ping timeout: 248 seconds]
cdidd has quit [Read error: Connection reset by peer]
Progster has quit [Read error: Operation timed out]
ulfdoz has quit [Read error: Operation timed out]
Cyanure has quit [Remote host closed the connection]
ulfdoz has joined #ocaml
tumdum has joined #ocaml
tumdum has quit [Ping timeout: 245 seconds]
JoeyA has joined #ocaml
sepp2k has joined #ocaml
wagle has joined #ocaml
wagle has quit [Remote host closed the connection]
wagle has joined #ocaml
wagle has quit [Read error: Connection reset by peer]
emmanuelux has quit [Ping timeout: 260 seconds]
wagle has joined #ocaml
tumdum has joined #ocaml
tumdum has quit [Ping timeout: 260 seconds]
hyperboreean has joined #ocaml
ankit9 has joined #ocaml
wagle has quit [Remote host closed the connection]
tumdum has joined #ocaml
tumdum has quit [Ping timeout: 248 seconds]
Progster has joined #ocaml
Progster has quit [Ping timeout: 255 seconds]
pango is now known as pangoafk
ankit9 has quit [Quit: Leaving]
testcocoon has quit [Quit: Coyote finally caught me]
tumdum has joined #ocaml
Submarine has joined #ocaml
Submarine has quit [Changing host]
Submarine has joined #ocaml
testcocoon has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
xcombelle has joined #ocaml
djcoin has joined #ocaml
wagle has joined #ocaml
wagle has quit [Remote host closed the connection]
wagle has joined #ocaml
ankit9 has joined #ocaml
wagle has quit [Remote host closed the connection]
eni has joined #ocaml
wagle has joined #ocaml
hto has quit [Quit: Lost terminal]
wagle has quit [Remote host closed the connection]
ftrvxmtrx has joined #ocaml
edwin has joined #ocaml
edwin has left #ocaml []
ankit9 has quit [Quit: Leaving]
xcombelle has quit [Quit: I am a manual virus, please copy me to your quit message.]
eni has quit [Ping timeout: 248 seconds]
eni has joined #ocaml
wagle has joined #ocaml
osa1 has joined #ocaml
Cyanure has joined #ocaml
avsm has joined #ocaml
cdidd has joined #ocaml
silver has joined #ocaml
Ptival has quit [Read error: Connection reset by peer]
Ptival has joined #ocaml
eikke has joined #ocaml
mort___ has joined #ocaml
thomasga has joined #ocaml
mort___ has left #ocaml []
avsm has quit [Quit: Leaving.]
osa1 has quit [Quit: Konversation terminated!]
avsm has joined #ocaml
JoeyA has quit [Quit: Leaving]
Cyanure has quit [Remote host closed the connection]
hto has joined #ocaml
beckerb has joined #ocaml
olasd has quit [Remote host closed the connection]
olasd has joined #ocaml
olasd has quit [Changing host]
olasd has joined #ocaml
avsm has quit [Quit: Leaving.]
avsm has joined #ocaml
avsm has quit [Client Quit]
xcombelle has joined #ocaml
mcclurmc_away is now known as mcclurmc
avsm has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
ftrvxmtrx has joined #ocaml
tumdum has quit [Ping timeout: 245 seconds]
eni has quit [Ping timeout: 255 seconds]
tumdum has joined #ocaml
avsm has quit [Quit: Leaving.]
avsm has joined #ocaml
avsm has quit [Client Quit]
tumdum has quit [Ping timeout: 240 seconds]
_andre has joined #ocaml
Cyanure has joined #ocaml
cdidd has quit [Ping timeout: 264 seconds]
tumdum has joined #ocaml
sivoais has quit [Quit: Lost terminal]
cdidd has joined #ocaml
tumdum_ has joined #ocaml
<_andre> if i have a main module in src/ and a sub-module in srs/sub/, is there a way to share a common InternalModule between then with oasis?
<_andre> src/sub
tumdum has quit [Ping timeout: 252 seconds]
<thelema> _andre: which way does the dependency between your main module and the sub module go? main depends on sub, sub depends on main, or neither?
<_andre> neither
<_andre> i can keep everything in src/, i was just curious
<thelema> can they both be used at the same time? If so, they both can't have the same module
<_andre> even if it's internal?
<thelema> yes
<_andre> hrm hadn't thought about that :s
<thelema> there's no real way to make a module "project private"
<thelema> if you can get at the module from a file other than the one it's written in, then it's public
<hcarty> _andre: One option is the pack the inner modules
<hcarty> _andre: That will allow you to have shared names. Otherwise, you would need to take the Batteries approach of adding unique prefixes to the internal module names. You could expose them under a different, common name through each of the main modules (again, like Batteries).
ski has quit [Ping timeout: 248 seconds]
<_andre> it's just an util.ml file with helper functions, it's not meant to be exposed
<hcarty> _andre: Then packing or adding a unique prefix will work.
<hcarty> Packing will make it a bit easier to completely hide the Util module
<_andre> i'll read about packing then
<_andre> does oasis support that?
<hcarty> _andre: As of 0.3.0 I think
<hcarty> Or one of the 0.3.0 pre-release versions
<_andre> cool, i'm using that
<hcarty> I think it's somthing like Pack: true, but I haven't used it yet
<adrien> yup, Pack: true
<_andre> so the idea is to create a separate Library section for util.ml with Pack: true?
<adrien> http://git.ocamlcore.org/cgi-bin/gitweb.cgi?p=caravel/caravel.git;a=blob;f=src/_oasis
fraggle_ has quit [Read error: Connection reset by peer]
<adrien> that was with 0.2.1 patched with pack support
<adrien> I need to port it to 0.3.0
<adrien> there were a couple of specific things (paths and casing)
ski has joined #ocaml
<adrien> I don't know how it has changed
<hcarty> adrien: And in that case it uses the Library name as the module name?
<hcarty> adrien: So LibUi -> libUi.cm*
<adrien> hcarty: yes
netrino has joined #ocaml
<adrien> except it will look for LibUi.ml*
<adrien> which is the casing issue I mentionned
<hcarty> adrien: Cool
<adrien> that's a bit fuzzy in my head so check everything, but if you see it look for "foo/bar/Baz.ml" or "Foo/bar/Baz.ml", that's probably what's going on
<adrien> and one of the things I had was that I have files in "BrowserUI" and "BrowserModel" with the same names, so I had to take a couple extra steps
gnuvince has quit [Ping timeout: 252 seconds]
fraggle_ has joined #ocaml
Progster has joined #ocaml
sepp2k has quit [Ping timeout: 246 seconds]
sepp2k has joined #ocaml
gnuvince has joined #ocaml
cdidd has quit [Read error: Connection reset by peer]
cdidd has joined #ocaml
sivoais has joined #ocaml
sivoais has quit [Remote host closed the connection]
sivoais has joined #ocaml
smondet has joined #ocaml
[Joshuah] has joined #ocaml
<[Joshuah]> hi, i am trying to build a ocaml-library. as soons as i include unix.cmxa it get the following linker error: Undefined symbols for architecture x86_64:
<[Joshuah]> "_environ", referenced from:
eikke has quit [Ping timeout: 264 seconds]
<thelema> [Joshuah]: are you trying to use 64-bit compiler tools on a 32-bit ocaml?
<[Joshuah]> thelema: no, its 64-ocaml
<thelema> ok, what's your command to build the library?
<thelema> the command that fails
<adrien> and which environment?
* thelema bets mac
<adrien> heheh ;-)
<[Joshuah]> mac os x 10.7.4, command line is:
<[Joshuah]> .
<thelema> :( ignore that link
<[Joshuah]> ocamlopt -o libocaml_rl_pi_rnn.so -I /usr/local/lib/ocaml/ -I /usr/local/lib/ocaml/site-lib/extlib -I /usr/local/lib/ocaml/site-lib/batteries unix.cmxa nums.cmxa batteries.cmxa rnnRL.cmxa ocaml_rl_pi_bi.ml -ccopt ocaml_interface.c -ccopt -I/usr/local/lib/ocaml/ -ccopt -shared
<[Joshuah]> as soon as i include the unix.cmxa, i get the linking error, otherwise its fine
<[Joshuah]> the error is: Undefined symbols for architecture x86_64:
<[Joshuah]> "_environ", referenced from:
<[Joshuah]> _unix_execvpe in libunix.a(execvp.o)
<[Joshuah]> _unix_environment in libunix.a(envir.o)
<thelema> [Joshuah]: not your problem, but why aren't you using findlib?
<[Joshuah]> good question. its the first time i solved that issue that i posted a couple of days ago. i am not quite sure how it works, but up to now i hacked that makefile to make it work :)
netrino has quit [Quit: Ave!]
<[Joshuah]> if you think that will solve my problem, i will give it a shot
<thelema> [Joshuah]: I don't think findlib will solve your problem. Your problem seems to be an error in libunix.a, which was built with your ocaml compler
<thelema> The same error happened to hugs98: http://trac.macports.org/ticket/30582
<[Joshuah]> ah, i see
<[Joshuah]> strange, adding unix to my ocaml-projects works fine. only occurs when adding to the c-lib
ftrvxmtrx has quit [Quit: Leaving]
<thelema> must be that _environ is defined in ocaml startup code
<[Joshuah]> so, i have to change the ocaml-code? or try 4.0.0?
<thelema> you're trying to link ocaml library code into a C library
<[Joshuah]> yes
<thelema> read that and follow its instructions
mcstar has joined #ocaml
<[Joshuah]> its a bug in the unix code. i added the lines posted in the link you gave me to unix.c and another .c file in otherlibs/unix
<[Joshuah]> it now compiles and runs
Cyanure has quit [Ping timeout: 248 seconds]
ccasin has joined #ocaml
<[Joshuah]> thelema: thanks!
djcoin has quit [Quit: WeeChat 0.3.2]
sepp2k has quit [Remote host closed the connection]
tumdum_ has quit [Quit: Lost terminal]
gruntzy has joined #ocaml
[Joshuah] has quit [Quit: [Joshuah]]
silver has quit [Remote host closed the connection]
eni has joined #ocaml
Kakadu has joined #ocaml
eni has quit [Quit: Leaving]
ftrvxmtrx has joined #ocaml
<Drakken> Is there an up-to-date list of OCaml companies somewhere?
<hcarty> Drakken: There is a partial list of Caml Consortium members on the main site
rossberg has quit [Remote host closed the connection]
<Drakken> hcarty & thelema thanks.
BiDOrD_ has joined #ocaml
mcclurmc is now known as mcclurmc_away
BiDOrD has quit [Ping timeout: 264 seconds]
thomasga has quit [Quit: Leaving.]
wagle has quit [Read error: Connection reset by peer]
beckerb has quit [Ping timeout: 248 seconds]
gruntzy has quit [Read error: Connection reset by peer]
Ninju has joined #ocaml
milosn has quit [Read error: No route to host]
milosn has joined #ocaml
wagle has joined #ocaml
wagle has quit [Ping timeout: 248 seconds]
Progster has quit [Ping timeout: 248 seconds]
osa1 has joined #ocaml
xcombelle has quit [Disconnected by services]
xcombelle_ has joined #ocaml
xcombelle_ is now known as xcombelle
Progster has joined #ocaml
wagle has joined #ocaml
wagle has quit [Read error: Connection reset by peer]
wagle has joined #ocaml
wagle has quit [Read error: Connection reset by peer]
wagle has joined #ocaml
wagle has quit [Read error: Connection reset by peer]
xcombelle has quit [Quit: I am a manual virus, please copy me to your quit message.]
Kakadu has quit [Quit: Konversation terminated!]
eni has joined #ocaml
Cyanure has joined #ocaml
pangoafk is now known as pango
<_habnabit> no equivalent of BatList.find_exn in BatEnum :(
<thelema> _habnabit: correct, you'll have to catch and replace the Not_found exception yourself.
<thelema> let enum_find_exn p ex en = try Enum.find p en with Not_found -> raise e
<thelema> I'm not sure why find_exn was even added; I hope I wasn't the one that added it
<thelema> yay, it comes from extlib; a piece of cruft, I say.
<_habnabit> it was useful for the particular case i had
<_habnabit> but i changed it to use BatReturn instead
Submarine has quit [Ping timeout: 246 seconds]
<thelema> hmm, I just had the terrible idea that batReturn could use ocaml values with last two bits "10" (like exceptions going to C code) for a performance improvement.
_andre has quit [Ping timeout: 248 seconds]
gnuvince has quit [Ping timeout: 240 seconds]
eni has quit [Quit: Leaving]
Tobu has quit [Remote host closed the connection]
avsm has joined #ocaml
Tobu has joined #ocaml
<dsheets> how to combine typerex ocp-type with ocamlfind and ocamlbuild?
<thelema> tell ocamlfind to use typerex's executables
<dsheets> ocamlbuild -use-ocamlfind is in my Makefile
<dsheets> should I set OCAMLFIND_COMMANDS then before this is called?
<dsheets> passing new commands to ocamlbuild doesn't work
<thelema> try changing your ocamlfind.conf (findlib.conf)
<dsheets> thelema: ah, thank you :-)
mcstar has quit [Quit: mcstar]
gnuvince has joined #ocaml
ocp has joined #ocaml
Submarine has joined #ocaml
Submarine has quit [Changing host]
Submarine has joined #ocaml
Cyanure has quit [Remote host closed the connection]
smondet has quit [Quit: Bye]
mort___ has joined #ocaml
ocp has quit [Quit: Leaving.]
osa1 has quit [Quit: Konversation terminated!]
chipmonk010 has quit [Quit: leaving]
avsm has quit [Quit: Leaving.]
Anarchos has joined #ocaml
Progster has quit [Ping timeout: 260 seconds]
rudi_ has joined #ocaml
<rudi_> what is the easiest parsing library for ocaml?
<rudi_> easiest to use that is