badkins
2016-6-13 18:50:02

cky: wow, I didn’t realize how much memory the slack app was sucking up. Using activity monitor, slack is #2 in the memory column (489.9 MB) behind kernel_task, and using “Real Mem” it’s #3 (660.2 MB) behind kernel_task and mds_stores


cky
2016-6-13 18:55:37

@badkins: Only 0.5 GB? Lucky you. I’ve had Slack use up 13 GB on a bad day.


badkins
2016-6-13 18:56:04

Ouch - that has to be virtual size though, right?


cky
2016-6-13 18:56:17

Well yes, my MBP only has 4 GB physical memory.


badkins
2016-6-13 18:56:23

I only have 4 slacks,a nd only 1 is very active


badkins
2016-6-13 18:57:05

Hmm… Activity Monitor isn’t very explicit. Is the “Memory” column virtual ?


badkins
2016-6-13 18:57:26

Probably not since it’s less than “Real Mem”


phil
2016-6-14 04:17:54

writes "" emty string even though if I call it with the same args from the commandline and 2>err.log the file will show something for stderr whereas the racket code doesnt


phil
2016-6-14 04:18:21

@cky here’s the thing I mentioned @IRC chat


cky
2016-6-14 04:20:22

Uh, your arglist is wrong.


cky
2016-6-14 04:20:32

That won’t capture anything.


cky
2016-6-14 04:20:43

Try this:


phil
2016-6-14 04:21:20

mmmh according to the docs the order is out in err-out


cky
2016-6-14 04:22:31
(call-with-output-string (lambda (p) ((fifth (apply process*/ports (current-output-port) (current-input-port) p “dialog” arglist)) ‘wait)))

cky
2016-6-14 04:22:43

where arglist contains everything after “dialog”.


cky
2016-6-14 04:23:00

Notice that I passed in p as the third argument of process*/ports and not (current-error-port).


cky
2016-6-14 04:23:16

since that’s what you wanted to capture.


phil
2016-6-14 04:23:35

ok gimme a sec


phil
2016-6-14 04:28:32

IT WORKED :boom: :party: but where in the docs does it say what the signature for the lambda is? call-with-output-string


phil
2016-6-14 04:30:03

oooooh proc : (output-port? . -> . any) I see .. alright yeah I’m not used to the racket docs yet


phil
2016-6-14 04:31:05

oh my god thank you so much! do you want me to post it on SO? How can I thank you for this xD?