flux changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 4.00.1 http://bit.ly/UHeZyT | http://www.ocaml.org | Public logs at http://tunes.org/~nef/logs/ocaml/
breakds has joined #ocaml
ocaml_noob has quit [Ping timeout: 245 seconds]
ollehar has quit [Ping timeout: 240 seconds]
pib1951 has quit [Remote host closed the connection]
Neros_ has joined #ocaml
Neros has quit [Ping timeout: 272 seconds]
bobry has joined #ocaml
Neros has joined #ocaml
Neros_ has quit [Ping timeout: 252 seconds]
emmanuelux has quit [Quit: emmanuelux]
emmanuelux has joined #ocaml
diml has quit [Ping timeout: 240 seconds]
diml has joined #ocaml
contempt has quit [Ping timeout: 245 seconds]
emmanuelux has quit [Quit: emmanuelux]
madroach has quit [Ping timeout: 248 seconds]
madroach has joined #ocaml
eikke has quit [Ping timeout: 272 seconds]
yacks has quit [Read error: Connection reset by peer]
yacks has joined #ocaml
breakds has quit [Quit: Konversation terminated!]
talzeus has joined #ocaml
diml has quit [Ping timeout: 252 seconds]
diml has joined #ocaml
talzeus has quit [Remote host closed the connection]
talzeus has joined #ocaml
Neros has quit [Ping timeout: 240 seconds]
brianmwaters has joined #ocaml
chrisdotcode has quit [Read error: No route to host]
brianmwaters has quit [Quit: Page closed]
darkf_ has joined #ocaml
darkf has quit [Ping timeout: 260 seconds]
darkf_ is now known as darkf
Tobu has quit [Ping timeout: 246 seconds]
ttamttam has joined #ocaml
derek_c has joined #ocaml
ttamttam has quit [Remote host closed the connection]
UncleVasya has joined #ocaml
Snark has joined #ocaml
ulfdoz has joined #ocaml
dtg_ has joined #ocaml
Trollkastel has quit [Quit: Brain.sys has encountered a problem and needs to close. We are sorry for the inconvenience.]
dtg has quit [Ping timeout: 248 seconds]
Trollkastel has joined #ocaml
ttamttam has joined #ocaml
botton has joined #ocaml
botton has left #ocaml []
mfp has quit [Ping timeout: 258 seconds]
ttamttam has quit [Quit: ttamttam]
ttamttam has joined #ocaml
zpe has joined #ocaml
Arsenik has joined #ocaml
wsebastian has joined #ocaml
<wwilly> bonjour
<adrien> morning :)
ulfdoz has quit [Ping timeout: 252 seconds]
<orbitz> morning
zpe has quit [Ping timeout: 245 seconds]
yacks has quit [Quit: Leaving]
awm22 has quit [Quit: Leaving.]
djcoin has joined #ocaml
Arsenik has quit [Remote host closed the connection]
zpe has joined #ocaml
zpe has quit [Ping timeout: 245 seconds]
cago has joined #ocaml
anderse has joined #ocaml
thomasga has joined #ocaml
chambart has joined #ocaml
awm22 has joined #ocaml
mika1 has joined #ocaml
ontologiae has joined #ocaml
zpe has joined #ocaml
derek_c has quit [Quit: leaving]
anderse has quit [Quit: anderse]
zpe has quit [Ping timeout: 272 seconds]
frogfoodeater has quit [Ping timeout: 255 seconds]
IbnFirnas has quit [Ping timeout: 252 seconds]
IbnFirnas has joined #ocaml
beckerb has joined #ocaml
eikke has joined #ocaml
yacks has joined #ocaml
dwmw2`` has quit [Read error: No route to host]
ocp has joined #ocaml
Trollkastel has quit [Quit: Brain.sys has encountered a problem and needs to close. We are sorry for the inconvenience.]
hkBst has joined #ocaml
frogfoodeater has joined #ocaml
zpe has joined #ocaml
zpe has quit [Ping timeout: 264 seconds]
ocp has quit [Ping timeout: 245 seconds]
cago has quit [Read error: Operation timed out]
zpe has joined #ocaml
malo has joined #ocaml
wormphlegm has quit [Ping timeout: 245 seconds]
wormphlegm has joined #ocaml
Trollkastel has joined #ocaml
frogfoodeater has quit [Ping timeout: 252 seconds]
cago has joined #ocaml
ocp has joined #ocaml
<companion_cube> no idea, sorry
<rixed> Maybe deriving works only for constructed type? Does it work if you change your int by a "I of int" for instance?
<pippijn> same error
mort___ has joined #ocaml
<rixed> No idea then.
<adrien_oww> examples show type name = string deriving (Show, Dump, Typeable)
awm22 has quit [Quit: Leaving.]
cago has quit [Ping timeout: 245 seconds]
awm22 has joined #ocaml
<pippijn> adrien_oww: according to the examples, this should work
<pippijn> adrien_oww: so I think the command line is wrong
<adrien_oww> wondered that too but it looked fine
<adrien_oww> try with -verbose
<adrien_oww> invoke camlp4o directly
<pippijn> hmm
<pippijn> + ocamldep.opt -pp camlp4o -modules test.ml
<pippijn> this is missing the package
<adrien_oww> why -modules?
<adrien_oww> ah, dep
RagingDave has joined #ocaml
chambart has quit [Ping timeout: 246 seconds]
mcclurmc has quit [Ping timeout: 272 seconds]
cago has joined #ocaml
jbrown has joined #ocaml
ontologiae has quit [Ping timeout: 245 seconds]
chambart has joined #ocaml
ontologiae has joined #ocaml
mcclurmc has joined #ocaml
awm22 has quit [Quit: Leaving.]
cdidd has quit [Remote host closed the connection]
UncleVasya has quit [Read error: Connection reset by peer]
Yoric has joined #ocaml
awm22 has joined #ocaml
cago has quit [Ping timeout: 245 seconds]
dsheets has joined #ocaml
ollehar has joined #ocaml
UncleVasya has joined #ocaml
raichoo has joined #ocaml
gnuvince- has joined #ocaml
gnuvince has quit [Ping timeout: 258 seconds]
ollehar has quit [Quit: ollehar]
zpe has quit [Remote host closed the connection]
cago has joined #ocaml
cago has quit [Client Quit]
cago has joined #ocaml
frogfoodeater has joined #ocaml
cago has quit [Quit: Leaving.]
RagingDave_ has joined #ocaml
RagingDave has quit [Ping timeout: 264 seconds]
RagingDave_ is now known as RagingDave
_andre has joined #ocaml
<wmeyer`> hi
<pippijn> hi
<adrien_oww> MORNING!
<adrien_oww> (this channel should be +c before I make people blind)
<pippijn> adrien_oww: http://paste.xinu.at/BZE/
<pippijn> adrien_oww: don't worry about it
<adrien_oww> pippijn: that's awful ='(
<adrien_oww> the first line ;-)
<pippijn> adrien_oww: what did you do?
<adrien_oww> I didn't do anything, I'm innocent!
<wmeyer`> it works in ERC
<wmeyer`> morning
<pippijn> wmeyer`: what workeds?
<wmeyer`> <caps>
<pippijn> any ideas?
<pippijn> I forgot how to get sexplib to work with oasis/ocamlbuild
<pippijn> actually I want to use deriving
<adrien_oww> for sexplib, you'll need -package sexplib too
<adrien_oww> and you need to "open" some module first
<pippijn> adrien_oww: syntax error
<pippijn> and: + ocamldep.opt -pp camlp4o -modules test.ml
<adrien_oww> yes, noticed but you'll need that anyway :P
<wmeyer`> use -syntax camlp4o
<adrien_oww> I don't understand what you do with that
<wmeyer`> -pp will override the settings
<pippijn> oh
<pippijn> wmeyer`: right
<adrien_oww> hah
<pippijn> ok, got it now
<pippijn> great
<pippijn> I wonder what it is that makes me feel uncomfortable when the first line of a file is "let"
talzeus has quit [Remote host closed the connection]
talzeus has joined #ocaml
talzeus has quit [Ping timeout: 260 seconds]
<wmeyer`> pippijn: have you been interested in Axiom
<pippijn> no, in aldor
<pippijn> (formerly AxiomXL)
<wmeyer`> Axiom is on of these systems which I find mysterious: literate programming in Common Lisp since 1970
<wmeyer`> Axiom eXtension Language?
<pippijn> yes
mort___ has quit [Quit: Leaving.]
asmanur has quit [Ping timeout: 245 seconds]
asmanur has joined #ocaml
_andre has quit [Read error: No route to host]
_andre has joined #ocaml
<companion_cube> maybe that's a recurring question, but did people suggest to add a 'finally' keyword for exceptions?
<Yoric> In OCaml?
<Yoric> That's a recurring question :)
<Yoric> Generally solved with Camlp4.
<wmeyer`> companion_cube: I believe you could use combinators for this task
<companion_cube> I know, but it's more cumbersome
<companion_cube> just wondering why it's not in there, like in almost all other languages with exceptions
<wmeyer`> or as Yoric advises -ppx or Camlp4
<pippijn> monads!
<ousado> maybe it has something to do with ocamls exceptions being fast unlike in almostall other languages
* pippijn hides
<wmeyer`> simplicity, and the fact how the exceptions are used in OCaml
<wmeyer`> like ousado says the performance is the reason how they are used
<ousado> does someone know any resources for how to use extension_points ?
<ousado> like, a full example
<rks_> companion_cube: there has been a discussion about that on the caml list recently
<companion_cube> ousado: you think finally would have an impact on performance?
<companion_cube> it would only occur along with a try/with
<companion_cube> rks_: yep, but it was in the context of getting a stacktrace, right?
<ousado> companion_cube: I'm not sure, actually. I'm not familiar with ocamls implementation
<ousado> it's just a guess
<rks_> indeed, it wasn't a discussion about "why don't we have 'finally'" per say
<rks_> but it's related :-'
<ousado> wmeyer`: thanks, yes. "any resources" was a bit imprecise
<companion_cube> I think that if you don't write all your code in monadic pseudo-haskell, exceptions are useful, and finally is definitely useful for resource handling
<companion_cube> mutex, sockets, files
<wmeyer`> ousado: you could also read platform list
* ousado vanishes into a whole in the ground
<ousado> I haven't searched the ML yet
<ousado> I feel noob
raichoo has quit [Ping timeout: 245 seconds]
oriba has joined #ocaml
raichoo has joined #ocaml
dsheets has quit [Ping timeout: 255 seconds]
hkBst has quit [Ping timeout: 245 seconds]
<ousado> the current/appropriate one would be https://groups.google.com/forum/#!forum/fa.caml ?
hkBst has joined #ocaml
hkBst has quit [Changing host]
hkBst has joined #ocaml
Shakto has joined #ocaml
gasche has joined #ocaml
<gasche> hi
hkBst has quit [Excess Flood]
<Shakto> hi ppl
<Shakto> anyone talk french ?
hkBst has joined #ocaml
<adrien_oww> Shakto: #ocaml-fr
<ousado> Shakto: #ocaml-fr (I think it that)
<Shakto> thx
mort___ has joined #ocaml
ollehar has joined #ocaml
beckerb has quit [Quit: Konversation terminated!]
beckerb has joined #ocaml
dsheets has joined #ocaml
beckerb has quit [Ping timeout: 245 seconds]
Shakto has quit [Quit: Page closed]
q66 has joined #ocaml
dsheets has quit [Ping timeout: 264 seconds]
darkf has quit [Quit: Leaving]
Neros has joined #ocaml
hkBst_ has joined #ocaml
breakds has joined #ocaml
hkBst has quit [Ping timeout: 272 seconds]
dsheets has joined #ocaml
dsheets has quit [Ping timeout: 248 seconds]
smondet has joined #ocaml
dsheets has joined #ocaml
ttamttam has quit [Quit: ttamttam]
ocp has quit [Ping timeout: 252 seconds]
frogfoodeater has quit [Ping timeout: 256 seconds]
raichoo has quit [Ping timeout: 255 seconds]
mika1 has quit [Quit: Leaving.]
raichoo has joined #ocaml
Yoric has quit [Ping timeout: 245 seconds]
Yoric has joined #ocaml
fraggle_ has quit [Read error: Connection reset by peer]
fraggle_ has joined #ocaml
<thelema> does anyone have the final source for sat-micro from "Sat-micro: petit mais costaud!"?
<companion_cube> you can try to ask the authors
zpe has joined #ocaml
raichoo has quit [Quit: leaving]
hkBst_ has quit [Quit: Konversation terminated!]
Yoric has quit [Ping timeout: 256 seconds]
wsebastian has quit [Remote host closed the connection]
awm22 has quit [Ping timeout: 245 seconds]
contempt has joined #ocaml
thomasga has quit [Quit: Leaving.]
mort___ has quit [Quit: Leaving.]
mfp has joined #ocaml
<gasche> I would be very interested in a shell completion script for the "opam switch" command
tianon has quit [Ping timeout: 260 seconds]
<gasche> hm
<gasche> by the sources, it should be there
Trollkastel has quit [Quit: Brain.sys has encountered a problem and needs to close. We are sorry for the inconvenience.]
<thelema> complete.sh
<thelema> maybe just link into /usr/share/bash-completion/completions as opam
<thelema> or probably better; just source it
tianon has joined #ocaml
<thelema> opam config setup is declared to set it up
<gasche> opam: unknown option "--sh"
<thelema> # OPAM configuration
<thelema> . /home/thelema/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true
Trollkastel has joined #ocaml
<thelema> running 'opam config setup -u' added these lines to my ~/.profile
ollehar has quit [Ping timeout: 264 seconds]
<gasche> hm
<gasche> it considered my ~/.profile "up to date" because the file did not exist
<thelema> also interesting: 'opam config setup -l
breakds has quit [Quit: Konversation terminated!]
<gasche> ah, with 'opam config setup -u' it now works
<gasche> I hope that the glitch comes from me upgrading from an older version and that it will auto-setup itself conveniently in recent times
<gasche> because there really wasn't a lot of documentation
<gasche> thanks thelema
<thelema> gasche: n/p
Arsenik has joined #ocaml
<gasche> (I'm using opam switches to test in-progress patches to the compiler, but by nature the switch names must be loooong, so completion will be a time-saver)
<thelema> awesome.
ollehar has joined #ocaml
gnuvince- has quit [Remote host closed the connection]
gnuvince- has joined #ocaml
<rks_> (that doesn't seem to work with zsh)
<thelema> rks_: try adding --zsh
<rks_> doesn't change anything (in both cases it says " ~/.zshrc is already up-to-date.")
<thelema> do you have anything for opam in your ~/.zshrc
<thelema> in any case, try adding something equivalent to what I pasted above, but with .zsh instead of .sh
<rks_> yes, eval `opam config env`
<thelema> that won't give you command line completion or the "opam switch eval" script, whatever that is
<rks_> I'll have a look thelema :)
<rks_> yes thelema, I know
tianon has quit [Ping timeout: 245 seconds]
ocaml_noob has joined #ocaml
tianon has joined #ocaml
<ocaml_noob> Hi, I am kinda new to OCaml and I am working with someone else's code. Wondering, how do most people do introspection of types/object, preferably interactively? I am used to Python and dir(). Thanks!
contempt has quit [Ping timeout: 245 seconds]
<thelema> ocaml_noob: the toplevel is accessible by 'ocaml'; put code in there and it'll show types
<thelema> otherwise, no runtime introspection is built in
<rks_> (use merlin, it can show types as well. :-')
cdidd has joined #ocaml
contempt has joined #ocaml
ontologiae has quit [Ping timeout: 264 seconds]
wwilly has quit [Remote host closed the connection]
<ocaml_noob> Okay thanks, are there ways to generically output types/objects and/or view variant types?
thomasga has joined #ocaml
<ollehar> ocaml_noob: like javas toString? no
<ollehar> but when you print something in the toplevel, the type will be seen
<ollehar> also, the compiler will tell you when something has the wrong type
yacks has quit [Ping timeout: 245 seconds]
zpe has quit [Remote host closed the connection]
<ollehar> is there any specific reason why type-level programming in ocaml isn't possible the same way it is in haskell? conservative maintainers?
<ocaml_noob> ollehar: Right. Is there a way to do it more flexibly? The thing is the system I am working with is fairly large, so it is difficult to deal with. Basically the interface I am presented with is that I can write a function that takes this object as a parameter, and I would like to learn more about it. What would be the best way to go about this?
<ollehar> ocaml_noob: look at the specification, I think.
<ollehar> the compiler will then yell at you if you're doing it wrong, and tell the type of the object you're using.
<ollehar> e.g. object#field, if object has no field "field" the compiler will tell "expected object of type bla but have type bla"
<ocaml_noob> Yes, I suppose I can do this. I was just hoping there would be a more dynamic way to approach it, since like I mentioned, the codebase is fairly large.
<ollehar> grep :)
<ocaml_noob> hah
<ollehar> or use ctags...
<rks_> ... use merlin.
<ocaml_noob> yeah I saw that, I'll look into it
<ocaml_noob> So, given a type x = y of int | z of int. How would I go about finding out what the values are if just given an x? If that makes sense.
<rks_> oh, for that you need more than merlin
<rks_> you need to learn ocaml.
<ollehar> patter match
<ollehar> match x with Y i -> (* have y *) | Z i -> (* have z *)
<ocaml_noob> okay, that makes sense
<ocaml_noob> thank you!
<ollehar> np
ocaml_noob has quit [Quit: leaving]
mcclurmc has quit [Ping timeout: 252 seconds]
awm22 has joined #ocaml
UncleVasya has quit [Ping timeout: 256 seconds]
UncleVasya has joined #ocaml
zpe has joined #ocaml
zpe has quit [Ping timeout: 256 seconds]
flx__ has joined #ocaml
tane has joined #ocaml
flux has quit [Ping timeout: 256 seconds]
flx__ is now known as flux
* wmeyer` regains power to do actually some coding
<pippijn> :)
<pippijn> I'm home, and doing nothing now
<pippijn> I worked 10 hours
zpe has joined #ocaml
<wmeyer`> pippijn: flu, haven't been at work today.
<pippijn> oh :/
<pippijn> better take a rest
<wmeyer`> no, I did.
wmeyer`` has joined #ocaml
zpe has quit [Ping timeout: 264 seconds]
wmeyer` has quit [Ping timeout: 256 seconds]
anderse has joined #ocaml
djcoin has quit [Quit: WeeChat 0.3.9.2]
sysop_fb has joined #ocaml
sysopfb has quit [Ping timeout: 255 seconds]
Trollkastel has quit [Read error: Connection reset by peer]
anderse has quit [Quit: anderse]
sysopfb has joined #ocaml
dsheets has quit [Ping timeout: 272 seconds]
UncleVasya has quit [Read error: Connection reset by peer]
sysop_fb has quit [Ping timeout: 245 seconds]
UncleVasya has joined #ocaml
chambart has quit [Ping timeout: 246 seconds]
malo has quit [Quit: Leaving]
ttamttam has joined #ocaml
Trollkastel has joined #ocaml
tianon has quit [Ping timeout: 246 seconds]
tianon has joined #ocaml
* adrien pours beer into wmeyer``'s mouth
<ollehar> pretty awesome: http://www.metaocaml.org/concoqtion/
<ollehar> seems to be abandoned, though
AdmWiggin has joined #ocaml
Yoric has joined #ocaml
nykntks has joined #ocaml
AdmWiggi1 has joined #ocaml
tianon has quit [Ping timeout: 264 seconds]
AdmWiggi2 has joined #ocaml
AdmWiggin has quit [Ping timeout: 252 seconds]
AdmWiggi1 has quit [Ping timeout: 245 seconds]
smerz_ has joined #ocaml
nykntks has quit [Remote host closed the connection]
UncleVasya has quit [Quit: UncleVasya]
tianon has joined #ocaml
AdmWiggin has joined #ocaml
AdmWiggi2 has quit [Ping timeout: 276 seconds]
AdmWiggi1 has joined #ocaml
mort___ has joined #ocaml
ccasin has quit [Read error: Operation timed out]
ccasin has joined #ocaml
tianon has quit [Ping timeout: 260 seconds]
AdmWiggin has quit [Ping timeout: 245 seconds]
Trollkastel has quit [Quit: Brain.sys has encountered a problem and needs to close. We are sorry for the inconvenience.]
AdmWiggi1 has quit [Ping timeout: 248 seconds]
dsheets has joined #ocaml
tianon has joined #ocaml
tianon has quit [Ping timeout: 256 seconds]
tianon has joined #ocaml
dwmw2_go` has joined #ocaml
chambart has joined #ocaml
malo_ has joined #ocaml
chambart has quit [Ping timeout: 246 seconds]
wmeyer``` has joined #ocaml
Snark has quit [Quit: leaving]
wmeyer`` has quit [Ping timeout: 240 seconds]
ocp has joined #ocaml
ulfdoz has joined #ocaml
mort___ has quit [Quit: Leaving.]
chambart has joined #ocaml
breakds_ has joined #ocaml
malo_ has quit [Ping timeout: 245 seconds]
Trollkastel has joined #ocaml
malo_ has joined #ocaml
AdmWiggin has joined #ocaml
AdmWiggi1 has joined #ocaml
tianon has quit [Ping timeout: 260 seconds]
tianon has joined #ocaml
AdmWiggin has quit [Ping timeout: 264 seconds]
AdmWiggi1 has quit [Ping timeout: 255 seconds]
_andre has quit [Quit: leaving]
breakds_ has quit [Ping timeout: 264 seconds]
malo_ has quit [Ping timeout: 276 seconds]
gnuvince- is now known as gnuvince
breakds_ has joined #ocaml
malo_ has joined #ocaml
pkrnj has joined #ocaml
ocp has quit [Quit: Leaving.]
weie has quit [Quit: Leaving...]
malo_ has quit [Ping timeout: 245 seconds]
Neros has quit [Remote host closed the connection]
Neros has joined #ocaml
Neros has quit [Remote host closed the connection]
Neros has joined #ocaml
chambart has quit [Ping timeout: 246 seconds]
Neros has quit [Remote host closed the connection]
chambart has joined #ocaml
malo_ has joined #ocaml
RagingDave has quit [Quit: Ex-Chat]
ttamttam has left #ocaml []
mcclurmc has joined #ocaml
Yoric has quit [Ping timeout: 256 seconds]
ulfdoz has quit [Ping timeout: 245 seconds]
dtg_ has quit [Read error: Connection reset by peer]
dtg has joined #ocaml
smondet has quit [Ping timeout: 264 seconds]
pkrnj has quit [Quit: Computer has gone to sleep.]
Arsenik has quit [Remote host closed the connection]
dsheets has quit [Ping timeout: 252 seconds]
AdmWiggin has joined #ocaml
tianon has quit [Ping timeout: 245 seconds]
tianon has joined #ocaml
AdmWiggi1 has joined #ocaml
frogfoodeater has joined #ocaml
AdmWiggin has quit [Ping timeout: 264 seconds]
AdmWiggin has joined #ocaml
tianon has quit [Ping timeout: 264 seconds]
tianon has joined #ocaml
AdmWiggi1 has quit [Ping timeout: 264 seconds]
frogfoodeater has quit [Ping timeout: 264 seconds]
AdmWiggi1 has joined #ocaml
emmanuelux has joined #ocaml
AdmWiggin has quit [Ping timeout: 256 seconds]
AdmWiggin has joined #ocaml
tianon has quit [Ping timeout: 240 seconds]
AdmWiggi1 has quit [Ping timeout: 248 seconds]
AdmWiggin has quit [Ping timeout: 256 seconds]
tianon has joined #ocaml
AdmWiggin has joined #ocaml
mcclurmc has quit [Ping timeout: 256 seconds]
ccasin is now known as cCAPSin
tianon has quit [Ping timeout: 264 seconds]
cCAPSin is now known as ccasin
tianon has joined #ocaml
AdmWiggi1 has joined #ocaml
AdmWiggin has quit [Ping timeout: 256 seconds]
tianon has quit [Ping timeout: 246 seconds]
tianon has joined #ocaml
AdmWiggin has joined #ocaml
AdmWiggi1 has quit [Ping timeout: 245 seconds]
tianon has quit [Ping timeout: 248 seconds]
mk270 has joined #ocaml
<mk270> so i've just uninstalled ocaml from /usr/bin and /usr/local/bin, to make a fresh start
<mk270> what is the recommended method of installing it on linux these days?
frogfoodeater has joined #ocaml
eikke has quit [Read error: Operation timed out]
mcclurmc has joined #ocaml
malo_ has quit [Quit: Leaving]
ousado has quit [Read error: Operation timed out]
eikke has joined #ocaml
Neros has joined #ocaml
pkrnj has joined #ocaml
mcclurmc has quit [Ping timeout: 256 seconds]
<wmeyer```> mk270: I'd recomend ocamlbrew + opam, first you install ocaml with ocamlbrew and then install opam
q66 has quit [Read error: Connection reset by peer]
chambart has quit [Ping timeout: 246 seconds]
frogfoodeater has quit [Ping timeout: 252 seconds]
emmanuelux has quit [Remote host closed the connection]
<mk270> wmeyer```: cheers
<mk270> though it does worry me that we have yet *more* tool sprawl
<mk270> it'll cease once every single developer has his/her own tool set
<mk270> i'd never heard of ocamlbrew until today
<mk270> next question
<mk270> if i want to make a project, which uses some complicated libraries (and i'm using opam), how do set up the build environment? oasis?
<wmeyer```> mk270: so with ocamlbrew is not a problem, as you use it just once, and then rest of the installation is managed by opam (even compilers)
<wmeyer```> to setup a project, and publish it you have to do just two things: be able to build it and install it, and develop opam package description file
<wmeyer```> there is no real force for you to use oasis, but oasis has some capabilities that simplify it. What you can try is obuild, at the moment it's got it's momentum
<mk270> wmeyer```: ok i can live with using ocamlbrew like that
<wmeyer```> it's a single shell script
<mk270> for all i know, opam is a single shell script :)
<wmeyer```> no
<wmeyer```> opam is a complicated application written in OCaml
<mk270> yes, i am perfectly aware that opam is not a single shell script, because i have compiled the cunting thing about five times in the last two hours
<mk270> i was being sarcastic
<wmeyer```> :)
<wmeyer```> ok but expect that package management is usually not a trivial thing
<mk270> yeah, i am reasonably aware of that fact too
<mk270> so, to run with the cool crowd i want obuild?
<wmeyer```> yes, I'd try
<mk270> let's sawy my project is to write an executable which uses some xml library
<wmeyer```> myself haven't used apart from building obuild itself
<wmeyer```> but looks like I'd like to
<mk270> is there a doc which would tell me how to do this?
<wmeyer```> look at docs for the library you use
<wmeyer```> which is it?
<rks_> mk270: ocamlbuild -use-ocamlfind + the appropriate _tags file
<rks_> (easiest _tags : "true: package(your_xml_library_name)")
<mk270> rks_: thanks a million
frogfoodeater has joined #ocaml
<mk270> is there a webpage that says what you've just said? :) if not, there damn well ought to be
<mk270> and it should be in ocaml.org somewhere
<wmeyer```> rks_: it will work, but it will not cooperate very well with ocamlfind (sadly)
fraggle_ has quit [Ping timeout: 255 seconds]
<rks_> wmeyer```: why not?
<mk270> um, i'm not sure i even have ocamlfind installed at the moment?
<rks_> mk270: http://ocaml.org/tutorials/compiling_ocaml_projects.html would be a good start as well
<rks_> mk270: you can install it through opam
<wmeyer```> rks_: because mk270 what's to ship his library as ocamlfind package, and best would be to allow also install step to make it easier
ousado has joined #ocaml
eikke has quit [Ping timeout: 240 seconds]
<rks_> oh wmeyer```, I didn't see that
<mk270> cheers
<mk270> i am not too worried (for *this* project) about shipping with ocamlfind, but it's a reasonable presumption that the next one will want that
fraggle_ has joined #ocaml
<mk270> does ocamlbuild read or write the _tags file?
<wmeyer```> rks_: but you are right, I should mention simply about ocamlbuild to be honest
<wmeyer```> mk270: the answer is no
<wmeyer```> mk270: it does however read
<wmeyer```> (i mean you asked if it does write, right?)
<mk270> yes - so it reads?
<mk270> but not writes - phew
<wmeyer```> (oasis however does write, and do it everytime you issue oasis to regenerate files)
ousado_ has joined #ocaml
ousado has quit [Ping timeout: 245 seconds]
<mk270> i'm still stumped here - how does ocamlbuild know which files are my source code?
<mk270> if i have
<mk270> _tags
<wmeyer```> it does now by trakcing dependencies
<mk270> and
<mk270> helloworld.ml
<mk270> how does it find helloworld.ml?
eikke has joined #ocaml
<rks_> (ocp-build might be a nice option as well, but I feel like there are lots of different builders out there, sticking with simple ocamlfind - ocamlbuild will probably be good enough for the moment)
<rks_> mk270: magic!
<mk270> rks_: the existence of options is *THE PROBLEM*
<wmeyer```> you say: ocamlbuild helloworld.native and that's it
<rks_> mk270: yes :p
pkrnj has quit [Quit: Computer has gone to sleep.]
<wmeyer```> mk270: I did consider ocp-build
<wmeyer```> however it's not released
<wmeyer```> and i think they put too much pressure at the performance at the moment
<mk270> i want a webpage with the recommendations for all the tools, valid for one year
<wmeyer```> mk270: build one :D
<wmeyer```> mk270: it would be useful
<mk270> and changes to this page need to be signed off in the blood of xavier leroy, anil madvadpeddy and yaron minsky
<rks_> why them?
<wmeyer```> but i am worried it would get outdated quickly ;)