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
hcarty has quit [Remote host closed the connection]
<thelema> I don't know any way to examine an out_channel's buffer.
arubin has joined #ocaml
<_habnabit> trying to reproduce it in a minimal example now.
Tianon has quit [Ping timeout: 240 seconds]
joewilliams is now known as joewilliams_away
ftrvxmtrx has quit [Ping timeout: 252 seconds]
<_habnabit> yep! reproducible!
<thelema> yay!
<_habnabit> running this will produce a 1.7G file that has no final }
abdallah has quit [Quit: Ex-Chat]
emmanuelux has quit [Ping timeout: 240 seconds]
<thelema> but no problem with smaller x?
<_habnabit> right
<_habnabit> changing 57621086 to just 576 will produce a tailing }
arubin has quit [Quit: arubin]
mjonsson has quit [Quit: Leaving]
Boscop has quit [Ping timeout: 260 seconds]
<thelema> _habnabit: This program takes a while to run
<_habnabit> yeah, sorry.
<_habnabit> I should try to figure out what the boundary is. we've generated such files up to ~1.2G and been fine. this one that the error was discovered with was 1.5G
<thelema> That's what I'm working on - trying to drop one digit at a time
<_habnabit> ah, thanks
<_habnabit> I'm writing a bug report for caml.inria.fr right now
<thelema> wow, format is really slow.
<_habnabit> is there a better thing?
<thelema> for doing this kind of indentation? not that I've used
<_habnabit> I think I saw some other library for it a while ago, but I couldn't get it to compile
<thelema> I think there's a hack in batteries' IO to indent future lines
<_habnabit> oh, let's see
wagle_ is now known as wagle
<_habnabit> hmm, I don't see anything
<_habnabit> not in BatIO, anyway
<thelema> BatIO.tab_out
<_habnabit> ah!
lamawithonel_ has joined #ocaml
lamawithonel has quit [Ping timeout: 258 seconds]
rwmjones has quit [Read error: Operation timed out]
rwmjones has joined #ocaml
joewilliams_away is now known as joewilliams
lopex has quit []
oriba has quit [Quit: oriba]
joewilliams is now known as joewilliams_away
ulfdoz has joined #ocaml
philtor has joined #ocaml
joewilliams_away is now known as joewilliams
joewilliams is now known as joewilliams_away
dnolen has quit [Quit: dnolen]
dnolen has joined #ocaml
ulfdoz has quit [Read error: Operation timed out]
dnolen has quit [Quit: dnolen]
hto has joined #ocaml
Tianon has joined #ocaml
Tianon has quit [Changing host]
Tianon has joined #ocaml
hto has quit [Quit: Lost terminal]
ygrek has joined #ocaml
philtor has quit [Ping timeout: 244 seconds]
philtor has joined #ocaml
ttamttam has joined #ocaml
philtor has quit [Ping timeout: 255 seconds]
ikaros_ has joined #ocaml
orbitz has quit [Ping timeout: 248 seconds]
joewilliams_away is now known as joewilliams
ikaros_ is now known as ikaros
zorun has quit [Ping timeout: 240 seconds]
ankit9 has quit [Remote host closed the connection]
joewilliams is now known as joewilliams_away
edwin has joined #ocaml
f[x] has joined #ocaml
Cyanure has quit [Ping timeout: 260 seconds]
joewilliams_away is now known as joewilliams
ikaros has quit [Quit: Ex-Chat]
ygrek has quit [Ping timeout: 248 seconds]
Julien_T has joined #ocaml
Cyanure has joined #ocaml
ankit9 has joined #ocaml
orbitz has joined #ocaml
Julien_T has quit [Read error: Operation timed out]
joewilliams is now known as joewilliams_away
larhat has joined #ocaml
edwin1 has joined #ocaml
edwin has quit [Disconnected by services]
ski has quit [Ping timeout: 255 seconds]
ski has joined #ocaml
<nimred> thelema: sure but it doesn't seem there is and since unison is written using ocaml i posted my question here...
ski has quit [Ping timeout: 255 seconds]
ski has joined #ocaml
<bnwr> nimred: you can use the -perms argument
<bnwr> I think -perms 0 should ignore all props differences
<nimred> bnwr: ok thanks
<bnwr> nimred: also, if you are syncing a fat device (which screws up the properties) there's a flag for that (prbly -fat)
Kakadu has joined #ocaml
<nimred> bnwr: yes it is -fat
<nimred> bnwr: thanks for your help :)
zorun has joined #ocaml
ski has quit [Ping timeout: 255 seconds]
ski has joined #ocaml
mnabil has joined #ocaml
ski has quit [Ping timeout: 255 seconds]
ski has joined #ocaml
ftrvxmtrx has joined #ocaml
Julien_T has joined #ocaml
lopex has joined #ocaml
thomasga has joined #ocaml
ftrvxmtrx has quit [Ping timeout: 244 seconds]
ftrvxmtrx has joined #ocaml
rks has quit [Ping timeout: 260 seconds]
rks has joined #ocaml
_andre has joined #ocaml
jimi_hendrix has quit [Ping timeout: 248 seconds]
f[x] has quit [Ping timeout: 260 seconds]
ygrek has joined #ocaml
sepp2k has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
ygrek has quit [Ping timeout: 248 seconds]
f[x] has joined #ocaml
ttamttam has quit [Ping timeout: 256 seconds]
kizzx2 has joined #ocaml
lamawithonel_ has quit [Ping timeout: 248 seconds]
ttamttam has joined #ocaml
ztfw has joined #ocaml
ikaros has joined #ocaml
oriba has joined #ocaml
rby has quit [Quit: leaving]
thomasga has quit [Quit: Leaving.]
dnolen has joined #ocaml
hcarty has joined #ocaml
everyonemines has left #ocaml []
thomasga has joined #ocaml
Kakadu has quit [Ping timeout: 252 seconds]
Kakadu has joined #ocaml
emmanuelux has joined #ocaml
ikaros has quit [Quit: Ex-Chat]
kizzx2 has quit [Read error: Connection reset by peer]
Boscop has joined #ocaml
ankit9 has quit [Quit: Leaving]
ikaros has joined #ocaml
dnolen has quit [Quit: dnolen]
fraggle_ has quit [Ping timeout: 260 seconds]
dnolen has joined #ocaml
dnolen has quit [Client Quit]
Cyanure has quit [Remote host closed the connection]
avsm has joined #ocaml
oriba has quit [Quit: oriba]
Cyanure has joined #ocaml
kb has joined #ocaml
Kakadu has quit [Quit: Page closed]
philtor has joined #ocaml
joewilliams_away is now known as joewilliams
ankit9 has joined #ocaml
lopex has quit []
avsm1 has joined #ocaml
avsm has quit [Read error: Connection reset by peer]
Boscop has quit [Ping timeout: 260 seconds]
larhat has quit [Quit: Leaving.]
avsm1 has quit [Read error: Connection reset by peer]
avsm has joined #ocaml
zerny has joined #ocaml
zerny has left #ocaml []
rby has joined #ocaml
larhat has joined #ocaml
avsm1 has joined #ocaml
avsm has quit [Write error: Connection reset by peer]
lopex has joined #ocaml
mnabil has quit [Ping timeout: 256 seconds]
avsm1 has quit [Quit: Leaving.]
rby has quit [Quit: Lost terminal]
lopexx has joined #ocaml
<_habnabit> thelema, ah, I got a reply from the bug tracker: apparently behavior is undefined when you output something that's not in a box
lopexx has quit [Client Quit]
<thelema> _habnabit: really? that's interesting. I wouldn't have expected that, but okay, I guess
<_habnabit> thelema, yeah, me neither, but it /is/ briefly mentioned on the Format documentation
<_habnabit> thelema, but, oh well. at least I know better now.
<thelema> I guess that's that, then.
lopex has quit [Ping timeout: 252 seconds]
lopex has joined #ocaml
lusory has quit [Ping timeout: 258 seconds]
larhat has quit [Quit: Leaving.]
kb has quit [Read error: Connection reset by peer]
ulfdoz has joined #ocaml
fraggle_ has joined #ocaml
lopex has quit [Ping timeout: 256 seconds]
lopex has joined #ocaml
travisbrady has joined #ocaml
lusory has joined #ocaml
travisbrady has quit [Quit: Page closed]
<_habnabit> hmm. you can't refer to a module from inside itself, right?
<_habnabit> like, module X = struct let f x = let module Y = Z(X) in Y.foo x end
<_habnabit> yeah, 'unbound module X'
<_habnabit> any way to approximate this? I suppose I could do `Z(struct ... end)` and refer to all of the previously-defined things
<bitbckt> module rec X struct end = X, maybe?
* bitbckt throws a wild pitch
<bitbckt> the = X would only work on 3.12, but maybe the recursive module def. would be enough...
<_habnabit> as written, that's a syntax error
<_habnabit> unless you meant for that to be added somewhere else?
<_habnabit> 'module rec X struct end = X;;' says 'syntax error' with struct underlined.
ttamttam has left #ocaml []
<bitbckt> module rec X = struct ... end;;
<_habnabit> ah
<bitbckt> that... should work?
<bitbckt> I think?
<bitbckt> I almost never use the rec.
<_habnabit> well, even just `module rec X = struct end;;` is a syntax error
<bitbckt> hmm.
<_habnabit> is there documentation on recursive modules?
<bitbckt> yes. it's in the language extensions portion of the manual.
<_habnabit> I'll check that
<bitbckt> that's my only guess at what you're trying to do. :-/
<_habnabit> oh, it needs the 'sig'
<bitbckt> ah.
<_habnabit> 'module rec A: sig end = struct end' is fine
<bitbckt> okay.
<bitbckt> good to know. :)
<bitbckt> does that give you A in the struct end portion, though?
<_habnabit> trying it now
<_habnabit> yeah, it did! great.
<bitbckt> cool.
<_habnabit> amended my original example to: module rec X: Xsig = struct let f x = Y.foo x end and Y: Ysig = Z(X)
<_habnabit> ... hmm, maybe not.
<_habnabit> ... or, it does, but not in my specific case. ugh.
<_habnabit> ha! that's wacky
<_habnabit> so, I was doing `and Y: Ysig = A.Z(X)`, and ocaml was complaining about an undefined module
<_habnabit> but if I do `module AZ = A.Z; ... and Y: Ysig = AZ(X)`, it doesn't.
thomasga has quit [Quit: Leaving.]
<_habnabit> I wonder if I should report this as a bug
hto has joined #ocaml
Anarchos has joined #ocaml
lpereira has joined #ocaml
<thelema> "Mutability is really just an inflexible form of garbage collection"
junsuijin has joined #ocaml
Cyanure has quit [Remote host closed the connection]
thomasga has joined #ocaml
thomasga has quit [Client Quit]
<ousado> thelema: who said that?
<ousado> wow, nice article
ikaros has quit [Quit: Ex-Chat]
ski has quit [Ping timeout: 255 seconds]
lpereira has quit [Quit: Leaving.]
ski has joined #ocaml
avsm has joined #ocaml
_andre has quit [Quit: leaving]
joewilliams is now known as joewilliams_away
avsm has quit [Ping timeout: 260 seconds]
joewilliams_away is now known as joewilliams
abdallah has joined #ocaml
ulfdoz has quit [Read error: Operation timed out]
Boscop has joined #ocaml
hto has quit [Quit: Lost terminal]
Boscop has quit [Ping timeout: 244 seconds]
oriba has joined #ocaml
edwin1 has quit [Remote host closed the connection]
joewilliams is now known as joewilliams_away
joewilliams_away is now known as joewilliams
bitbckt has quit [Quit: out]
ztfw has quit [Remote host closed the connection]
<Anarchos> test
Anarchos has quit [Quit: Vision[0.9.7-H-090423]: i've been blurred!]
bitbckt has joined #ocaml
dnolen has joined #ocaml
mjonsson has joined #ocaml
Amorphous has quit [Ping timeout: 260 seconds]
emmanuel has joined #ocaml
lamawithonel has joined #ocaml
bobry has quit [Ping timeout: 255 seconds]
Amorphous has joined #ocaml
bobry has joined #ocaml
Associat0r has joined #ocaml
Associat0r has quit [Changing host]
Associat0r has joined #ocaml
lopex has quit []
lopex has joined #ocaml
desaiu has joined #ocaml
<desaiu> Will someone, please, explain to me the differences between ocaml and haskell?
<desaiu> Even just a link to a blog or a wiki or some faq site would be appreciated
<desaiu> s/faq/qa
lopexx has joined #ocaml
<_habnabit> if you're stuck on your homework, ask your TA
lopex has quit [Ping timeout: 255 seconds]
lopexx is now known as lopex
<desaiu> _habnabit: I am not stuck on homework, I wish I had CS classes
<desaiu> Thanks emmanuel!
<emmanuel> np. To be fair google was not that helpful this time. I found a bunch of good links here:
<desaiu> Does the objective in objective caml imply OO?
<_habnabit> ocaml has some OO things, like interface-based polymorphism
<_habnabit> and easy composition
sepp2k has quit [Remote host closed the connection]
Julien_T has quit [Ping timeout: 244 seconds]