adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.07.1 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.07/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml | Due to ongoing spam, you must register your nickname to talk on the channel
iovec has quit [Quit: Connection closed for inactivity]
assertionerror has quit [Quit: assertionerror]
kvda has joined #ocaml
keep_learning_M has joined #ocaml
AtumT has quit [Quit: AtumT]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_whitelogger has joined #ocaml
mfp has quit [Ping timeout: 248 seconds]
gravicappa has joined #ocaml
kvda has joined #ocaml
caltelt_ has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kvda has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
caltelt_ has quit [Ping timeout: 258 seconds]
Menche has quit [Excess Flood]
Menche has joined #ocaml
Menche has quit [Excess Flood]
Menche has joined #ocaml
Menche has quit [Excess Flood]
Menche has joined #ocaml
Menche has quit [Excess Flood]
Menche has joined #ocaml
Menche has quit [Excess Flood]
Menche has joined #ocaml
Menche has quit [Excess Flood]
Menche has joined #ocaml
Menche has quit [Excess Flood]
Menche has joined #ocaml
Menche has quit [Excess Flood]
Menche has joined #ocaml
Menche has quit [Excess Flood]
Menche has joined #ocaml
Menche has quit [Excess Flood]
Menche has joined #ocaml
JimmyRcom has quit [Ping timeout: 268 seconds]
kvda has joined #ocaml
jao has quit [Ping timeout: 272 seconds]
narimiran has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
theglass has joined #ocaml
theglass has joined #ocaml
theglass has quit [Changing host]
gravicappa has quit [Ping timeout: 245 seconds]
gravicappa has joined #ocaml
jnavila has joined #ocaml
ggole has joined #ocaml
webshinra has quit [Remote host closed the connection]
webshinra has joined #ocaml
kvda has joined #ocaml
Niamkik has quit [Quit: WeeChat 2.4]
mildtaste has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Haudegen has joined #ocaml
iovec has joined #ocaml
<xvilka> any news on 4.08 yet?
<octachron> Today is an extended week-end in France, don't expect it before next week.
<xvilka> octachron: ah, it explains the silence haha
octarin has quit [Ping timeout: 248 seconds]
tobiasBora has quit [Ping timeout: 246 seconds]
gareppa has joined #ocaml
gareppa has quit [Remote host closed the connection]
mfp has joined #ocaml
dmiles has quit [Ping timeout: 246 seconds]
rwmjones_ is now known as rwmjones
dmiles has joined #ocaml
Haudegen has quit [Remote host closed the connection]
jnavila has quit [Ping timeout: 246 seconds]
jnavila has joined #ocaml
kkielak has joined #ocaml
kkielak has left #ocaml [#ocaml]
kkielak has joined #ocaml
kkielak has left #ocaml [#ocaml]
tizoc has quit [Quit: Coyote finally caught me]
tizoc has joined #ocaml
dr_df0 has joined #ocaml
Birdface has joined #ocaml
Haudegen has joined #ocaml
Birdface has quit [Remote host closed the connection]
Birdface has joined #ocaml
Birdface has quit [Read error: Connection reset by peer]
jnavila has quit [Ping timeout: 246 seconds]
jerme__ has joined #ocaml
angerman_ has joined #ocaml
adi________ has quit [Ping timeout: 264 seconds]
tizoc has quit [Ping timeout: 246 seconds]
micro has quit [Ping timeout: 246 seconds]
_habnabit has quit [Ping timeout: 246 seconds]
terrorjack__ has joined #ocaml
timeless_ has joined #ocaml
Kitambi has quit [Ping timeout: 276 seconds]
adi________ has joined #ocaml
jerme_ has quit [Ping timeout: 252 seconds]
timeless has quit [Ping timeout: 252 seconds]
terrorjack_ has quit [Ping timeout: 252 seconds]
angerman has quit [Ping timeout: 252 seconds]
smondet[m] has quit [Ping timeout: 252 seconds]
igitoor has quit [Ping timeout: 252 seconds]
artart78 has quit [Ping timeout: 252 seconds]
freusque has quit [Ping timeout: 252 seconds]
micro has joined #ocaml
jerme__ is now known as jerme_
angerman_ is now known as angerman
tizoc has joined #ocaml
igitoor_ has joined #ocaml
tizoc has quit [Changing host]
tizoc has joined #ocaml
artart78 has joined #ocaml
smondet[m] has joined #ocaml
timeless_ is now known as timeless
_habnabit has joined #ocaml
<oni-on-ion> xvilka, have you tried 4.08 beta or rc ?
igitoor_ has quit [Changing host]
igitoor_ has joined #ocaml
igitoor_ is now known as igitoor
octarin has joined #ocaml
tobiasBora has joined #ocaml
Niamkik has joined #ocaml
dr_df0 has quit [Ping timeout: 258 seconds]
freusque has joined #ocaml
jao has joined #ocaml
jao is now known as Guest43674
Guest43674 is now known as jao
iovec has quit [Quit: Connection closed for inactivity]
luna_is_here has joined #ocaml
dimitarvp has joined #ocaml
dimitarvp has quit [Client Quit]
dr_df0 has joined #ocaml
silver has joined #ocaml
narimiran has quit [Read error: Connection reset by peer]
narimiran has joined #ocaml
dr_df0 has quit [Ping timeout: 252 seconds]
jbrown has quit [Remote host closed the connection]
mildtaste has quit [Remote host closed the connection]
spew has joined #ocaml
AtumT has joined #ocaml
dr_df0 has joined #ocaml
q9929t has joined #ocaml
oni-on-ion has quit [Remote host closed the connection]
kvda has joined #ocaml
kvda has quit [Client Quit]
Kitambi has joined #ocaml
sagax has quit [Remote host closed the connection]
sagax has joined #ocaml
Haudegen has quit [Remote host closed the connection]
q9929t has quit [Quit: q9929t]
dr_df0 has quit [Ping timeout: 245 seconds]
sagax has quit [Quit: Konversation terminated!]
ziyourenxiang has quit [Ping timeout: 258 seconds]
jbrown has joined #ocaml
Haudegen has joined #ocaml
<notnotdan> Is there a way to make an out_channel out of a byte array or something like this?
<notnotdan> I want to record output of a procedure in a string
<companion_cube> sadly, not
keep_learning_M has quit [Quit: This computer has gone to sleep]
<notnotdan> ouch
<notnotdan> do you i have to write my own buffering stuff?
<companion_cube> I'd suggest to have your procedure output stuff into a `Format.formatter`, which is very convenient and flexible
<companion_cube> (bar that, into a `Buffer.t`)
<companion_cube> barring that*
<notnotdan> Well the program actually supposed to flush buffers. It does input/output stuff and the output should be displayed before more input is requested
<companion_cube> (didn't find a good "share" button on sketch, damn -_-)
<notnotdan> but if I clear the buffer then I cannot access its contents at the end of the procedure
<notnotdan> i ended up just writing the output to a temp file and reading it back
<companion_cube> that was just an example of how to bufferize stuff and print it, twice
<companion_cube> you don't have to clear the buffer if you don't want to
<notnotdan> Sorry, I am feeling stupid today :/ I still don't see how I can write my code like this. If I don't clear the buffer and call print on it later on then it will produce dubious output the second time
<companion_cube> I'm not sure what you want, I must say
<companion_cube> you want both to print output as you go, and to keep all of it somewhere?
<notnotdan> I have an interpreter basically, and it inteprets the command `Print x` as `out_channel oc x`, where the interpretor is parametrized by an output channel `oc`
<notnotdan> So I want it to print output when I run it in a normal mode. But I also want to do unit-testing on it, and for that I need to keep all the output
ravenous_ has joined #ocaml
<companion_cube> parametrize by Format.formatter, that's all
<companion_cube> in normal mode, use Format.std_formatter and add a `Format.printf "@."` after each call to the interpreter (newline + flush)
<companion_cube> in unit test, do the buffer thing (allocate buffer, Format.formatter_of_buffer, flush at the end + Buffer.contents)
<notnotdan> ah you can flush this thing
<notnotdan> thanks a lot companion_cube!
<companion_cube> ✔
jnavila has joined #ocaml
keep_learning has quit [Quit: Ping timeout (120 seconds)]
gravicappa has quit [Ping timeout: 272 seconds]
jnavila has quit [Ping timeout: 246 seconds]
jbrown has quit [Remote host closed the connection]
tane has joined #ocaml
kakadu has joined #ocaml
ggole has quit [Quit: Leaving]
narimiran_ has joined #ocaml
narimiran has quit [Ping timeout: 252 seconds]
_whitelogger has joined #ocaml
narimiran has joined #ocaml
narimiran_ has quit [Ping timeout: 252 seconds]
ravenous_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ravenousmoose has joined #ocaml
sagax has joined #ocaml
Jeanne-Kamikaze has joined #ocaml
narimiran has quit [Ping timeout: 245 seconds]
jbrown has joined #ocaml
pierpal has quit [Ping timeout: 248 seconds]
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tane has quit [Quit: Leaving]
jnavila has joined #ocaml
ghostyy has quit [Read error: Connection reset by peer]
jnavila has quit [Ping timeout: 258 seconds]
luna_is_here has quit [Ping timeout: 244 seconds]
jbrown has quit [Ping timeout: 258 seconds]
Haudegen has quit [Ping timeout: 252 seconds]
Haudegen has joined #ocaml
kakadu has quit [Remote host closed the connection]
jbrown has joined #ocaml
AtumT has quit [Quit: AtumT]
keep_learning_M has joined #ocaml
keep_learning_M has quit [Client Quit]