adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.02.2 announced http://ocaml.org/releases/4.02.html | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
kdas_ has joined #ocaml
Rebelion has quit [Quit: Saliendo]
BitPuffin|osx has joined #ocaml
kdas_ has quit [Ping timeout: 244 seconds]
thomasga has joined #ocaml
kclancy has quit [Remote host closed the connection]
ollehar1 has quit [Read error: Connection reset by peer]
MrScout has joined #ocaml
Denommus has quit [Quit: going home]
hay207 has quit [Ping timeout: 246 seconds]
thomasga has quit [Quit: Leaving.]
keen__________14 has joined #ocaml
jao has joined #ocaml
keen__________13 has quit [Ping timeout: 276 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x47 has quit [Ping timeout: 246 seconds]
segmond has quit [Ping timeout: 244 seconds]
segmond has joined #ocaml
Hannibal_Smith has quit [Quit: Leaving]
sepp2k has quit [Quit: Leaving.]
ceryo has joined #ocaml
jyc_ has joined #ocaml
struktured has quit [Ping timeout: 252 seconds]
MrScout has quit [Ping timeout: 248 seconds]
sgnb has quit [Ping timeout: 256 seconds]
AltGr has joined #ocaml
shinnya has quit [Ping timeout: 264 seconds]
walter|r has joined #ocaml
mcclurmc has quit [Remote host closed the connection]
walter|r has quit [Ping timeout: 255 seconds]
lolisa has joined #ocaml
MrScout has joined #ocaml
darkf has joined #ocaml
ygrek has quit [Ping timeout: 256 seconds]
badkins has quit []
MrScout has quit [Remote host closed the connection]
walter|r has joined #ocaml
mcclurmc has joined #ocaml
walter|r has quit [Ping timeout: 246 seconds]
mcclurmc has quit [Ping timeout: 264 seconds]
waneck has quit [Read error: Connection reset by peer]
BitPuffin|osx has quit [Ping timeout: 264 seconds]
matason has joined #ocaml
ollehar1 has joined #ocaml
ollehar has quit [Ping timeout: 264 seconds]
jao has quit [Read error: Connection reset by peer]
ollehar has joined #ocaml
swgillespie has joined #ocaml
lolisa has quit [Quit: meow]
MercurialAlchemi has joined #ocaml
milosn has quit [Quit: Lost terminal]
Bhavya has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 240 seconds]
Bhavya has quit [Quit: Quit the channel]
relrod has quit [Ping timeout: 256 seconds]
manud has quit [Quit: manud]
jyc has quit [Quit: ZNC - http://znc.in]
jyc_ is now known as jyc
ollehar1 has quit [Ping timeout: 256 seconds]
matason has quit [Ping timeout: 246 seconds]
moei has quit [Read error: Connection reset by peer]
moei has joined #ocaml
ygrek has joined #ocaml
kushal has joined #ocaml
Haudegen has quit [Ping timeout: 252 seconds]
mcclurmc has joined #ocaml
Haudegen has joined #ocaml
mcclurmc has quit [Remote host closed the connection]
KDr2 has joined #ocaml
accidus_benartiu has joined #ocaml
accidus has joined #ocaml
mcclurmc has joined #ocaml
jonludlam has quit [Ping timeout: 264 seconds]
mcclurmc has quit [Remote host closed the connection]
mcclurmc has joined #ocaml
matason has joined #ocaml
manud has joined #ocaml
hay207 has joined #ocaml
ygrek has quit [Ping timeout: 250 seconds]
sh0t has joined #ocaml
Simn has joined #ocaml
mcclurmc has quit [Remote host closed the connection]
dsheets has quit [Ping timeout: 256 seconds]
thomasga has joined #ocaml
<companion_cube> o/
sh0t has quit [Ping timeout: 265 seconds]
<flux> def`, hmm, but how does it fit here: type ('a, 'b) service = { kind : 'a; method : 'b } ?
accidus has quit [Ping timeout: 246 seconds]
accidus_benartiu has quit [Ping timeout: 252 seconds]
octachron has joined #ocaml
dsheets has joined #ocaml
<ollehar> jwatzman|work: here?
ggole has joined #ocaml
<octachron> flux: the idea is to use type constraint with object type: type 'a service = { x: 'b; y:'c } constraint 'a = <x:'b; y:'c>
<companion_cube> nice trick
<octachron> like this you can use type parameter selectively
<octachron> i.e let f: 'a service -> 'a service or let g: <x:int;..> service -> int
<def`> exactly
creichert has quit [Remote host closed the connection]
<flux> nice, I haven't used that ever
mort___ has joined #ocaml
mlamari_ has quit [Read error: Connection reset by peer]
mlamari_ has joined #ocaml
zpe has joined #ocaml
octachron has quit [Quit: Leaving]
KDr2 has quit [Ping timeout: 276 seconds]
jonludlam has joined #ocaml
kaustuv has joined #ocaml
<kaustuv> Anyone know if there has been more recent progress on this? http://caml.inria.fr/mantis/print_bug_page.php?bug_id=5904
<rks`> what progress do you expect/would you like to see?
<kaustuv> Hmm. I guess ocaml -ppx works with 4.03.0+trunk, so maybe it's no longer relevant
<rks`> should work with 4.02.2 too
Bhavya has joined #ocaml
Haudegen has quit [Ping timeout: 250 seconds]
Haudegen has joined #ocaml
stux|RC has quit [Ping timeout: 276 seconds]
KDr2 has joined #ocaml
stux|RC-only has joined #ocaml
thomasga has quit [Quit: Leaving.]
thomasga has joined #ocaml
thomasga has quit [Client Quit]
kaustuv has left #ocaml ["ERC Version 5.3 (IRC client for Emacs)"]
AltGr has left #ocaml [#ocaml]
martintrojer has quit [Ping timeout: 252 seconds]
martintrojer has joined #ocaml
Haudegen has quit [Ping timeout: 252 seconds]
_andre has joined #ocaml
Haudegen has joined #ocaml
Hannibal_Smith has joined #ocaml
ceryo has joined #ocaml
segmond has quit [Quit: Fail]
Kakadu has joined #ocaml
manud has quit [Quit: manud]
Bhavya has quit [Quit: Quit the channel]
amnn has joined #ocaml
amnn has quit [Ping timeout: 276 seconds]
pii4 has quit [Excess Flood]
amnn has joined #ocaml
pii4 has joined #ocaml
yomimono has quit [Ping timeout: 276 seconds]
amnn has quit [Ping timeout: 256 seconds]
amnn has joined #ocaml
tmtwd has joined #ocaml
Hannibal_Smith has quit [Quit: Leaving]
keep_learning has joined #ocaml
amnn has quit [Ping timeout: 252 seconds]
<keep_learning> Hello everyone.
<keep_learning> Any one familiar with codegraph from pfff.
amnn has joined #ocaml
<keep_learning> I am trying to use it to generate the dependency graph
<keep_learning> but it says
<keep_learning> Fatal error: exception Failure("go the directory you want")
<keep_learning> I have generated the file graph_code.marshall
tane has joined #ocaml
BitPuffin has joined #ocaml
badkins has joined #ocaml
keep_learning has quit [Ping timeout: 246 seconds]
<haesbaert> it seems I'm not getting the backtraces with lwt
<haesbaert> this is my ocamlc line:
<haesbaert> ocamlfind ocamlc -c -g -bin-annot -strict-sequence -package sexplib -package sexplib.syntax -package cmdliner -package ipaddr -package cstruct.unix -package tuntap -package cstruct -
<haesbaert> package cstruct.lwt -package cstruct.syntax -package lwt.unix -package lwt.syntax -ppopt -lwt-debug -syntax camlp4o -syntax pa_cstruct -o dhcp.cmi dhcp.mli
<haesbaert> is the order important ?
<Drup> the order seeps right
<Drup> seems*
<haesbaert> I got a trace like this:
<haesbaert> ocamlfind ocamlc -c -g -bin-annot -strict-sequence -package sexplib -package sexplib.syntax -package cmdliner -package ipaddr -package cstruct.unix -package tuntap -package cstruct -
<haesbaert> whoops
<haesbaert> hdhcpd: internal error, uncaught exception: Invalid_argument("packet too small 12 < 236") Raised at file "src/core/lwt.ml", line 788, characters 22-23 Called from file "src/unix/lwt_main.ml", line 34, characters 8-18
<haesbaert> there is stuff missing
<Drup> ah, well, OCAMLRUNPARAM=b
<haesbaert> I'm running native
<Drup> that's for native.
<haesbaert> leme reproduce
<haesbaert> same
<Drup> you exported it before running the program ?
<Drup> it's not for compilation, it's for runtime
<haesbaert> yes, I also have this:
<haesbaert> I know
<haesbaert> let () = Printexc.record_backtrace true
<Drup> huum
<haesbaert> the funny thing is, if I raise an uncaught exception on the same module where the Lwt is created, I get a full backtrace
<haesbaert> example
<haesbaert> hdhcpd: internal error, uncaught exception: Failure("BOOOOM") Raised at file "pervasives.ml", line 30, characters 22-33 Called from file "hdhcpd.ml", line 326, characters 2-19 Called from file "list.ml", line 55, characters 20-23 Called from file "hdhcpd.ml", line 345, characters 4-90
<haesbaert> that's complete
<ggole> Is it just running on different threads?
<Drup> you raise with Lwt.fail, right ?
<haesbaert> same
<haesbaert> whooops
<haesbaert> no, just failwith
<Drup> *always* use Lwt.fail
<Drup> when Lwt is involved
<haesbaert> but in this case I'm calling a module that doesn't know about lwt
<Drup> and Lwt.catch, and all that
<haesbaert> that module raises an exception
<Drup> Lwt.wrap is made for that
relrod_ has joined #ocaml
relrod_ has quit [Changing host]
relrod_ has joined #ocaml
<haesbaert> wait wait, say I call a module inside and Lwt thread that raises Not_found
<haesbaert> wait wait, say I call a module inside a Lwt thread that raises Not_found
<haesbaert> in that case, I'm not getting the backtrace, I also, would not enjoy changing the module to be Lwt aware
<haesbaert> that's where Lwt.wrap comes into play ?
<Drup> yes, at the boundary
<Drup> it wraps the non lwt function into an lwt-friendly one
<Drup> (wrt exceptions)
<haesbaert> HMMMMM
<haesbaert> but wrap also generates a Lwt
<haesbaert> I don't want that
<Drup> you just said it was inside a thread
<haesbaert> AHHHHHH I think now I get you, 1s
<Drup> basically, if an exception is raised inside a thread, it must be wrapped
relrod_ is now known as relrod
<Drup> otherwise, the stracktrace, even the partial one, is going to be complete bullshit
<haesbaert> so say I have this recursive Lwt, that calls shit loads of functions from modules which are not Lwt aware.
<haesbaert> I have to wrap every single call ?
ollehar has quit [Remote host closed the connection]
<Drup> or you wrap the whole thing
<haesbaert> but the whole thing is already a Lwt thingy
<haesbaert> My main is something like this Lwt_main.run (recv_thread), where recv_thread is a:
<haesbaert> let recv_thread = dhcp_recv config in
<haesbaert> dhcp_recv is type Config.t -> 'a Lwt.t
<haesbaert> so how I would wrap a 'a Lwt.t
<haesbaert> lwt pkt = wrap (fun () -> Dhcp.pkt_of_buf buffer n) in
<haesbaert> pkt_of_buf is the one raising invalid_arg
<haesbaert> I still don't get a nice backtrace :/
<haesbaert> no changes
jhaberku has joined #ocaml
tmtwd has quit [Ping timeout: 240 seconds]
<haesbaert> I made a mini example, should this work ? http://codepad.org/3Qds2si0
<haesbaert> I still don't get the full backtrace
<Drup> that should work, yeah
<haesbaert> maybe it is my build options
slash^ has joined #ocaml
<haesbaert> Fatal error: exception Invalid_argument("BOOM")
<haesbaert> Raised at file "src/core/lwt.ml", line 788, characters 22-23
<haesbaert> Called from file "src/unix/lwt_main.ml", line 34, characters 8-18
<haesbaert> Called from file "exc.ml", line 13, characters 2-26
<haesbaert> well I do get the line from Lwt_main.run
tmtwd has joined #ocaml
<Drup> isn't that the correct backtrace
<Drup> ?
<haesbaert> not really, the exception is raised on line 7
<haesbaert> here is a complete one: http://codepad.org/w4sTuCqp
<haesbaert> but there is a difference, on my original code I don't get a line for the Lwt_run
oscar_toro has quit [Ping timeout: 240 seconds]
sepp2k has joined #ocaml
<Drup> hum, right, I'm not sure
<Drup> ask on the bug tracker, because it seems to me that it should work
<haesbaert> ok
mort___ has quit [Ping timeout: 246 seconds]
MercurialAlchemi has joined #ocaml
<haesbaert> btw, I have the same behaviour with Lwt.fail_with "boom"
mort___ has joined #ocaml
ollehar has joined #ocaml
tmtwd has quit [Ping timeout: 240 seconds]
thomasga has joined #ocaml
tmtwd has joined #ocaml
zpe has quit [Remote host closed the connection]
struktured has joined #ocaml
Denommus has joined #ocaml
zpe has joined #ocaml
amnn has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amnn has joined #ocaml
oscar_toro has joined #ocaml
struktured has quit [Ping timeout: 264 seconds]
mort___ has quit [Ping timeout: 256 seconds]
oscar_toro has quit [Ping timeout: 256 seconds]
jhaberku has quit [Ping timeout: 246 seconds]
sh0t has joined #ocaml
mort___ has joined #ocaml
amnn has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ollehar> how about that undecidability of type-inference in php...
<ollehar> would this be impossible to infer?
<ollehar> class C {} class D extends C {} function f(C $x) {}
<ollehar> if I feed D to f()
<ollehar> maybe ask on stackoverflow :P
jhaberku has joined #ocaml
<ollehar> that guy yesterday said it would be impossible. but if you enforce hinting?
oscar_toro has joined #ocaml
zpe has quit [Remote host closed the connection]
sh0t has quit [Ping timeout: 256 seconds]
sgnb has joined #ocaml
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jhaberku has quit [Ping timeout: 256 seconds]
<jyc> if you enforce hinting, is it still type inference?
milosn has joined #ocaml
reynir has quit [Quit: WeeChat 1.1.1]
thomasga has quit [Quit: Leaving.]
thomasga has joined #ocaml
jonludlam has quit [Ping timeout: 252 seconds]
ggole has quit []
darkf has quit [Quit: Leaving]
oscar_toro has quit [Ping timeout: 265 seconds]
thomasga has quit [Quit: Leaving.]
gustav__1 has quit [Ping timeout: 246 seconds]
jhaberku has joined #ocaml
struktured has joined #ocaml
mort___ has quit [Quit: Leaving.]
<ollehar> jyc: well... not completely. still, better than vanilla php.
<ollehar> and there's no hint for int, string etc in PHP
<ollehar> so + and `.` have to be used for inference.
thomasga has joined #ocaml
dsheets has quit [Ping timeout: 246 seconds]
amnn has joined #ocaml
amnn has quit [Client Quit]
<ollehar> anyone know about a module called FileInfo? It's needed for the hacklang parser/ast, but I can't find it. :/
MrScout has joined #ocaml
<ollehar> gah, found it
<ollehar> filename fileInfo, not fileinfo
jwatzman|work has joined #ocaml
zpe has joined #ocaml
robogeoff has joined #ocaml
ygrek has joined #ocaml
zpe has quit [Ping timeout: 252 seconds]
struktured has quit [Ping timeout: 264 seconds]
reynir has joined #ocaml
milosn has quit [Ping timeout: 265 seconds]
rgrinberg has joined #ocaml
soultadu has joined #ocaml
Haudegen has quit [Ping timeout: 255 seconds]
yomimono has joined #ocaml
monod has joined #ocaml
gustav___ has joined #ocaml
jhaberku has quit [Ping timeout: 256 seconds]
soultadu has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
Kakadu has quit [Quit: Page closed]
yomimono has quit [Ping timeout: 246 seconds]
Haudegen has joined #ocaml
soultadu has joined #ocaml
wraithm has joined #ocaml
soultadu has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
xyh has joined #ocaml
thomasga has quit [Ping timeout: 256 seconds]
swgillespie has joined #ocaml
kushal has quit [Ping timeout: 255 seconds]
monod has quit [Quit: Sto andando via]
xyh has quit [Ping timeout: 264 seconds]
<haesbaert> I'm having issues with handling exceptions in lwt
<haesbaert> does try_lwt do a bind ?
<haesbaert> I have: lwt (n, ifid) = Util.lwt_cstruct_recvif socket buffer in
<haesbaert> Util.lwt_cstruct_recvif returns a (int * int) Lwt.t
<haesbaert> so I'm trying lwt (n, ifid) = try_lwt Util.... with _ -> here I wanted to call myself recursively
<haesbaert> bah let me try to get this straight
amnn has joined #ocaml
tane has quit [Ping timeout: 256 seconds]
monod has joined #ocaml
mort___ has joined #ocaml
lobo has joined #ocaml
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tane has joined #ocaml
Kakadu has joined #ocaml
robogeoff has quit [Ping timeout: 246 seconds]
Hannibal_Smith has joined #ocaml
swgillespie has joined #ocaml
amnn has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
matason has quit [Ping timeout: 264 seconds]
rgrinberg has quit [Ping timeout: 246 seconds]
mcclurmc has joined #ocaml
mcclurmc has quit [Remote host closed the connection]
soultadu has joined #ocaml
mcclurmc has joined #ocaml
slash^ has quit [Read error: Connection reset by peer]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Haudegen has quit [Ping timeout: 264 seconds]
matason has joined #ocaml
j0sh__ is now known as j0sh
sh0t has joined #ocaml
Haudegen has joined #ocaml
rgrinberg has joined #ocaml
BitPuffin has quit [Ping timeout: 276 seconds]
mcclurmc has quit [Remote host closed the connection]
mcclurmc has joined #ocaml
Anarchos has joined #ocaml
robogeoff has joined #ocaml
Hannibal_Smith has quit [Quit: Leaving]
mcclurmc has quit [Remote host closed the connection]
swgillespie has joined #ocaml
swgillespie has quit [Client Quit]
sh0t has quit [Ping timeout: 256 seconds]
thomasga has joined #ocaml
_andre has quit [Quit: leaving]
mcclurmc has joined #ocaml
<ollehar> what?
<ollehar> Error: Files /home/olle/.opam/4.02.1/lib/ocaml/str.cmx
<ollehar> and /home/olle/.opam/4.02.1/lib/ocaml/str.cmx
<ollehar> both define a module named Str
<ollehar> make: *** [main] Error 2
<ollehar> it's exactly the same file, no?
<ollehar> ah, my Makefile is messy
jbrown has quit [Read error: Connection reset by peer]
mcclurmc has quit [Ping timeout: 256 seconds]
mcclurmc has joined #ocaml
Haudegen has quit [Ping timeout: 246 seconds]
swgillespie has joined #ocaml
matason has quit [Ping timeout: 246 seconds]
ceryo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Haudegen has joined #ocaml
manud has joined #ocaml
manud has quit [Client Quit]
MercurialAlchemi has quit [Ping timeout: 252 seconds]
struktured has joined #ocaml
dsheets has joined #ocaml
<ollehar> debug ocaml program the seg faults? gdb?
<ollehar> *that
ygrek has quit [Ping timeout: 276 seconds]
<ollehar> hm
<Drup> dsheets: do you have other documentation questions for re ? I'm patching it now
manud has joined #ocaml
soultadu has quit [Ping timeout: 256 seconds]
<haesbaert> can someone explain me this ? http://codepad.org/2Qm04X9j
<haesbaert> that function is not called anywhere, I can seem to be able to bind the value to return unit
manud has quit [Quit: manud]
<haesbaert> line 17
<haesbaert> for some reason it won't allow me to return unit, even though that function is not called anywhere
haythammed_ has joined #ocaml
<Drup> "lwt x = in ..."
<Drup> arg
<Drup> "lwt x = e1 in e2"
<Drup> e1 and e2 must be of type 'a Lwt.t
<Drup> (because it's sugar for e1 >>= fun x -> e2, and see the type of >>=
<haesbaert> ahhhh
<haesbaert> so how would I ago about doing this ?
<Drup> can't you return Lwt.return_unit ?
<haesbaert> I could but I really didn't want to
<Drup> why ?
hay207 has quit [Ping timeout: 252 seconds]
<haesbaert> cause then I need to change the future callers to expect a unit Lwt
<Drup> If you don't really case about when the Cstruct thing is executed, you could use Lwt.ignore_result
<Drup> Oh, no you can't
<Drup> sorry, no choice.
<haesbaert> hmm the thing is I want it to be sequential
<haesbaert> so I should just do lwt () = send_offer ...
<Drup> yes
<Drup> how is that an issue ?
haythammed__ has joined #ocaml
<haesbaert> hmm my whole stack expects a unit, now I'll have to change everything
<Drup> well yeah, it's a monad, it's contaminating the whole code ..
<haesbaert> that's sad
MrScout_ has joined #ocaml
<haesbaert> I thought it would be straight forward to bind a computation and go on
haythammed_ has quit [Ping timeout: 240 seconds]
<Drup> If it's really a huge issue, and you have access to Lwt_preemptive (iirc, not in mirage), you can use Lwt_preemptive.run_in_main
MrScout has quit [Ping timeout: 248 seconds]
<haesbaert> hmm nah, I think I'll just have to give in to changing it all
mcclurmc has quit [Remote host closed the connection]
mcclurmc has joined #ocaml
manud has joined #ocaml
manud has quit [Client Quit]
jonludlam has joined #ocaml
<haesbaert> oh it was easier than I thought
struktured has quit [Read error: Connection reset by peer]
<Drup> rgrinberg: https://github.com/ocaml/ocaml-re/issues/17 isn't that solved ?
<rgrinberg> Drup: yeah
haythammed_ has joined #ocaml
haythammed__ has quit [Ping timeout: 255 seconds]
soultadu has joined #ocaml
struktured has joined #ocaml
MrScout_ has quit [Remote host closed the connection]
gustav___ has quit [Ping timeout: 244 seconds]
MrScout has joined #ocaml
gustav___ has joined #ocaml
nicoo has quit [Ping timeout: 264 seconds]
systmkor has joined #ocaml
jao has joined #ocaml
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
haythammed_ has quit [Quit: Leaving]
tane has quit [Quit: Verlassend]
hay207 has joined #ocaml
ygrek has joined #ocaml
Simn has quit [Quit: Leaving]
Anarchos has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
jonludlam has quit [Ping timeout: 264 seconds]
matason has joined #ocaml
Denommus has quit [Quit: going home]
soultadu has quit [Ping timeout: 256 seconds]
struktured has quit [Ping timeout: 265 seconds]
struktured has joined #ocaml
MrScout has quit [Remote host closed the connection]
hay207 has quit [Ping timeout: 265 seconds]
wraithm has quit [Quit: leaving]
MrScout has joined #ocaml
soultadu has joined #ocaml
<dmbaturin> https://bpaste.net/show/a1121a65f415 Why calling Unix.sleep prevents anything from being printed unless I flush stdout afterwards?
struktured has quit [Ping timeout: 265 seconds]
matason has quit [Ping timeout: 264 seconds]
walter|r has joined #ocaml
lobo has quit [Quit: leaving]
<companion_cube> you probably only have one thread?
<companion_cube> oh, it's just buffering
MrScout has quit [Remote host closed the connection]
hay207 has joined #ocaml
badkins has quit []
<dmbaturin> companion_cube: Yeah, one thread in this case. But what I find puzzling is that without sleep there's no need to flush the channel.
<companion_cube> without sleep it all prints too fast, doesn't it?
<companion_cube> I think you don't need to call flush with sleep either, only it takes several iterations before the buffer fills
<dmbaturin> Looks like not, I did wait for it. It never started printing anything. :)
<companion_cube> well you need to call one of the functions
<companion_cube> strange, it works for me
<dmbaturin> The one without flush?
<companion_cube> yes
<companion_cube> print_endline should flush anyway
<dmbaturin> Wait, I used print_endline there. Actual code that didn't work uses Printf.printf, I thought printf flushes automatically too. Or it doesn't?
|jbrown| has joined #ocaml
<companion_cube> it doesn't
<companion_cube> and indeed I remember having had to put additional flushes with Printf
<companion_cube> those days I tend to use Format anyway
monod has quit [Quit: Sto andando via]
hay207 has quit [Ping timeout: 240 seconds]
Sorella has quit [Ping timeout: 248 seconds]
manud has joined #ocaml
swgillespie has joined #ocaml
Sorella has joined #ocaml
Kakadu has quit [Remote host closed the connection]
<ygrek> use %! in printf to flush
<dmbaturin> companion_cube: Ah, this explains, thanks. I wonder how I didn't hit it earlier. :)
<dmbaturin> ygrek: Thanks, didn't know this either.
ollehar has quit [Quit: ollehar]
thomasga has quit [Quit: Leaving.]
manud has quit [Quit: manud]
hay207 has joined #ocaml
manud has joined #ocaml
mort___ has quit [Quit: Leaving.]
meteo has quit [Remote host closed the connection]
madroach has quit [Ping timeout: 264 seconds]
madroach has joined #ocaml
MrScout has joined #ocaml
lupine has quit [Quit: ZNC - http://znc.in]
hay207 has quit [Ping timeout: 276 seconds]
lupine has joined #ocaml