Re: [racket] HtDP for programmers?

2012-06-26 Thread Stephen Bloch
On Jun 27, 2012, at 6:39 AM, m...@goblin.punk.net wrote: > I am planning to work through _How to Design Programs_ but > already have some (imperative) programming experience as well as > some exposure to Racket/Scheme. > > I found the following piece of advice in the mailing list > archive. An

[racket] HtDP for programmers?

2012-06-26 Thread mike
I am planning to work through _How to Design Programs_ but already have some (imperative) programming experience as well as some exposure to Racket/Scheme. I found the following piece of advice in the mailing list archive. Any updates or other tips? http://groups.google.com/group/plt-scheme/ms

Re: [racket] datum-intern-literal and lists?

2012-06-26 Thread Eli Barzilay
A few minutes ago, Robby Findler wrote: > On Tue, Jun 26, 2012 at 10:05 PM, Eli Barzilay wrote: > > 6 hours ago, Danny Yoo wrote: > >> > >> [Note: I find a place in Scribble that might help improve speed by > >> about 15%.  See below.] > >> > >> I'll tried adding the fast path computation, with no

Re: [racket] datum-intern-literal and lists?

2012-06-26 Thread Robby Findler
On Tue, Jun 26, 2012 at 10:05 PM, Eli Barzilay wrote: > 6 hours ago, Danny Yoo wrote: >> >> [Note: I find a place in Scribble that might help improve speed by >> about 15%.  See below.] >> >> I'll tried adding the fast path computation, with no effective >> difference. The statistical profiler is

Re: [racket] datum-intern-literal and lists?

2012-06-26 Thread Eli Barzilay
6 hours ago, Danny Yoo wrote: > > [Note: I find a place in Scribble that might help improve speed by > about 15%.  See below.] > > I'll tried adding the fast path computation, with no effective > difference. The statistical profiler is not working well in this > instance. Any idea why? Did you

[racket] datum-intern-literal and lists?

2012-06-26 Thread Danny Yoo
[I thought I had done Reply to All, but apparently not. CCing the list...] On Mon, Jun 25, 2012 at 10:47 PM, Robby Findler wrote: > Another thought: maybe more agressive shortcircuiting might help? [Note: I find a place in Scribble that might help improve speed by about 15%.  See below.] I'l

Re: [racket] Light table for racket

2012-06-26 Thread Matthias Felleisen
Go for it. If it works well, I am sure we could use it for freshmen -- Matthias On Jun 26, 2012, at 1:34 PM, Me wrote: > I saw a demo of light table (ide by Chris granger) and was thoroughly > impressed. It is using clojure but it can be adapted to other languages. > Python and JavaScript ar

[racket] Light table for racket

2012-06-26 Thread Me
I saw a demo of light table (ide by Chris granger) and was thoroughly impressed. It is using clojure but it can be adapted to other languages. Python and JavaScript are two others that it currently supports. I am wondering if there is any interest in having this ide work for racket as well. It s

Re: [racket] Exception Stack Trace Troubles

2012-06-26 Thread Eli Barzilay
Two days ago, Michael Wilber wrote: > If I understand correctly, by default, Racket doesn't provide forms > with stack trace information when running from the CLI by > default. It does (and I tried my examples on both racket and drracket). > Does it work from within DrRacket? If so, look into th

Re: [racket] exercise's question

2012-06-26 Thread Roelof Wobben
oke, On 87 I have to made a choice so the user can choose between a Vcat and a VCham so one animal and one gauge. I have then to think how I can prevent that whn the user chooses a Vcham petting does not work. Thanks for the help. Roelof Op 26-6-2012 16:38, Matthias Felleisen schreef:

Re: [racket] exercise's question

2012-06-26 Thread Matthias Felleisen
On Jun 26, 2012, at 10:21 AM, Roelof Wobben wrote: > Sorry for the confusion. > > I meant exercise 87 and 88 on the stable version of HtpD/2e. > > So the questions I have should be : > > Is it correct that on exercise 87 of How to design Programms I have to make 2 > gauges and two animals. >

Re: [racket] Choosing what class to instantiate at runtime

2012-06-26 Thread Danny Yoo
> The solution that springs to mind is to choose which class to instantiate > with (if (list? param-a) ,,,) but then I'd have to state the parameter lists > twice. Hi Kieron, Can you choose the class using an if or cond? For example: (define

Re: [racket] exercise's question

2012-06-26 Thread Roelof Wobben
Sorry for the confusion. I meant exercise 87 and 88 on the stable version of HtpD/2e. So the questions I have should be : Is it correct that on exercise 87 of How to design Programms I have to make 2 gauges and two animals. And is exercise 88 part 1 not the same as exercise 56 ? Roelof Op

Re: [racket] exercise's question

2012-06-26 Thread Matthias Felleisen
Your count seems to be completely out of sync with -- the stable version of HtDP/2e ( http://www.ccs.neu.edu/home/matthias/HtDP2e/htdp2e-part1.html look for 'exercise 56' ) -- the draft version of HtDP/2e ( http://www.ccs.neu.edu/home/matthias/HtDP2e/Draft/htdp2e-part1.html , ditto ) Can yo

[racket] exercise's question

2012-06-26 Thread Roelof Wobben
Hello, Sorry for so many questions but i get again confused. Is it correct that on exercise 56 of How to design Programms I have to make 2 gauges and two animals. And is exercise 57 part 1 not the same as exercise 56 ? Regards, Roelof Racket Users list: http://lists.r

Re: [racket] Exception Stack Trace Troubles

2012-06-26 Thread Robby Findler
What architecture? Robby On Tue, Jun 26, 2012 at 2:37 AM, Chad Albers wrote: > I'm using Debian Linux. > -- > Chad Albers > > > On Sun, Jun 24, 2012 at 10:08 PM, Matthew Flatt wrote: >> What platform are you using? >> >> If it's Win64, the problem is likely Racket's weak support for getting >>

Re: [racket] for*/list and Typed Racket

2012-06-26 Thread Sam Tobin-Hochstadt
On Tue, Jun 26, 2012 at 7:26 AM, Adolfo Pérez Álvarez wrote: > Hi All, > > It seems that the problem is in for*/list: itself. For example, the > following code fails to typecheck, but I don't see anything wrong with > it: > > #lang typed/racket > > (for*/list: ([a : Number '(1 2 3)] >            

Re: [racket] for*/list and Typed Racket

2012-06-26 Thread Adolfo Pérez Álvarez
Hi All, It seems that the problem is in for*/list: itself. For example, the following code fails to typecheck, but I don't see anything wrong with it: #lang typed/racket (for*/list: ([a : Number '(1 2 3)] [b : Number '(4 5 6)]) (+ a b)) Any idea of why doesn't typecheck? I'm tota

Re: [racket] Exception Stack Trace Troubles

2012-06-26 Thread Chad Albers
It doesn't produce a stack trace of DrRacket. Also, it doesn't produce a stack trace if I include the errortrace on the command line. :( -- Chad Albers On Mon, Jun 25, 2012 at 2:29 AM, Michael Wilber wrote: > If I understand correctly, by default, Racket doesn't provide forms with > stack trac

Re: [racket] Exception Stack Trace Troubles

2012-06-26 Thread Chad Albers
I'm using Debian Linux. -- Chad Albers On Sun, Jun 24, 2012 at 10:08 PM, Matthew Flatt wrote: > What platform are you using? > > If it's Win64, the problem is likely Racket's weak support for getting > a backtrace on that platform (when the JIT is enabled). > > At Sun, 24 Jun 2012 22:01:02 +0900