Cyanure has quit [Remote host closed the connection]
lorill has joined #ocaml
lorill has quit [Client Quit]
ontologiae has quit [Ping timeout: 244 seconds]
q66 has joined #ocaml
osa1 has joined #ocaml
contempt has quit [Ping timeout: 256 seconds]
contempt has joined #ocaml
cdidd has quit [Remote host closed the connection]
ulfdoz has joined #ocaml
cdidd has joined #ocaml
cdidd has quit [Remote host closed the connection]
cdidd has joined #ocaml
cdidd has quit [Remote host closed the connection]
cdidd has joined #ocaml
cdidd has quit [Remote host closed the connection]
cdidd has joined #ocaml
ontologiae has joined #ocaml
kaustuv has left #ocaml []
cdidd has quit [Remote host closed the connection]
cdidd has joined #ocaml
mikurubeam has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
cdidd has quit [Ping timeout: 248 seconds]
ollehar1 has quit [Ping timeout: 260 seconds]
cdidd has joined #ocaml
Snark has quit [Quit: Quitte]
cdidd has quit [Read error: Connection reset by peer]
mcsquiggedy has joined #ocaml
cdidd has joined #ocaml
mcsquiggedy has quit [Ping timeout: 256 seconds]
<adrien>
building ocaml trunk: 8 minutes, of which 6 minutes cpu time
<adrien>
without ocamlbuild, ocamldoc, camlp4, the debugger: 2 minutes 30 seconds, of which 2 minutes cpu time
<adrien>
(my timings including make install and compression of the resulting package)
<adrien>
(and configuration)
beginner42 has joined #ocaml
ollehar has quit [Ping timeout: 248 seconds]
<beginner42>
i am trying to modify some parts in the ocamlgraph, which i installed with opam. my problem is how to recompile the ml files that i can see my modifications?
<companion_cube>
beginner42: you should checkout the ocamlgraph repository somewhere, and modify/compile code in this directory
<beginner42>
companion_cube: i only wanted to add some print_endlines to find some bug in my code. Is it not possible to modify a ml file inside the ocamlgraph src folder and tell opam to recompile?
<companion_cube>
I don't think so...
<companion_cube>
but I'm really no expert
ulfdoz has quit [Quit: deprecated]
cdidd has quit [Ping timeout: 255 seconds]
cdidd has joined #ocaml
mattrepl has joined #ocaml
ulfdoz has joined #ocaml
ollehar has joined #ocaml
darkf has quit [Quit: Leaving]
wmeyer has quit [Remote host closed the connection]
travisbrady has joined #ocaml
chambart has joined #ocaml
chambart has quit [Ping timeout: 260 seconds]
ontologiae has quit [Ping timeout: 272 seconds]
tane has joined #ocaml
chambart has joined #ocaml
chambart has quit [Ping timeout: 256 seconds]
fraggle_ has quit [Remote host closed the connection]
<flux>
beginner42, I don't think you need opam at that stage..
<flux>
beginner42, you might just do make uninstall; make; make install after you are in the opam environment
Yoric has quit [Ping timeout: 256 seconds]
ollehar has quit [Ping timeout: 264 seconds]
chambart has joined #ocaml
<beginner42>
flux: i am in this folder .opam/4.00.0/build/ocamlgraph.1.8.2 and there is no uninstall option
SanderM has joined #ocaml
travisbrady has quit [Quit: travisbrady]
Kakadu has joined #ocaml
Yoric has joined #ocaml
ollehar has joined #ocaml
fraggle_ has joined #ocaml
osa1 has quit [Ping timeout: 246 seconds]
osa1_ has joined #ocaml
mikurubeam has joined #ocaml
chambart has quit [Ping timeout: 246 seconds]
osa1_ has quit [Ping timeout: 246 seconds]
osa1__ has joined #ocaml
osa1__ has quit [Quit: Konversation terminated!]
Kakadu has quit [Read error: No route to host]
Kakadu has joined #ocaml
iZsh has quit [Quit: Coyote finally caught me]
travisbrady has joined #ocaml
ontologiae has joined #ocaml
wmeyer has joined #ocaml
iZsh has joined #ocaml
travisbrady has quit [Quit: travisbrady]
ollehar has quit [Ping timeout: 272 seconds]
mikurubeam has quit [Ping timeout: 272 seconds]
ollehar has joined #ocaml
ttamttam has joined #ocaml
osa1 has joined #ocaml
mattrepl has quit [Quit: mattrepl]
mikurubeam has joined #ocaml
filiformatik has joined #ocaml
ottbot has joined #ocaml
filiformatik has quit []
yacks has quit [Read error: Connection reset by peer]
<Leonidas>
it seems oasis does not set the proper locations for C includes
<Leonidas>
I have a src/ folder with stubs.c and func.c as well as func.h and when I #include "func.h" gcc does not find the file
<Leonidas>
am I missing something? I'd expect that a .h file in the same folder as the .c file should be found without problems
<adrien>
#include "func.h" <- by definition the file has to be in the same directory iirc
<adrien>
hmm
<adrien>
which should be an issue since the .c file might be copied to _build/ but not the .h
<adrien>
in which case they're obviously not in the same directory
<Leonidas>
oh, that'd explain it
<Leonidas>
so maybe I should add the .h to my _oasis C files
<adrien>
I don't remember how I handle that and I don't have my sources handy
<adrien>
yeah, it seems I put the .h files in CSources
<adrien>
it's really something that I find too annoying with ocamlbuild (the cause of the issue)
<Leonidas>
hmm, I'd be good if oasis just copied the .h automatically if afailable
<adrien>
oasis makes it fairly easy
<Leonidas>
*available
<adrien>
but ocamlbuild really does a crap job at handling C stubs
<adrien>
ocamlbuild has a *HUGE* issue
<adrien>
design issue actually
<Leonidas>
yeah, I couldn't get it to use my custom include folder
<Leonidas>
-L works, -I does not
<adrien>
it doesn't see a difference between "foo.h", "foo.c", "foo.ml", "foo.mli"
<adrien>
so it can copy foo.c, but it will not copy foo.h since the file for "foo" has already been copied
<Leonidas>
meh :-/
<adrien>
yup, exactly
ttamttam has left #ocaml []
<Leonidas>
ok, adding it to CSouces helps somewhat, but doesn't completely work, but that might be my own fault
<adrien>
what's the error?
<Leonidas>
oh, I was putting the wrong prototype in the C file because I copypasted the wrong thing.
<adrien>
:-)
<Leonidas>
and that one was static at that, to which the compiler said that I'm full of shit, trying to use it in another file.
UncleVasya has quit [Quit: UncleVasya]
<Leonidas>
I wonder whether I want #pragma once instead of an include guard
Cyanure has joined #ocaml
<adrien>
0include guard!
<adrien>
s/0//
<orbitz>
#pragma once is not standard
<Leonidas>
yeah, it is not, but supported quite widely
mikurubeam has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
<Leonidas>
oh, well, I can just use a guard and stop bothering
mikurubeam has joined #ocaml
ttamttam has joined #ocaml
ttamttam has left #ocaml []
ontologiae has quit [Ping timeout: 272 seconds]
mikurubeam has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
ottbot has quit [Read error: Connection reset by peer]
ollehar1 has joined #ocaml
travisbrady has joined #ocaml
emmanuelux has joined #ocaml
Cyanure has quit [Ping timeout: 272 seconds]
chambart has joined #ocaml
travisbrady has quit [Quit: travisbrady]
emmanuelux has quit [Ping timeout: 248 seconds]
Cyanure has joined #ocaml
emmanuelux has joined #ocaml
ollehar has quit [Ping timeout: 248 seconds]
Cyanure has quit [Remote host closed the connection]
weie has quit [Quit: Leaving...]
Kakadu has quit []
marblen has joined #ocaml
<marblen>
How to partition a list into equivalence classes, that returns a list of lists using ocaml?
<companion_cube>
there is no such function in the standard library, but maybe in Batteries
<marblen>
I have to write my own function, but I do not know how to start
<companion_cube>
you could start by sorting the list
<companion_cube>
(well, how do you define the equivalence classes?)
<marblen>
So, in this case, each equivalence class is a list within the lists of lists.. and it represents the laments that satisfy a predicate?
<marblen>
val buckets : ('a -> 'a -> bool) -> 'a list -> 'a list list
<companion_cube>
oh
<companion_cube>
where the function is transitive and reflexive, I assume
<marblen>
yes
<companion_cube>
then you can keep a list of current buckets, with their representant as head
<companion_cube>
and you traverse the remainder of the list
<companion_cube>
and you put each element x in the bucket where it belongs (a new one if no representant x' verifies p x x')