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
<_habnabit> wieczyk, no point in doing it by hand when ocamlbuild can do it for you
<ousado> wieczyk: shouldn't that be ocamlopt?
<wmeyer> _habnabit: you would be so surprised!
<wmeyer> ;)
lggr has quit [Ping timeout: 256 seconds]
<_habnabit> haha really
<wmeyer> ousado: I concur what ousado is saying
OCamlGuy has joined #ocaml
<ousado> wmeyer: you meant wieczyk I assume?
lggr has joined #ocaml
<wieczyk> ousado: yes, ocamlopt instea of ocamlc
<wieczyk> _habnabit is ocamlbuild evangelizer?
<wieczyk> _habnabit: how could you produce .cmxs by ocamlbuild?
<_habnabit> i like doing less work instead of more work
<_habnabit> wieczyk, ocamlbuild whatever.cmxs
haelix has quit [Ping timeout: 276 seconds]
<wieczyk> Ah works, lol.
OCamlGuy has quit [Quit: OCamlGuy]
<wieczyk> What informations are storred in .cmx ?
<wieczyk> Does ocaml do any optimalizations between modules when compiling to native code, I can see that for each module
<wieczyk> the file.o and the file.cmx are produced
<wieczyk> with file.o we probably cannot do any optimalizations, it is ready elf for linkage
<wieczyk> what about file.cmx, what is it?
<ousado> "Arguments ending in .cmx are taken to be compiled object code. ... "
lggr has quit [Ping timeout: 256 seconds]
<wieczyk> It does not tell me nothing.
<wieczyk> It tells me nothing.
<wieczyk> eh my english lol
lggr has joined #ocaml
<ousado> wieczyk: also "From the file x.ml, the ocamlopt compiler produces two files: x.o, containing native object code, and x.cmx, containing extra information for linking and optimization of the clients of the unit."
<wieczyk> I have seen documentation but this does not tell me anything. How .o can be optimalized? I would like to know what exactly is in .cmx
<wieczyk> I need to check in compiler i think.
<ousado> yes, I think so, too :)
lggr has quit [Ping timeout: 260 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 246 seconds]
lggr has joined #ocaml
ankit9 has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 240 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 246 seconds]
ankit9 has joined #ocaml
lggr has joined #ocaml
err404 has quit [Remote host closed the connection]
Yoric has joined #ocaml
lggr has quit [Ping timeout: 260 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 255 seconds]
lggr has joined #ocaml
madroach_ has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 248 seconds]
madroach has joined #ocaml
avsm1 has joined #ocaml
lggr has joined #ocaml
Yoric has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 246 seconds]
lggr has joined #ocaml
gnuvince_ has joined #ocaml
ankit9 has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 256 seconds]
lggr has joined #ocaml
BiDOrD has joined #ocaml
<kdridi> hi
<kdridi> i'm a beginner in ocaml and i don't understand what the hell is a "string option" type … :x
<kdridi> can't find in the docs :~
BiDOrD_ has quit [Ping timeout: 252 seconds]
<_habnabit> kdridi, it's the composition of 'a option and string
<_habnabit> kdridi, so it's either Some string or None
<kdridi> and how do i represent it
<_habnabit> 'represent it' how?
<kdridi> i mean the interpreter tells This expression has type string but an expression was expected of type string option
<_habnabit> what code gave you that error?
<kdridi> i use the Mysql package
<kdridi> i type : { Mysql.dbhost = ""; Mysql.dbname = ""; Mysql.dbport = 13306; Mysql.dbpwd = ""; Mysql.dbuser = "" }
lggr has quit [Ping timeout: 248 seconds]
<kdridi> i try to use this type: https://gist.github.com/3856107
ankit9 has joined #ocaml
<_habnabit> {Mysql.dbhost = None; Mysql.dbname = None; Mysql.dbport = Some 13306; Mysql.dbpwd = None; Mysql.dbuser = None}
<_habnabit> an 'a option is represented either as Some 'a or as None
<_habnabit> so either Some "foo" or None
<kdridi> hum… ok
<_habnabit> in this case None is probably what you want, but if you had a dbhost for example, you'd do Some "your-host"
lggr has joined #ocaml
<kdridi> Mysql.defaults gives me {Mysql.dbhost = None; Mysql.dbname = None; Mysql.dbport = None; Mysql.dbpwd = None; Mysql.dbuser = None}
<_habnabit> oh, perfect
<_habnabit> so {Mysql.defaults with Mysql.dbport = Some 13306}
<kdridi> ah great
<kdridi> i used to program in caml 10years ago but i've forgotten that syntax :)
<kdridi> that what i searched :)
<kdridi> thanks a lot !! :)
lggr has quit [Ping timeout: 245 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 246 seconds]
avsm has joined #ocaml
<wtetzner> can you pattern match on objects in ocaml?
avsm1 has quit [Read error: No route to host]
lggr has joined #ocaml
lggr has quit [Ping timeout: 255 seconds]
<thelema> wtetzner: you mean on the member variables of objects? no.
lggr has joined #ocaml
<wtetzner> hmm
<wtetzner> that's too bad
jamii has joined #ocaml
lggr has quit [Ping timeout: 245 seconds]
<thelema> wtetzner: the problem is that objects are structurally typed, but without a guaranteed layout.
<thelema> records have a guaranteed layout because of the nominal typing
<thelema> but objects' fields are not guaranteed to be in a fixed position, as they're typed by interface
lggr has joined #ocaml
<wtetzner> ah
<wtetzner> yeah, i really just wanted them as records where i could take advantage of row types
lggr has quit [Ping timeout: 264 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 246 seconds]
lggr has joined #ocaml
<wmeyer> pippijn: ping.
<pippijn> wmeyer: pong
avsm has quit [Read error: No route to host]
avsm has joined #ocaml
lggr has quit [Ping timeout: 240 seconds]
lggr has joined #ocaml
kdridi has left #ocaml []
lggr has quit [Ping timeout: 244 seconds]
lggr has joined #ocaml
ttm has quit [Read error: Operation timed out]
The_third_man has joined #ocaml
lggr has quit [Ping timeout: 245 seconds]
jamii has quit [Ping timeout: 245 seconds]
lggr has joined #ocaml
lusory has quit [Ping timeout: 256 seconds]
lusory has joined #ocaml
avsm1 has joined #ocaml
avsm has quit [Read error: Connection reset by peer]
astertronistic has joined #ocaml
lggr has quit [Ping timeout: 246 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 245 seconds]
lggr has joined #ocaml
avsm1 has quit [Ping timeout: 245 seconds]
lggr has quit [Ping timeout: 246 seconds]
tac_ has quit [Ping timeout: 240 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 260 seconds]
lggr has joined #ocaml
rudi has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 264 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 252 seconds]
avsm has joined #ocaml
lggr has joined #ocaml
<wmeyer> pippijn: ping.
<pippijn> wmeyer: pong
cdidd has joined #ocaml
lggr has quit [Ping timeout: 240 seconds]
Yoric has joined #ocaml
lggr has joined #ocaml
lggr has quit [Ping timeout: 246 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 260 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 245 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 256 seconds]
avsm has quit [Read error: Connection reset by peer]
avsm has joined #ocaml
lggr has joined #ocaml
lggr has quit [Ping timeout: 244 seconds]
lggr has joined #ocaml
avsm has quit [Quit: Leaving.]
lggr has quit [Ping timeout: 256 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 264 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 276 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 248 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 240 seconds]
ulfdoz has joined #ocaml
lggr has joined #ocaml
lggr has quit [Ping timeout: 248 seconds]
lggr has joined #ocaml
Snark has joined #ocaml
Yoric has quit [Ping timeout: 248 seconds]
lggr has quit [Ping timeout: 256 seconds]
pango is now known as pangoafk
Jeaye has quit [Quit: zzzZZZzzz]
lggr has joined #ocaml
hkBst has joined #ocaml
lggr has quit [Ping timeout: 244 seconds]
lggr has joined #ocaml
hto has joined #ocaml
ulfdoz has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 246 seconds]
lggr has joined #ocaml
djcoin has joined #ocaml
lggr has quit [Ping timeout: 246 seconds]
lggr has joined #ocaml
Cyanure has joined #ocaml
lggr has quit [Ping timeout: 240 seconds]
ontologiae has joined #ocaml
lggr has joined #ocaml
ankit9 has quit [Read error: Connection reset by peer]
jave has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 264 seconds]
hyperboreean has quit [Ping timeout: 244 seconds]
ftrvxmtrx has quit [Quit: Leaving]
lggr has joined #ocaml
jave has joined #ocaml
lggr has quit [Ping timeout: 246 seconds]
chambart has joined #ocaml
emias_ has quit [Quit: Changing server]
ankit9 has joined #ocaml
emias has joined #ocaml
thomasga has joined #ocaml
lggr has joined #ocaml
ontologiae has quit [Ping timeout: 252 seconds]
lggr has quit [Ping timeout: 276 seconds]
astertronistic has quit [Ping timeout: 276 seconds]
lggr has joined #ocaml
ankit9 has quit [Remote host closed the connection]
Yoric has joined #ocaml
lggr has quit [Ping timeout: 244 seconds]
lggr has joined #ocaml
astertronistic has joined #ocaml
Cyanure has quit [Remote host closed the connection]
ftrvxmtrx has joined #ocaml
eni has joined #ocaml
lggr has quit [Ping timeout: 240 seconds]
hyperboreean has joined #ocaml
lggr has joined #ocaml
pngl has joined #ocaml
lggr has quit [Ping timeout: 248 seconds]
lggr has joined #ocaml
avsm has joined #ocaml
avsm has quit [Client Quit]
lggr has quit [Ping timeout: 245 seconds]
ontologiae has joined #ocaml
lggr has joined #ocaml
hyperboreean has quit [Ping timeout: 240 seconds]
mcclurmc_away is now known as mcclurmc
hyperboreean has joined #ocaml
pngl has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 260 seconds]
mnabil has joined #ocaml
GnomeStoleMyBike has joined #ocaml
lggr has joined #ocaml
Marqin has quit [Read error: Operation timed out]
Neros has quit [Ping timeout: 245 seconds]
Marqin has joined #ocaml
eilyx has quit [Remote host closed the connection]
eilyx has joined #ocaml
lggr has quit [Ping timeout: 260 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 260 seconds]
lggr has joined #ocaml
Kakadu has joined #ocaml
err404 has joined #ocaml
lggr has quit [Ping timeout: 246 seconds]
lggr has joined #ocaml
sepp2k has joined #ocaml
lggr has quit [Ping timeout: 240 seconds]
beckerb has joined #ocaml
lggr has joined #ocaml
chambart has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 245 seconds]
ansx_ has joined #ocaml
lggr has joined #ocaml
ansx has quit [Ping timeout: 252 seconds]
cago has joined #ocaml
lggr has quit [Ping timeout: 255 seconds]
Kakadu has quit [Ping timeout: 240 seconds]
lggr has joined #ocaml
kakadu has joined #ocaml
eni has quit [Quit: .]
lggr has quit [Ping timeout: 256 seconds]
sgnb` is now known as sgnb
lggr has joined #ocaml
Neros has joined #ocaml
lggr has quit [Ping timeout: 248 seconds]
lggr has joined #ocaml
ankit9 has joined #ocaml
Neros has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 240 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 248 seconds]
tufisi has joined #ocaml
lggr has joined #ocaml
lggr has quit [Ping timeout: 245 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 260 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 240 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 246 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 245 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 240 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 260 seconds]
lggr has joined #ocaml
_andre has joined #ocaml
lggr has quit [Ping timeout: 260 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 240 seconds]
lggr has joined #ocaml
Yoric has quit [Ping timeout: 248 seconds]
lggr has quit [Ping timeout: 260 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 245 seconds]
Neros has joined #ocaml
lggr has joined #ocaml
lggr has quit [Ping timeout: 246 seconds]
lggr has joined #ocaml
Neros has quit [Ping timeout: 245 seconds]
chambart has joined #ocaml
lggr has quit [Ping timeout: 255 seconds]
lggr has joined #ocaml
hkBst has quit [Ping timeout: 240 seconds]
hkBst has joined #ocaml
gnuvince_ has quit [Ping timeout: 245 seconds]
lggr has quit [Ping timeout: 246 seconds]
lggr has joined #ocaml
hkBst has quit [Ping timeout: 260 seconds]
tufisi has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 245 seconds]
tufisi has joined #ocaml
lggr has joined #ocaml
hkBst has joined #ocaml
hkBst has quit [Changing host]
hkBst has joined #ocaml
lggr has quit [Ping timeout: 260 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 246 seconds]
fraggle_laptop has joined #ocaml
lggr has joined #ocaml
gnuvince_ has joined #ocaml
lggr has quit [Ping timeout: 244 seconds]
lggr has joined #ocaml
gnuvince_ has quit [Ping timeout: 252 seconds]
Yoric has joined #ocaml
lggr has quit [Ping timeout: 240 seconds]
Znudzon has joined #ocaml
lggr has joined #ocaml
lggr has quit [Ping timeout: 245 seconds]
lggr has joined #ocaml
cago has quit [Ping timeout: 245 seconds]
lggr has quit [Ping timeout: 260 seconds]
ankit9 has quit [Remote host closed the connection]
lggr has joined #ocaml
larhat has quit [Quit: Leaving.]
lggr has quit [Ping timeout: 246 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 248 seconds]
ankit9 has joined #ocaml
ankit9 has quit [Client Quit]
lggr has joined #ocaml
kakadu has quit [Quit: Page closed]
gnuvince_ has joined #ocaml
lggr has quit [Ping timeout: 260 seconds]
lggr has joined #ocaml
UncleVasya has joined #ocaml
gnuvince_ has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 246 seconds]
hkBst has quit [Read error: Connection reset by peer]
lggr has joined #ocaml
lggr has quit [Ping timeout: 248 seconds]
hkBst_ has joined #ocaml
lggr has joined #ocaml
hkBst_ has quit [Read error: Connection reset by peer]
hkBst_ has joined #ocaml
mjonsson has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 255 seconds]
lggr has joined #ocaml
hkBst_ has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 246 seconds]
Neros has joined #ocaml
hkBst_ has joined #ocaml
lggr has joined #ocaml
hkBst_ has quit [Read error: Connection reset by peer]
hkBst_ has joined #ocaml
lggr has quit [Ping timeout: 246 seconds]
braibant has joined #ocaml
<braibant> hi, does anyone know of a stand alone web-socket implementation in ocaml ?
<adrien> are you aware of a non-stand-alone one?
trotro has joined #ocaml
hkBst_ has quit [Remote host closed the connection]
<braibant> there was some talk about one that ought to come in ocsigen
lggr has joined #ocaml
<hcarty> braibant: A search turned up https://github.com/mzp/websocket-ocaml
<hcarty> braibant: It may or may not work... but it has the right words :-)
hkBst__ has joined #ocaml
lggr has quit [Ping timeout: 256 seconds]
hkBst__ has quit [Read error: Connection reset by peer]
lggr has joined #ocaml
hkBst__ has joined #ocaml
chturne has joined #ocaml
Znudzon has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 245 seconds]
hkBst__ is now known as hkBst
lggr has joined #ocaml
lggr has quit [Ping timeout: 255 seconds]
hkBst has quit [Read error: Connection reset by peer]
hkBst has joined #ocaml
lggr has joined #ocaml
<braibant> it has the right keywords, but it does not seem to work
<thelema> braibant: fails to compile? fails to run? doesn't seem to do the right thing when run?
<braibant> does not seem to do the right thing when run
<braibant> raise some fatal errors when run on the example that ships with the library
lggr has quit [Ping timeout: 255 seconds]
hkBst has quit [Ping timeout: 246 seconds]
ftrvxmtrx has quit [Quit: Leaving]
lggr has joined #ocaml
mfp has quit [Ping timeout: 246 seconds]
lusory has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 260 seconds]
<mehdid_> out of curiosity, what will you use that for?
hkBst has joined #ocaml
lggr has joined #ocaml
larhat has joined #ocaml
<braibant> it seems that it is a possible way forward to embed coq in a browser
<thomasga> can't you just compile it with js_of_ocaml ?
<braibant> there are two reasons not to do that: efficiency, and the fact that coq has some part written in C
larhat has quit [Read error: Connection reset by peer]
<sgnb> braibant: the C parts can be disabled
jamii has joined #ocaml
<thelema> braibant: javascript can be surprisingly performant.
<braibant> but you do not have the vm anymore, right ?
larhat has joined #ocaml
<sgnb> actually, I experimented on porting coq to JS with Yann RG, but it somehow got lost
<braibant> yep, he told me about that
<sgnb> our conclusion was that some filesystem abstraction was needed in upstream Coq before going further
mfp has joined #ocaml
gnuvince_ has joined #ocaml
lggr has quit [Ping timeout: 246 seconds]
larhat has quit [Read error: Connection reset by peer]
larhat has joined #ocaml
<mehdid_> to be able to (among other things) load external .vo files?
lggr has joined #ocaml
Cyanure has joined #ocaml
mehdid_ is now known as mehdid
lggr has quit [Ping timeout: 260 seconds]
lggr has joined #ocaml
avsm has joined #ocaml
<fasta> sgnb: why not a database abstraction?
lggr has quit [Read error: Connection reset by peer]
lggr has joined #ocaml
hkBst has quit [Quit: Konversation terminated!]
trotro has quit [Quit: Leaving]
Yoric has quit [Quit: Instantbird 1.3a1pre -- http://www.instantbird.com]
lggr has quit [Ping timeout: 255 seconds]
larhat has quit [Read error: Connection reset by peer]
larhat has joined #ocaml
lggr has joined #ocaml
jpdeplaix has quit [Ping timeout: 260 seconds]
avsm has quit [Quit: Leaving.]
avsm has joined #ocaml
lggr has quit [Ping timeout: 276 seconds]
larhat has quit [Read error: Connection reset by peer]
<sgnb> fasta: yes, that
larhat has joined #ocaml
<sgnb> library abstraction
lusory has joined #ocaml
lggr has joined #ocaml
tac has joined #ocaml
Jeaye has joined #ocaml
lggr has quit [Ping timeout: 245 seconds]
larhat has quit [Read error: Connection reset by peer]
jpdeplaix has joined #ocaml
lggr has joined #ocaml
pngl has joined #ocaml
avsm has quit [Quit: Leaving.]
avsm has joined #ocaml
larhat has joined #ocaml
contempt has quit [Quit: leaving]
lggr has quit [Ping timeout: 255 seconds]
contempt has joined #ocaml
ftrvxmtrx has joined #ocaml
larhat has quit [Ping timeout: 240 seconds]
larhat has joined #ocaml
larhat2 has joined #ocaml
lggr has joined #ocaml
larhat has quit [Ping timeout: 260 seconds]
foo303 has joined #ocaml
lggr has quit [Ping timeout: 245 seconds]
djcoin has quit [Quit: WeeChat 0.3.7]
lggr has joined #ocaml
avsm has quit [Quit: Leaving.]
lggr has quit [Ping timeout: 276 seconds]
thomasga has quit [Ping timeout: 245 seconds]
<hcarty> thelema: BatBounded is getting close(r?) to a generally useful state. modulo_of_ord (maybe with a better name?) should be added and the Numeric pieces should be expanded.
lggr has joined #ocaml
lggr has quit [Ping timeout: 256 seconds]
thomasga has joined #ocaml
Submarine has joined #ocaml
Submarine has quit [Changing host]
Submarine has joined #ocaml
lggr has joined #ocaml
sepp2k has quit [Ping timeout: 246 seconds]
avsm has joined #ocaml
avsm1 has joined #ocaml
gnuvince_ has quit [Ping timeout: 245 seconds]
chambart has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 264 seconds]
avsm has quit [Ping timeout: 240 seconds]
lggr has joined #ocaml
larhat2 has quit [Ping timeout: 246 seconds]
mnabil has quit [Ping timeout: 248 seconds]
lggr has quit [Ping timeout: 256 seconds]
sepp2k has joined #ocaml
gnuvince_ has joined #ocaml
GnomeStoleMyBike has quit [Ping timeout: 246 seconds]
lggr has joined #ocaml
gnuvince_ has quit [Ping timeout: 245 seconds]
lggr has quit [Ping timeout: 256 seconds]
lggr has joined #ocaml
Xizor has joined #ocaml
lggr has quit [Ping timeout: 276 seconds]
lggr has joined #ocaml
err404 has quit [Remote host closed the connection]
X1z0r has joined #ocaml
lggr has quit [Ping timeout: 246 seconds]
err404 has joined #ocaml
Xizor has quit [Ping timeout: 260 seconds]
pangoafk is now known as pango
lggr has joined #ocaml
mcclurmc is now known as mcclurmc_away
lggr has quit [Ping timeout: 255 seconds]
sepp2k1 has joined #ocaml
sepp2k has quit [Ping timeout: 246 seconds]
lggr has joined #ocaml
<thelema> hcarty: yes, thank you for your contributions along this line. I don't plan on pulling bounded out of the incubator for at least a full release, so that it can encounter the community and still be reasonable to change the interface
<wmeyer> hi
<thelema> wmeyer: hi
Kakadu has joined #ocaml
lggr has quit [Ping timeout: 260 seconds]
err404 has quit [Remote host closed the connection]
lggr has joined #ocaml
ontologiae has quit [Ping timeout: 256 seconds]
lggr has quit [Ping timeout: 245 seconds]
larhat has joined #ocaml
lggr has joined #ocaml
GnomeStoleMyBike has joined #ocaml
lggr has quit [Ping timeout: 256 seconds]
lggr has joined #ocaml
mcclurmc_away is now known as mcclurmc
Neros has quit [Remote host closed the connection]
tac is now known as WHM
lggr has quit [Ping timeout: 276 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 252 seconds]
lggr has joined #ocaml
Yoric has joined #ocaml
ivan\ has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
lggr has quit [Ping timeout: 246 seconds]
ivan\ has joined #ocaml
lggr has joined #ocaml
lggr has quit [Ping timeout: 246 seconds]
lggr has joined #ocaml
emmanuelux has joined #ocaml
Dettorer has joined #ocaml
sgnb has quit [Read error: Connection reset by peer]
sgnb` has joined #ocaml
lggr has quit [Ping timeout: 246 seconds]
sgnb has joined #ocaml
sgnb` has quit [Read error: Connection reset by peer]
lggr has joined #ocaml
lggr has quit [Ping timeout: 252 seconds]
lggr has joined #ocaml
thomasga has quit [Ping timeout: 264 seconds]
mnabil has joined #ocaml
lggr has quit [Ping timeout: 244 seconds]
lggr has joined #ocaml
sgnb` has joined #ocaml
sgnb has quit [Read error: Connection reset by peer]
thomasga has joined #ocaml
Kakadu has quit [Quit: Konversation terminated!]
chambart has joined #ocaml
Kakadu has joined #ocaml
sgnb` has quit [Read error: Connection reset by peer]
Yoric has quit [Quit: Instantbird 1.3a1pre -- http://www.instantbird.com]
Yoric has joined #ocaml
sgnb` has joined #ocaml
Snark has quit [Quit: Quitte]
lggr has quit [Ping timeout: 276 seconds]
WHM is now known as tac
Neros has joined #ocaml
lggr has joined #ocaml
wagle has quit [Read error: Connection reset by peer]
X1z0r has quit [Quit: So yes it's mIRC under wine under debian double peche capital. ;) I'll soon see in kfreeBSD.]
UncleVasya has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 240 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 252 seconds]
chturne has quit [Quit: Leaving]
lggr has joined #ocaml
wagle has joined #ocaml
<_habnabit> is there a way to get a Unix.file_descr out of the output returned by BatFile.open_temporary_out other than using Unix.open on the returned path?
<thelema> _habnabit: not that I can think of.
<_habnabit> .. actually, it doesn't look like open_temporary_out takes a directory anyway
<_habnabit> hmm
<thelema> if you really need a Unix.file_descr, maybe just create ...
<thelema> iirc, the directory parameter of open_temporary_out has been added in the git master
<_habnabit> ah
<_habnabit> upgrading that is kind of a pain :<
smondet has joined #ocaml
<_habnabit> oh, you can do that now?
<thelema> yes
emias has quit [Ping timeout: 240 seconds]
emias has joined #ocaml
<thelema> there's a vigorous application of magic to try and detect dependencies, but if you already have the deps (or there aren't any), it's quite nice.
lggr has quit [Ping timeout: 246 seconds]
<_habnabit> hmm, it looks like Filename.open_temp_file is what I want, but Unix.descr_of_out_channel gets clobbered with BatUnix.descr_of_output
<_habnabit> isn't it Legacy.Unix to access the old Unix module?
<thelema> yes
<_habnabit> hm, I got an 'unbound module Legacy.Unix'
<thelema> hmmm...
<thelema> Batteries.Legacy.Unix
<_habnabit> unbound module
<thelema> hmm, I wonder if that was missing in some versions - are you using 1.5.0?
lggr has joined #ocaml
<_habnabit> let's see
cdidd has quit [Read error: Connection reset by peer]
avsm1 has quit [Quit: Leaving.]
<_habnabit> i'm using something weird
<thelema> ah, yes. 1.x doesn't have Unix in legacy.
<_habnabit> $ git describe --tags
<_habnabit> v2beta1-164-g9b9a191
<thelema> ok, you're using an older v2
<_habnabit> apparently
<_habnabit> worth updating to the latest v2 tag?
<_habnabit> er, branch
<thelema> latest master
<thelema> at least that's what I use for my day-to-day coding
<_habnabit> is master v2 now?
<thelema> (which says something about my day-to-day coding)
<thelema> yes, v2 is merged into master
<_habnabit> ah, okay
<thelema> and master is occasionally merged back into v2, but infrequently
<_habnabit> actually, dang, I'm using an even older version
<_habnabit> sha 4e1433d
<_habnabit> okay, time to do an export and upgrade all these machines..
lggr has quit [Ping timeout: 276 seconds]
gnuvince_ has joined #ocaml
* thelema realizes he just pushed without a 'make test' first; hopefully it's still clean
<_habnabit> heh
<_habnabit> i'll run it
<thelema> just some trivial changes around batfloat.
<thelema> they seem okay
lggr has joined #ocaml
<_habnabit> lots of warnings about Bounded
<thelema> 4.00?
<_habnabit> no, 3.12.1 still
<thelema> ok. hopefully there's no 4.00 code in there; I realize that it may not have been tested under 3.12.1
<_habnabit> test success
<thelema> yay
<_habnabit> File "src/batBounded.ml", line 188, characters 60-61:
<_habnabit> Warning 27: unused variable x.
<_habnabit> fwiw
<thelema> ah, in the tests... okay
<thelema> ok, should be fixed; one more 'make clean test' before I push
sgnb`` has joined #ocaml
<thelema> no, look at hdoc2/index.html - it's not frequently updated, but is for the v2 branch
<thelema> hdoc is still v1
<_habnabit> ah
sgnb` has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 245 seconds]
<thelema> in fact, now seems as good a time as any to update the docs
<_habnabit> excellent
<thelema> someday, I should automate the process.
<thelema> or at least document it, in case of bus
<thelema> not that it couldn't be re-invented better
lggr has joined #ocaml
sgnb`` has quit [Ping timeout: 245 seconds]
Yoric has quit [Ping timeout: 256 seconds]
lggr has quit [Ping timeout: 260 seconds]
_andre has quit [Quit: leaving]
lggr has joined #ocaml
* thelema tries auto-uploading docs to github
<_habnabit> arggghhhhh
<thelema> _habnabit: ??
<_habnabit> so, is there any way to create a temporary file and give me back something I can read and write on?
<_habnabit> or do I _really_ have to call Unix.openfile myself on the path
<_habnabit> this is ultimately getting mmap'd by bigarray
Submarine has quit [Ping timeout: 260 seconds]
avsm has joined #ocaml
<thelema> why are you trying to go from output to mmap?
<_habnabit> well, I guess I'm not necessarily
<_habnabit> I just need an fd to pass to bigarray
<thelema> val temp_file : ?temp_dir:string -> string -> string -> string
<thelema> in Filename
mcclurmc is now known as mcclurmc_away
<_habnabit> yeah, it just means something can happen to the file between the call and me opening it
<_habnabit> getting handed the fd at the same time is nice
<thelema> _habnabit: the file isn't created, just a name.
<thelema> oops, n/m
<thelema> you're right
lggr has quit [Ping timeout: 256 seconds]
<thelema> apparently no way to do exactly the right thing in ocaml if you want a file descriptor
lggr has joined #ocaml
<thelema> maybe extunix has what you need
<_habnabit> I think I'm just going to use Filename.temp_file
<thelema> val mkostemp : ?suffix:string -> ?flags:open_flag list -> string -> Unix.file_descr * string
<thelema> yup, it's in extunix.
<_habnabit> oho
avsm has quit [Ping timeout: 256 seconds]
<thelema> hmm, scanning this code makes me want to use it as a library.
<thelema> there's all sorts of goodies in here
<_habnabit> i'll take a look in a bit
Yoric has joined #ocaml
lggr has quit [Ping timeout: 260 seconds]
lggr has joined #ocaml
Yoric has quit [Ping timeout: 245 seconds]
lggr has quit [Ping timeout: 252 seconds]
chambart has quit [Ping timeout: 260 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 256 seconds]
lggr has joined #ocaml
avsm has joined #ocaml
lggr has quit [Ping timeout: 260 seconds]
lggr has joined #ocaml
<_habnabit> of _course_ mkotemp doesn't take a temporary directory parameter though
<thelema> you mean mkostemp?
<_habnabit> er yes
avsm has quit [Ping timeout: 260 seconds]
<thelema> hmmm...
<_habnabit> I think I'm probably going to steal the source for mkostemp and change that myself
<thelema> I guess that's the solution. If you have time, push it back at extunix
<_habnabit> yeah, I will
<_habnabit> but I only need this one function from extunix (right now), so
<_habnabit> never mind; it calls C source
<_habnabit> urgh
lggr has quit [Ping timeout: 240 seconds]
<_habnabit> wow, this code is kind of odd too. it takes ~8 lines to manually blit strings instead of using Printf.sprintf
Cyanure has quit [Remote host closed the connection]
<_habnabit> (which would've been one line)
<thelema> performance
<thelema> yes, all of extunix calls c source; that's the point of it
lggr has joined #ocaml
<_habnabit> oh, i didn't know mkostemps was a _thing_
<_habnabit> i'd never heard of it, and i don't have a man page for it
<_habnabit> great, it's a glibc thing. so, useless for my purposes
<_habnabit> is sprintf that slow, though?
thomasga has quit [Quit: Leaving.]
<thelema> well, not so slow compared to creating a file, probably, but yes, much slower than hand-written string blits
<adrien> mkostemp is GNU extension
<adrien> s/GNU/glibc/
lggr has quit [Ping timeout: 256 seconds]
mnabil has quit [Ping timeout: 260 seconds]
<_habnabit> yeah
<_habnabit> most of the places this code is run won't have glibc
<adrien> doesn't meant it not supported by others ;p
<_habnabit> it's not in OS X's libc, so
<thelema> ok, temp_file it is
lggr has joined #ocaml
<_habnabit> yeah, that's what I'm using
avsm has joined #ocaml
<_habnabit> is there a reason that Tuple2.map and Tuple2.mapn got reversed?
<_habnabit> looks like all of the TupleN.map/mapn got reversed
lggr has quit [Ping timeout: 240 seconds]
<thelema> consistency with... something else.
<thelema> you must have had one of the few versions that existed where it wasn't consistent
<_habnabit> well, it was sha 4e1433d
lggr has joined #ocaml
Kakadu has quit [Quit: Konversation terminated!]
avsm1 has joined #ocaml
lggr has quit [Ping timeout: 276 seconds]
avsm has quit [Ping timeout: 255 seconds]
lggr has joined #ocaml
emias has quit [Quit: Reboot.]
sepp2k1 has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 245 seconds]
ontologiae has joined #ocaml
lggr has joined #ocaml
lggr has quit [Ping timeout: 244 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 255 seconds]
Yoric has joined #ocaml
emmanuelux has quit [Remote host closed the connection]
chambart has joined #ocaml
lggr has joined #ocaml
Yoric has quit [Ping timeout: 256 seconds]
tac has quit [Quit: Page closed]
lggr has quit [Ping timeout: 252 seconds]
pngl has quit [Ping timeout: 246 seconds]
lggr has joined #ocaml
smondet has quit [Ping timeout: 240 seconds]
Yoric has joined #ocaml
lggr has quit [Ping timeout: 245 seconds]
Yoric has quit [Ping timeout: 240 seconds]
Yoric has joined #ocaml
lggr has joined #ocaml
jamii has quit [Ping timeout: 256 seconds]
lggr has quit [Ping timeout: 276 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 245 seconds]
ontologiae has quit [Ping timeout: 255 seconds]
lggr has joined #ocaml
chambart has quit [Ping timeout: 260 seconds]
mnabil has joined #ocaml
lggr has quit [Ping timeout: 245 seconds]
emias has joined #ocaml
lggr has joined #ocaml
tufisi has quit [Ping timeout: 256 seconds]
lggr has quit [Ping timeout: 256 seconds]
Yoric has quit [Ping timeout: 246 seconds]
lggr has joined #ocaml
Yoric has joined #ocaml
Yoric has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 256 seconds]
TDJACR has joined #ocaml
lggr has joined #ocaml
mnabil has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 244 seconds]
TDJACR has quit [Quit: leaving]
lggr has joined #ocaml
TDJACR has joined #ocaml
hiredman has quit [Ping timeout: 248 seconds]
hiredman has joined #ocaml
BiDOrD_ has joined #ocaml
lggr has quit [Ping timeout: 240 seconds]
BiDOrD has quit [Ping timeout: 256 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 246 seconds]
GnomeStoleMyBike has quit [Ping timeout: 255 seconds]
lggr has joined #ocaml