[racket-users] Time-limited evaluation

2015-11-07 Thread jukka . tuominen
Hi all, I'm probably doing something wrong here, but for some reason "custodian-shutdown-all" doesn't always interrupt the execution as the last test case below shows. It continues execution until finished. Any ideas how to get this working? br, jukka --- #lang racket/load (require

Re: [racket-users] Time-limited evaluation

2015-11-07 Thread Matthew Flatt
Did you mean to create a bigger computation than `(factorial 2)`? It takes only about 5 msec on my machine, but adding a couple of extra zeros makes it time out. Converting the result of `(factorial 2)` to a string takes a bit longer than the arithmetic, and printing out the result in

Re: [racket-users] Time-limited evaluation

2015-11-07 Thread jukka . tuominen
Hehe, I think I need a faster computer, because that was the intention. Anyhow, I'm glad it's working. I think what happened was that initially I didn't have it right and lowered the number to make debugging faster. Then tested with another function and got confused. Thank you Matthew for