Re: [racket] extra exercises

2012-04-16 Thread Stephen Bloch
On Apr 16, 2012, at 5:18 PM, Neil Van Dyke wrote: > ... if one is still looking for additional beginner programming exercises, I > think that one not-totally-bad option is to start picking standard algorithms > and data structures one can learn about by search the Web and in books (e.g, > sort

Re: [racket] extra exercises

2012-04-16 Thread Joe Gilray
You are so right, Neil, I've been slowly learning more and more idiomatic Racket. Some things I've picked up: 1) avoid mutators (see above) 2) avoid side-affects, use return values 3) Use list comprehensions and other powerful procedures (for*, for/list, foldl, map, etc) 4) Don't be afraid to wr

Re: [racket] Procedure name printing in DrRacket

2012-04-16 Thread Danny Yoo
Small followup: we can do something like the following to let Racket do most of the hard work. ; ;; A little syntax to bind the name that Racket is inferring in the surrounding context. (define-syntax (with-inferred-na

Re: [racket] Procedure name printing in DrRacket

2012-04-16 Thread Danny Yoo
> For: >>stronger > Why does DrRacket print  # > and not # Hi Harry, Racket's compiler has some special behavior to infer what the name of a procedure value should be. For example, at compile time, if it sees something of the form: (define some-name (lambda ...)) or (let ([some-name (lamb

Re: [racket] extra exercises

2012-04-16 Thread Neil Van Dyke
A good thing about exercises coming from an introductory textbook is that they are usually appropriate for the material instruction that the student has received at that point in the book. (Ideally, there is a mostly linear progression through the book.) However, if one is still looking for a

[racket] Procedure name printing in DrRacket

2012-04-16 Thread Harry Spier
Dear list members: In DrRacket Given the following definitions in the definitions window: --- #lang racket (define (double expr) ((if (string? expr) string-append +) expr expr)) (define (twice fn x) (fn(fn x))) (define (lo

Re: [racket] extra exercises

2012-04-16 Thread Joe Gilray
The problems at projecteuler.net are also a good way to get up to speed with a new language. -Joe On Mon, Apr 16, 2012 at 8:58 AM, Danny Yoo wrote: > > Im following the book Desiging programms second edition. > > I'm now at the end of chapter 2 and I get the idea I need some extra > > exercises

[racket] Clarifying the Racket License

2012-04-16 Thread Sam Tobin-Hochstadt
There has recently been some discussion on the list about the Racket license, and we wanted to make our perspective clear. Our primary goal is to help as many people as possible use and contribute to Racket. We encourage anyone to develop any kind of software, with any kind of license, using Racke

Re: [racket] extra exercises

2012-04-16 Thread Danny Yoo
> Im following the book Desiging programms second edition. > I'm now at the end of chapter 2 and I get the idea I need some extra > exercises so I can practice more to follow the desin recipe, difference > between a global variable and a function parameter. > Are there somewhere some extra exercise

Re: [racket] Pulling BLOB from SQL DB

2012-04-16 Thread J G Cho
It works without crashing. Will do more testing. Thank you. On Sun, Apr 15, 2012 at 2:00 AM, Ryan Culpepper wrote: > I just pushed some fixes to MySQL's handling of fields larger than about > 64k. One of the bugs I fixed would account for the out-of-memory error (it > sometimes tried to allocate

[racket] Help required for issue

2012-04-16 Thread Prachi Khadke
Hi I am using DrRacket to run my programs. Just some time back, I got the following error: "insert-file in text%: error loading the file (mf-not-okay-after-adding-standard-style)" Could you please help me open my file? Thanks Regards Prachi Khadke Racket Users list: htt

Re: [racket] AES encryption/decryption support in Racket?...

2012-04-16 Thread Erich Rast
I've been using the "crypto" library of Dimitris Vyzovitis, which is also based on openssl. It hasn't been updated for a while, but works fine with symmetric algorithms. Best, Erich On Sun, 15 Apr 2012 17:13:00 +0200 Rüdiger Asche wrote: > Hi there, > > in my Racket code, I need to crypt/