emmanuelux has quit [Remote host closed the connection]
fayden has quit [Ping timeout: 264 seconds]
watermind has quit [Quit: Konversation terminated!]
watermind has joined #ocaml
hongboz` has quit [Ping timeout: 264 seconds]
eikke has quit [Ping timeout: 252 seconds]
lolcathost has quit [Ping timeout: 264 seconds]
lolcathost has joined #ocaml
watermind has quit [Quit: Konversation terminated!]
cdidd has quit [Remote host closed the connection]
fayden has joined #ocaml
fayden has quit [Quit: Bye]
fayden has joined #ocaml
hongboz has quit [Ping timeout: 260 seconds]
mye has joined #ocaml
Yoric has joined #ocaml
lolcathost has quit [Ping timeout: 252 seconds]
mye has quit [Quit: mye]
answer_42 has joined #ocaml
Yoric has quit [Ping timeout: 265 seconds]
fayden has quit [Quit: Bye]
jbrown__ has joined #ocaml
|jbrown| has quit [Ping timeout: 264 seconds]
wagle_ has joined #ocaml
rixed has quit [*.net *.split]
`micro has quit [*.net *.split]
teamon has quit [*.net *.split]
wagle has quit [*.net *.split]
jpdeplaix has quit [*.net *.split]
`micro has joined #ocaml
teamon has joined #ocaml
`micro is now known as Guest95276
jpdeplaix has joined #ocaml
Cyanure has joined #ocaml
rixed has joined #ocaml
Yoric has joined #ocaml
mattrepl has quit [Quit: mattrepl]
myx has quit [Quit: ушёл]
Kakadu has joined #ocaml
Kakadu has quit [Remote host closed the connection]
Kakadu has joined #ocaml
testcocoon has quit [Quit: Coyote finally caught me]
testcocoon has joined #ocaml
Yoric has quit [Remote host closed the connection]
Yoric has joined #ocaml
justdit has joined #ocaml
ontologiae has joined #ocaml
ontologiae has quit [Ping timeout: 260 seconds]
ontologiae has joined #ocaml
ontologiae has quit [Ping timeout: 255 seconds]
leoncamel has quit [Quit: WeeChat 0.3.9.2]
tane has joined #ocaml
Xizor has joined #ocaml
Yoric has quit [Ping timeout: 246 seconds]
ikaros has joined #ocaml
Snark has joined #ocaml
leoncamel has joined #ocaml
cdidd has joined #ocaml
|jbrown| has joined #ocaml
jbrown__ has quit [Ping timeout: 264 seconds]
<adrien>
grrr
<adrien>
I'm wondering: suppose I use "ocamlc" to compile or link with gcc
<adrien>
will it have some default arguments?
<adrien>
yes it has
<adrien>
(fuck)
jewel has joined #ocaml
asmanur_ has joined #ocaml
<pippijn>
adrien: you can build them with ocamlc -where or something
<adrien>
yeah but I want to keep support for current build systems
<adrien>
replacing every call to "ocamlc -c foo.c" with "gcc -I $(ocamlc -where) -c $moreoptions foo.c" is going to be way too much work
<asmanur_>
is oasis able to use an installation of ocaml not living in /usr/bin ? it seems that it is always using /usr/bin/ocaml* even though there is no ocaml binaries in /usr/bin
<adrien>
it should be using anything that is in your $PATH or accessible through findlib
<adrien>
findlib/ocamlfind
<asmanur_>
it is not.. when I run ocaml setup.ml -configure the first line is "/usr/bin/ocamlc: file not found"
<asmanur_>
oh it seems that it is not regenerating setup.data.
<adrien>
yup, that's pretty common
<adrien>
if you've configured and built before, you need to clean everything btw
ulfdoz has quit [Quit: kernel update]
eikke has joined #ocaml
ontologiae has joined #ocaml
ulfdoz has joined #ocaml
Yoric has joined #ocaml
eikke has quit [Ping timeout: 264 seconds]
<adrien>
3 minutes in ocamlbuild's source code and I'm already hating it
milosn has quit [Read error: No route to host]
emmanuelux has joined #ocaml
milosn has joined #ocaml
milosn has quit [Remote host closed the connection]
eikke has joined #ocaml
milosn has joined #ocaml
milosn has quit [Read error: No route to host]
<wmeyer>
adrien: what's wrong with ocamlbuild source?
justdit has quit [Ping timeout: 255 seconds]
milosn has joined #ocaml
milosn has quit [Read error: No route to host]
milosn has joined #ocaml
<adrien>
wmeyer: too many comments
<adrien>
they make it hard to see the code
<adrien>
and it looks a bit weird
<adrien>
let f () =
<adrien>
if foo then
<adrien>
let () = do_lots_of_work () in
<adrien>
let () = do_even_more_work () in
<adrien>
raise Exit_silentlywith_exit_code (f 42)
<adrien>
else
<adrien>
()
<Qrntz>
looks like semicolon avoidance
<wmeyer>
hmmm, what's wrong with it ( :D )
<adrien>
nah, not that
<adrien>
the issue is that its *normal* way to work is so raise an exception
<Qrntz>
oh
<wmeyer>
no, ok, well it looks weird indeed
<adrien>
it's very hard to read
<adrien>
see Plugin.ml : execute_plugin_if_needed
<wmeyer>
but I like ocamlbuild sources
<adrien>
I find the control-flow hard to follow
<wmeyer>
I don't see big problem there
<wmeyer>
well you could use combinator
<wmeyer>
and abstract the conditional option in general case
<wmeyer>
maybe because I wrote a lot of C++ in past
<wmeyer>
and have seen much worse control flow - not involving even exceptions
<adrien>
well, I'm trying to remove the reliance on bash for command-line quoting on windows
<wmeyer>
great
<adrien>
issue is that and in some places, the code seems to try to avoid bash's handling on windows
<wmeyer>
did Jonathan Protzenk try this too some time ago?
<adrien>
but it's deep at 15 levels of indentation in a function
<adrien>
(yes, 15)
<Qrntz>
impressive
<adrien>
well, I think most people thought about writing command-line creation stuff to avoid calling bash to do it
<adrien>
but bash is used for things like "cp", "rm", ...
<adrien>
these could be done in ocaml directly without spawning separate processes
<wmeyer>
there should be a module abstractig this
<adrien>
so I'm checking if the same treatment could be done for other processes
<wmeyer>
and then we could functorize
<wmeyer>
should - I don't think there is at the moment
<adrien>
and it uses that to call "readlink" too
<wmeyer>
ping me once you do it, I am happy to look at the patch
<adrien>
but on windows you don't even have to care about readlink
<adrien>
windows supports readlink but they're unusable in practice
<adrien>
sure, it'll take a few days however I think
<wmeyer>
I'll also raise a mantis issue about missuse of the std Unix tools on windows
<adrien>
well, officialy, cygwin or msys is needed
<adrien>
otoh it's not a lot of work and I guess it could provide a nice speedup too
<adrien>
at least it can't hurt
djcoin has joined #ocaml
weie has quit [Quit: Leaving...]
<wmeyer>
need to restart Emacs
wmeyer has quit [Remote host closed the connection]
ontologiae has quit [Ping timeout: 245 seconds]
<adrien>
doh
<adrien>
let slurp_with_find path = let find_cmd = try Sys.getenv "OCAMLBUILD_FIND" with _ -> "find" in
mye has joined #ocaml
emmanuelux has quit [Read error: Connection reset by peer]
emmanuelux has joined #ocaml
mye has quit [Quit: mye]
answer_42 has quit [Remote host closed the connection]
mye has joined #ocaml
milosn has quit [Read error: Operation timed out]
milosn has joined #ocaml
pango_ has joined #ocaml
jewel has quit [Ping timeout: 246 seconds]
pango has quit [Ping timeout: 264 seconds]
tane has quit [Quit: Verlassend]
Cyanure has quit [Remote host closed the connection]
<adrien>
I knew emacs took time to start but I didn't know it required *that* much time :P
jamii has quit [Ping timeout: 260 seconds]
<wmeyer>
adrien: you know. My .emacs spans over few rack servers, and Emacs takes terabyte of memory distributed on cluster to interpret it.
jbrown__ has joined #ocaml
pango_ is now known as pangoafk
<wmeyer>
adrien: neh, i just forget to log into erc :-)
|jbrown| has quit [Ping timeout: 265 seconds]
<adrien>
woah, does you have RMS' mind built into your emacs config? :o
<wmeyer>
adrien: it has + some nifty customisations I made through a backdoor M-x doctor
hongboz` has joined #ocaml
ontologiae has quit [Ping timeout: 260 seconds]
<wmeyer>
currently I'm doing a library for shell commands. Using GADTs and monads, but not attempting to abstract too much and make it too type safe, anybody interested?
<wmeyer>
I'd like it to work on Windows too.
<hongboz`>
make it run first, then consider type safety ;-)
<wmeyer>
hongboz`: I learnt by heart that for some applications it's better to be type safe from the begining, by just describing the interfaces ;-)
<wmeyer>
i don't see a problem of not recognised terrain here - this is well known what shell does and how it does
<wmeyer>
hongboz`: and neh, this time I'll not use Camlp4 for shell - although I might consider it!
<wmeyer>
hongboz`: combinators will suffice here for time being
<hongboz`>
sounds great
<hongboz`>
actually not, when I was programming in Haskell
<hongboz`>
I always try to make programms beautiful
<hongboz`>
and I found I am less productive :-()
<wmeyer>
sounds <--- that's why I'm looking for somebody (or people) to just help, because I'm going to spend too much time on it - and that's just for running tests now. but i see the gap.
<wmeyer>
hongboz`: I know what you mean. Meta programs remain beautiful and yet give the good timing.
<hongboz`>
wmeyer: make a native version of fan is now about 20s! light year faster than camlp4!
<hongboz`>
and camlp5
<wmeyer>
nice!
<hongboz`>
do you have any motivation to improve the error message of ocamlbuild?
<hongboz`>
I found sometimes ocamlbuild fails without telling anything meaningful
<wmeyer>
oh yes, I even though about it today.
<wmeyer>
It's well known issue in fact, it annoys me as well.
<hongboz`>
yes, I am considering build a new toolchain ocaml{dep,build,doc} using fan...
<wmeyer>
could you be more precise what you want to do? (I think the Lisp Curse kicks in now)
eikke has quit [Ping timeout: 244 seconds]
<hongboz`>
ocamldep does not work well, and it's quite easy to roll my own..
<hongboz`>
for example, if you use some macros, ocamldep can not detect it correctly, like #include
<wmeyer>
I don't think it is, ocamldep just requires -pp switch
<hongboz`>
no.. it needs the include file, ocamlbuild does not copy it into _build
<hongboz`>
you have to tell ocamlbuild explicitly
<wmeyer>
well, if ocamldep would know about it it would copy, right?
<wmeyer>
I can see your point, but the same justification applies to me for re-inventing my own shell library :-)
<hongboz`>
have you used macros like INCLUDE, before?
<wmeyer>
and I think I will not do it, and just use netsys or something.
<wmeyer>
hongboz`: no
<wmeyer>
they are useful
<wmeyer>
but never used to, and new Fan Camlp4 is not released so I am waiting for it!
<wmeyer>
waiting very anxiously :-)
<hongboz`>
wmeyer: I think the beta version will be available after ICFP deadline
<hongboz`>
be a little patient
<wmeyer>
no, no rush
<hongboz`>
how is your dragonkit?
<wmeyer>
i am fine, it's being done .
<wmeyer>
I hope to have something like MLRISC at least sometime
<hongboz`>
MLRISC is an interesting project
<hongboz`>
but a number of such projectes went dead..
<wmeyer>
yes, it's actually normal. They are academic as such
<wmeyer>
but I want really practical yet future proof
<wmeyer>
oh, is it possible to have a shell library without whole ocaml-net ?
<wmeyer>
shcaml is very nice but it's too complicated for my purpose.
mye has quit [Quit: mye]
emmanuelux has quit [Quit: emmanuelux]
mattrepl has joined #ocaml
mattrepl has quit [Quit: mattrepl]
Submarine has joined #ocaml
Submarine has quit [Changing host]
Submarine has joined #ocaml
gnuvince has quit [Ping timeout: 245 seconds]
gnuvince has joined #ocaml
hongboz has joined #ocaml
hongboz` has quit [Ping timeout: 252 seconds]
Snark has quit [Quit: Quitte]
mattrepl has joined #ocaml
emmanuelux has joined #ocaml
Cyanure has quit [Remote host closed the connection]
ben_zen has quit [Ping timeout: 260 seconds]
xavierm02 has joined #ocaml
Anarchos has joined #ocaml
dwmw2_gone has quit [Ping timeout: 260 seconds]
dwmw2_gone has joined #ocaml
watermind has joined #ocaml
Yoric has quit [Ping timeout: 264 seconds]
milosn has quit [Quit: leaving]
milosn has joined #ocaml
Submarine has quit [Remote host closed the connection]
wagle_ is now known as wagle
Xizor has quit [Remote host closed the connection]
leoncamel has quit [Ping timeout: 265 seconds]
eikke has joined #ocaml
Yoric has joined #ocaml
pangoafk is now known as pango
xavierm02 has quit [Quit: Leaving]
milosn has quit [Ping timeout: 246 seconds]
milosn has joined #ocaml
troydm has quit [Quit: What is hope? That all of your wishes and all of your dreams come true? (C) Rau Le Creuset]
watermind has quit [Ping timeout: 246 seconds]
watermind has joined #ocaml
troydm has joined #ocaml
Yoric has quit [Ping timeout: 265 seconds]
BiDOrD has joined #ocaml
BiDOrD_ has quit [Ping timeout: 260 seconds]
Anarchos has quit [Quit: Vision[0.9.7-H-090423]: i've been blurred!]
cdidd has quit [Remote host closed the connection]