<abdallah>
What is the syntax to update two fields of a record?
<abdallah>
one is `let b = { a with f1 = foo }`
<_habnabit>
let b = {f1 = foo; f2 = bar}
<abdallah>
I mean if the record has several fields and most fields in `a` and `b` are the same but `f1` and `f2`
<_habnabit>
let b = {a with f1 = foo; f2 = bar}
<abdallah>
Ah, ok, thanks
everyonemines has quit [Quit: Leaving.]
<abdallah>
_habnabit: Do you know an answer to this question "How am I suppose to profile my code if I make intensive use of higher order functions?" ?
<_habnabit>
same as always ???
arubin has joined #ocaml
<abdallah>
For instance, when I use "let f l = List.map f' l" and "let g l = List.map g' l", and then "f small_list" and "g big_list". I get not so interesting results.
dgbaley27 has left #ocaml []
<abdallah>
So I end up redefining List.map as my_map1 and my_map2 so that the performance are not mixed.
<abdallah>
It's a bit awkward!
<_habnabit>
ah, like that
<_habnabit>
no idea; hasn't been an issue for my profiling in practice
<abdallah>
You lucky...
<abdallah>
Do you use gprof?
<_habnabit>
no, callgrind+kcachegrind
<abdallah>
It's better?
<_habnabit>
well, look at the kcachegrind screenshots
<abdallah>
Thanks for the tip, I'll have to learn it now.
<_habnabit>
it's a lot easier to set up, too
<_habnabit>
no crazy linking magic like gprof
* _habnabit
<3 valgrind
<abdallah>
:)
abdallah has quit [Quit: Ex-Chat]
junsuijin has quit [Remote host closed the connection]
junsuijin has joined #ocaml
emmanuelux has quit [Read error: Connection reset by peer]
oriba has quit [Remote host closed the connection]
The_third_bug has quit [Ping timeout: 258 seconds]
The_third_man has joined #ocaml
mjonsson has joined #ocaml
joewilliams is now known as joewilliams_away
philtor has joined #ocaml
arubin has quit [Quit: arubin]
philtor has quit [Ping timeout: 252 seconds]
Boscop_ has joined #ocaml
mjonsson has quit [Remote host closed the connection]
Boscop has quit [Ping timeout: 260 seconds]
Boscop_ has quit [Ping timeout: 258 seconds]
dnolen has joined #ocaml
joewilliams_away is now known as joewilliams
dnolen has quit [Quit: dnolen]
philtor has joined #ocaml
bobry has quit [Ping timeout: 276 seconds]
ulfdoz has joined #ocaml
bobry has joined #ocaml
joewilliams is now known as joewilliams_away
ulfdoz has quit [Ping timeout: 258 seconds]
sebz has joined #ocaml
philtor has quit [Ping timeout: 252 seconds]
everyonemines has joined #ocaml
larhat has joined #ocaml
wtetzner has quit [Ping timeout: 248 seconds]
wtetzner has joined #ocaml
lopex has joined #ocaml
edwin has joined #ocaml
ikaros has joined #ocaml
everyonemines has quit [Quit: Leaving.]
sebz has quit [Quit: Computer has gone to sleep.]
sebz has joined #ocaml
Cyanure has joined #ocaml
sebz has quit [Quit: Computer has gone to sleep.]
sebz has joined #ocaml
sebz has quit [Client Quit]
sebz has joined #ocaml
lopex has quit [Ping timeout: 252 seconds]
Cyanure has quit [Remote host closed the connection]
ttamttam has joined #ocaml
lopex has joined #ocaml
Cyanure has joined #ocaml
ttamttam has quit [Remote host closed the connection]
edwin has quit [Quit: Leaving.]
edwin has joined #ocaml
edwin has quit [Client Quit]
edwin has joined #ocaml
edwin has quit [Remote host closed the connection]
edwin has joined #ocaml
edwin has quit [Remote host closed the connection]
edwin has joined #ocaml
edwin has quit [Client Quit]
edwin has joined #ocaml
edwin has quit [Remote host closed the connection]
edwin has joined #ocaml
ttamttam has joined #ocaml
edwin has quit [Client Quit]
edwin has joined #ocaml
edwin has quit [Client Quit]
edwin has joined #ocaml
edwin has left #ocaml []
ikaros has quit [Remote host closed the connection]
Julien_T has joined #ocaml
sebz has quit [Quit: Computer has gone to sleep.]
edwin has joined #ocaml
Julien_T has quit [Read error: Operation timed out]
thomasga has joined #ocaml
<adrien>
is there a tool that can take ocaml types and produce DTDs for XML?
<adrien>
(or schemas)
Boscop has joined #ocaml
sebz has joined #ocaml
Julien_T has joined #ocaml
edwin has quit [Quit: Leaving.]
edwin has joined #ocaml
edwin has quit [Remote host closed the connection]
edwin has joined #ocaml
edwin has quit [Client Quit]
sebz has quit [Quit: Computer has gone to sleep.]
Julien_T has quit [Ping timeout: 252 seconds]
edwin has joined #ocaml
edwin has quit [Remote host closed the connection]
edwin has joined #ocaml
ankit9 has quit [Quit: Leaving]
edwin has quit [Client Quit]
edwin has joined #ocaml
edwin has quit [Client Quit]
edwin has joined #ocaml
edwin has quit [Remote host closed the connection]
edwin has joined #ocaml
ankit9 has joined #ocaml
sebz has joined #ocaml
<mfp>
ugh camlp4 parses {< a = x; b = y >} as {< a = (x; b = y) >} :-(
<adrien>
I think I had the same issue not very long ago
sebz has quit [Client Quit]
<adrien>
might be a new bug
sebz has joined #ocaml
dnolen has joined #ocaml
sebz has quit []
<sgnb>
cute
Julien_T has joined #ocaml
benus has joined #ocaml
emmanuelux has joined #ocaml
f[x] has quit [Ping timeout: 240 seconds]
ikaros has joined #ocaml
edwin has quit [Ping timeout: 252 seconds]
edwin has joined #ocaml
edwin has quit [Client Quit]
edwin has joined #ocaml
oriba has joined #ocaml
dnolen has quit [Quit: dnolen]
Kakadu has joined #ocaml
lopex_ has joined #ocaml
lopex has quit [Ping timeout: 252 seconds]
lopex_ is now known as lopex
philtor has joined #ocaml
lopex has quit []
philtor has quit [Ping timeout: 256 seconds]
kizzx2 has joined #ocaml
benus has quit [Remote host closed the connection]
ttamttam has quit [Remote host closed the connection]
lopex has joined #ocaml
joewilliams_away is now known as joewilliams
<Kakadu>
can anybody give a tip how to use ocamlopt with -cc ?
<Kakadu>
something like `ocamlopt -c -g -cc g++ AA.o` ?
<Kakadu>
The aim is to compile c++ source using ocaml compiler
ulfdoz has joined #ocaml
* thelema
looks up how he did this in the past
<Kakadu>
`ocamlopt -c -g -cc g++ AA.с` works but `ocamlopt -c -g -cc g++ AA.cpp` don't
<thelema>
I'm guessing that ocamlopt knows that .c files need to be compiled with a c compiler, but doesn't know the same for .cpp
<thelema>
I doubt this is fixable except by patching ocamlopt
Cyanure has quit [Remote host closed the connection]
jonafan has quit [Quit: leaving]
<Kakadu>
OK....
emmanuelux has quit [Ping timeout: 240 seconds]
jonafan has joined #ocaml
Cyanure has joined #ocaml
<_habnabit>
Kakadu, what do you need a C++ compiler for?
<thelema>
_habnabit: something involving QT, I'll bet
<Kakadu>
thelema: you are right
oriba has quit [Quit: oriba]
abdallah has joined #ocaml
raphael-p is now known as bnwr
larhat has quit [Quit: Leaving.]
kizzx2 has quit [Quit: Leaving.]
ttamttam has joined #ocaml
junsuijin has quit [Ping timeout: 252 seconds]
yezariaely has joined #ocaml
yezariaely has left #ocaml []
junsuijin has joined #ocaml
ygrek has joined #ocaml
ftrvxmtrx has joined #ocaml
testcocoon has quit [Ping timeout: 258 seconds]
junsuijin has quit [Remote host closed the connection]
ygrek has quit [Remote host closed the connection]
ygrek has joined #ocaml
ttamttam has quit [Remote host closed the connection]
Cyanure has quit [Ping timeout: 255 seconds]
edwin1 has joined #ocaml
edwin has quit [Disconnected by services]
edwin1 is now known as edwin
<rgrinberg>
is there an ocaml paste bin for this channel?
<_habnabit>
paste.pocoo.org has an ocaml option
<rgrinberg>
ty
emmanuelux has joined #ocaml
edwin1 has joined #ocaml
edwin has quit [Disconnected by services]
jamii has joined #ocaml
<nimred>
hello all
<nimred>
i am using unison and when syncing i get a lot of :
<nimred>
props <-?-> props
<nimred>
and files can't get sync
<nimred>
what to do ?
testcocoon has joined #ocaml
emmanuelux has quit [Remote host closed the connection]
Kakadu has quit [Quit: Konversation terminated!]
hcarty has quit [Ping timeout: 252 seconds]
Cyanure has joined #ocaml
Reaganomicon has quit [Read error: Connection reset by peer]
hcarty has joined #ocaml
oriba has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
ulfdoz has quit [Ping timeout: 276 seconds]
ftrvxmtrx has joined #ocaml
Anarchos has joined #ocaml
<thelema>
nimred: this isn't the unison help channel.
devinus_ has joined #ocaml
<devinus_>
is there anything like the Haskell Platform for ocaml?
<thelema>
devinus_: godi?
<devinus_>
thelema: i'll check it out, though it does seem a little more rough around the edges
<thelema>
probably. Oasis is being built now, but it's more like cabal than the platform
ygrek has quit [Ping timeout: 248 seconds]
<devinus_>
thelema: there's nothing currently like cabal now?
<thelema>
oasis is usable but incomplete
<devinus_>
ah
emmanuelux has joined #ocaml
hto has quit [Quit: Lost terminal]
hcarty has quit [Ping timeout: 276 seconds]
oriba_ has joined #ocaml
hcarty has joined #ocaml
devinus_ is now known as devinus
oriba has quit [Ping timeout: 260 seconds]
everyonemines has joined #ocaml
hcarty has quit [Ping timeout: 276 seconds]
hcarty has joined #ocaml
ikaros has quit [Quit: Ex-Chat]
wagle_ has joined #ocaml
wagle has quit [Read error: Connection reset by peer]
oriba_ is now known as oriba
<_habnabit>
gah, it seems like my formatter isn't being flushed.
<_habnabit>
I was calling a bunch of stuff on something from Format.formatter.of_out_channel
<_habnabit>
and /most/ of the time, everything gets written out.
<_habnabit>
I guess I should double-check that it's getting to the line where it should be writing this bit.
ygrek has joined #ocaml
Anarchos has quit [Quit: Vision[0.9.7-H-090423]: i've been blurred!]
ygrek has quit [Ping timeout: 248 seconds]
edwin1 has quit [Remote host closed the connection]
jamii has quit [Remote host closed the connection]
devinus has quit [Quit: devinus]
Amorphous has quit [Ping timeout: 248 seconds]
Julien_T has quit [Ping timeout: 252 seconds]
<_habnabit>
is there any way to peek at the buffer of an out_channel?
Amorphous has joined #ocaml
dnolen has joined #ocaml
thomasga has quit [Quit: Leaving.]
<_habnabit>
gfffffff. when I change all of my Format.fprintf calls to Printf.fprintf calls, everything is written.
<_habnabit>
(albeit with the excess @x cruft, but..)
<_habnabit>
so, /some/ buffer isn't getting flushed. I've tried both Format.pp_print_newline and fprintf-ing "@."
<_habnabit>
and even more confusingly, this only happens in very large files.