Re: [racket] Scribble: exact-chars in multiarg-element

2011-05-19 Thread Prabhakar Ragde
On 5/18/11 11:32 PM, Robby Findler wrote: Can you set up a helper macro that is just the identity and end up with something like this? \newcommand{\somethingorother}[1]{#1} \setbeamerfont{myfont}{\somethingorother{size={40}{44}}} You would think so, but \setbeamerfont is finicky about th

[racket] Physics/Genetic Algorithms

2011-05-19 Thread Ben Thompson
Hello all, I recently discovered www.boxcard2d.com, an interesting project in genetic algorithms and car design, and decided I wanted to port it into Racket. However, I seem to have run into problems, and would appreciate any advice you can give. Obviously, this project requires a physics engine,

Re: [racket] Physics/Genetic Algorithms

2011-05-19 Thread Noel Welsh
If you haven't seen it yet, check out Jay's bindings to Chipmunk. It's on Planet: http://planet.racket-lang.org/package-source/jaymccarthy/chipmunk.plt/1/0/planet-docs/chipmunk/index.html HTH, N. On Thu, May 19, 2011 at 2:13 PM, Ben Thompson wrote: ... > Obviously, this project requires a ph

Re: [racket] Scribble: exact-chars in multiarg-element

2011-05-19 Thread Matthew Flatt
Putting the other macro around \setbeamerfont (instead of around one argument) would have worked, I think, but I've pushed a fix to the bug. At Wed, 18 May 2011 22:32:38 -0500, Robby Findler wrote: > Can you set up a helper macro that is just the identity and end up > with something like this? >

Re: [racket] Physics/Genetic Algorithms

2011-05-19 Thread Jay McCarthy
It's diverged a bit from where Chipmunk is right now, but it's a pretty straight-forward FFI, so you should be able to update it (and if you do, I'll update the package.) The biggest problem with it is that it doesn't "feel" like Racket when you use it because the interface is so imperative. Nevert

[racket] Prefix multiple provides

2011-05-19 Thread José Lopes
Hello, Is there a way of prefixing out multiple definitions? (provide (prefix-out x: x1 x2 x3 ...)) Regards, José Lopes -- José António Branquinho de Oliveira Lopes 58612 - MEIC-A jose.lo...@ist.utl.pt _ For list-related administrat

Re: [racket] Prefix multiple provides

2011-05-19 Thread Sam Tobin-Hochstadt
This should work: (provide (prefix-out x: (combine-out x1 x2 x3))) 2011/5/19 José Lopes : > Hello, > > Is there a way of prefixing out multiple definitions? > >    (provide >        (prefix-out x: x1 x2 x3 ...)) > > Regards, > José Lopes > > -- > José António Branquinho de Oliveira Lopes > 586

Re: [racket] Prefix multiple provides

2011-05-19 Thread José Lopes
Thank you. On 19-05-2011 15:35, Sam Tobin-Hochstadt wrote: This should work: (provide (prefix-out x: (combine-out x1 x2 x3))) 2011/5/19 José Lopes: Hello, Is there a way of prefixing out multiple definitions? (provide (prefix-out x: x1 x2 x3 ...)) Regards, José Lopes -- Jo

Re: [racket] Physics/Genetic Algorithms

2011-05-19 Thread Ben Thompson
Much thanks! I knew someone must have had a similar problem, I just didn't know where to look for the answer. Anywho, this should work wonderfully! Thanks, Ben On Thu, May 19, 2011 at 10:00 AM, Jay McCarthy wrote: > It's diverged a bit from where Chipmunk is right now, but it's a > pretty straigh

Re: [racket] Physics/Genetic Algorithms

2011-05-19 Thread Jay McCarthy
And here's a simple demo: http://planet.racket-lang.org/package-source/jaymccarthy/pyramidstack.plt/1/0/gl-pyramidstack.ss 2011/5/19 Ben Thompson : > Much thanks! I knew someone must have had a similar problem, I just didn't > know where to look for the answer. > Anywho, this should work wonderfu

Re: [racket] bitmap get-argb-pixels returns un-premultiplied alpha?

2011-05-19 Thread Stephan Houben
Wow! Thanks! That is really fast! Greetings, Stephan On 05/19/2011 01:04 AM, Matthew Flatt wrote: I've added an argument to `get-argb-pixels' and `set-argb-pixels' to make them work in premultiplied mode. At Sat, 23 Apr 2011 22:54:47 +0200, Stephan Houben wrote: Hi list, Today I noticed tha

Re: [racket] a small itch regarding flonums

2011-05-19 Thread Stephan Houben
On 05/19/2011 01:31 AM, Matthew Flatt wrote: At Mon, 16 May 2011 21:09:39 +0200, Stephan Houben wrote: Why this difference? It looks like the r6rs fl+ gets open-coded with some macro wizardry so there shouldn't be a performance penalty, right? I think it actually isn't. When you apply the R6RS

[racket] Planet Documentation in Windows

2011-05-19 Thread Patrick King
The following... C>raco planet fileinject slowthought math.plt 1 0 = Installing math.plt on Thu, 19 May 2011 18:4:7 = fprintf: expects type as 2nd argument, g iven: "raco setup: Unpacking archive from C:\\DOCUME~1\\Patrick\\MYDOCU~1\\SOURC E\\MY-PLA~1\\math.plt"; other ar

Re: [racket] Planet Documentation in Windows

2011-05-19 Thread Robby Findler
I've pushed a fix for the next release. In the meantime, here's a diff that should do the same for you. Thanks, Robby diff --git a/collects/planet/private/planet-shared.rkt b/collects/planet/private/planet-shared.rkt index 1b0e5add..5d3e3f2 100644 --- a/collects/planet/private/planet-shared.rkt +