[julia-users] How does one read and write a sizeable amount of data (megabytes) from a process?

2016-10-07 Thread Eric Davies
I'm trying to write a bunch of data to a process, then read out the result. Replaced the process here with `cat -` because that's close enough. function bloop(size) data = "f" ^ size print("start") (pout, pin, p) = readandwrite(`cat -`) print("write") write(pin, dat

Re: [julia-users] How does one read and write a sizeable amount of data (megabytes) from a process?

2016-10-07 Thread Keno Fischer
Hi Eric, the problem here is that the kernel is blocking the process because there's nobody reading on the other side (since the writing process is blocked so it can't do any reading). We can probably do some things to improve the situation, but for now I'd recommend the following: - Start reading

Re: [julia-users] How does one read and write a sizeable amount of data (megabytes) from a process?

2016-10-07 Thread Eric Davies
Thanks, I will try both of those. I had tried making smaller pieces before but I'll try with `Base.process_events(false)`.

Re: [julia-users] How does one read and write a sizeable amount of data (megabytes) from a process?

2016-10-08 Thread Stefan Karpinski
https://github.com/JuliaLang/julia/issues/18840 On Fri, Oct 7, 2016 at 6:26 PM, Eric Davies wrote: > Thanks, I will try both of those. I had tried making smaller pieces before > but I'll try with `Base.process_events(false)`. >