[racket] Why Typed Racket is faster?

2014-02-23 Thread WarGrey Gyoudmon Ju
Does RVM know the type information at runtime? Is typed racket just a front-end parser (target to contracts)? In theory is it possible to manually optimize untyped racket to make it as fast as the typed one in most cases? To ignore the developing features, do we lose any expressivenesses? (lambd

[racket] Keeping DrRacket from closing plot window

2014-02-23 Thread Harry Spier
In DrRacket I'm generating some simulations using the random function and plotting the results using the Racket Plot routines. I put the plot results in a new window using "(plot-new-window? #t)". This works fine but everytime I run a new simulation within DrRacket the previous plot window is cl

Re: [racket] Bothersome solution to HtDP/2e Rocket Landing Discussion

2014-02-23 Thread Matthias Felleisen
On Feb 23, 2014, at 4:14 PM, Lawrence J Winkler wrote: > I recently starting reading HtDP/2e to evaluate the approach to teaching > programming. My motivation, in part, stems from the recent Computer Science > Education Week last December, where many were given the opportunity to > experience

Re: [racket] Bothersome solution to HtDP/2e Rocket Landing Discussion

2014-02-23 Thread Mark Engelberg
Take a look at the function put-pinhole, which will allows you to create a version of the rocket image with the "pinhole" at the bottom center of the rocket. If you do that, I think you'll be able to easily create place-image logic for the rocket example that is more to your liking. On Sun, Feb

[racket] Bothersome solution to HtDP/2e Rocket Landing Discussion

2014-02-23 Thread Lawrence J Winkler
I recently starting reading HtDP/2e to evaluate the approach to teaching programming. My motivation, in part, stems from the recent Computer Science Education Week last December, where many were given the opportunity to experience one hour of programming. I'm interested in reviewing different

Re: [racket] Neil: Is there a sensible way to sample from the naturals? EOM

2014-02-23 Thread Robby Findler
Thanks a lot, Neil! I see that I didn't read your earlier message correctly and I now get what you're suggesting. It makes a lot of sense (and the followup discussion also helped me). Robby On Thu, Feb 20, 2014 at 10:49 AM, Neil Toronto wrote: > The connection between my final answer and sampl