Re: [racket-users] Using current-process-memory with 'cumulative argument

2020-12-15 Thread Matthew Flatt
At Tue, 15 Dec 2020 17:00:42 -0800 (PST), Alex Harsanyi wrote: > I am trying to use `(current-process-memory 'cumulative)` to determine the > total memory used by an application, including the memory that was > reclaimed by the garbage collector. I would expect the results from the > call to be

[racket-users] Using current-process-memory with 'cumulative argument

2020-12-15 Thread Alex Harsanyi
I am trying to use `(current-process-memory 'cumulative)` to determine the total memory used by an application, including the memory that was reclaimed by the garbage collector. I would expect the results from the call to be constantly increasing, and this is indeed the case at a "global" scal

Re: [racket-users] Re: TLS via make-ssl-connect@?

2020-12-15 Thread Sage Gerard
Missed Ryan's email earlier. Thanks Ryan! ~slg ‐‐‐ Original Message ‐‐‐ On Tuesday, December 15, 2020 3:27 PM, Sage Gerard wrote: > Answering my own question for those searching. > > Yes, make-ssl-connect@ tracks protocol recommendations. [1] shows that > make-ssl-connect@ uses `ssl-ma

[racket-users] Re: TLS via make-ssl-connect@?

2020-12-15 Thread Sage Gerard
Answering my own question for those searching. Yes, make-ssl-connect@ tracks protocol recommendations. [1] shows that make-ssl-connect@ uses `ssl-make-server-context' with default arguments, meaning an `auto' protocol. The server context docs point to client context docs for the meaning of `'au

Re: [racket-users] Threading question

2020-12-15 Thread Matthew Flatt
It sounds like you're running into a problem specifically with things like the file dialog. Everything in Racket runs in a thread. When your program starts, it runs in the "main" thread. Normally, a Racket thread that can run will run, no matter what other Racket threads are doing. When a foreign-

[racket-users] Threading question

2020-12-15 Thread James Platt
In Racket, does a given process have to be in a thread in order to give up time to other threads? In other words, putting code in a thread does not guarantee it will keep running if execution can move into other code that is not threaded? Details: I am working on documenting and writing exampl

[racket-users] Permutations ind Racket

2020-12-15 Thread Kira Bender
I study programming and have to do permutations in Racket without something like map , foldr, remove, remq, sort! or begin. So now i have a code but it doesn't show me every Permutation and some dopple. I can't find the issue or how to fix and program it right only using recursion. Maybe some of