Re: [racket-users] Re: send-new-place-channel-to-named-dest usage question
Thanks, Matthew. Tim On 8 August 2015 15:13:01 BST, Matthew Flatt mfl...@cs.utah.edu wrote: I fixed the minor issue, but I haven't been able to figure out how `send-new-place-channel-to-named-dest` is meant to work, either. (I'll try again to contact Kevin.) At Thu, 6 Aug 2015 11:32:29 +0100, Tim Brown wrote: On 06/08/15 11:29, Tim Brown wrote: (define node (create-place-node localhost #:listen-port 6344)) ;; [!] this prints out (to stdout) (6344) As a minor side issue, create-place-node prints what looks like a list of the listen port number to standard out. (Or it prints the listen port in parentheses as a hint). I can’t find it in the source -- maybe someone more familiar can either justify or remove the terminal-polluting article :-) -- Sent from my Android device with K-9 Mail. Please excuse my brevity. -- You received this message because you are subscribed to the Google Groups Racket Users group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] How to break a process created with system
Does `(current-subprocess-custodian-mode 'kill)` combined with Cmd-k (for kill, instead of break) make the subprocess terminate? If so, you could use `dynamic-wind` or catch `exn:break` exceptions, possibly put the subprocess under its own custodian, and so on. At Sun, 9 Aug 2015 15:17:19 +0200, Jens Axel Søgaard wrote: Hi All, The function node below takes the path of a JavaScript file, starts node (JavaScript evaluator) using system. The output is collected in a string. (define (node path) (with-output-to-string (λ () (system (string-append /usr/local/bin/node(path-string path)) The function is used from within DrRacket. If the JavaScript program doesn't terminate, I use cmd-b to break the process. Control is given back to the repl, but the node system process keeps running in the background - and needs to be killed manually. How can I kill the node system process from within DrRacket? One of my attempts that didn't work: (define (node path) (with-output-to-string (λ () (parameterize ([current-subprocess-custodian-mode 'kill] [subprocess-group-enabled #t]) (system (string-append /usr/local/bin/node (path-string path))) -- Jens Axel Søgaard -- You received this message because you are subscribed to the Google Groups Racket Users group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Racket Users group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[racket-users] How to break a process created with system
Hi All, The function node below takes the path of a JavaScript file, starts node (JavaScript evaluator) using system. The output is collected in a string. (define (node path) (with-output-to-string (λ () (system (string-append /usr/local/bin/node(path-string path)) The function is used from within DrRacket. If the JavaScript program doesn't terminate, I use cmd-b to break the process. Control is given back to the repl, but the node system process keeps running in the background - and needs to be killed manually. How can I kill the node system process from within DrRacket? One of my attempts that didn't work: (define (node path) (with-output-to-string (λ () (parameterize ([current-subprocess-custodian-mode 'kill] [subprocess-group-enabled #t]) (system (string-append /usr/local/bin/node (path-string path))) -- Jens Axel Søgaard -- You received this message because you are subscribed to the Google Groups Racket Users group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] Re: is this a bug?
2015年8月8日土曜日 15時40分15秒 UTC+9 Michael Titke: These procedure were necessary to represent questions like IS THERE ANY stack on the table onto which I could put this card?, Is the top card of ALL foundations a king?. If so then you have won! :-) You are right, Michael. But I'm not willing to blame you and I respect you a lot. I think that Computer Science is perfectly human being's platonic world and old thoughts are equal to new thoughts in terms of goodness. I'm just interested in your post and I just want to understand its meaning precisely. -- You received this message because you are subscribed to the Google Groups Racket Users group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[racket-users] Export indentation preferences in a package's info.rkt?
I find it irritating when I have to repeatedly add various macros exported by libraries to their proper group in the Indenting section of DrRacket's settings so that they're properly formatted. Is there a way for a package's info.rkt to specify default indentation preferences for it's macros for DrRacket to make sense of? If not, would that be something easy enough to do and useful enough to be worth doing? -- You received this message because you are subscribed to the Google Groups Racket Users group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] How to break a process created with system
2015-08-09 15:24 GMT+02:00 Matthew Flatt mfl...@cs.utah.edu: Does `(current-subprocess-custodian-mode 'kill)` combined with Cmd-k (for kill, instead of break) make the subprocess terminate? Yes. If so, you could use `dynamic-wind` or catch `exn:break` exceptions, possibly put the subprocess under its own custodian, and so on. Thanks that worked. For the archives: (define (node/break path) (define me(current-thread)) (define cust (make-custodian)) (define (kill)(custodian-shutdown-all cust)) (define (on-break _) (kill) \break: node process was killed\) (parameterize ([current-subprocess-custodian-mode 'kill] [subprocess-group-enabled #t] [current-custodian cust]) (with-handlers ([exn:break? on-break]) (thread (λ() (thread-send me (node path (thread-receive /Jens Axel At Sun, 9 Aug 2015 15:17:19 +0200, Jens Axel Søgaard wrote: Hi All, The function node below takes the path of a JavaScript file, starts node (JavaScript evaluator) using system. The output is collected in a string. (define (node path) (with-output-to-string (λ () (system (string-append /usr/local/bin/node (path-string path)) The function is used from within DrRacket. If the JavaScript program doesn't terminate, I use cmd-b to break the process. Control is given back to the repl, but the node system process keeps running in the background - and needs to be killed manually. How can I kill the node system process from within DrRacket? One of my attempts that didn't work: (define (node path) (with-output-to-string (λ () (parameterize ([current-subprocess-custodian-mode 'kill] [subprocess-group-enabled #t]) (system (string-append /usr/local/bin/node (path-string path))) -- Jens Axel Søgaard -- You received this message because you are subscribed to the Google Groups Racket Users group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Racket Users group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- -- Jens Axel Søgaard -- You received this message because you are subscribed to the Google Groups Racket Users group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] Export indentation preferences in a package's info.rkt?
I would really like to have such a feature. On Aug 9, 2015, at 1:23 PM, Jack Firth jackhfi...@gmail.com wrote: I find it irritating when I have to repeatedly add various macros exported by libraries to their proper group in the Indenting section of DrRacket's settings so that they're properly formatted. Is there a way for a package's info.rkt to specify default indentation preferences for it's macros for DrRacket to make sense of? If not, would that be something easy enough to do and useful enough to be worth doing? -- You received this message because you are subscribed to the Google Groups Racket Users group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Racket Users group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[racket-users] Scribble: Wrap text in examples/interactions?
Hi all, Is there a way to get long lines of text in a Scribble @examples block to wrap? (Perhaps looking something like DrRacket’s wrapped lines?) Thanks, jmj -- You received this message because you are subscribed to the Google Groups Racket Users group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.