Re: [racket] Pull some rackunit tests into Scribble doc as examples?

2011-12-15 Thread Grant Rettke
On Thu, Dec 15, 2011 at 6:54 AM, Greg Hendershott wrote: > Plus I like the idea that the unit tests should include correctly > running the examples in the docs. :) Sounds like a great feature. _ For list-related administrative tasks: http://list

Re: [racket] choice-evt: quadratic?

2011-12-15 Thread Tony Garnock-Jones
On 12/15/2011 06:05 PM, Matthew Flatt wrote: Fix pushed. Thanks! (That was amazingly quick.) Regards, Tony _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Multiple return values

2011-12-15 Thread Sam Tobin-Hochstadt
On Thu, Dec 15, 2011 at 5:32 PM, Neil Toronto wrote: > On 12/15/2011 05:03 AM, Markku Rontu wrote: >> >> Named return values, ah the dream of symmetry. > > I think my mad-scientist advisor did something like this once. I think it > would be awesome to have this, and of course keyword arguments, as

Re: [racket] choice-evt: quadratic?

2011-12-15 Thread Matthew Flatt
At Thu, 15 Dec 2011 15:56:51 -0500, Tony Garnock-Jones wrote: > Converting a number of alternative events into a single event by folding > choice-evt over them one-at-a-time takes O(n^2) time. Fix pushed. _ For list-related administrative tasks:

Re: [racket] Multiple return values

2011-12-15 Thread Neil Toronto
On 12/15/2011 05:03 AM, Markku Rontu wrote: Named return values, ah the dream of symmetry. I think my mad-scientist advisor did something like this once. I think it would be awesome to have this, and of course keyword arguments, as first-class constructs in Racket. (As far as I understand,

Re: [racket] How can I comfigure drracket to be Emacs styles?

2011-12-15 Thread Stephen Chang
In DrRacket, Edit -> Preferences -> Editing -> General, uncheck "Enable keybindings in menus" This should give you most of the common emacs key bindings. On Wed, Dec 14, 2011 at 8:07 AM, mahaitao wrote: > ** > I often use emacs for other editing works beside writing racket programs. > *The que

[racket] choice-evt: quadratic?

2011-12-15 Thread Tony Garnock-Jones
Hi all, Converting a number of alternative events into a single event by folding choice-evt over them one-at-a-time takes O(n^2) time. What should I do instead? (apply choice-evt the-list) takes O(n) time, but is a bit annoying because I have to maintain the intermediate list explicitly, and

Re: [racket] Pyramid Stack

2011-12-15 Thread Jay McCarthy
This means that OpenGL on your system is not working correctly. I presume that you are on Linux. You should consult this page to make sure you have the correct libraries installed: http://docs.racket-lang.org/gui/libs.html Jay On Mon, Dec 12, 2011 at 11:41 AM, C.S.I. wrote: > Hello all, > > I

[racket] How can I comfigure drracket to be Emacs styles?

2011-12-15 Thread mahaitao
I often use emacs for other editing works beside writing racket programs. *The question is how can I configure it to be emacs editing style such as, Ctrl+n means move to next line and so on. Best regards mht * _ For list-related administrative

Re: [racket] Multiple return values

2011-12-15 Thread Tomasz Rola
On Wed, 14 Dec 2011, Zayr Okale wrote: > Hello, everyone. > > Can someone please explain to me multiple return values? Not what it does, > I understand that much, but what is this feature for? In what situations is > it useful? I am not sure how much usable values/call-with-values are in Scheme.

[racket] Pyramid Stack

2011-12-15 Thread C.S.I.
Hello all, I tried to run Mccarthy's pyramidstack 1.0 and I get this error: "send: target is not an object: #f for method: call-as-current". I think it has something to do with the big-bang procedure, or with the opengl libs, but I followed every advice I found without success. Thanks in advance,

Re: [racket] Multiple return values

2011-12-15 Thread Tomasz Rola
On Thu, 15 Dec 2011, Zayr Okale wrote: > I even do understand what multiple return values are useful for in CL: "okay, > the function calculates other potentially useful values anyway, so no reason > not to make them available". > > Unfortunately, this scenario doesn't apply to Racket. And this i

Re: [racket] querying PLaneT repository

2011-12-15 Thread Neil Van Dyke
Robby Findler wrote at 12/15/2011 09:45 AM: It isn't exactly what you're asking for, as you don't learn versions of the non-latest major version, but maybe that's still helpful? Thanks, but I actually do need to the non-latest major version sometimes. I think I'll just use one of the optio

Re: [racket] querying PLaneT repository

2011-12-15 Thread Robby Findler
You can visit this url: http://planet.racket-lang.org/servlets/pkg-info.ss It isn't exactly what you're asking for, as you don't learn versions of the non-latest major version, but maybe that's still helpful? I see it wasn't documented. I've just pushed docs for it: - If you want to find

Re: [racket] Pull some rackunit tests into Scribble doc as examples?

2011-12-15 Thread Sam Tobin-Hochstadt
On Thu, Dec 15, 2011 at 7:54 AM, Greg Hendershott wrote: > > Ideally it would be something like @examples/test-case[ > ], which strips off the check-* parts, and uses that > as an expression for a normal Scribble example? The following (totally untested, written in my email buffer) seems like th

Re: [racket] Multiple return values

2011-12-15 Thread Stephan Houben
On 12/15/2011 12:39 PM, Zayr Okale wrote: Unfortunately, this scenario doesn't apply to Racket. And this is exactly what prompted my question. Since one of the reasons behind multiple return values is, as David Van Horn pointed out, symmetry with multiple input values (function arguments), th

[racket] Pull some rackunit tests into Scribble doc as examples?

2011-12-15 Thread Greg Hendershott
I'm trying to finish a couple PLaneT packages. Want to contribute something back, finally. (One is a package for quite a few Amazon Web Services, including S3, SES, SDB, SQS, SNS, and CloudWatch. The other is an HTTP 1.1 library, only because I want some 1.1-ness for the former.) Although I'm nerv

Re: [racket] Multiple return values

2011-12-15 Thread Markku Rontu
Named return values, ah the dream of symmetry. -Markku - Reply message - From: "Zayr Okale" To: "Tomasz Rola" Cc: Subject: [racket] Multiple return values Date: Thu, Dec 15, 2011 13:39 On 14/12/2011 21:20, Tomasz Rola wrote: > On Wed, 14 Dec 2011, Zayr Okale wrote: > >> Hello, everyo

Re: [racket] Multiple return values

2011-12-15 Thread Zayr Okale
On 14/12/2011 21:20, Tomasz Rola wrote: On Wed, 14 Dec 2011, Zayr Okale wrote: Hello, everyone. Can someone please explain to me multiple return values? Not what it does, I understand that much, but what is this feature for? In what situations is it useful? I am not sure how much usable value

Re: [racket] Call by reference macro example in Racket Guide

2011-12-15 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 14-12-11 21:19, Harry Spier wrote: > Dear list members, > > In the Racket Guide 16.1.7 Extended Example: Call-by-Reference > Functions it shows how with macros to set up call by reference > versions of Racket functions. > > I'm a little bit conf