Re: [racket-users] detecting a recursive call?

2019-08-09 Thread Hendrik Boom
On Fri, Aug 09, 2019 at 01:03:17PM -0400, Sam Tobin-Hochstadt wrote: > This is possible -- the central trick is to maintain information about > the call stack separately, perhaps by using continuation marks. Or set a global variable on entry, and reset it on exit. If on entry the global variable i

[racket-users] Racket CS Profiler

2019-08-09 Thread Anurag Mendhekar
Does the profiler work as expected in Racket CS? I'm getting the total time taken, but the detailed profile has little useful information. If not, Is there a way to get better profiling information in CS? Best, Anurag. -- You received this message because you are subscribed to the Google Groups

Re: [racket-users] Re: GitHub ‘template repository’ functionality

2019-08-09 Thread Stephen De Gabrielle
Hi Ryan, On Fri, Aug 9, 2019 at 8:10 PM Ryan Kramer wrote: > Thanks Stephen, this looks useful. > > I don't understand why you say "I think the template should only have the > things that `raco pkg new` doesn't do." Wouldn't the intent be that I use > the template to create my own repo, clone it

Re: [racket-users] detecting a recursive call?

2019-08-09 Thread Gustavo Massaccesi
If you don't want to use the package or you want other criteria for stooping, I think the correct way to do this are continuation marks, but an easier but more inefficient way is using a parameter (so it is thread safe). ;- #lang racket (define recursion-level (make-parameter 0)) (define (f x

[racket-users] Re: GitHub ‘template repository’ functionality

2019-08-09 Thread Ryan Kramer
Thanks Stephen, this looks useful. I don't understand why you say "I think the template should only have the things that `raco pkg new` doesn't do." Wouldn't the intent be that I use the template to create my own repo, clone it onto my local machine, and then run `raco pkg install`? In that cas

Re: [racket-users] detecting a recursive call?

2019-08-09 Thread Sam Tobin-Hochstadt
This is possible -- the central trick is to maintain information about the call stack separately, perhaps by using continuation marks. We (mostly Phil Nguyen) recently built a tool that does this. If you take your program, install the "termination" package, and then add: (require termination)

[racket-users] Re: Racket v7.4

2019-08-09 Thread 'Joel Dueck' via Racket Users
On Win10 / Firefox the "variant" selector does not appear for me, I'm not sure why yet. I don't have any errors in the console. I can see it just fine on Win10 / Chrome, macOS / Safari, and macOS / Firefox. -- You received this message because you are subscribed to the Google Groups "Racket U

[racket-users] detecting a recursive call?

2019-08-09 Thread Kees-Jochem Wehrmeijer
Hi, I'm wondering whether it's possible for a function to detect whether it's being called by itself, possibly indirectly. I want to use this to prevent endless loops and generate different results in these situations. For example, imagine I have the following functions: (define (foo loc) (l

Re: [racket-users] Racket v7.4

2019-08-09 Thread Bruce O'Neel
Hi, Fantastic! It looks as if the CS builds are only x86-64, right?  Are there plans to add others, say arm32 and arm64? Thanks very much. cheers bruce > Racket version 7.4 is now available from > > [https://racket-lang.org/](https://racket-lang.org/) > > Wi

Re: [racket-users] Re: Do custodians shutdown when Racket exits?

2019-08-09 Thread George Neuner
On 8/8/2019 7:34 AM, Tony Garnock-Jones wrote: On Tue, 6 Aug 2019 at 21:15, George Neuner > wrote: Sockets belonging to the crashed program are in a "half-closed" state - unable to send, but still able to receive.  If you look in netstat you'll find thei

[racket-users] Article on racket

2019-08-09 Thread Stephen De Gabrielle
FYI Racket: Lisp for learning https://lwn.net/SubscriberLink/795385/2fe3529b76fae7c9/ -- -- 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+unsu

[racket-users] Fwd: Racket featured in LWN

2019-08-09 Thread Alexander Shopov
-- Forwarded message - From: Alexander Shopov Date: Fri, 9 Aug 2019, 11:37 Subject: Racket featured in LWN To: Racket Users This week's edition of Linux Weekly News features an article about Racket by Jake Edge: Racket: Lisp for learning Have a look: https://lwn.net/SubscriberLi

[racket-users] Racket featured in LWN

2019-08-09 Thread Alexander Shopov
This week's edition of Linux Weekly News features an article about Racket by Jake Edge: Racket: Lisp for learning Have a look: https://lwn.net/SubscriberLink/795385/2fe3529b76fae7c9/ Kind regards: al_shopov -- You received this message because you are subscribed to the Google Groups "Racket Use