Re: [racket] Math library kudos

2013-02-19 Thread Joe Gilray
Hi Luke, Thanks for the knowledge. Do you have some code that I could try out. I found gamma and bflog-gamma, but they work with floats and so I can't imagine they are faster for exact answers... maybe for estimating nCr for large numbers? -Joe On Tue, Feb 19, 2013 at 8:26 PM, Luke Vilnis wr

Re: [racket] Math library kudos

2013-02-19 Thread Luke Vilnis
FYI, log gamma is another fast way to calculate the number of combinations if you want to deal with really big numbers. On Tue, Feb 19, 2013 at 7:28 PM, Joe Gilray wrote: > Racketeers, > > Thanks for putting together the fantastic math library. It will be a > wonderful resource. Here are some

Re: [racket] Racket v5.3.3

2013-02-19 Thread Joe Gilray
Has anyone else noticed that the 64-bit version on Win7 is faster than the 32-bit version? I thought that the longer pointers were supposed to slow down execution. BTW, still seeing some crashes on 64-bit and none on 32-bit Thoughts? -Joe On Sat, Feb 16, 2013 at 10:49 AM, Joe Gilray wrote: >

[racket] Math library kudos

2013-02-19 Thread Joe Gilray
Racketeers, Thanks for putting together the fantastic math library. It will be a wonderful resource. Here are some quick impressions (after playing mostly with math/number-theory) 1) The functions passed all my tests and were very fast. If you need even more speed you can keep a list of primes

[racket] Check for Updates behind proxy

2013-02-19 Thread gonzalo diethelm
At work I am behind an HTTP proxy. Check for Updates does not work, no matter what I put in Edit / Preferences / Browser / HTTP Proxy. It hangs for about 15 seconds and then says "tcp-connect connection failed, address download.racket-lang.org, port number 80, the host did not respond". HTH. Be

Re: [racket] New turtle graphics package + a few questions

2013-02-19 Thread Jens Axel Søgaard
2013/2/19 Matthias Felleisen : > On Feb 19, 2013, at 6:00 AM, Daniel Prager wrote: > >> I've written an interactive turtle graphics package, complete with >> animated turtle imagery, aimed at Dr Racket using parents with >> elementary-school aged kids. I like the turtles! > Thanks, that's great.

Re: [racket] New turtle graphics package + a few questions

2013-02-19 Thread Matthias Felleisen
On Feb 19, 2013, at 6:00 AM, Daniel Prager wrote: > I've written an interactive turtle graphics package, complete with > animated turtle imagery, aimed at Dr Racket using parents with > elementary-school aged kids. Thanks, that's great. In what way did you find the existing one lacking? >

Re: [racket] New turtle graphics package + a few questions

2013-02-19 Thread Sam Tobin-Hochstadt
On Tue, Feb 19, 2013 at 6:00 AM, Daniel Prager wrote: > > > 1. Code organization: > > At the moment everything is dumped in one directory. My problem is that when > I put -- for example -- an example in an /examples subdirectory and (require > "../turtle-graphics.rkt") the line > > (define *tur

[racket] Catching Com exception

2013-02-19 Thread heraklea
Hello friends, is this the right direction? (with-handlers ([exn:fail? (lambda (exn) (printf "com-exp-file-exists"))]) (set! Object (com-invoke COMOBJ "Method1" 2))) Yours, Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Access c based dll through ffi

2013-02-19 Thread heraklea
Hello Danny, here you are: C++ Code: [Code_Begin] #include extern "C" { __declspec(dllexport) void DisplayHelloFromDLL() { printf ("Hello from DLL !\n"); fflush(stdout); } } [Code_End] (define-ffi-definer define-dreamlog (ffi-lib "D:\\__w32\\DreamLogging\\x64\\Release\\DreamLoggin

[racket] New turtle graphics package + a few questions

2013-02-19 Thread Daniel Prager
I've written an interactive turtle graphics package, complete with animated turtle imagery, aimed at Dr Racket using parents with elementary-school aged kids. It's available on github: https://github.com/danprager/turtlegraphics Online docs and tutorial